Previous Thread
Next Thread
Print Thread
Rate Thread
#250083 06/11/2003 8:21 AM
Joined: Jun 2003
Posts: 6
Lurker
Lurker
Offline
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


Sponsored Links
#250084 06/11/2003 8:35 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Search this forum for "navbar".

Joined: Jun 2003
Posts: 6
Lurker
Lurker
Offline
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

#250086 06/11/2003 10:04 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
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.)


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)