Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Hide Hack Mod Help 
 
Hi,

I used the instructions in another post on how to modify the hide hack as seen in the code below. How can I add so that if a visitor comes in from a certain referrer such as google, then the hide function allows them to see the hidden message. So in all, in my code, all of those who can see the hidden message are mods, admins, those with 50+ posts, and those that come from a referrer (google).

Thanks

Code:

Code: [Download] [Hide]
  1. if($item['iteration'] > 1)  
  2.             {  
  3.                 return $error;  
  4.             }  
  5.             global $db, $topic_id, $userdata, $mode;  
  6.             $show = false;  
  7.             if($userdata['session_logged_in'])  
  8.             {  
  9.                 $sql = "SELECT p.poster_id, p.topic_id  
  10.                     FROM " . POSTS_TABLE . " p  
  11.                     WHERE p.topic_id = $topic_id  
  12.                     AND p.poster_id = " . $userdata['user_id'];  
  13.                 $resultat = $db->sql_query($sql);  
  14.                 $show = $db->sql_numrows($resultat) ? true : false;  
  15.                 if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD) || ($userdata['user_posts'] > 50))  
  16.                 {  
  17.                     $show = true;  
  18.                 } 

 



 
aliks0905Send private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Hide Hack Mod Help 
 
You can try something like this:

Code: [Download] [Hide] [Select]
eregi('googlebot', $_SERVER['HTTP_REFERER'])

 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events