Jump to content
TNG Community

Can't get Most Wanted to work


mrsike

Recommended Posts

Afraid I have to showcase my ignorance again. I'm trying to get a Most Wanted page--I've seen a few from other member sites, and I really like that. I've saved my historytemplate.php file and renamed it mostwanted.php. I apparently can't follow instructions, because here's what I get - messed up mostwanted page. I haven't changed the text or anything yet to my own--just trying to get it to work first--obviously to no avail.

Thanks so much! :)

Link to comment
Share on other sites

I believe the history templates are ment to be used from a sub-directory (folder). So this should be an easy fix. :) Simply:

create a new folder (since I'm unimanigative, call it NewDir)

put your mostwanted.php in it

try and call if from http://ikenouyehistory.org/NewDir/mostwanted.php

if this works, you'd call it from your index page as <a href="NewDir/mostwanted.php">Most Wanted</a>

Hope this helps,

Ben

Link to comment
Share on other sites

I think its a little confused on were to find the genlib.php, begin.php, etc., files.

If you have your mostwanted.php file in a subdirectory (outside of where all your core TNG files are at) that could be causing the problem.

If all your TNG files are installed here in this directory:

/home/ikenouye/public_html/ikenouyehistory/

there's something really screwy.

If all your TNG files are installed here:

/home/ikenouye/public_html/

just make sure that is where you mostwanted.php file is at.

HTH

Rush

Link to comment
Share on other sites

Taryn,

You might try changing the following statement at the beginning of your mostwanted.php created from the historytemplate.php

from

include( "../begin.php");

if( !$cms[support] )

$cms[tngpath] = "../";

to

include( "begin.php");
if( !$cms[support] )
    $cms[tngpath] = "/";

so that it knows where to find the TNG php files (begin and all other files)

Good luck,

Ken

Link to comment
Share on other sites

Hey--wonderful! Almost there! Now, most of my topmenu.html is working on the mostwanted.php page, except the flash logo. That is located in the header.js file, which I've put ../ in front of, like everything else, but it's not showing on the mostwanted page. Any ideas?

Thanks so much!

Link to comment
Share on other sites

Hi Ben,

I put my mostwanted.php in a sub-directory--your suggestion seemed to be the only way I could get it to work. I left this statment

from
include( "../begin.php");
if( !$cms[support] )
$cms[tngpath] = "../";

in mostwanted.php in place and changed the relative links to absolute in my meta, topmenu and footer.html files. That flash logo is located in my topmenu in the header.js file. I can't figure out why it's showing on all my other pages and not this one. Here's the link to my new Most Wanted page.

Thanks so much! :)

Link to comment
Share on other sites

in mostwanted.php in place and changed the relative links to absolute in my meta, topmenu and footer.html files. That flash logo is located in my topmenu in the header.js file. I can't figure out why it's showing on all my other pages and not this one. Here's the link to my new Most Wanted page.

In your header.js script you have a line that reads:

document.write('<PARAM NAME=movie VALUE="logo.swf">');
I think that if you replace it with
document.write('<PARAM NAME=movie VALUE="/logo.swf">');

it should work. Darn relative links can bea pain in the ..........

Hope it works for ya. BTW, how'd you design all the cool graphics. I can code, but can design worth a flip.

Ben

Link to comment
Share on other sites

Boy, am I a moron. I forgot to upload the flash.txt to the same subfolder my mostwanted.php is in! DOH!

The graphics? The template layout I got from AllWebCo Design, and the split tree on the home page and the one on the contact page--I just used a single graphic, then cut it in half and made two individual pics out of it.

Thanks for all your help! I do feel like I wasted your time with this one--sorry about that! :(

Link to comment
Share on other sites

I do feel like I wasted your time with this one--sorry about that!

ust paying forward for all the help I've gootten. And this was easy (been there before). Thanks for the links, I'll look into them.

Ben

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...