Jump to content

  • twitter
  • youtube
  • googleplus
  • facebook
  • rss
  • newsletter


Help for Hiding links from guests ....


  • Please log in to reply
1 reply to this topic

#1 osef

osef

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male
  • IP.Board Version:IPB 3.2.x

Posted 29 December 2011 - 05:30 AM

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

#2 osef

osef

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male
  • IP.Board Version:IPB 3.2.x

Posted 01 January 2012 - 06:33 AM

Ok is good for me ^^

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&section=login\' style=\'text-decoration:none;\'>Login</a> or <a href=\'index.php?app=core&module=global&section=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&section=login\' style=\'text-decoration:none;\'>Login</a> or <a href=\'index.php?app=core&module=global&section=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