[ABD] 4S-BB-Control - v.1.0.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by 4_seven » Sat Nov 29, 2008 11:51 am

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

search.php  

#
#-----[ FIND ]------------------------------------------
#

            // We pre-process some variables here for later usage

            $row['post_text'] = censor_text($row['post_text']);
of course it will be first "un-out-commanded", as corrected below....
will fix the install soon.

and thx 4 alternativ coding of info-boxes.
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
DoYouSpeakWak
Registered User
Posts: 2307
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Name: Hans Lassen
Contact:

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by DoYouSpeakWak » Sat Nov 29, 2008 6:02 pm

Is it posible to hide the bbcodes themselfes. Not what users view in viewtopic, but hide the bbcodes when posting ?

I also had a go at the custom bbcode, but that only replces the bbcode with a forbidden image. not hide them.

Thx for this mod btw. great for mod communication in topics. :D
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid phpBB help and System administrator services.

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by 4_seven » Sat Nov 29, 2008 11:08 pm

first thx 4 laudation
DoYouSpeakWak wrote:but hide the bbcodes when posting ?
you mean "hide the button of hidden bbcode" 4 whom, who have no rights 2 see it in viewtopic?

if yes, i'am working on it.
I also had a go at the custom bbcode, but that only replces the bbcode with a forbidden image. not hide them.
if you find the easteregg, you can make them complete hidden ;)
Current Mods | Mod Base | php(BB) programming | No help via PM

unicursal
Registered User
Posts: 15
Joined: Sun Dec 10, 2006 5:45 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by unicursal » Sun Nov 30, 2008 11:58 pm

Is it possible to use, say, bbcode in replacement text (to make it nicer :))?

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by 4_seven » Mon Dec 01, 2008 2:22 am

Is it possible to use, say, bbcode in replacement text
pls explain a little more, bcs i don't understand 100%
(to make it nicer :))
i think the mod is attractive enough
Current Mods | Mod Base | php(BB) programming | No help via PM

unicursal
Registered User
Posts: 15
Joined: Sun Dec 10, 2006 5:45 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by unicursal » Mon Dec 01, 2008 6:53 am

4_seven wrote:
Is it possible to use, say, bbcode in replacement text
pls explain a little more, bcs i don't understand 100%
(to make it nicer :))
i think the mod is attractive enough
I was talking about making "replacement text" look nicer, but you got me :)

Here's example of what I meant:

Code: Select all

Hide following BBCodes:  vip
Unhide for Group-IDs: 2,3

Enter Replacement-Text: [color=#408080][b][i]Hidden content for VIP members[/i][/b][/color]
And I yet to figure out how to preserve at least "new line", if I need it:

Code: Select all

Enter Replacement-Text: You can see this hidden part if \n  you are a member of group 'alpha'

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by 4_seven » Mon Dec 01, 2008 9:47 pm

unicursal wrote:Here's example of what I meant:

Code: Select all

Hide following BBCodes:  vip
Unhide for Group-IDs: 2,3

Enter Replacement-Text: [color=#408080][b][i]Hidden content for VIP members[/i][/b][/color]
at this time i don't know how i get bbcodes parse there.
to do this here and now u must edit it direct in source-code.
Current Mods | Mod Base | php(BB) programming | No help via PM

unicursal
Registered User
Posts: 15
Joined: Sun Dec 10, 2006 5:45 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by unicursal » Tue Dec 02, 2008 9:13 am

4_seven wrote:
unicursal wrote:Here's example of what I meant:

Code: Select all

Hide following BBCodes:  vip
Unhide for Group-IDs: 2,3

Enter Replacement-Text: [color=#408080][b][i]Hidden content for VIP members[/i][/b][/color]
at this time i don't know how i get bbcodes parse there.
to do this here and now u must edit it direct in source-code.
I think I got an idea: the problem is that if we put bbcode in Replacement-Text it will come to bbcode second parsing WITHOUT correspondent bbcode_uid

Code: Select all

[b]{TEXT}[/b]
as opposed to something like 
[b:3sdwufvd]{TEXT}[/b:3sdwufvd]
and, therefore would not get properly processed.

So, if you can come up with some code that would add bbcode_uid (actually, $row['bbcode_uid']) to all bbcodes inside Replacement-Text, it will do the trick. It should be something similar to what phpBB does before saving post to database, not sure where to look, though ...

I added bbcode_uid MANUALLY to my replacement text ([color=red:3sdwufvd]VIP[/color:3sdwufvd]) and it WORKED!

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by 4_seven » Tue Dec 02, 2008 11:32 pm

test it out and you're right- will see what is possible (if i have time next time...)
Current Mods | Mod Base | php(BB) programming | No help via PM

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by 4_seven » Mon Dec 15, 2008 5:44 pm

thx 4 suggestion + regards
Current Mods | Mod Base | php(BB) programming | No help via PM

the.ronin
Registered User
Posts: 184
Joined: Sun Oct 05, 2008 10:53 pm

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by the.ronin » Fri Dec 19, 2008 4:03 pm

This mod is the sweet sauce. Thank you!

the.ronin
Registered User
Posts: 184
Joined: Sun Oct 05, 2008 10:53 pm

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by the.ronin » Fri Dec 19, 2008 4:51 pm

Question ... how would I limit this functionality for a specific forum? Such that any other forum wouldn’t allow use of these bbcodes?

User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by 4_seven » Fri Dec 19, 2008 5:57 pm

hi and thx 4 laudation,

you mean, that only one forum have "visible content" and all other not!?
hm, must be theoretical simple. only thing is, that my time is limited @ this time.
if i have more from it next time, i integrate this function in acp.
Current Mods | Mod Base | php(BB) programming | No help via PM

the.ronin
Registered User
Posts: 184
Joined: Sun Oct 05, 2008 10:53 pm

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by the.ronin » Fri Dec 19, 2008 6:48 pm

4_seven wrote:hi and thx 4 laudation,

you mean, that only one forum have "visible content" and all other not!?
hm, must be theoretical simple. only thing is, that my time is limited @ this time.
if i have more from it next time, i integrate this function in acp.
Or more specifically, I can use the hidden content bbcodes in a particular forum only. But I think that’s what you meant.

I think a simple fix would be setting a variable in the post topic php defining what forum the user is in and in the html, checking if that variable equalled the selected forum and if so, show the bbcode buttons.

The user can still hardwire the bbcode but at least the buttons won’t be there.

A more involved fix which would not parse the hidden content bbcode would be way better though.


[edit]

Oh wait a minute ... perhaps it might be easier to make that change to your other mod, Custom BBCode Rights?? And assign forum rights (as opposed to user rights) to the hidden bbcode??

the.ronin
Registered User
Posts: 184
Joined: Sun Oct 05, 2008 10:53 pm

Re: [BETA] Hide Content 4 Groups - v.0.0.8.f

Post by the.ronin » Thu Dec 25, 2008 10:09 pm

Hi 4_seven and happy holidays to all!

I'm running into an issue with hidden content that have mixed bbcode within it. For starters here is my ACP panel ...

Image

Here is my bbcode definition ...

Image

Ok so here is the post that is viewable ...

Image

And here is the post that should have hidden content ...

Image

Any advice would be greatly appreciated. Thanks!

Locked

Return to “[3.0.x] Abandoned MODs”