Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Sunday, May 19 2013 @ 07:56 PM EDT


 Forum Index > Extensions > Plugins New Topic Post Reply
 HowTo: Inmemoriam autolinks in the forum
   
machinari
 10/01/05 11:58PM (Read 2709 times)  
+++++
Full Member

Status: offline


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:
PHP Formatted Code
    $showtopic['comment'] = stripslashes($showtopic['comment']);

 
and change it to this:
PHP 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:
PHP 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.

 
Profile Email
 Quote
machinari
 10/04/05 06:14PM  
+++++
Full Member

Status: offline


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.

 
Profile Email
 Quote
Content generated in: 0.69 seconds
New Topic Post Reply

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