| Author | 
					Message | 
				
				 
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 13/12/2004 01:26:05
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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!
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 13/12/2004 05:08:49
	  
	
	
 						 | 
					
					
						
						
Carbonize
 
	Master
	 
		![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)  
  
	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 | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 13/12/2004 12:10:36
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 13/12/2004 16:02:15
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 13/12/2004 16:32:06
	  
	
	
 						 | 
					
					
						
						
Carbonize
 
	Master
	 
		![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)  
  
	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 | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 13/12/2004 22:41:51
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 13/12/2004 23:17:37
	  
	
	
 						 | 
					
					
						
						
Carbonize
 
	Master
	 
		![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)  
  
	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 | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 00:56:50
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 01:51:34
	  
	
	
 						 | 
					
					
						
						
Auron
 
	Expert
	 
		![[Avatar]](/forum/images/avatar/13803940053f323eaa510a6.jpg)  
  
	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) | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 08:46:26
	  
	
	
 						 | 
					
					
						
						
Carbonize
 
	Master
	 
		![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)  
  
	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 | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 12:48:08
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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 (  &  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'
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 14:29:53
	  
	
	
 						 | 
					
					
						
						
Carbonize
 
	Master
	 
		![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)  
  
	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 | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 14:51:15
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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
							
							
						 | 
					
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 16:10:48
	  
	
	
 						 | 
					
					
						
						
Carbonize
 
	Master
	 
		![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)  
  
	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 | 
						
		
					 
						| 
						 | 
					
	
					
						
	
				
		![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 14/12/2004 16:42:56
	  
	
	
 						 | 
					
					
						
						
fatjacK
 
	Student
	 
		![[Avatar]](/forum/images/avatar/198769503741ddc2f0e5c7b.gif)  
  
	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
							
							
						 | 
					
		
					 
						| 
						 | 
					
				
		
				
					| 
						
					 |