View Full Version : gal replace problem
acers
12-31-2005, 07:08 PM
jus check this thread:
http://www.techenclave.com/forums/test-64681.html#post327564
now the replacement is fine as long as the replacement text is not the first word. But if its first word in the post then its not replaced..
umm why is that? is it some bug?
The Geek
01-01-2006, 02:06 AM
GAL is designed to be picked up as the first word (see, its done it here!) - however looking at your source, the first word is preceeded directly by: <!-- google_ad_section_start -->FIRSTWORD which is screwing it up. (the google bit).
What is that?
acers
01-01-2006, 03:03 AM
vbseo
thats the google adsense block beginning.
any way i will tke it up
thanks
The Geek
01-01-2006, 10:57 AM
If its giving you a lot of problems, you can edit your gal_class_admin.php file and change:
$leadingchar='(?<=\\s|"right">|"left">|"center">|<li>|<span class="highlight">|<strong>|<b>|<i>)(?<!GAL--> )';
to
$leadingchar='(?<=\\s|"right">|"left">|"center">|<li>|<span class="highlight">|<strong>|<b>|<i>|<!-- google_ad_section_start -->)(?<!GAL--> )';
Personally, I dont think the extra overhead is worth it though ;)
HTHs
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.