https://www.icyphoenix.com/viewtopic.php?f=35&t=6973
-----------------------------------
OwnageWorld
Fri 19 Feb, 2010 14:33

Autolink On Portal
-----------------------------------
Hey all,

I would like to enable the autolink on the portal pages! Is this possible?
I would like to have it only in the text, but not in the topic titles or anything like that!

Thanks in advance!


-----------------------------------
OwnageWorld
Mon 15 Mar, 2010 16:37

Re: Autolink On Portal
-----------------------------------
[quote user="OwnageWorld" post="47975"]Hey all,

I would like to enable the autolink on the portal pages and on search! Is this possible?
I would like to have it only in the text, but not in the topic titles or anything like that!

Thanks in advance![/quote]
BUMP! I hope someone can help me out with this!


-----------------------------------
spydie
Mon 15 Mar, 2010 18:48

Re: Autolink On Portal
-----------------------------------
ACP_General_Autolinks


-----------------------------------
OwnageWorld
Mon 15 Mar, 2010 22:55

Re: Autolink On Portal
-----------------------------------
[quote user="spydie" post="48300"]ACP_General_Autolinks[/quote]
Yeah... I know...  But my question was "How do I activate them on portal and on search pages?"


-----------------------------------
Mighty Gorgon
Thu 25 Mar, 2010 11:49

Re: Autolink On Portal
-----------------------------------
You need to add Autolink processing to those pages.

Something like this:

First get the autolinks words...
[codeblock]	// Start Autolinks For phpBB Mod
	$orig_autolink = array();
	$replacement_autolink = array();
	obtain_autolink_list($orig_autolink, $replacement_autolink, $forum_id);
	// End Autolinks For phpBB Mod[/codeblock]

Then parse...
[codeblock]		//Acronyms, AutoLinks, Wrap - BEGIN
		if ($postrow[$i]['enable_autolinks_acronyms'] == true)
		{
			$message = $bbcode->acronym_pass($message);
			if(count($orig_autolink))
			{
				$message = autolink_transform($message, $orig_autolink, $replacement_autolink);
			}
		}
		//Acronyms, AutoLinks, Wrap -END[/codeblock]


