News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Hide Tag Special

Started by enik, April 11, 2005, 03:41:07 PM

Previous topic - Next topic

ディン1031

Sorry but my part use nothing from a poll :x, only if you use the hide tag in the poll XD i never tested that. I never thought someone use this?

Did you really use hide tag in there? XD

But normly it should not made an error because of that, or what kind of error exact happend?

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ArkServer


No idea.. when i replace your code with the original code the hide image doesnt show up so i really think its in the code you gave me.

ディン1031

#242
Did this happen on normal text to?

Or only if there are two **?

rofl you use rc2 XD this version should made some other stange things, too
and it appeare only after you post because it's placed wrong know ;). (I think it placed wrong know XD).

Hmmm and i've no idea what i must do that i work in rc2... somehow it don't want work there :x...

Okay for Version 1.1RC2 Use this if you want use it ;)

for Version 1.18
Search in Subs.php for

if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
}


Replace it wtih :)

if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
if(preg_match("/\[hide\](.+?)\[\/hide\]/i", $message) != 0)
$message .= '[br][img]youlinkit[/img]';
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : ' '), $message);
}


And add you pic in youlinkit :).

Should work know i tested it ;). (Next time i use the right order for the preg_match *runs*)

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

balzizras

Is there any way to add a button for this mod? Some pll are to lazy to type; [hide] [/hide]  :D
A strong body makes the mind strong. As to the species of exercises, I advise the gun. While this gives moderate exercise to the body, it gives boldness, enterprise and independence to the mind. Games played with the ball, and others of that nature, are too violent for the body and stamp no character on the mind. Let your gun therefore be your constant companion of your walks. - Thomas Jefferson, letter to Peter Carr, August 19, 1785

desistyle

Hi my hidetag stoped workin when i update smf 1.06 to smf 1.07 can someone help me fix it please

mforum

Quote from: desistyle on March 30, 2006, 01:01:13 PM
Hi my hidetag stoped workin when i update smf 1.06 to smf 1.07 can someone help me fix it please

I dont think the update has something to do with HideTag mod   :o
Mine is working fine after updating  ::)

desistyle

#246
well i fixed it it was just a lil code to add that 1.0.7 in the xml if anyone else need it i am attachin it here


http://rapidshare.de/files/16847629/HideTagSpecial.zip.html

mforum

#247
oh you want to install the mod, i thought it was allready installed and stop working after update  :)

open package-info.xml

find
<install for="1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6">
<readme type="inline">
THIS VERSION WORK ONLY WITHOUT FASTER PARSMENT!
This mod add the [hide][/hide].
This show the text/link/img etc. between the hide only if someone post in this thread.
Copyright 2005 by DIN1031 @ www.ayu-kult.de/forum/
</readme>
<modification format="boardmod">HideTagMod1.0.x.mod</modification>
</install>
<uninstall for="1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6">
<modification format="boardmod" reverse="true">HideTagMod1.0.x.mod</modification>
</uninstall>


replace with
<install for="1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7">
<readme type="inline">
THIS VERSION WORK ONLY WITHOUT FASTER PARSMENT!
This mod add the [hide][/hide].
This show the text/link/img etc. between the hide only if someone post in this thread.
Copyright 2005 by DIN1031 @ www.ayu-kult.de/forum/
</readme>
<modification format="boardmod">HideTagMod1.0.x.mod</modification>
</install>
<uninstall for="1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7">
<modification format="boardmod" reverse="true">HideTagMod1.0.x.mod</modification>
</uninstall>

zilox

still how am i suppose to install it??

ディン1031

Okay should work know in 1.07.

Bye the very very busy
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

diane_tt

hi din! i have SMF 1.1 RC2 and cannot get the after hidden image to work i've tried both codes from this one that fixes the hide within a poll but no luck. i still see that hidden part is bold but no image :( i wonder what i'm doing wrong?

Quote from: ディン1031 on March 17, 2006, 12:42:55 PM
Did this happen on normal text to?

Or only if there are two **?

rofl you use rc2 XD this version should made some other stange things, too
and it appeare only after you post because it's placed wrong know ;). (I think it placed wrong know XD).

Hmmm and i've no idea what i must do that i work in rc2... somehow it don't want work there :x...

Okay for Version 1.1RC2 Use this if you want use it ;)

for Version 1.18
Search in Subs.php for

if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : '&nbsp;'), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : '&nbsp;'), $message);
}


Replace it wtih :)

if(empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) {
if(preg_match("/\[hide\](.+?)\[\/hide\]/i", $message) != 0)
$message .= '[br][img]youlinkit[/img]';
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : '&nbsp;'), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (!empty($modSettings['hide_hiddentext']) ? $modSettings['hide_hiddentext'] : '&nbsp;'), $message);
}


And add you pic in youlinkit :).

Should work know i tested it ;). (Next time i use the right order for the preg_match *runs*)

Bye
DIN1031

Vinspire

Is there any codes to put in a BBC Button for this Hide Tag ? Thanks :)

ディン1031

@Vinspire
http://www.simplemachines.org/community/index.php?topic=32954.msg490688#msg490688

I don't not know if this work in your version but i think it do :x

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Vinspire

Quote from: quasar on February 20, 2006, 08:41:49 AM
Quote from: ronitvohra on November 08, 2005, 01:12:02 AM
problem solved.i edited the Post.template.php.......and instead of glow button...i changes it to [hide][/hide]
so glow button will tag hide tag.......

I love smf........and thx for the hidden tag mod...

If you want to add an image to the code instead of replacing one, add this line into Post.template.php
'hide' => array('code' => 'hide', 'before' => '[hide]', 'after' => '[/hide]', 'description' => $txt[631]),
after this line:
'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),

Then add this message into Post.english.php (or appropriate language file):
$txt[631] = 'Spoiler/Hide Tags';
after this line:
$txt[532] = 'Font Size';
$txt[533] = 'Font Face';


Then create an image 23 x 22 pixels on a transparent background, add it to the folder 'images>bbc' of whichever template you are using, naming the file 'hide.gif'.

You should have a working image.

Is this the code i am looking for ? Any nice hide.gif ?

ディン1031

Correct :)

I Attached to this post some nice hide.gif. But i don't have one for the new RC2 style :x.

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

ivo2296

#255
Hello,

I'm using upgrated verssion of smf 1.0.7 and there is not such a code in Subs.php :

$sourcedir/Subs.php
</edit file>

<search for>
// Nothing to parse... ?
if (!strstr($message, '[') && !strstr($message, '://') && !strstr($message, '@') && !strstr($message, '/me') && !strstr($message, '&lt;'))
return;
</search for>



My Subs.php verssion is: Software Version:           SMF 1.0.6     
Here is my Subs.php:  LINK

Thanks in advance for the help!

Vinspire

#256
Quote from: cH40z-Lord on February 15, 2006, 08:49:52 AM
Your Mod doesn't work in 1.1 RC2 ???

If i post something with  [hide]text[/hide]  then I'll see  [hide]text[/hide]  ... :(

I installed it via. the packet manager... and it said it's installed now +.+"

I install it using the packages manager and its working smoothly. Is it because you are the admin or something ?

Hiya ディン1031, long time no see. I've implemented the hide function with the bbc button in my forum. Awesome !!! :)

Now in the process of looking for a nice hide bbc tag :P

Stirred

Hi!

Does anyone knows one way to give to Global Moderators and other group (in this case Super Moderator, i think his ID=4, is the number four on the list) acess to see all Hide Content without posting or without Editing to see??

I searched on the file:
HideTagMod1.1rc2.mod and i came to this line:

// Find if there a post from you in this thread :) (For the hide tag)
if ($user_info['is_admin'] && !empty($modSettings['hide_adminshouldsee']))
$context['user_post_avaible'] = 1;


Is anyway i can add $user_info['is_admin'] and Global Moderator and other group (ID=4) ?

Thanks for any feedback and congratulations on the mod!
- eighteen seconds before sunrise -

PrizeLive.com

Installed smoothly. Thanks!
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

ディン1031

Quote from: Stirred on June 30, 2006, 02:08:53 PM
Hi!

Does anyone knows one way to give to Global Moderators and other group (in this case Super Moderator, i think his ID=4, is the number four on the list) acess to see all Hide Content without posting or without Editing to see??

I searched on the file:
HideTagMod1.1rc2.mod and i came to this line:

// Find if there a post from you in this thread :) (For the hide tag)
if ($user_info['is_admin'] && !empty($modSettings['hide_adminshouldsee']))
$context['user_post_avaible'] = 1;


Is anyway i can add $user_info['is_admin'] and Global Moderator and other group (ID=4) ?

Thanks for any feedback and congratulations on the mod!

http://www.simplemachines.org/community/index.php?topic=32954.msg451291#msg451291 <- Here is a Replacment for it ;).

Bye
DIN1031
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Advertisement: