Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 03:16 am EST

Geeklog Forums

HowTo: Inmemoriam autolinks in the forum


Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
For those of you using the Inmemoriam Gallery plugin as well as Blaine's forum plugin on your Geeklog site, then this is for you! it's actually just for gavin, but you all can have it

How to enable the use of Inmemoriam (or any other site content) autolinks in your Geeklog Forum, version 2.3.2 final (assuming a current version of GL as well):

Step 1: find the forum's gf_showtopic.php file, which is in your forum's public includes directory. In that file find the function showtopic(). at about line 100, find this line:
Text Formatted Code
    $showtopic['comment'] = stripslashes($showtopic['comment']);

 
and change it to this:
Text Formatted Code
    $showtopic['comment'] = PLG_replaceTags(stripslashes($showtopic['comment']));

 

That will enable you use use other site content autolinks in your forums.
However, if you want those autolinks to refer to other forum threads, you'll have to take care of one small bug.

Step 2 (the bug fix): find the forum's plugin_autotags_forum() function and add this line to the beginning of the function:
Text Formatted Code
    global $_CONF;

 
There you have it.

For instructions on how to use autolinks, see About Autolinks And Autotags and/or the relevant plugin's usage doc, e.g., Inmemoriam's usage doc shows you how to refer to albums and images in autolinks, which inturn display a thumbnail or a link depending on how you wrote your autolink.
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
...and if you are running Blaine's 2.5 version of the forum plugin, then you don't need to do anything because it already parses autolinks that refer to other site content.
 Quote

All times are EST. The time is now 03:16 am.

  • 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