Hide Tag Special

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

Previous topic - Next topic

elian

all files have this error
i 't a new forum
clean as a whistle without mods

kamili34

#541
I want to write sth [hide]blblblblb[/hide]

When I click  post it say that I must write sth in post but I only write [hide]blblblblb[/hide].  Is this correct ?


Thanks in advance for grat mods and i appreciate this. Becouse polish support
of smf is poor.  :'(

elian

you must see the text, which you have written in the control panel
not [hide]blblblblb[/hide]
;)

Farmacija

ok, is there any security risks why we have upgrade on new version or not?
and can we set differen tags for to differen membergroups , say , 1 group of member [which have 500 posts]can see one hidden content and for they we will use code[hide1][/hide] and another group [which have 300posts] can see other hidden content?
do u understand me din?
www.farmaceuti.com
www.farmaceuti.com/tekstovi

ディン1031

Quote from: Farmacija on July 05, 2007, 09:47:01 AM
ok, is there any security risks why we have upgrade on new version or not?
and can we set differen tags for to differen membergroups , say , 1 group of member [which have 500 posts]can see one hidden content and for they we will use code[hide1][/hide] and another group [which have 300posts] can see other hidden content?
do u understand me din?
No Holes or anything like that in the old version 1.2.7.

I overworked the Admin part, speed up the script on some positions and made the inline edit possible so that it not destroy the hidden content.

The other thing is not possible, it's to much work for me to do such a thing, if you like this you must program it yourself...



Quote from: kamili34 on July 04, 2007, 02:55:12 PM
I want to write sth [hide]blblblblb[/hide]

When I click  post it say that I must write sth in post but I only write [hide]blblblblb[/hide].  Is this correct ?


Thanks in advance for grat mods and i appreciate this. Becouse polish support
of smf is poor.  :'(
Yes, because i remove the hide tag will be removed on the test... somehow i don't know how to make the post will created with the hidden content only... you can insert a letter after the hide and it work fine.

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

MarkoWeb


ディン1031

Not removable, the parse make automatic a <br /> on each new line, but the hidden content is now in own div tag, so it will be make a new line after it :). If you don't like it than you must remove the div tag *g* or replace it with a span tag, than it should also not happen.


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

<search for>
array(
'tag' => 'hide',
'before' => '<div class="hiddencontent">',
'after' => '</div>'.(!empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['unhiddentext'] : ''),
),
</search for>

<replace>
array(
'tag' => 'hide',
'before' => '<span class="hiddencontent">',
'after' => '</span>'.(!empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['unhiddentext'] : ''),
),
</replace>


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

MarkoWeb

fixed.

<search for>
array(
'tag' => 'hide',
'before' => '<div class="hiddencontent">',
'after' => '</div>'.(!empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['unhiddentext'] : ''),
),
</search for>

<replace>
array(
'tag' => 'hide',
'before' => '<div class="hiddencontent">',
'after' => '</div>'.(!empty($modSettings['hide_enableUnhiddenText']) && empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['unhiddentext'] : ''),
'block_level' => true,
),
</replace>


;)

nitins60

Grrr... What's going on? I don't have any error which users are reporting. It's are working like gem. But.... Small bug

when you edit the post using inline edit function, the poster can't see the links after inline edit!!! But no problem with modify option why?? ;)

GhoXt

i whould like to user smf parser to install this hack, since i cant user admin packager

but at smf parser only apear me this

Modifications to SMF files
Modification in BoardMod format: /tmp//HideTagSpecial1.1.x.mod Modification in BoardMod format: /tmp//VersionCompatible1.1.2.mod

and nothing more plz hep =(

ディン1031

Quote from: nitins60 on July 06, 2007, 11:15:31 AM
Grrr... What's going on? I don't have any error which users are reporting. It's are working like gem. But.... Small bug

when you edit the post using inline edit function, the poster can't see the links after inline edit!!! But no problem with modify option why?? ;)
This is not fixable, i tried it... but it didn't work... but the most importend is that it not destroyed the hidden content like before ;). The other thing is with the same function the quote will be made and i can not risk it to show the content when you quote :x.



Version 1.6.0 (06.07.07)
+ Add a Option for the Position of the Unhidden Content Information
+ Option for using SPAN instead of DIV
! Bugfix the not Parsed Unhidden Content Information
* Removed the Tukish Translation, it's outdated in Version 1.6.0
- Upgrade 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

nitins60

Thanks. I don't like to see links in quote option. Please don't ever enable it also ;D :P

kamili34

Thanks new upgrade work

GhoXt

In file $languagedir/Admin.english.php
Find:

?>



Add before:


//Hide Tag Special Options
$txt['hidetagspecial_titel'] = 'Hide Tag Special';
$txt['hidetagspecial_description'] = 'You can set all the Setting that needed for the Hide Tag Special mod "[hide][/hide]"';
$txt['hide_MUIswitch'] = 'MUI SWITCH';
$txt['hide_enableHTML'] = 'Enable HTML';
$txt['hide_enableHTML_help'] = 'Allow you use html on Hidden or Unhidden Text';
$txt['hide_enableUnhiddenText'] = 'Enable Unhidden Information';
$txt['hide_hiddentext'] = 'Hidden Text Information';
$txt['hide_unhiddentext'] = 'Unhidden Text Information';
$txt['hide_hiddentext_help'] = 'BBC allowed, You can use <strong>$txtvariable</strong> and <strong>$language</strong>,<br />look into the help for more info.';
$txt['hide_onlyonetimeinfo'] = 'Show the un-/hidden Text Information one time';
$txt['hide_onlyonetimeinfo_help'] = 'This will be only shown at the end of the Post.';
$txt['hide_noinfoforguests'] = 'Hide Text Information for guests';
$txt['hide_autounhidegroups'] = 'Allowed Groups to see a hidden content without posting';
$txt['hide_minpostunhide'] = 'Minmum post count to allow unhide content';
$txt['hide_minpostautounhide'] = 'Minmum post count to unhide content without posting';
$txt['hide_minpostautounhide_help'] = '"0" or empty to disable this option';
$txt['hide_useSpanTag'] = 'Use SPAN html tag instead of DIV.';
$txt['hide_posUnhiddenText'] = 'Position for Unhidden Text Information';
$txt['hide_posUnhiddenOption1'] = 'Before Hidden Content';
$txt['hide_posUnhiddenOption2'] = 'Before in Hidden Content';
$txt['hide_posUnhiddenOption3'] = 'After in Hidden Content';
$txt['hide_posUnhiddenOption4'] = 'After Hidden Content';





In file $languagedir/Help.english.php
Find:

?>



Add before:


$txt['hide_MUIswitch_help'] = '
<strong>MUI SWITCH - Hide Tag Special</strong><br /><br />
This Option is for Multi Language Forums, it enable the replacment for
<strong>$txtvariable</strong> with $txt[\'hide_hiddentext\']
or $txt[\'hide_unhiddentext\']. So that it use the correct Language
for the user. Please don\'t forget to insert the $txtvariable in the
Textarea of the Infomation so that you can use it.<br />
<span class="smalltext">You find this variable in <strong>index.english.php</strong> for example</span>';
$txt['hide_unhiddentext_help'] = '
<strong>Unhidden Informations - Hide Tag Special</strong><br /><br />
This information appear after you post to a thread, and will be shown after a Hide Tag.
So that the user know the content is unhidden.';
$txt['hide_text_help'] = '
<strong>Text Informations - Hide Tag Special</strong><br /><br />
Normal the Textarea will be BBC Parsed.<br />
You can use the Area to give a user the Infomation that there is a hidden or unhidden content.<br />

In the area you can use 2 Variables for MUI use.<br /><br />
<strong>$language</strong>:<br />
This will replace with the language that the user use.<br />
<em>Example:</em> <strong>hidden_$language</strong> will be in the output <strong>hidden_english</strong>
when the user use english as language.<br /><br />
<strong>$txtvariable</strong>:<br />
Work only if you enable the MUI Switch!<br />
This will replace the $txtvariable with the $txt[\'hide_hiddentext\'] or $txt[\'hide_unhiddentext\']
to make it Multilingual useable.<br />
<em>Example:</em> [b]$txtvarible[/b] will be in english something like
<div class="quote"><strong>The text from the index.english.php</strong></div>
because the $txtvariable is replaced with this.<br /><br />
<em>Some Examples for Hidden/Unhidden Informations:</em><br />
If you like to use a Image for the Text use:
<div class="code">[img]http://www.example.com/image.jpg[/img]</div>
Do you like to use a Image that be diffrent for each language use:
<div class="code">[img]http://www.example.com/$lanuguage.jpg[/img]</div>
You can also combine text and picture:
<div class="code">Here is a secret, please post to see it.[br][img]http://www.example.com/hidden.jpg[/img]</div>
[br] stands for a new line.
You can also combine MUI Switch and $language Picture:
<div class="code">$txtvariable[br][img]http://www.example.com/$lanuguage.jpg[/img]</div>
<span class="smalltext">$txtvariable will replace only if you enable MUI Switch</span>';
$txt['hide_useSpanTag_help'] = '
<strong>SPAN instead of DIV - Hide Tag Special</strong><br /><br />
Use &lt;span class=&quot;hiddencontent&quot;&gt;Hidden Value&lt;/span&gt; instead
of &lt;div class=&quot;hiddencontent&quot;&gt;Hidden Value&lt;/div&gt; after unhidding Text.';
$txt['hide_posUnhiddenText_help'] = '
<strong>Unhidden Text Position - Hide Tag Special</strong><br /><br />
With this you can select where the unhidden text should be stand,
after unhidding the content.<br /><br />
<u>Before Hidden Content</u>:<br />
<strong>Unhidden Text</strong>&lt;div class=&quot;hiddencontent&quot;&gt;Hidden Value&lt;/div&gt;<br />
<u>Before In Hidden Content</u>:<br />
&lt;div class=&quot;hiddencontent&quot;&gt;<strong>Unhidden Text</strong> Hidden Value&lt;/div&gt;<br />
<u>After In Hidden Content</u>:<br />
&lt;div class=&quot;hiddencontent&quot;&gt;Hidden Value <strong>Unhidden Text</strong>&lt;/div&gt;<br />
<u>After Hidden Content</u>:<br />
&lt;div class=&quot;hiddencontent&quot;&gt;Hidden Value&lt;/div&gt;<strong>Unhidden Text</strong><br />
<br />
This Option will only work when you enable Unhidden Text Information and not enabled the
Option for "Show the un-/hidden Text Information one time".';





In file $languagedir/index.english.php
Find:

?>



Add before:


$txt['hide_hiddentext'] = 'Here is a litte secret... Or not?';
$txt['hide_unhiddentext'] = 'My little secret is shown now... Or not?';


hi din finally im able to see your mod ad smf parser, but its only that ? dont have any functions ? because i only see what i did post before in codetag

nitins60

@din, undefined index Package_readme error n errorlog while installing v1.60. Oops.. I think small change s needed n package. Ofcourse, it's not going to do anything wrong :)

nitins60

Something wrong in admin panel of hide tag special.

"Allowed Groups to see hidden content without posting" text s some how clickable link, although it doesn't have any html link. But it's supposed to be plain text, instead of clickable text

ディン1031

Quote from: nitins60 on July 06, 2007, 11:30:31 PM
Something wrong in admin panel of hide tag special.

"Allowed Groups to see hidden content without posting" text s some how clickable link, although it doesn't have any html link. But it's supposed to be plain text, instead of clickable text
Because of compatible thing i must make it a clickable link... if i do this not, it will produce some problems with opera ;). Okay i don't know why this readme thing occure, but i will look...

@GhoXT:
The parser can not parse my mods, because i use the old board mod style and the parser do not support this.

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

GhoXt

#557
@din exist another parser able to parse ur mod?

or tell me which files contains the info i need to put this mod

thkz

Robi052

#558
In error log after upgrade I see this 6 errors

Undefined index: hide_posUnhiddenOption4
Undefined index: hide_posUnhiddenOption3
Undefined index: hide_posUnhiddenOption2
Undefined index: hide_posUnhiddenOption1
Undefined index: hide_posUnhiddenText
Undefined index: hide_useSpanTag

All 6 errors in file
Datoteka:/home/mojporta/public_html/forum/Themes/default/languages/ManageBoards.croatian.php (edit_hidetagspecial_settings sub template - eval?)

What is wrong?

I found whats wrong. In Admin.croatian.php after upgrade I dont add all translates for this mod. Now is all OK.

Great mod   ;D

edi67

little problem din
using TAG hide with TAG CODE inside something wrong in graphic happen look:

TAG HIDE with TAG CODE inside


Link to image:
http://i14.tinypic.com/4th5co0.jpg

Here links are not inside TAG HIDE and green field in up part

everything work corectly without TAG CODE only TAG HIDE


link to image:
http://i11.tinypic.com/5zejp76.jpg

As you can see here the link are correctly inside TAG hide in field green


so why TAG CODE not show inside TAG HIDE ? possible fix it?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: