Print Topic - Archive

E-Blah Community  /  Modification Archive  /  Hide text
Posted by: Nat, February 9, 2004, 4:51pm
One very popular feature on the forum script that I am running on my main site is a thing called "hide" What it does, it adds a new button for when you make a post called "hide" when a user clicks this, and enters any text between the tags, the only way another user can read it, is if they make a reply.
This has been great when you have "lurkers" on an open board, but you do not want them to see some text etc.
I do have the code for this (a .php board) but would not have a clue where to start with it ... Probably not possible.. but thought that I would mention it.. 
Posted by: Justin, February 9, 2004, 5:42pm; Reply: 1
Search for:
Code
   $message =~ s~\[s\](.*?)\[/s\]~<s>$1</s>~gsi;

Add this after it:

Code
   $message =~ s~\[hide\](.*?)\[/hide\]~~gsi;




That'll hide text between the lines.


Find it in Routines.pl
Posted by: djxite, January 2, 2006, 12:16pm; Reply: 2
so all u have to do is add this line to the routines.pl to use the feature
really badly need this hide feature for my site.
thx

OK I have just tested this, it seems that this feature is hiding the text, but permanantly, Could anyone pls advise me on how this would be visable after a member has replied to the topic??

BigThanx in advance  
Posted by: Martin, January 2, 2006, 12:52pm; Reply: 3
This mod does it for you if you are running 9.6

http://www.eblah.com/forum/m-1136205699/
Posted by: djxite, January 2, 2006, 12:53pm; Reply: 4
thx v much il give it a whirl!

it seems im not runnin 9.6
Quoted Text
Powered by E-Blah Platinum 5 © 2001-2004   -   January 2nd, 2006, 7:57pm
Posted by: Martin, January 2, 2006, 12:58pm; Reply: 5
Platinum 5 !!!!!

You really should upgrade, this mod is very unlikely to work with 5
Posted by: Justin, January 2, 2006, 1:40pm; Reply: 6
Quoted from Warlock
Platinum 5 !!!!!

You really should upgrade, this mod is very unlikely to work with 5


Nah, it should .... but P5 is so old.
Posted by: djxite, January 2, 2006, 2:34pm; Reply: 7
well it doesnt read the mod in the admin CP on 5, so im guessing no it doesnt work.

and i just tried installin 9.6 but i dont hav a clue as its setup is completely different from like i used 2 install 5, not having much success as i cannot read setup.pl thru IE
lucky i made a backup of 5

Anyway justin, so if it is possible to run this mod in P5 how do i install the mod if it will not read the *.v2m file from Admin CP
Posted by: Craig, January 2, 2006, 3:18pm; Reply: 8
What Justin and Martin are forgetting is that somewhere around P8.3 Justin re-did the Mod center and that is why that mod won't work.

If you want, I can upgrade your forum for you...just pm me your ftp details and web address.

But before you do that, why don't you take a look at the install docs @ http://www.blahdocs.com/installnew

There is a doc there for upgrading from P5 to P9.  I'm interested to see if it works with an upgrade to P9.6...but again, if you don't want to go throught he pain of doing it, I will do it for you.
-Craig.
Posted by: djxite, January 2, 2006, 3:23pm; Reply: 9
i have use the docs every time, i wouldnt be able to get anywhere without them, but still no joy, i must be doing something wrong, i used the install provided from my ISP before, i think that's why it must have been much easier before.

*wow thats very nice of you
i know very little about programming, and i suppose that is why am i having difficulty sorting all of this out
I would be very greatfull if you could install 9.6 for me
i will pm u the details THANX!
Posted by: Justin, January 2, 2006, 3:41pm; Reply: 10
Quoted from scrappy
What Justin and Martin are forgetting is that somewhere around P8.3 Justin re-did the Mod center and that is why that mod won't work.

If you want, I can upgrade your forum for you...just pm me your ftp details and web address.

But before you do that, why don't you take a look at the install docs @ http://www.blahdocs.com/installnew

There is a doc there for upgrading from P5 to P9.  I'm interested to see if it works with an upgrade to P9.6...but again, if you don't want to go throught he pain of doing it, I will do it for you.
-Craig.


Was it that long ago?  Wow ..
Posted by: Craig, January 2, 2006, 4:28pm; Reply: 11
I think so, but I would have to check...actually, now that I think about it, it was at the start of P9.

BTW, there are still a lot of bugs in the Mod center...and I might add that you are getting a lot of them now...so you might want to fix those :P.
Posted by: djxite, January 2, 2006, 4:48pm; Reply: 12
OK now with big thanks to craig the my forum has now been updated to 9.6 although the  hide/spoiler mod that was added, is still allowing the hidden txt to be visable to everyone not just people who have replied.

This was my original query. does anyone understand what i want it to do. i know they have this feature on many other forums.
thanx
Posted by: Martin, January 2, 2006, 5:09pm; Reply: 13
When I wrote it it was on the spare of the moment, just needed to kill a bit of time.

The bit that is puzzeling me is what do they reply to if the text is hidden until they reply??
Posted by: Nat, January 2, 2006, 5:12pm; Reply: 14
What it should do Martin is say I want to write something here like "if you want to read this this you have to reply" Then the only way you can read it is if you make a reply/post a message. This is common mod on the likes of VBB IB etc..
Posted by: djxite, January 2, 2006, 5:16pm; Reply: 15
WHat they do is! they'll have sum text like this then it will go on to

[hide] and they will have whatever written in here[/hide]

and that section will be hidden until they reply whilst the rest is visible
Posted by: Martin, January 2, 2006, 5:19pm; Reply: 16
I'll see what I can come up with
Posted by: Nat, January 2, 2006, 5:19pm; Reply: 17
Take you time Martin.. you are doing so much as it is for everyone...
Posted by: Martin, January 3, 2006, 5:31am; Reply: 18
OK, had a play, go to my test site, http://www.pchelp4free.myby.co.uk/forum/Blah.pl?
join and then try read the spoiler posts
Posted by: djxite, January 3, 2006, 1:09pm; Reply: 19
is still doin the same same on the 2 i can c, can still see both before i have replied
Posted by: Martin, January 3, 2006, 3:20pm; Reply: 20
Now that's where you are wrong my friend. If you had actually replied to one of the messages, the "You need to reply to read this text" would have shown what is really in the spoiler next time you clicked the show button.
Posted by: djxite, January 4, 2006, 6:16am; Reply: 21
i have seen, i now apologise for doubting you!!!

yes it works, but wot code do u use for that 2 happen as there are 2 peices of text within the spoiler or is it auto - where its says u need 2 reply to read this!

have just tested this new update on my site and it does not appear to be doing what it should on my site, still every member can see it.
REALLY APPRECIATE YOUR HELP ON THIS GUYS! mainly martin it seems!
THANX!
Posted by: Martin, January 4, 2006, 8:43am; Reply: 22
The "You need to reply to read this text" is automatic, you can put in what ever you want it to say before you upload the mod.

I haven't posted the updated version yet  ;D
Posted by: Nat, January 4, 2006, 1:23pm; Reply: 23
Nice one Martin.. looking forward to the new release.
Posted by: djxite, January 5, 2006, 5:48am; Reply: 24
Quoted from Nat
Nice one Martin.. looking forward to the new release.




ME 2 cant wait   ;D
Posted by: djxite, January 6, 2006, 6:27pm; Reply: 25
Quoted from Warlock
The "You need to reply to read this text" is automatic, you can put in what ever you want it to say before you upload the mod.

I haven't posted the updated version yet  ;D


sorry 2 keep bothering you about this but any chance of you uploading this anytime soon?  :-/
honestly my whole sites purpose revolves around this being there.
;D
Posted by: Martin, January 7, 2006, 2:43am; Reply: 26
I haven't fully tested it, I can email you what I have.

Admin see all hidden text, Guests see nothing and members see once they become active in the thread.

It is proving too difficult the setup for each individual hidden text within a thread so once they have made a reply they will then see all hidden text in that thread.
Posted by: djxite, January 8, 2006, 5:05am; Reply: 27
yes martin thats sounds like it perfectly how it should work! guest r not a problem my site u need 2 b logged in anyway to see anything

Any chance that you could email me wot u have now pls? i would b very greatful, im sure i could do the testing on my site for u, n get u some feedbak

thanx!
Posted by: Martin, January 8, 2006, 8:08am; Reply: 28
Sent  ;D
Print page generated: November 20, 2008, 9:34am