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

Arantor

Well, that should work but that relies on then configuring it so the same users have the same rights as the mod/admin tag. I also don't know if the protection against unauthorised usage of tags would mess it up, though I don't think it would.

ɔɔɔɔɔɔuɥoɾ

Quote from: Arantor on October 08, 2009, 07:47:12 PM
Well, that should work but that relies on then configuring it so the same users have the same rights as the mod/admin tag. I also don't know if the protection against unauthorised usage of tags would mess it up, though I don't think it would.

Hide tag is really easy, I have it, Im have that setup now, that's why I say it


SMF 2.0 RC5

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

Arantor

Well, I had to take that position as I hadn't tested it but logically it should work without any issues at all.

ɔɔɔɔɔɔuɥoɾ

Yes. The logical answer is that a non mod or admin cant use the tags, but somehow the hide tag mod can even display them even when posts are created by the regular member, its a pretty complex mod


SMF 2.0 RC5

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

ディン1031

Quote from: johncccccc on October 08, 2009, 02:34:00 PM
Great work, thanks!

Can you please post the code changed here too,

I have some weird errors (failed tests) on uninstalling and manually removing them will results in more manual coding to install the new version too

Thanks
Upload the new package and click on upgrade ;). Than it will make only the needed changes, without deinstall. Alternativ look the Upgrade235to2362.0.x.mod file if you like to do it yourself ;).

Quote from: evolva on October 08, 2009, 06:29:07 PM
i wait for answer creator ディン1031 

maybe he know what make :)
You can style the hidden content information as you like. You can enable the HTML mode than you can use all kind of HTML Styling things. Like <div> tags wich can be formated in the way you like it.
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

Iviiik

ディン1031 

Hey, i have a question....


How make this for hide and unhide ? :(


I want this , exactly this (screen)

ディン1031

#1126
You can do this with the hide tag special settings... it's normal no problem.

And with the enabled HTML insert option it should be easy... i don't know how i should help you there, i'm not a designer but i know that it is possible without problems to set it up that it work oO.

Did you ever look at the Posts and Topics -> Hide Tag Special Options?

Use a html editor create this part you need and insert only that part into the field.

If you like to see it only at the end of the post, there is option where you can show it only one time in the post and at the end of the post...
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: johncccccc on October 08, 2009, 09:49:43 PM
Yes. The logical answer is that a non mod or admin cant use the tags, but somehow the hide tag mod can even display them even when posts are created by the regular member, its a pretty complex mod

Yes, because it doesn't use the Subs-Post code; when a post is made, a check is done that the user concerned is a suitably privileged user. Hide tag bypasses that entirely.

ɔɔɔɔɔɔuɥoɾ

#1128
Quote
Upload the new package and click on upgrade ;). Than it will make only the needed changes, without deinstall. Alternativ look the Upgrade235to2362.0.x.mod file if you like to do it yourself ;).

I don't see an upgrade button, however all the tests passed, dispite the earlier version already been installed ???

Normally I would go ahead and install, but I have had 2 instances of the same mod installed before, took me the best part of a day to remove it/them manually.

Never mind, the installer auto detects if I have a previous version installed already and chooses upgrade for me

Thanks,

TESTED:
Unapproved posts DO NOT give authorization to see hidden content, only approved posts will un hide the hidden content (the system works) Muahahaha!!!


SMF 2.0 RC5

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

YoProPool

Hi, I want to install this script x 3
What I have to modify in the mod file to change de code "[hide]" to  "[hide=1]", "[hide=2]", "[hide=3]"

this is to set diferents requeriments to each tag.

THX

ɔɔɔɔɔɔuɥoɾ

Thats alot of work, this mod is complex enough as it is, although what your asking is for a version of this with 3 different tags that require 3 different member reactions to access the hidden data, it would probably be a mod request, as I dont think he will do this.

If your looking to have a button to click to unhide hidden content, like a thank you button, then install his other mod thank-o-matic
http://custom.simplemachines.org/mods/index.php?mod=710

they both work together when both are installled


SMF 2.0 RC5

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

YoProPool

If anyone can modify the script to have 3 or more options would be excellent.
For now my only request is to know how can I change the TAG. [hide] to [hide=whatever]
After that I will see how to install the same scrip 3 or more times to set up different configuration to each one.

thanks for the reply.

Arantor

You can't just change it. You'll need to copy the code in Subs.php 3 times first.

ɔɔɔɔɔɔuɥoɾ

and even after doing that, there is a lot more, like detecting what the member has done to deserve the right to see hidden content (your request), then the message for members without the right. (could be the same message)

ディン1031 will see your message and more than likely tell you the exact same thing.


SMF 2.0 RC5

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

YoProPool

Quote from: Arantor on October 09, 2009, 07:24:15 PM
You can't just change it. You'll need to copy the code in Subs.php 3 times first.

yes, that perhaps it easy. But how do we differentiate tags in the forum


Quote from: johncccccc on October 09, 2009, 07:27:32 PM
and even after doing that, there is a lot more, like detecting what the member has done to deserve the right to see hidden content (your request), then the message for members without the right. (could be the same message)

ディン1031 will see your message and more than likely tell you the exact same thing.

that makes the script itself. The different tags will not be used in the same post, in that way will be no conflict.
even if it were the universe will not explode, just would not work.

Arantor

Quote from: YoProPool on October 09, 2009, 07:47:38 PM
yes, that perhaps it easy. But how do we differentiate tags in the forum

Actually, now I think about it, you'd copy it once, not three times. Once for [hide] and once for [hide=value].

But really the mod's author would be the best person to ask.

ディン1031

Quote from: YoProPool on October 09, 2009, 07:19:58 PM
If anyone can modify the script to have 3 or more options would be excellent.
For now my only request is to know how can I change the TAG. [hide] to [hide=whatever]
After that I will see how to install the same scrip 3 or more times to set up different configuration to each one.

thanks for the reply.
Hmm difficult very difficult :X.

It's not done with a 3 time copy, you need create a hole new mod for each versions... because all variables need to be changed for this, too. It's never be created so that he should used in diffrent tag ways. Also it was never planed to be have diffrent hide tag options.   
You need also change some other files to detect correct edits and and and ;).
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

YoProPool

Quote from: ディン1031 on October 10, 2009, 02:38:05 PM
Quote from: YoProPool on October 09, 2009, 07:19:58 PM
If anyone can modify the script to have 3 or more options would be excellent.
For now my only request is to know how can I change the TAG. [hide] to [hide=whatever]
After that I will see how to install the same scrip 3 or more times to set up different configuration to each one.

thanks for the reply.
Hmm difficult very difficult :X.

It's not done with a 3 time copy, you need create a hole new mod for each versions... because all variables need to be changed for this, too. It's never be created so that he should used in diffrent tag ways. Also it was never planed to be have diffrent hide tag options.   
You need also change some other files to detect correct edits and and and ;).

There is a price I can pay for that job?

ɔɔɔɔɔɔuɥoɾ

Quote from: YoProPool on October 10, 2009, 05:29:52 PM
There is a price I can pay for that job?

That should get his attention :D


SMF 2.0 RC5

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

ディン1031

#1139
Quote from: YoProPool on October 10, 2009, 05:29:52 PM
Quote from: ディン1031 on October 10, 2009, 02:38:05 PM
Quote from: YoProPool on October 09, 2009, 07:19:58 PM
If anyone can modify the script to have 3 or more options would be excellent.
For now my only request is to know how can I change the TAG. [hide] to [hide=whatever]
After that I will see how to install the same scrip 3 or more times to set up different configuration to each one.

thanks for the reply.
Hmm difficult very difficult :X.

It's not done with a 3 time copy, you need create a hole new mod for each versions... because all variables need to be changed for this, too. It's never be created so that he should used in diffrent tag ways. Also it was never planed to be have diffrent hide tag options.   
You need also change some other files to detect correct edits and and and ;).

There is a price I can pay for that job?
Hmmm than sent me a exact description via pm what the mod should do after the changes. Than i will tell you if i can do it or not. At the moment i would say i can't making it because of some time problems ;).
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: