|
|
Joined: Jun 2003
Posts: 6
Lurker
|
Lurker
Joined: Jun 2003
Posts: 6 |
I want to add a link to the post for the last 24hrs to the main navbar in ubbthreads 6.2.3. The one that reads Main Index, Search, ... Unfortunately I can't figure out how to do this.
Thanks for the suggestions
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Search this forum for "navbar". 
|
|
|
|
Joined: Jun 2003
Posts: 6
Lurker
|
Lurker
Joined: Jun 2003
Posts: 6 |
I searched the forums and found several references. Unfortunately I can't get the changes to work. By modifying the registered and unregisterednav files in the templates/default folder I could get the "past 24 hrs" link to show up. However I could never get the link to go to the correct page.
Here is how I modified the code, I added: | <a href = "$phpurl/$ubbt_language.php?Cat=$Cat" $target>{$ubbt_lang['PAST24']}</a> to the registered/unregistered nav pages.
The link went to the FAQ page instead of the past 24hrs posts. How should I modify the href to get it to work.
Thanks again
Wallace
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Try using the same HTML that's used for the search link in templates/default/ubbthreads.tmpl:
<a href="$phpurl/dosearch.php?Cat=$Cat&Forum=All_Forums&Words=&Match=Entire+Phrase&Old=1day&Limit=25"> {$ubbt_lang['PAST24']} </a>
(I changed {$config['phpurl']} to $phpurl, since that variable's apparently defined.)
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|