Previous Thread
Next Thread
Print Thread
Rate Thread
#235490 02/07/2003 4:16 AM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
Hi,

within the posts there is a part called: Post Extras with special icons. I want to add a button to this with align= right which is called TOP and which leads the reader to the top of the page.

If you have long threads its easier to click than to scroll like hell or? This is more and more a standard in each forum so can someone please add this in ubbt?

should not be more than including a top anchor to each thread start and the image within each post with a link to this anchor...


Sponsored Links
edr #235491 02/07/2003 6:00 AM
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
That would be pretty easy to do.

Add this to your templates/ubbt_header.tmpl file right after [:"red"]<body>[/] :
Code
[:"red"]<body>[/]<br /><a name="top" id="top"></a>


Add this to your templates/showthreaded.tmpl, right after [:"red"]$notifylinkstart[/]
Code
 [:"red"]$notifylinkstart<img src="{$config['images']}/notifymod.gif" border="0" alt="{$ubbt_lang['NOTIFY_MOD']}" title="{$ubbt_lang['NOTIFY_MOD']}" />$notifylinkstop<br />[/]<br /> &nbsp;<br /><a href="#top"><img src="/images/top.gif" width="27" height="15" border="0"></a><br />  


Add this to your templates/showflat.tmpl, right after [:"red"] {$postrow[$i]['mailpostlink']}[/]
Code
[:"red"]{$postrow[$i]['mailpostlink']}[/]<br />&nbsp;<br /><a href="#top"><img src="/images/top.gif" width="27" height="15" border="0"></a><br />


graphic included, it's pretty basic though
Attachments
67892-top.gif (0 Bytes, 37 downloads)


[:"red"]Lisa[/]
JacquiL #235492 02/07/2003 6:19 AM
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
Thanks Lisa,

I wrote a small hack for it and will post it in the beta modifications area.


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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 666
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 3
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)