News:

Wondering if this will always be free?  See why free is better.

Main Menu

Hide Tag Special

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

Previous topic - Next topic

ディン1031

Gna i forgot a replacment...


<serach for>
if((empty($context['user_post_avaible']) || !isset($context['user_post_avaible'])) && !empty($modSettings['hide_onlyonetimeinfo'])) {
//Okay some more things to do, i must check if there a hidden content... without i need do nothing ;)
if(preg_match("/\[hide\](.+?)\[\/hide\]/i", $message) != 0 || preg_match("/\[hide(.+?)\](.+?)\[\/hide\]/i", $message) != 0) {
//Add the Hidden Text at the end of the post :)
$message .= '[br]'.$modSettings['hide_preparedOption']['hiddentext'];
}
}
//Here i remove this content :) or show onetime unhide info :)
if(!isset($context['user_post_avaible']) || empty($context['user_post_avaible'])) {
//Remove it ;D
$message = preg_replace("/\[hide\](.+?)\[\/hide\]/i", (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['hiddentext'] : "&nbsp"), $message);
$message = preg_replace(array('~\n?\[hide.*?\].+?\[/hide\]\n?~is', '~^\n~', '~\[/hide\]~'), (empty($modSettings['hide_onlyonetimeinfo']) ? $modSettings['hide_preparedOption']['hiddentext'] : "&nbsp"), $message);
}
elseif(!empty($context['user_post_avaible']) && !empty($modSettings['hide_onlyonetimeinfo']) && !empty($modSettings['hide_enableUnhiddenText'])) {
//Okay i need to add the unhidden information at the end of the post :)
if(preg_match("/\[hide\](.+?)\[\/hide\]/i", $message) != 0 || preg_match("/\[hide(.+?)\](.+?)\[\/hide\]/i", $message) != 0) {
$message .= '[br]'.$modSettings['hide_preparedOption']['unhiddentext'];
}
}
</search for>

<replace>
$message = parse_hiddenContent($message);
</replace>


Sorry.

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

sharks

hello,

is it possible for guests to view the unhidden content? i have tried to set this option, but cannot find it.

thank you for helping.

ディン1031

Quote from: sharks on September 29, 2007, 12:21:51 PM
hello,

is it possible for guests to view the unhidden content? i have tried to set this option, but cannot find it.

thank you for helping.
Nope impossible.

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

sharks

Thanks for your quick reply, DIN1031.

Could you please consider adding this nifty (but very useful) feature to your already great modification? All that is missing, IMO, is a small addition to allow guests to see the unhidden text, without having to register and then reply. Sometimes i like to open some of the boards on my forum to allow guest access, so the guests can see what is inside the forums, and then they can consider to register. I think adding this new feature would add up even more value to this awesome mod.
OK, i'll admit this much - am no programmer, but maybe this suggestion will help:
In the hide tag special options screen, you have the clickable link "Allowed Groups", which lists all the membergroups on the forum who are allowed to see unhidden text without replying. Maybe you could add "guest" in that group list, so it can be selected for that purpose.
Just my 2p :)

Thanks in advance for all you do on SMF. Much appreciated.

cheers!

ディン1031

Nope this would not work even i add guest to the list.
And i will not do it because i never created this mod for 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

haiwasnm

hi,
1. Login: It requires a user to login to see the post.
but
2. Reply: It't requires a user to reply to the topic to see the post.

can Revision this mod? thanks!

ディン1031

#646
Quote from: haiwasnm on October 05, 2007, 12:13:33 PM
hi,
1. Login: It requires a user to login to see the post.
but
2. Reply: It't requires a user to reply to the topic to see the post.

can Revision this mod? thanks!
???
There are ways to make automatic viewable for registered members only :X.

The easiest way for this select all groups so that they can view all the hidden content without posting... Than it is automatic viewable after a login.

Admins -> Post and Topics -> Hide Tag Special -> Allowed Groups to see a hidden content without posting

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

haiwasnm

Allowed Groups to see a hidden content only they reply to the topic after.
this mod has't this function?

ディン1031

Quote from: haiwasnm on October 05, 2007, 08:55:11 PM
Allowed Groups to see a hidden content only they reply to the topic after.
this mod has't this function?
I knew my mod and my mod have this function, i should know what my mod can do...

Which version did you install? Did you make the language changes for you language?

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

haiwasnm

#649
I was install your mod but i change the language to english after install , and move to Admin -> Posts and Topics -> Hide Tag Special , apply the options. later i move to admin -> sever->change the lang to my language. where is wrong?ディン1031 help me?


forty

can someone pls tell me how to make this mod working like iam a 5 yr old?

ive installed HideTagSpecial170 on smf 1.1.4 with no errors.
i made a post with a link.
then i tried to view the topic as guest and i can still see the link.

all i want is to hide links to guest and nothing more.
thanks.

ディン1031

And use [hide]link[/hide]?

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

DIN1031,

is it possible some how a button for [hide][/hide] when posting?

babjusi

Yes ivo2296. It is attached at the very first post of this topic

ivo2296

Quote from: babjusi on October 13, 2007, 02:54:46 PM
Yes ivo2296. It is attached at the very first post of this topic

WoW Thanks a lot i must be overlooked it.

babjusi


edy_0906

Thanks for the great mod, ディン1031...

Just want to ask a question...
I used your mod on my forum, and I want it so that members with 50 posts OR 10 karma can automatically see the hidden content without posting in that thread...
This is the setting that I use

Quote
Minmum post to allow unhide content = 50
Minmum post count to unhide content without posting = 50

Enable Hide Karma Support = Yes
Minmum karma count to allow unhide content = 10
Minmum karma count to unhide content without posting = 10
The user need minimum karma and post to see hidden content = No
Count only the karma good value, not the total summary = No

But the problem is that members with 10 karma but less than 50 posts can't see the hidden content...
Am I setting the options correctly?
If not, what should I change?

Thanks...

ディン1031

The user need minimum karma and post to see hidden content = No make this to yes and it will need both ;).

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

edy_0906

#659
That's not what I mean...
Okay let me change the question...

If I want members with 10 karma to be able to automatically see the hidden content without replying, what number do I have to put?

Is it
QuoteMinmum karma count to allow unhide content = (empty)
Minmum karma count to unhide content without posting = 10

or is it
QuoteMinmum karma count to allow unhide content = 10
Minmum karma count to unhide content without posting = 10

?

and one more question... if I want the mod to only check the karma and not check the post count, what number should I put in Minmum post to allow unhide content and Minmum post count to unhide content without posting??


Thanks

Advertisement: