Hey Control, can I ask a favour?
- Jestyr
- Footman of the Imperium
- Posts: 3036
- Joined: Mon Mar 18, 2002 8:10 am
- Location: BNE/.au
- Contact:
Hey Control, can I ask a favour?
Can you shoot me the PHP code for the View Next Topic/View Previous Topic links at the top right of each topic page? I run a phpBB-based forum elsewhere (for my MMO guild, actually) and I'd love to implement those links.
__
Jeff Hauze: Wow. I think Jestyr just fucking kicked my ass.
Jeff Hauze: Wow. I think Jestyr just fucking kicked my ass.
There shouldn't be any PHP code required, as...hey, wait a minute. I just looked at Animalball, and they have the links in the upper-right, as well. Are you looking for the ones in the lower-right?
I was going to say, there shouldn't be any PHP required, because viewtopic.php already generates those links for the upper-right. I put them in the lower-right, as well, since most people exit a topic from the bottom, not the top. The code for that is absolutely identical to the code for the one at the top, and goes in viewtopic_body.tpl:
Now, that'll generate the bar on top, if you don't already have it. To put one in at the bottom, the same code goes in just before the end of that same table. I'd quote lines, but it won't help much, since our viewtopic is not like other viewtopics.
Does that help?
I was going to say, there shouldn't be any PHP required, because viewtopic.php already generates those links for the upper-right. I put them in the lower-right, as well, since most people exit a topic from the bottom, not the top. The code for that is absolutely identical to the code for the one at the top, and goes in viewtopic_body.tpl:
Code: Select all
Find:
{POLL_DISPLAY}
Before, insert:
<tr align="right">
<td class="catHead" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_NEWER_TOPIC}" class="nava">{L_VIEW_PREVIOUS_TOPIC}</a>
:: <a href="{U_VIEW_OLDER_TOPIC}" class="nava">{L_VIEW_NEXT_TOPIC}</a> </span></td>
</tr>
Does that help?
- Jestyr
- Footman of the Imperium
- Posts: 3036
- Joined: Mon Mar 18, 2002 8:10 am
- Location: BNE/.au
- Contact:
I'm sure some windows are very tasty.
Anyway, thanks. I can't believe I was dozey enough to forget that they'd probably just been removed from the custom template on the forums I run. Duhhhh. Your input should be everything I need to reimplement it.
Anyway, thanks. I can't believe I was dozey enough to forget that they'd probably just been removed from the custom template on the forums I run. Duhhhh. Your input should be everything I need to reimplement it.
__
Jeff Hauze: Wow. I think Jestyr just fucking kicked my ass.
Jeff Hauze: Wow. I think Jestyr just fucking kicked my ass.