+ Reply to Thread
Results 1 to 13 of 13




  

Thread: Have a minor problem, need help on this one

      
  1. #1
    The Force is Strong! iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
    Join Date
    October 18, 2006
    Posts
    6,872
    Rep Power
    11
    Feedback Score
    0

    Default Have a minor problem, need help on this one

    Okay, here is the problem.
    On the main page of a new directory, is a nice intro.
    Problem is, it also shows up on the latest links and top hits pages.
    Also on each category page and sub-category page.
    Which I do not want.

    How do I fix it so it shows only on the main page?

    See what I mean here:
    http://www.greatdirectories.net

    Thank you.

  2. #2
    Zap
    Zap is offline
    I Love Lesbians! Zap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond repute Zap's Avatar
    Join Date
    September 29, 2006
    Location
    Canada, Eh?
    Posts
    4,385
    Rep Power
    10
    Feedback Score
    0

    Default

    I'm no directory skinner, but it's probably there because it's in the header file.
    You should create a page that uses the header and footer with your intro and link to that page from the nav bar in the header.
    Toronto Forum ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ GET FREE EXPOSURE FOR YOUR BLOG!

  3. #3
    The Force is Strong! iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
    Join Date
    October 18, 2006
    Posts
    6,872
    Rep Power
    11
    Feedback Score
    0

    Default

    I am no coder either.

    The entire thing is in the main.tpl

    Trying to figure out how to put that into it's own page and call it from just the main page.

  4. #4
    Zap
    Zap is offline
    I Love Lesbians! Zap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond reputeZap has a reputation beyond repute Zap's Avatar
    Join Date
    September 29, 2006
    Location
    Canada, Eh?
    Posts
    4,385
    Rep Power
    10
    Feedback Score
    0

    Default

    If there's a header and a footer, then just create another page (intro.php) and call the header, include your intro, call the footer.
    Then you just need to alter the main header to include a link in the nav menu to your newly created intro.php.
    Last edited by Zap; Feb 21st, 2007 at 9:14 am.
    Toronto Forum ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ ♫ GET FREE EXPOSURE FOR YOUR BLOG!

  5. #5
    The Force is Strong! iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
    Join Date
    October 18, 2006
    Posts
    6,872
    Rep Power
    11
    Feedback Score
    0

    Default

    That aint working.
    Got to sell my color tvs on mtv.

    Okay, my next bright idea if I want to keep this is this:
    Create a whole new index page.
    Visitors would go to that page first, then have to click on a link to get into the directory.

    This is fun!

  6. #6
    Grand Masters The Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud of The Webmaster's Avatar
    Join Date
    December 10, 2006
    Posts
    1,709
    Rep Power
    7
    Feedback Score
    0

    Default

    I dont get what you want.. I am not getting any Intro..
    If you want something to show only on home page and if it is PHPLD then its pretty easy, you have to only edit main.tpl a bit..

  7. #7
    The Force is Strong! iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
    Join Date
    October 18, 2006
    Posts
    6,872
    Rep Power
    11
    Feedback Score
    0

    Default

    Okay, said the heck with the whole project (for now).
    What I ended up doing is just putting the first few lines in the header file.

    Does it look okay having it there?

    The intro aint there now.
    Still messing with the .tpl files to figure out how it will only show up on the main page and not the other pages.

    On the main.tpl, I have added and subtracted all over the place and it either does not show up at all, or it continues to show up on all pages.
    Last edited by iowadawg; Feb 21st, 2007 at 9:36 am.

  8. #8
    Grand Masters The Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud of The Webmaster's Avatar
    Join Date
    December 10, 2006
    Posts
    1,709
    Rep Power
    7
    Feedback Score
    0

    Default

    Quote Originally Posted by iowadawg View Post
    On the main.tpl, I have added and subtracted all over the place and it either does not show up at all, or it continues to show up on all pages.
    Hint: Search for the table or Div where they show the category tree, add an extra table or div just above that. and it will be shown on only main page..

    Hint2: Just send me the main tpl and the intro.. I will do it.

  9. #9
    The Force is Strong! iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
    Join Date
    October 18, 2006
    Posts
    6,872
    Rep Power
    11
    Feedback Score
    0

    Default

    Quote Originally Posted by The Webmaster View Post
    Hint: Search for the table or Div where they show the category tree, add an extra table or div just above that. and it will be shown on only main page..

    Hint2: Just send me the main tpl and the intro.. I will do it.
    Will accept hint 2!
    Need your email and I will email the files to you.

  10. #10
    I'm New! aspidov is on a distinguished road
    Join Date
    February 19, 2007
    Posts
    4
    Rep Power
    0
    Feedback Score
    0

    Default

    to fix it so it only shows on homepage you put something like this into any .tpl file you want

    for versions 3.xx
    Code:
    {if $category.ID eq 0 and not $list and not $search}
    whatever you want on homepage
    {/if}
    for versions 2.xx
    Code:
    {if $category.ID eq 0 and not $p and not $q}
    whatever you want on homepage
    {/if}
    Let me know if that works.

    Regards,
    Serg

  11. #11
    The Force is Strong! iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
    Join Date
    October 18, 2006
    Posts
    6,872
    Rep Power
    11
    Feedback Score
    0

    Default

    Hey aspidov!
    First welcome to WTF!

    Second, thanks for this one!
    It works great.

    Now I need input, before I eliminate the top header paragraphs, of which looks better for everyone.
    Just the top header paragraphs?>
    Or just the entire article on the main page?

  12. #12
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default

    Just the top header paragraphs, the categories shouldn't be way below the fold like that.

  13. #13
    The Force is Strong! iowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond reputeiowadawg has a reputation beyond repute
    Join Date
    October 18, 2006
    Posts
    6,872
    Rep Power
    11
    Feedback Score
    0

    Default

    Yes, the more I look at that page, the more I have to agree with you.
    It has to go into it's own little page.

    WIll work on that now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. How to fix this minor problem?
    By iowadawg in forum HTML & Website Design
    Replies: 4
    Last Post: Jan 31st, 2007, 5:44 am
  2. Minor gallery over sight
    By Big Dan in forum Feedback and Support
    Replies: 27
    Last Post: Dec 6th, 2006, 7:40 pm
  3. Just a minor suggestion
    By iowadawg in forum Feedback and Support
    Replies: 2
    Last Post: Oct 22nd, 2006, 8:32 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads