Hide Tag Special

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

Previous topic - Next topic

Arantor

Quote from: ディン1031 on December 08, 2009, 12:15:16 AM
With the code tag is a way, but normal i would say that what the parser parse will be parsed inside the hidden content. I can not slect some tags inside the hidden content and do not parse them. The only way to do is to disable the the parsing inside the hidden content (that would be possible in the subs.php). But than not one bbc will be parsed like in the code tag. :X

Actually, you can do that in 2.0; the last parameter to parse_bbc is actually an array containing a list of all the bbcodes you actually want to enable.

kanderson88

Ive got a problem with display.php and im not sure what to do.

ill attach my php file.
Code (FIND) Select
id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body,
Code (INSERT) Select
hiddenOption, hiddenValue, hiddenInfo, id_board,

i have rc2 newest version. heeeelp

ディン1031

Quote from: Arantor on December 08, 2009, 03:23:51 AM
Quote from: ディン1031 on December 08, 2009, 12:15:16 AM
With the code tag is a way, but normal i would say that what the parser parse will be parsed inside the hidden content. I can not slect some tags inside the hidden content and do not parse them. The only way to do is to disable the the parsing inside the hidden content (that would be possible in the subs.php). But than not one bbc will be parsed like in the code tag. :X

Actually, you can do that in 2.0; the last parameter to parse_bbc is actually an array containing a list of all the bbcodes you actually want to enable.
Thanks for the info, but i think that is not what he wanted, i think he will only remove the automatic urls on hidden contents...

Quote from: kanderson88 on December 09, 2009, 12:27:23 AM
Ive got a problem with display.php and im not sure what to do.

ill attach my php file.
Code (FIND) Select
id_msg, icon, subject, poster_time, poster_ip, id_member, modified_time, modified_name, body,
Code (INSERT) Select
hiddenOption, hiddenValue, hiddenInfo, id_board,

i have rc2 newest version. heeeelp
What is this... thats defentiv not my mod oO. Possible you're in the wrong thread i think that hide post mod not the hide tag special mod.

Bye
DIN!031
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

kanderson88

oooops hahaha i am so sorry thanks.

Arantor

Quote from: ディン1031 on December 09, 2009, 12:37:52 AM
Thanks for the info, but i think that is not what he wanted, i think he will only remove the automatic urls on hidden contents...

Just pass all the currently enabled tags - minus url and iurl - in as the array. Automatic URLs are simply rewritten to have [url] around them.

ディン1031

Yes i know it would be end in something like


array(
'tag' => 'hide',
'type' => 'unparsed_content',
'before' => $modSettings['hide_preparedOption']['before_info'],
'after' => $modSettings['hide_preparedOption']['after_info'],
'validate' => isset($disabled['hide']) ? null : create_function('&$tag, &$data, $disabled', '
if (!isset($disabled[\'hide\']))
{
// I don\'t like this way <<
global $chached_bbc_content
if (!isset($chached_bbc_content))
{
$bbc = parse_bbc(false);
$not_allowed = array('iurl', 'url');
$chached_bbc_content = array();
foreach ($bbc as $item)
if (!in_array($item['tag'], $not_allowed))
$chached_bbc_content[$item['tag']] = $item['tag'];
}
$data = parse_bbc($data, true, '', $chached_bbc_content);
}'),
'block_level' => true,
),


But i don't like it in that way, because there are thing that will be lost, for example the smilies disable ;). Possible there are better ways :X.
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

Arantor

They don't have to be; smileys are controlled by the second parameter to parse_bbc.

Not sure quite what $bbc = parse_bbc(false); is all about though :S

ディン1031

Quote from: Arantor on December 09, 2009, 08:38:59 AM
They don't have to be; smileys are controlled by the second parameter to parse_bbc.

Not sure quite what $bbc = parse_bbc(false); is all about though :S
Thats was only to load all current bbc codes. So that i can create the parse tags code without url and irul. The false will return the current BBC $codes array ;).

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

Arantor

Quote from: ディン1031 on December 10, 2009, 12:26:45 AM
Thats was only to load all current bbc codes. So that i can create the parse tags code without url and irul. The false will return the current BBC $codes array ;).

I didn't know about that. Thanks for sharing!

Arkino

BUG TIME

When I change English to Spanish I got these error:

Undefined index: manageposts_hidetagspecial_settings
Archivo: /foro/Sources/Admin.php
Línea: 262

8: Undefined index: manageposts_hidetagspecial_settings_description
Archivo: /foro/Sources/ManagePosts.php
Línea: 97

I have edited and I have put the $txt in:

Admin.spanish_es-utf8.php
Help.spanish_es-utf8.php
index.spanish_es-utf8.php

before ?> and did not work :S

I am using SMF 2.0 RC2 with HideTagSpecial236_(2.0RC2_Compatible)

how can I fix it?

Thank you in advance

Arantor

To fix this error: Admin > Maintenance > Routine > Empty the file cache

Changes to language files need to empty file cache after being done.

Arkino

Quote from: Arantor on December 12, 2009, 03:02:14 AM
To fix this error: Admin > Maintenance > Routine > Empty the file cache

Changes to language files need to empty file cache after being done.

Thank you =) Its works!

aktsa

i have upload the mod but when i am going to apply it it ask for FTP information what should i do i don't know much about ftp which required for this hide tage please help me

ɔɔɔɔɔɔuɥoɾ

Quote from: aktsa on December 12, 2009, 02:18:51 PM
i have upload the mod but when i am going to apply it it ask for FTP information what should i do i don't know much about ftp which required for this hide tage please help me

You would enter the information its asking for, usually the host/cpanel login information is the same as main FTP account.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

oilsjtmp3

We upgraded our forum to version from  smf2.0rc1.2 to smf2.0rc2.0.
We used a hide function for the attachments (no photo's but a file). Users have to reply befor they see the attachment.  (Hide Tag 2.3.6)
Since we made the upgrade this function doesn't work anymore.
Can somebody help ?

Thnx in advance

ディン1031

Quote from: oilsjtmp3 on December 16, 2009, 10:22:58 AM
We upgraded our forum to version from  smf2.0rc1.2 to smf2.0rc2.0.
We used a hide function for the attachments (no photo's but a file). Users have to reply befor they see the attachment.  (Hide Tag 2.3.6)
Since we made the upgrade this function doesn't work anymore.
Can somebody help ?

Thnx in advance
Hmm? Attachment hidden? I do not know that my mod support this... normal if you insert it yourself it should be work afterward i do not change any variables for hidden conent detection ;).

How does the function look that you use to unhide hidden content? :)
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

lexa90

Hello peeps,

i just wanted to ask if u could help me.

I installed this mod without any errors, throught package parser, but, when i post something with [hide][/hide]  nothing happens, the post stays the same.

I appreciate any help
Thanks

poolhall

Quote from: lexa90 on December 18, 2009, 08:22:39 PM
Hello peeps,

i just wanted to ask if u could help me.

I installed this mod without any errors, throught package parser, but, when i post something with [hide][/hide]  nothing happens, the post stays the same.

I appreciate any help
Thanks
Check hide tag permissions, who can see hidden text. Probably you can see it as admin.

lexa90


meko me

hello i'm using RC2 please kindly update the bbc button for this mod please :)

regards :)

Advertisement: