News:

SMF 2.1.4 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

Arantor

There isn't really a fix other than installing it manually - you've already gone some other mod(s) installed that this one conflicts with.

RML

Quote from: shadowcrews on September 16, 2009, 10:01:38 PM
have this test failed on 2.0 rc 1.2

Execute Modification     ./Sources/Post.php     Test failed
     5.     Replace     ./Sources/Post.php     Test failed
*     7.     Execute Modification     ./Sources/Subs.php     Test failed
     1.     Add After     ./Sources/Subs.php     Test failed


please help to fix this

I had the same problem. I figured, that Simple Portal has already modified that line and now it looks this way: static $disabled, $parse_tag_cache;
What I have done is: modified that search term in the mod file and everything went well.  ;)

ディン1031

#1102
Hmmm when was this line changed... i was sure i tested it with the latest Version oO... in which Version is this wrong? 1.1.10 or 2.0 RC1.2?

So i looked at the orginal code:

1.8.5 for SMF 1.1.10
My search:
Quote
   global $txt, $scripturl, $context, $modSettings, $user_info;
   static $bbc_codes = array(), $itemcodes = array(), $no_autolink_tags = array();
   static $disabled;
Orginal Code:
Quote
   global $txt, $scripturl, $context, $modSettings, $user_info;
   static $bbc_codes = array(), $itemcodes = array(), $no_autolink_tags = array();
   static $disabled;
100% the same ;).

Next Version 2.3.5 for RC 1.2:
My search for add after:

static $disabled;

in the file

static $disabled;

Line 877 is the same...

So it should work <<...

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

ɔɔɔɔɔɔuɥoɾ

Thanks again for the great mod
I think I have found a bug in the coding

Moderated members, unapproved post can see hidden content

Would there be a simple edit to fix this?

Thanks


SMF 2.0 RC5

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

ディン1031

Quote from: johncccccc on October 07, 2009, 06:37:11 PM
Thanks again for the great mod
I think I have found a bug in the coding

Moderated members, unapproved post can see hidden content

Would there be a simple edit to fix this?

Thanks
I will look into this, i'm sure that i tested it. But i will look =).
You mean the overview of the unapproved posts and the Moderated Members Overview page? :X
Or can you give me an example image with the page links? And which options you are turned on?
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

ɔɔɔɔɔɔuɥoɾ

yes the overview un-hides the hidden content (when its orange colored) with awaiting approval message.
I never knew until I had the urge to test it using a test regular member account.

settings used:


SMF 2.0 RC5

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

ディン1031

So i've done some test... it work fine look here

Hmmm i don't know how i can test it in a other way xD than disallow anything and anything need to be approved *g* but it work fine.
Only if you have posted it that thread and the post is shown in the thread this will be shown ;).
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

ɔɔɔɔɔɔuɥoɾ

hmmm I think that test is not covering the problem at hand it appears you have used the same username to post, which means that user can see the hidden text anyway

Try this test start a topic, add some hidden content, using admin account. Get another member (moderated test user), and reply to the thread then see if that moderated user can see the hidden content :)


SMF 2.0 RC5

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

ディン1031

Quote from: johncccccc on October 08, 2009, 12:35:11 PM
hmmm I think that test is not covering the problem at hand it appears you have used the same username to post, which means that user can see the hidden text anyway

Try this test start a topic, add some hidden content, using admin account. Get another member (moderated test user), and reply to the thread then see if that moderated user can see the hidden content :)
No I've used a different user because the user itself can see it everytime on the post overview ;).

Ah i understand you're problem now...

You mean a moderated user should see it only after the approve?

Somehow logical not to show this user the hidden content *g*, okay i will make a fix for this =).
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

ɔɔɔɔɔɔuɥoɾ

Yes,

If the post is not approved they should not see the hidden content, but they still do


SMF 2.0 RC5

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

ディン1031

So Fixed, now at least one unapproved post need to be in the topic that he can see the hidden content =).

Upgrade to 2.3.6 and the problem is solved ;).



Version 2.3.6 (08.10.09)
* You need at least one Approved post in a Topic to see the hidden content.
! Removed the last Query in the Old style... i thought i changed all *g*.
- Upgrade included

This change is only for SMF2 RC1-X
The Mod is incompatible to RC2 at the moment...
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

ɔɔɔɔɔɔuɥoɾ

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


SMF 2.0 RC5

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

Iviiik

#1112
Hey, i have a question....


How make this for hide and unhide ? :(


I want this , exactly this (screen)


Arantor

You can't make it look exactly like that without modifications to your forum.

The text and the icon can be done - you just add them in BBcode to the first large box in Admin > Posts and Topics > Hide Tag Special.

But the dotted border cannot be done without more complex, deeper changes.

Iviiik

Quote from: Arantor on October 08, 2009, 06:08:45 PM
You can't make it look exactly like that without modifications to your forum.

The text and the icon can be done - you just add them in BBcode to the first large box in Admin > Posts and Topics > Hide Tag Special.

But the dotted border cannot be done without more complex, deeper changes.

And how make deeper changes ? i want dotted border :)

Arantor

Without me going through and figuring out how this mod works, the deeper changes I would suggest would be to edit Subs.php, create a new bbcode tag that puts that border around the contents and use that in the box I mentioned.

Iviiik

i wait for answer creator ディン1031 

maybe he know what make :)

Arantor

He'd be the best person; he knows the mod better. I don't know if he still reads this thread though.

Iviiik

Quote from: Arantor on October 08, 2009, 06:33:02 PM
He'd be the best person; he knows the mod better. I don't know if he still reads this thread though.

ok ;) thank you

ɔɔɔɔɔɔuɥoɾ

Actually, you can create something similar to that, the hidden text is replaced with another set of text, you can use BBC in there, with that, you could use Arantors mod (admin/mod tags) and use those in the hidden content warning, you will get s similar looking warning with those 2 mods combined


SMF 2.0 RC5

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

Advertisement: