If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
change the #@*%! censor message  XML
Forum Index » Support Forum
Author Message
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

could one of you knowledgeable people tell me which file contains the #@*%! censor message I want to edit it - why? - don't ask!
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Are we talking about the Advanced Guestbook? If so it can be found in lib/vars.inc.php. Look for $replace = "#@*%!"; and simply change the #@*%! part.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

Yes I was referring to the Advanced Guestbook.

Your reply spot on - Thank You very much sir.

Just in case you're curious, I did say don't ask, but I'm re-designing my bands site http://www.drrink.co.uk if you look it's still the old version - still revamping locally.

We are a little bit precious over how to spell our name: drrinK!
not Drrink, DRRINK or drink. The censor feature in AGB seems too good not to abuse!

Before I go live, I'm transferring the old simple GB entries into AGB at a tempory location (http://www.jrmmusic.co.uk) presently I'm doing it by hand in phpMyAdmin using insert edit as the raw data would be incompatible the simple GB data uses the same date encoding so I'm just cutting and pasting my way through it.

Is there a better way? If not - I was wondering if in any future releases a similar insert command could be put in the administration section of AGB? from the forum it looks as if other users would be interested in such a feature.

Been looking at your site carbonize excellent work and very helpfull content.

Thanks again,

fj
[Email] [WWW]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

I've just made the changes in lib/vars.class.php
assume it's a similar file to lib/vars.inc.php.
as I found $replace = "#@*%!"; and changed the #@*%!
part but strangely if I replace it with drrinK! I get multiple !!! - if I leave out the ! don't get any.
fj
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

yeah sorry thats the file I meant. Try replacing with

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

just tried the single quotes same result !!!
by the way - Thank You for taking the time to help
it's much appreciated
fj
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

did it return multiple! with the original replacement?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

yep

I've tried a few variations I guess it doesn't like the amount of letters:
"drri!" & 'drrin!' work but "drrinK!" and 'drrink!' return drrinK!!! or drrink!!!
I tried a phrase and it repeated 3 times I tried a gap before the last quote and got drrinK ! ! !


fj
[Email] [WWW]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Replace the ! with its HTML code.

Eg. A space in HTML is  

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Yup good answer Auron, I'm sure I would of thought of it eventually. I don't believe there is a code for ! though except maybe & #33; without the space (Stupid forum). I'm still going to look into it though as the default censor mssage ends in a ! as well.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

thanks for taking the time chaps,

I've tried a couple of variations (  &amp but AGB just displays whatever is between the quotes (be they single or double)

"another!" works ok

Oh dear just tried removing drink related banned words from administration/general settings and drinK! now replaces swear words it seems the multiple ! occurs only when the miss-spellings such as drink, Drink etc. are present in the banned word list.

might have to forget this one, would have been neat tho'
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

So basically you want to replace all instances of drink with drrinK! ?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

yes that's exactly what I'm after,

It's become a standing joke that very few people "spell" our name right.
The press and venues rarely get it! drrinK!

we get: drink (of course) but also DRINK drinkkk we've even had Driink (honest) and very rarely do they use the ! and we really want ! not !!!

Anyway I 'spose it's not really life or death but it would certainly amuse the band & our regulars if we could force the correct spelling on the guestbook

fj
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

hmmmmmm possible hack fix (and I mean hack)

1 - open lib/gb.class.php
2 - Locats $TPL['GB_ENTRIES'] = $GB_ENTRIES;
3 - replace it with $TPL['GB_ENTRIES'] = str_replace('drink', 'drrinK!', strtolower($GB_ENTRIES));

no promises it will work mind you. Remember if they put drink! it will make it say drrinK!!.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
fatjacK
Student
[Avatar]

Joined: 08/11/2004 22:27:28
Messages: 50
Location: Isle of Sheppey
Offline

THANK YOU

Good stuff it works! returns drrinK! for drrinK! as well - no double !!
It's sorted everything out. Thought I'd try other miss-spellings in administration now with your "hack" in place - they now work.

Thanks again, I'm going to enjoy this. I just have to pre-empt how many ways there are to miss-spell drrinK!

fj
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum