Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Modifications    Modification Archive  ›  Hide text Moderators: 10 Series Support Team
Users Browsing Forum
No Members and 2 Guests

Hide text  This thread currently has 2,214 views. Print
2 Pages 1 2 » Recommend Thread
Nat
February 9, 2004, 4:51pm Report to Moderator Report to Moderator

Here to help
Administrator
Posts: 1,876
Gender: Male
Posts Per Day: 2.21
Reputation: 88.64%
Reputation Score: +39 / -5
Time Online: 1 days 3 hours 58 minutes
Location: Manchester UK
Age: 49
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.. 


"Thats the way the mop flops"
Logged Offline
Site Site Private Message Private message
Justin
February 9, 2004, 5:42pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,196
Gender: Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
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


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 1 - 28
djxite
January 2, 2006, 12:16pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 14
Posts Per Day: 0.01
Time Online: 4 hours 3 minutes
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  

Revision History (1 edits)
djxite  -  January 2, 2006, 12:43pm
Logged Offline
Private Message Private message Reply: 2 - 28
Martin
January 2, 2006, 12:52pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 5,171
Gender: Male
Posts Per Day: 1.97
Reputation: 98.41%
Reputation Score: +247 / -4
Time Online: 39 days 9 hours 4 minutes
Location: UK
Age: 53
This mod does it for you if you are running 9.6

http://www.eblah.com/forum/m-1136205699/



Martin's Reputation: Increase
Logged
Site Site Private Message Private message Reply: 3 - 28
djxite
January 2, 2006, 12:53pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 14
Posts Per Day: 0.01
Time Online: 4 hours 3 minutes
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
Logged Offline
Private Message Private message Reply: 4 - 28
Martin
January 2, 2006, 12:58pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 5,171
Gender: Male
Posts Per Day: 1.97
Reputation: 98.41%
Reputation Score: +247 / -4
Time Online: 39 days 9 hours 4 minutes
Location: UK
Age: 53
Platinum 5 !!!!!

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



Martin's Reputation: Increase
Logged
Site Site Private Message Private message Reply: 5 - 28
Justin
January 2, 2006, 1:40pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,196
Gender: Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
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.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 6 - 28
djxite
January 2, 2006, 2:34pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 14
Posts Per Day: 0.01
Time Online: 4 hours 3 minutes
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
Logged Offline
Private Message Private message Reply: 7 - 28
Craig
January 2, 2006, 3:18pm Report to Moderator Report to Moderator

SQL Support Team
Posts: 3,611
Gender: Male
Posts Per Day: 1.26
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 54 minutes
Location: Germany
Age: 41
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.


Don't just ask a question.
Instead ask a question, give us a screen shot and post a link to your forum.
Help us help you make your forum better!


If I helped...increase my Reputation by clicking here.
Logged Offline
Site Site Private Message Private message ICQ ICQ Reply: 8 - 28
djxite
January 2, 2006, 3:23pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 14
Posts Per Day: 0.01
Time Online: 4 hours 3 minutes
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!
Logged Offline
Private Message Private message Reply: 9 - 28
Justin
January 2, 2006, 3:41pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,196
Gender: Male
Posts Per Day: 4.37
Reputation: 93.25%
Reputation Score: +304 / -22
Time Online: 37 days 19 hours 48 minutes
Location: Tallassee, AL
Age: 25
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 ..


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  | Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV
Logged Offline
Site Site Private Message Private message Reply: 10 - 28
Craig
January 2, 2006, 4:28pm Report to Moderator Report to Moderator

SQL Support Team
Posts: 3,611
Gender: Male
Posts Per Day: 1.26
Reputation: 97.73%
Reputation Score: +215 / -5
Time Online: 14 days 15 hours 54 minutes
Location: Germany
Age: 41
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 .


Don't just ask a question.
Instead ask a question, give us a screen shot and post a link to your forum.
Help us help you make your forum better!


If I helped...increase my Reputation by clicking here.
Logged Offline
Site Site Private Message Private message ICQ ICQ Reply: 11 - 28
djxite
January 2, 2006, 4:48pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 14
Posts Per Day: 0.01
Time Online: 4 hours 3 minutes
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
Logged Offline
Private Message Private message Reply: 12 - 28
Martin
January 2, 2006, 5:09pm Report to Moderator Report to Moderator

I love E-Blah
10 Series Support Team
Posts: 5,171
Gender: Male
Posts Per Day: 1.97
Reputation: 98.41%
Reputation Score: +247 / -4
Time Online: 39 days 9 hours 4 minutes
Location: UK
Age: 53
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??



Martin's Reputation: Increase
Logged
Site Site Private Message Private message Reply: 13 - 28
Nat
January 2, 2006, 5:12pm Report to Moderator Report to Moderator

Here to help
Administrator
Posts: 1,876
Gender: Male
Posts Per Day: 2.21
Reputation: 88.64%
Reputation Score: +39 / -5
Time Online: 1 days 3 hours 58 minutes
Location: Manchester UK
Age: 49
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..


"Thats the way the mop flops"
Logged Offline
Site Site Private Message Private message Reply: 14 - 28
2 Pages 1 2 » Recommend Thread
Print

E-Blah Community    Modifications    Modification Archive  ›  Hide text