Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8
Author Message
shotokan
Worker
Worker



Joined: Aug 27, 2006
Posts: 172

PostPosted: Sun Mar 18, 2007 12:08 am Reply with quote

I was wondering if is possible to add the "View previous topic :: View next topic" that appears at the top of each thread also at the botton of the page so you wouldn't need to go all the way up to click "Next" or "Previous" topic.

I notice on your forums these options do appear on top and also botton of the page and i just would like to know where should i change to make that available for my forums too.

I use nuke7.8 patached 3.3 and bbtonuke 2.0.22

Thanks,

_________________
Shotokan 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Mar 18, 2007 5:09 am Reply with quote

You need to edit modules/Forums/templates/subSilver/viewtopic_body.tpl. If you use a theme that has a forums folder then you will need to edit that also (themes/YOUR_THEME/forums/viewtopic_body.tpl).

Find code similar to this towards the bottom of the script.
Code:
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />

{S_AUTH_LIST}</td>


Modify it to this.
Code:
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />

<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}</td>
 
View user's profile Send private message
shotokan







PostPosted: Sun Mar 18, 2007 5:26 pm Reply with quote

I am using a third party theme like you said so the code really looks a little different but you gave me where to look.

I had to add this towards the end of the files

Code:


<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
   <tr align="right">
      <td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a>  </span></td>
   </tr>
</table>


Thanks man,
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.8

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©