Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
!mperiaL

Thanks + Hide Mod

Recommended Posts

So jetzt hab ich doch mal ne frage,

Und zwar habe ich mir jetzt einmal den "thx_advanced_2.3" Mod installiert und einmal den "Unreal_Hide_Hack_2.2_For_IPB_2.3.x" Mod.

beide funktionieren auch wunderbar, nur gibt e sirgendeine Möglichkeit beide Mods zu verbinden, also wenn man den Danke Button drückt dass der Versteckte Text sichtbar wird?

Oder gibt es sogar nen Mod der beides intigriert hat?

Ansonsten wie kann ich das so modifizierend ass das geht?

Share this post


Link to post

Hi,

ich hab da was gefunden das sollte gehen:

http://forums.invisionize.com/Thanks-Advanced-22-Discontinued-t122223.html&st=30&p=1795681#entry1795681

getestet hab ich es nicht...gruß

Share this post


Link to post

Also du meinst das?

open sources/classes/bbcode/class_bbcode.php

Find:


 //-----------------------------------------

 // Unreal Hide Hack

 //-----------------------------------------


 if(preg_match("#\[hide\](.+?)\[/hide\]#is", $t))

 {

 $this->ipsclass->DB->query("SELECT author_id FROM ibf_posts WHERE topic_id='".$topicid."'");


 while($info = $this->ipsclass->DB->fetch_row())

 {

 $allposters[] = $info['author_id'];

 }


 if($allposters != null)

 {

 	 if(in_array($this->ipsclass->member['id'], $allposters))

 {

 	 $t = preg_replace( "#\[hide\](.+?)\[/hide\]#is", "<{HIDE2}> \\1", $t );

 }

 else

 {

 $t = preg_replace( "#\[hide\](.+?)\[/hide\]#is", "<{HIDE1}>", $t );

 }

 }

 else

 {

 $t = preg_replace( "#\[hide\](.+?)\[/hide\]#is", "<{HIDE1}>", $t );

 }

 }
Replace by:
 //-----------------------------------------

 // Unreal Hide Hack + Thanks Mod Start

 //-----------------------------------------


 if(preg_match("#\[hide\](.+?)\[/hide\]#is", $t))

 {

 $this->ipsclass->DB->query("SELECT post_thanks, author_id FROM ibf_posts WHERE topic_id='".$topicid."'");


 while($info = $this->ipsclass->DB->fetch_row())

 {

 $allposters[] = $info['post_thanks'];

 $allposters[] = $info['author_id'];

 }


 if($allposters != null)

 {

 	$allposters = implode(",",$allposters);

 	$allposters = explode(",",$allposters);

 if(in_array($this->ipsclass->member['id'], $allposters))

 	{

 	$t = preg_replace( "#\[hide\](.+?)\[/hide\]#is", "<{HIDE2}> \\1", $t );

 }

 else

 {

 $t = preg_replace( "#\[hide\](.+?)\[/hide\]#is", "<{HIDE1}>", $t );

 }

 }

 else

 {

 $t = preg_replace( "#\[hide\](.+?)\[/hide\]#is", "<{HIDE1}>", $t );

 }

 }

 //-----------------------------------------

 // Unreal Hide Hack + Thanks Mod End

 //-----------------------------------------

Weil das habe ich in meiner class_bbcode.php nich stehen

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×