News:

SMF 2.1.2 has been released! Take it for a spin! Read more.

Main Menu

Hide Tag Special

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

Previous topic - Next topic

ディン1031

Please use <br /><br /> instead of <br><br> because it's better xhtml compatible

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

mgaidia

Quote from: mgaidia on December 28, 2006, 08:37:13 AM
it might be a bug but if somebody quote the hidden content it will appear to everybody.
Can you confirm it please
please fix it

ディン1031

#322
Quote from: mgaidia on December 31, 2006, 05:37:40 AM
Quote from: mgaidia on December 28, 2006, 08:37:13 AM
it might be a bug but if somebody quote the hidden content it will appear to everybody.
Can you confirm it please
please fix it
This bug is already fixed since 1.1.8 and if this happen again, show me a example so that i now what i must do to remove the bug! Nomal the hidden content is removed when the quote button is pressed! I tried so many thing to find holes but i found not a way! Most it is a user mistake that made. :)

So i tried it again in 10 ways i know to make quotes << (even some not legal ways ;P). The hidden content is hidden, even as admin. So you must give me the exact way what you done that i see how this could be happen and so that i know what i must do to remove this bug!



Version 1.2.2
This Version Change are only for the 1.1.x Version :), because it's to difficult to made for the 1.0.x version.

Okay follow Changes are made:
- Hide hidden Text for Guests (So that they not know that there is something else).
- Picture for hidden content instead of text
- Unhidden content picture
- Only one text/image information for a hidden content at the end the post

Upgrade for 1.2.1 is included :).

Hmmm somehow the upload for mods doesn't work ?_?...

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

gamerdudes

#323
nvmd so dude y link i try to use went bad

thank for add that to it :)

cbn

#324
Sorry for being paint in the butt, but I have a small problem after install the hide tag. When the [hide ] text [/ hide] was use. and if there is no character or word placing after the tag then I got the error message below:

QuoteThe following error or errors occurred while posting this message:
The message body was left empty.

Any idea how to correct this?

Many thanks

ディン1031

#325
Hmmmm okay you right that's a problem xD, never thought of it to write nothing else as a hidden text part... without a hidden text information... hmmm i must think a little bit about it to solve this, it's not so easy to solve. :x

The easiest way to solve it to add in the hidden text option a "." ;).

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

BigGunn

just discovered a little quirk.

if you go back and try to do a quick edit on a post with hidden content (using the little inside the post itself) the actual hidden content gets replaced with whatever text you have it set in the admin panel to show when there is hidden content.

I.E., instead of showing the hidden content, it says "Here is a secret" or something. And you are forced to rewrite the whole [hide]whatever was here originally[/hide] string.

ディン1031

I know this bug, this is why i remove the quick edit button on post with hidden content (if it correct changes made in the theme ;).

And i can do nothing against it, becuase than you can quote and see hidden content because it work with the same system! And i would have problems with hide this content. (See the Version Change 1.2.0, there stand that this the only problem is what i can not solve). Okay i check if the user is currently made a post, but it's not save any more, and can be used to see the hidden contet without posting ;). (And i tried many ways :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

cbn

Quote from: din1031 on January 01, 2007, 12:04:32 PM
Hmmmm okay you right that's a problem xD, never thought of it to write nothing else as a hidden text part... without a hidden text information... hmmm i must think a little bit about it to solve this, it's not so easy to solve. :x

The easiest way to solve it to add in the hidden text option a "." ;).

Bye
DIN1031
If you checked the option allow guest to view then it is ok, if unchecked then it will need to add any simbol, smilies or character to get worked

@ngel

#329
French translation available below :

File HideTagMod1.1.x.mod :
Quote<edit file>
$languagedir/ModSettings.french.php
</edit file>

<search for>
?>
</search for>

<add before>
$txt['hide_Titel'] = 'Options pour Hide Tag Special';
$txt['hide_MUIswitch'] = 'MUI SWITCH - Utilisation $txt[\'hide_hiddentext\'] &agrave; partir de la langue s&eacute;lectionn&eacute;e.<br /><span class="smalltext">index.french.php par exemple</span>';
$txt['hide_hiddentext'] = 'Texte standard cach&eacute;<br /><span class="smalltext">Quel est le texte que les utilisateurs doivent voir sans avoir post&eacute;</span>';
$txt['hide_adminshouldsee'] = 'L\'Administrateur peut-il voir le texte cach&eacute; m&ecirc;me sans r&eacute;ponse ?';
$txt['hide_autounhidegroups'] = 'Les membres d\'un groupe sont-ils autoris&eacute;s &agrave; voir le texte cach&eacute; m&ecirc;me sans r&eacute;ponse ?<br /><span class="smalltext">Veuillez s&eacute;parer les groupes par un "," (Exemple ID 2 est Mod&eacute;rateur Global)</span>';
$txt['hide_minpostunhide'] = 'Nombre minimum de fil de discussion pour permettre de voir les textes cach&eacute;s';
$txt['hide_minpostautounhide'] = 'Nombre minimum de fil de discussion pour permettre de voir les textes cach&eacute;s sans r&eacute;ponse<br /><span class="smalltext">"0", mettre &agrave; blanc pour ne pas autoriser cette option</spam>';
$txt['hide_hidecontentimages'] = 'Image pour texte caché<br /><span class="smalltext">Si vide => fonctionnalité désactivée. Ceci remplacera le texte caché.<br />Si vous voulez utiliser une image spécifiquement pour votre langue, créer une image avec comme nom, le nom de la langue dans SMF.<br />Exemple: http:\\\\www.mysite.com\\$languagehidden.gif doit devenir en français http:\\\\www.mysite.com\\frenchhidden.gif</span>';
$txt['hide_unhidecontnetimage'] = 'Image pour texte autorisé<br /><span class="smalltext">Cette image est affichée après le texte qui était caché, et le traitement de l\'image est le même que pour le texte caché.</span>';
$txt['hide_onlyonetimeinfo'] = 'Montrer l\'information sur le texte caché, seulement une fois à la fin du fil de discussion.';
$txt['hide_noinfoforguests'] = 'Cacher le texte/l\'image caché pour les invités.';
</add before>

<edit file>
$languagedir/index.french.php
</edit file>

<search for>
?>
</search for>

<add before>
$txt['hide_hiddentext'] = 'Il y a peut-&ecirc;tre un secret cach&eacute; ici';
</add before>


File Update121to122.1.1.x.mod :
Quote<edit file>
$languagedir/ModSettings.french.php
</edit file>

<search for>
$txt['hide_minpostautounhide'] = 'Nombre minimum de fil de discussion pour permettre de voir les textes cach&eacute;s sans r&eacute;ponse<br /><span class="smalltext">"0", mettre &agrave; blanc pour ne pas autoriser cette option</spam>';
</search for>

<add after>
$txt['hide_hidecontentimages'] = 'Image pour texte caché<br /><span class="smalltext">Si vide => fonctionnalité désactivée. Ceci remplacera le texte caché.<br />Si vous voulez utiliser une image spécifiquement pour votre langue, créer une image avec comme nom, le nom de la langue dans SMF.<br />Exemple: http:\\\\www.mysite.com\\$languagehidden.gif doit devenir en français http:\\\\www.mysite.com\\frenchhidden.gif</span>';
$txt['hide_unhidecontnetimage'] = 'Image pour texte autorisé<br /><span class="smalltext">Cette image est affichée après le texte qui était caché, et le traitement de l\'image est le même que pour le texte caché.</span>';
$txt['hide_onlyonetimeinfo'] = 'Montrer l\'information sur le texte caché, seulement une fois à la fin du fil de discussion.';
$txt['hide_noinfoforguests'] = 'Cacher le texte/l\'image caché pour les invités.';
</add after>

ディン1031

So i add a extra Package for smf 1.1.x Version to add a bbc button to the post box, why extra? Because many user want only the hide tag but it should not shown that there something is like this ;P. But with the package it add to the default theme the button :).

(It's attached to the first post of the thread).

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

HNHF

Hi Din1031,

I have installed this mod,  Hide tag special. But i cant see any picture or text ( replace when link is hiden ) example :   u cant [hide]see this[/hide] bla bla  For user on my forum they see this  "u cant"                              nothing else no text or no picture.

Question 2   Do you have a Dutch translation?

Greetings Martin     
Groetjes Martin....


Http://www.hnhf.nl/

hotrod

Quote from: computerdummy on January 07, 2007, 01:16:33 AM
Hi Din1031,

I have installed this mod,  Hide tag special. But i cant see any picture or text ( replace when link is hiden ) example :   u cant [hide]see this[/hide] bla bla  For user on my forum they see this  "u cant"                              nothing else no text or no picture.

Question 2   Do you have a Dutch translation?

Greetings Martin    
Please, the same here .. thnx!
Check: http://www.hotrodpage.nl              and       http://www.coverplaza.nl

ディン1031

No i don't have a dutch translation.
What are your settings for the hide tag, normal nothing is set, no text no picture ;).

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

johnnyboy

There is an error in te 1.2.2 mod.

replace in subs.php


array(
            'tag' => 'hide',
            'before' => '<strong>',
            'after' => '</strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_unhidecontnetimage'].'" /><br />' : ''),
         ),


into ;

array(
            'tag' => 'hide',
            'before' => '<strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_hidecontnetimage'].'" /><br />' : ''),
            'after' => '</strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_unhidecontnetimage'].'" /><br />' : ''),
         ),



Now your hide comments and pictures will be shown.

hotrod

Quote from: johnnyboy on January 07, 2007, 06:17:57 AM
There is an error in te 1.2.2 mod.

replace in subs.php


array(
            'tag' => 'hide',
            'before' => '<strong>',
            'after' => '</strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_unhidecontnetimage'].'" /><br />' : ''),
         ),


into ;

array(
            'tag' => 'hide',
            'before' => '<strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_hidecontnetimage'].'" /><br />' : ''),
            'after' => '</strong>'.(!empty($modSettings['hide_unhidecontnetimage']) && empty($modSettings['hide_onlyonetimeinfo']) ? '<br /><img src="'.$modSettings['hide_unhidecontnetimage'].'" /><br />' : ''),
         ),



Now your hide comments and pictures will be shown.
He's the Champ .. thnx dude .. respect
Check: http://www.hotrodpage.nl              and       http://www.coverplaza.nl

ディン1031

#336
Sorry but what you did it completly wrong <<... and could be a bug what unhinde something what should be hidden :X...

I release now the bugfix. Wait a short time, an please do not made this changes above!



Version 1.2.3

Bugfix relase for 1.2.2 Somehow i made a mistake in a if clause who not shaw the hidden info any more... Sorry for the problems...

Upgrade for 1.2.2 is included :).

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

johnnyboy

thnxx for the update!! What did you chance?

ディン1031


<id>
din1031:HideTag
</id>

<version>
1.2.3
</version>

<edit file>
$sourcedir/Subs.php
</edit file>

<search for>
if(!empty($modSettings['hide_noinfoforguests']) && !$user_info['is_guest']) {
</search for>

<replace>
if(empty($modSettings['hide_noinfoforguests']) || !$user_info['is_guest']) {
</replace>


It's as upgrade include in the current package ;), i made a thinking error XD.

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

babjusi

That''s a great mod, I like it a lot. Been using it for some days now and I am very satisfied with it. Thanx din1031 

Advertisement: