Welcome to Geeklog, Anonymous Wednesday, November 13 2024 @ 09:56 pm EST

Geeklog Forums

Center forum block to show full url - how ??


Apostri

Anonymous
from the forum center block each thread url is :

http://web.host/geeklog/forum/viewtopic.php?showtopic=108

from the actual forum page it is

hhttp://web.host/geeklog/forum/viewtopic.php?forum=1&showtopic=108

that is -- the forum id is not included in the link url in the center block
display of topics. How can I include the forum id here ? Any help - please.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
why would you want to? The link works with or without the forum parameter.
 Quote

Apostri

Anonymous
I need for some special reason Embarassed is it possible ?
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
for the forum version 2.3, find the following line in your theme/forum/layout/centerblock_displayline.thtml
Text Formatted Code
        <td align="left"><a href="{site_url}/forum/viewtopic.php?showtopic={topic_id}" TITLE="{fullsubject}">{topic_subject}</a></td>


 
and edit it to look like this:
Text Formatted Code
        <td align="left"><a href="{site_url}/forum/viewtopic.php?showtopic={topic_id}&amp;forum={forum_id}" TITLE="{fullsubject}">{topic_subject}</a></td>


 
that should do it. the variable has already been defined in the plugin_centerblock_forum() function so it should work.
 Quote

All times are EST. The time is now 09:56 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content