Hello,
could you adapt the code for the version 3.2.* please?
http://www.devfuse.c...ks-from-guests/
I test but my code does not have any action
sorry for my english
Thank you
DevFuse Products (View All Products)
Help for Hiding links from guests ....
Started by
osef
, Dec 29 2011 05:30 AM
1 reply to this topic
#1
Posted 29 December 2011 - 05:30 AM
#2
Posted 01 January 2012 - 06:33 AM
Ok is good for me ^^
test ok IPB 3.2.3
test ok IPB 3.2.3
if (!$this->memberData['member_id'])
{
foreach($postData as $k => $post_data)
{
foreach($post_data as $key => $post)
{
$postData[$k][$key]['post'] = preg_replace('#<pre class=\'prettyprint\'>(.*?)</pre>#', ' <font color=\'red\'><b>Please <a href=\'index.php?app=core&module=global§ion=login\' style=\'text-decoration:none;\'>Login</a> or <a href=\'index.php?app=core&module=global§ion=register\' style=\'text-decoration:none;\'>Signup</a> to see this Hidden Code</b></font> ', $post['post']);
}
}
}
if (!$this->memberData['member_id'])
{
foreach($postData as $k => $post_data)
{
foreach($post_data as $key => $post)
{
$postData[$k][$key]['post'] = preg_replace('#<a(.*?)rel=\'nofollow external\'(.*?)<(.*?)a>#', ' <font color=\'red\'><b>Please <a href=\'index.php?app=core&module=global§ion=login\' style=\'text-decoration:none;\'>Login</a> or <a href=\'index.php?app=core&module=global§ion=register\' style=\'text-decoration:none;\'>Signup</a> to see this Hidden Link</b></font> ', $post['post']);
}
}
}
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











