https://www.icyphoenix.com/viewtopic.php?f=28&t=8966 ----------------------------------- Madara Wed 06 Mar, 2013 01:24 Hide Mod Customization ----------------------------------- Hi Icy I need a help to customize the mod hide. I had in icy 1.3 it like this: [img]http://i35.tinypic.com/2el3x5i.png[/img] A year ago, using this code. [spoiler][code linenumbers=false] if($tag === 'hide') { if($this->is_sig) { return $error; } if($item['iteration'] > 1) { return $error; } global $DB, $topic_id, $userdata, $mode; $show = false; if ($userdata['session_logged_in']) { $show = true; } } if(!$show && $tag === 'hide') { $html = '
'; return array( 'valid' => true, 'html' => $html . 'Mensaje Restringido
Este tipo de mensajes solo están disponibles para usuarios registrados
', 'allow_nested' => false, ); } elseif ($show && $tag === 'hide') { $vista= substr(md5($content . mt_rand()), 0, 8); //$html = '
'; $html = '
'; $html .= '

Click Aqui para mostrar
'; $html .= ''; $html .= '
' ); } [/code][/spoiler] but now it does not work, but when I connected dont see links: [img]http://i.imgur.com/p9nSrOU.png[/img] ----------------------------------- Joshua203 Wed 06 Mar, 2013 02:18 Re: Hide Mod Customization ----------------------------------- It just looks and sounds like the image is missing: http://animetal.com.ve/images/bbcb_mg/images/hide.png AND it looks like you did not fix postcounting yet and spam protection is switched on again, like explained in the other topic. PS.. I am constantly redirected to adfly when I visit your site!!! :evil: ----------------------------------- Madara Wed 06 Mar, 2013 02:28 Re: Hide Mod Customization ----------------------------------- [quote user="Joshua203" post="58481"]It just looks and sounds like the image is missing: http://animetal.com.ve/images/bbcb_mg/images/hide.png AND it looks like you did not fix postcounting yet and spam protection is switched on again, like explained in the other topic. PS.. I am constantly redirected to adfly when I visit your site!!! :evil:[/quote] I want just redirected links adf example: mediafire and other sorry. I have to review the code adf And the previous post is not count "Look at the themes and messages in forums Subjects: 16777215 Posts: 16777215" O.o? ______________________________________________________________ Edit: Look i add the hide.png and nothing: [img]http://animetal.com.ve/images/bbcb_mg/images/hide.png[/img] ----------------------------------- Joshua203 Wed 06 Mar, 2013 02:38 Re: Hide Mod Customization ----------------------------------- I do see hide.png in the post now User's post count is still 0, look below user's avatar and see! ----------------------------------- Madara Wed 06 Mar, 2013 02:44 Re: Hide Mod Customization ----------------------------------- [quote user="Joshua203" post="58483"]I do see hide.png in the post now User's post count is still 0, look below user's avatar and see![/quote] I dont see hide.png "Posts: 16777215" but is 0 still. the hide when is offline i dont see the links And when is online i dont see the links, I see no links connected or disconnected ----------------------------------- Joshua203 Wed 06 Mar, 2013 02:50 Re: Hide Mod Customization ----------------------------------- Well you seem to have changed the link back to default path so now the image is missing again but ....clean your browser :wink: About links being invisible again.... spam protect is on or off? ----------------------------------- Madara Wed 06 Mar, 2013 03:06 Re: Hide Mod Customization ----------------------------------- [quote user="Joshua203" post="58485"]Well you seem to have changed the link back to default path so now the image is missing again but ....clean your browser :wink: About links being invisible again.... spam protect is on or off?[/quote] the problem with hide is this: when is online: [img]http://i.imgur.com/zXZaEL5.png[/img] And offline is: [img]http://i.imgur.com/DyW3HvM.png[/img] I dont see the links with hide active. online or offline i dont see the links. Now the spam: [img]http://i.imgur.com/3A2pCeV.png[/img] This mod hide was esnola hide modification of all-mods Remember That modified two files bbcode and other but ... I forget which was ----------------------------------- Joshua203 Wed 06 Mar, 2013 04:11 Re: Hide Mod Customization ----------------------------------- Really you should try and search for the mod yourself but here's the mod: http://www.icyphoenix.com/viewtopic.php?f=28&t=6657&highlight=hide (I'm not saying it's good for IP2! maybe yes .. maybe no) You should also try to do what is advised: - Upload the images in the correct location - Clear your browser!! - Fix [u]each[/u] forum to count posts for user's postcount - then Re-enable spam protection - You may also have to "Synchronize user post counters" in Database Maintenance (or just make a new post I also don't understand why you did not import your old DB? (if you have one) ----------------------------------- Madara Wed 06 Mar, 2013 04:20 Re: Hide Mod Customization ----------------------------------- [quote user="Joshua203" post="58487"]Really you should try and search for the mod yourself but here's the mod: http://www.icyphoenix.com/viewtopic.php?f=28&t=6657&highlight=hide (I'm not saying it's good for IP2! maybe yes .. maybe no) You should also try to do what is advised: - Upload the images in the correct location - Clear your browser!! - Fix [u]each[/u] forum to count posts for user's postcount - then Re-enable spam protection - You may also have to "Synchronize user post counters" in Database Maintenance (or just make a new post I also don't understand why you did not import your old DB? (if you have one)[/quote] I see before this post the trouble is that we have to thank for showing the links. Did have a database before but was very large and had almost 1 GB with hosting problems i had to hire a vps and then I could not keep. After a year I'm starting again from 0. ----------------------------------- Joshua203 Wed 06 Mar, 2013 09:44 Re: Hide Mod Customization ----------------------------------- [quote user="Madara" post="58488"]the trouble is that we have to thank for showing the links.[/quote] Then maybe you can try this (I don't know if it will work): [quote user="Zuker" post="18898"][quote user="leonidfg" post="18865"]Hi again... in all this HIDE button stuff I have another question. There's a way to the hide messages may be visible only to the registered users without the need of posting a message? An example may be the Thanks button that allow to see the hide messages. But I didn't find a post with this Thanks button MOD. Anyone here know how to do it. Bye...![/quote] on bbcode.php & viewtopic.php replace [code linenumbers=false] if($userdata['session_logged_in']) { $sql = "SELECT p.poster_id, p.topic_id FROM " . POSTS_TABLE . " p WHERE p.topic_id = $topic_id AND p.poster_id = " . $userdata['user_id']; $resultat = $db->sql_query($sql); $show = $db->sql_numrows($resultat) ? true : false; if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD)) { $show = true; } }[/code] with [code linenumbers=false] if ( ($userdata['session_logged_in'] ) { $show = true; }[/code] test it :v:[/quote] ----------------------------------- Madara Wed 06 Mar, 2013 17:04 Re: Hide Mod Customization ----------------------------------- Wow If it works, using the original file bbcode.php besides, that i modify it a bit and ready. :v: :mryellow: Look: [img]http://i.imgur.com/j9BHKDZ.png[/img] Thanks. ----------------------------------- Joshua203 Wed 06 Mar, 2013 19:21 Re: Hide Mod Customization ----------------------------------- Well done Madara, looks very nice! :wink: Btw I lke the thank image, it's the first time anybody said thanks to me like this :mrorange: I'll mark this topic SOLVED for you, next time you can do this yourself using "Title Edit" at bottom right of the page, please do.