View Full Version : Geek AutoLinker 4.0 RC2
The Geek
05-02-2005, 10:00 PM
This is a totally new version of the popular GAL3.0 system (https://vborg.vbsupport.ru/showthread.php?t=76054)
Thread closed. Release is gold here -> https://vborg.vbsupport.ru/showthread.php?threadid=76054
I am pretty cool that this package should be the final release. I have spent about 50 hours recoding this from the ground up but want a green light from you guys before I stick it in the current release thread.
In a nutshell this system replaces any keywords in posts with specific replacements (no, not like replacements in vb). It will do anything form simply link keywords all the way to produce poup boxes when doing a mouseover keywords.
The popups now support bbcode, html, multiple styles, titles, etc...
Other new features:
Track impressions, track hits, limit categories to certain forums, have usergroups toggle on.off certain forums, blahblahblahblah.
Basically its GAL 3 on Steroids.
O yea, the replacments are also a bit smarter :)
Upgrading:
From 2.6 and 3.0
Follow the install instructions in the readme. When you start up gal4_install.php, follow the upgrade path.
Please note that any replacement codes you added in 3.0 will go byebye. These are NOT your gal items... they are the global, category, or item level replacments that looked like something like this:
<a href="$link" title="$description">$text</a>
I would be shocked if anyone had more than 1 or 2 of these. If you modified them in any particular way - just copy them into notepad... run the install... then create new ones with the new system. REMEMBER: YOUR EXISTING GAL LINKS WILL BE PORTED SAFELY OVER!!!
Check out the extensive readme for details.
-=Sniper=-
05-03-2005, 02:23 PM
nice one dude :) I will be installing this later on, I still have the first one you release and have set it up to allow users to enable/disable it.
Kihon Kata
05-03-2005, 02:35 PM
Ok, so the real question is: I already run 3.06, what is the best way to UPGRADE?
The Geek
05-03-2005, 02:37 PM
Ok, so the real question is: I already run 3.06, what is the best way to UPGRADE?
run the upgrade path of the installer :)
BTW: WHere did you get your 3.06? I only released up to 3.0 ;)
You may have to manaully edit files on 3 steps if the autoinstaller cant do it for you - but they are pretty minor edits.
The Geek
05-03-2005, 02:39 PM
BTW: Its worth noting that your replacement codes are going to go byebye from version 3.0 as there is a new way of doing it.
If you had custom replacement codes - you may want to copy them down first.
Kihon Kata
05-03-2005, 02:42 PM
LOL! I meant 3.0 lol
run the upgrade path of the installer :)
BTW: WHere did you get your 3.06? I only released up to 3.0 ;)
You may have to manaully edit files on 3 steps if the autoinstaller cant do it for you - but they are pretty minor edits.
Can this one do word replacements?
Kihon Kata
05-03-2005, 02:44 PM
OH damn! Luckily I have NOT upgraded yet. So yes I will take a screenie of them. Oh man so many too...
BTW: Its worth noting that your replacement codes are going to go byebye from version 3.0 as there is a new way of doing it.
If you had custom replacement codes - you may want to copy them down first.
Mephisteus
05-03-2005, 02:44 PM
Damn, this IS GAL3 on steroids :)
Nice job, to bad I dont have a use for it right now...
The Geek
05-03-2005, 02:52 PM
OH damn! Luckily I have NOT upgraded yet. So yes I will take a screenie of them. Oh man so many too...
Tony - remember its the replacment codes - NOT your existing links and descriptions. Those will be ported over fine.
JimpsEd - Not sure I get you right. It is designed to replace words with whatever (primarily popup boxes).
Thanks Dark and Snipe. IMO THis is my greatest work to date. Very proud of it :)
HTH's
Kihon Kata
05-03-2005, 02:58 PM
Tony - remember its the replacment codes - NOT your existing links and descriptions. Those will be ported over fine.
JimpsEd - Not sure I get you right. It is designed to replace words with whatever (primarily popup boxes).
Thanks Dark and Snipe. IMO THis is my greatest work to date. Very proud of it :)
HTH's
Uh oh, I might be confused!
The Geek
05-03-2005, 03:02 PM
The replacement codes that wont get ported over were at global, category and item level and looked something like this:
<a href="$link" target='blank' title='$description'>$text</a>
Those wont make it over to the new version but you can add them in later is you have tweaked ones. If you didnt tweak them, dont worry about them.
All your existing keywords etc... will get ported over when you upgrade.
Kihon Kata
05-03-2005, 03:23 PM
The replacement codes that wont get ported over were at global, category and item level and looked something like this:
<a href="$link" target='blank' title='$description'>$text</a>
Those wont make it over to the new version but you can add them in later is you have tweaked ones. If you didnt tweak them, dont worry about them.
All your existing keywords etc... will get ported over when you upgrade.
Oh I did use these for the popups to work, can I just use the same ones again?:
<a href='$link' target='_blank' class='DEF' onmouseover="GAL_popup(this,$description);" onmouseout="GAL_hidepopup();">$text
The Geek
05-03-2005, 03:55 PM
Oh I did use these for the popups to work, can I just use the same ones again?:
<a href='$link' target='_blank' class='DEF' onmouseover="GAL_popup(this,$description);" onmouseout="GAL_hidepopup();">$text
yea - just copy them to notepad or something for now.
BTW - some of the column changes to geek_Autolinker do not appear to be happening... Hold off until further notice. I need to investigate :)
Kihon Kata
05-03-2005, 03:59 PM
BTW - some of the column changes to geek_Autolinker do not appear to be happening... Hold off until further notice. I need to investigate :) RODGER :banana:
OrangeFlea
05-03-2005, 03:59 PM
BTW: Its worth noting that your replacement codes are going to go byebye from version 3.0 as there is a new way of doing it.
If you had custom replacement codes - you may want to copy them down first.
Damnit, I have 900+ replacement codes. Is there a way to transfer them over? I can't simply copy them and paste them back into the system one-by-one again. Argh!
The Geek
05-03-2005, 04:05 PM
Damnit, I have 900+ replacement codes. Is there a way to transfer them over? I can't simply copy them and paste them back into the system one-by-one again. Argh!
New package uploaded which fixed some db typos.
Orange: All your links are fine.... the codes will disappear. I would be shocked if anyone had more than 1 or 2 replacement codes.
The Geek
05-03-2005, 04:46 PM
Just updated package to rc4.01 to fix a small typo in the GAL_admin.php file which led to some drop down menus in IE truncating the first option.
Funnily enough - FF didnt seem bothered ;)
To upgrade, just download the latest version and replace your GAL_admin.php file.
nJoy
T3MEDIA
05-03-2005, 05:02 PM
This really makes money for admins... nice.
Lionel
05-03-2005, 05:06 PM
Geek, very important question. Someone made for me a script that grabs name, url, id and description from vbaLinks and with a click, after edit I insert them in appropriate gal fields. This way, I have hudreds of gal links inserted on the fly.
Question: has anyone of those fields in gal changed?
The Geek
05-03-2005, 05:22 PM
Geek, very important question. Someone made for me a script that grabs name, url, id and description from vbaLinks and with a click, after edit I insert them in appropriate gal fields. This way, I have hudreds of gal links inserted on the fly.
Question: has anyone of those fields in gal changed?
Do you mean the geek_autolink fields?
SOme have changed but I wouldnt think that any you used would have changed.
The Geek
05-03-2005, 05:24 PM
BTW: just found another typo but its minor so Ill wait till the next update to address it.
In settings, the throttle field always comes up blank. It is saving it - but it isnt displaying it in the settings (which means if its blank and you click save it will overwrite to 0).
Nothing major though.
T3MEDIA
05-03-2005, 05:35 PM
odd bug... has it been talked about?
the forums dont save. only a few do.
even if I click all.
Also if I go into my Private messages this pops up:
Warning: Empty regular expression in /home/virtual/site1/fst/var/www/html/forums/includes/functions_gal.php on line 84
as you know line 84 is$gal_matches[$key]+=preg_match_all($find[$x],$text,$returned);
The Geek
05-03-2005, 05:48 PM
odd bug... has it been talked about?
the forums dont save. only a few do.
even if I click all.
Also if I go into my Private messages this pops up:
Warning: Empty regular expression in /home/virtual/site1/fst/var/www/html/forums/includes/functions_gal.php on line 84
as you know line 84 is$gal_matches[$key]+=preg_match_all($find[$x],$text,$returned);
hmmm. Just noticed the forums thing... Ill look into the other. In the meantime - turn off tracking.
T3MEDIA
05-03-2005, 05:50 PM
Also in the threads that show active this appears:
Unable to add cookies, header already sent.
File: /home/virtual/site1/fst/var/www/html/forums/includes/functions_gal.php
Line: 84
T3MEDIA
05-03-2005, 05:51 PM
hmmm. Just noticed the forums thing... Ill look into the other. In the meantime - turn off tracking.Still occurs when I turn off tracking!
:surprised:
The Geek
05-03-2005, 06:25 PM
Still occurs when I turn off tracking!
:surprised:
Just updated package to fix forum tick bug and the throttle typo.
T?media - grab the lastest package and just replace GAL_admin.php with the latest.
T3MEDIA
05-03-2005, 07:14 PM
no more errors. That was fast! but the tick forum issue is still there.
got some javascript errors as well.
but I can see this will be awsome once this is cleared up.
The Geek
05-03-2005, 07:24 PM
no more errors. That was fast! but the tick forum issue is still there.
got some javascript errors as well.
but I can see this will be awsome once this is cleared up.
Cool. Forum ticks should be working now... just retick and save... let me know :)
The Geek
05-03-2005, 07:26 PM
I just put it on my live site and already within a couple hours have had over 100 impressions on one keyword :)
(and it wasnt 'a') :)
T3MEDIA
05-03-2005, 09:34 PM
For some reason these things happen:
Links POP UP no matter what. even if I use "_self"
Ignore threadid (dont autolink this thread) is being ignored lol...
So no matter what the links pop up.
The Geek
05-03-2005, 09:40 PM
For some reason these things happen:
Links POP UP no matter what. even if I use "_self"
Ignore threadid (dont autolink this thread) is being ignored lol...
So no matter what the links pop up.
yea - I just fixed the ignore thread bug but havent updated. Do you mean that you want a standard link and it is still popping up?
Try clicking debug->rebuild and tell me if that sorts it.
T3MEDIA
05-03-2005, 09:54 PM
yea - I just fixed the ignore thread bug but havent updated. Do you mean that you want a standard link and it is still popping up?
Try clicking debug->rebuild and tell me if that sorts it.Yep your right... Thank you. I dont think I can find any other bugs. the forum still tick still stops. I have it with a LOT over 100.
Just so you know.
ImportPassion
05-03-2005, 09:55 PM
has anyone played with this with adsense or adsense search?
The Geek
05-03-2005, 10:00 PM
t3media - do you mean you have over 100 forums?
Do the ticks sort of 'run out' or are they sporadic (the earlier bug was sporadic).
I may not have a big enough field to hold the forums. If you seem to be running out, try changing the forumid field type in geek_autolink_cats to a medium text (if you can) and see if that helps.
Thanks for helping :)
7thgen - isnt adsense kind of like this? Sorry - I have never used it.
T3MEDIA
05-03-2005, 10:30 PM
t3media - do you mean you have over 100 forums?
Do the ticks sort of 'run out' or are they sporadic (the earlier bug was sporadic).
I may not have a big enough field to hold the forums. If you seem to be running out, try changing the forumid field type in geek_autolink_cats to a medium text (if you can) and see if that helps.They run out. Yes the site has over 100 Forums. There is a legit reason and they are all used.
I THINK I know what you mean with geek_autolink_cats. Be a bit more specific so I am sure please.
The Geek
05-03-2005, 10:33 PM
They run out. Yes the site has over 100 Forums. There is a legit reason and they are all used.
I THINK I know what you mean with geek_autolink_cats. Be a bit more specific so I am sure please.
If you have phpMyAdmin, just go into geek_autolink_cats... edit the forumid column... change the datatype from varchar to mediumtext...remove the 255 size and save it.
Then try to re-tick your forums and see if it saves. My guess is that it will. If it does I will then update the package to change the datatype of that field.
Thanks
ImportPassion
05-04-2005, 12:59 AM
7thgen - isnt adsense kind of like this? Sorry - I have never used it.
no, not at all.
Lizard King
05-04-2005, 01:21 AM
My replacement words donot show up at all. Is there something I am missing ?
I have a word here
word supposed to be autolinked but it shows me :
I have a here
When I edit a replacement word I have the following settings :
Subjest : Nirvana
Expires : Empty
Replacement Text : Nirvana
Link : http://forum.ayyas.com/showthread.php?t=4758
Ignore threadid : 0
Description : Nirvana Biyografisi
Ordinal : 0
Impressions : 0
Click Thrus : 0
Category Name : Eklenenler
Cached regex : #(\s(\bNirvana\b)s?)#im
Cached Replacement : <a href='autolink.php?id=36{TRACK_HITS}' target='_self' class='DEF' title='Nirvana <!--GAL_REMOVAL-->Biyografisi'><!--GAL_REMOVAL-->$1</a>
edit : It only happens in safe mode , when I change it to danger mode it started working correctly.
edit 2 : When I try to check the stats i get the following error :
Warning: Invalid argument supplied for foreach() in /admincp/GAL_admin.php on line 1146
ImportPassion
05-04-2005, 02:46 AM
when i try to rebuild, there is a missing phrase, GA_rebuilt
ImportPassion
05-04-2005, 02:53 AM
wtf does this mean? "Thats a pants link and you know it!"
ImportPassion
05-04-2005, 02:59 AM
edit 2 : When I try to check the stats i get the following error :
Warning: Invalid argument supplied for foreach() in /admincp/GAL_admin.php on line 1146
I am getting this as well. I think it's only when u don't have stats to show.
The Geek
05-04-2005, 06:05 AM
Lizard - is it still happening? It looks ok from here. Try debug->rebuild and see if that helps.
7th - Ill sort the missing phrase. If it looks like the link isnt valid - it lets you know.
And yes - the stats throw up an error if there is no info. Ill fix these this morning.
Thanks guys
Lionel
05-04-2005, 06:45 AM
Geek, how can I make calendar events display autolinks? If that is at all possible? I post events in calendar and people can comment on them. I tried to put in 'smiliecache', 'gal_text', 'gal_links', 'gal_ignores','GAL_settings', in the special templates, but that does not work.
Lizard King
05-04-2005, 07:10 AM
Lizard - is it still happening? It looks ok from here. Try debug->rebuild and see if that helps.
I sorted it out. Thanks geek :) Waiting for the fix and you did an awesome job. This version is pretty good.
The Geek
05-04-2005, 07:49 AM
Geek, how can I make calendar events display autolinks? If that is at all possible? I post events in calendar and people can comment on them. I tried to put in 'smiliecache', 'gal_text', 'gal_links', 'gal_ignores','GAL_settings', in the special templates, but that does not work.
lionel - you should only have to put:
$linked_text=process_gal_text($text_wanting_to_be_ linked);
whereever you want text to get linked. You will also need to put
persist_gal_impressions();
Somewhere on that page if you want to record tracking info. Put it before print_output but after all the linking is done.
HTH's
New release will be later today. I am just waiting on any other bugs to fix first.
Lionel
05-04-2005, 07:56 AM
Hum, when I put that in calendar.php I get a blank page. I also have not upgraded yet.
The Geek
05-04-2005, 08:03 AM
Hum, when I put that in calendar.php I get a blank page. I also have not upgraded yet.
you mean to 4.0?
Only 4.0 will allow you to do that command.
Lionel
05-04-2005, 08:07 AM
Got you. Thanks, will do it later.
Craigr
05-04-2005, 09:37 AM
I just put it on my live site and already within a couple hours have had over 100 impressions on one keyword :)
(and it wasnt 'a') :)
Nice, hack, do you have any direct url so i can see it working?
Nice looking site too.
Getting an error when I edit the showthread.php
Fatal error: Call to undefined function: process_gal_text() in /usr/home/thetechg/public_html/retreat/includes/functions_showthread.php on line 1357
Lizard King
05-04-2005, 10:52 AM
Getting an error when I edit the showthread.php
Fatal error: Call to undefined function: process_gal_text() in /usr/home/thetechg/public_html/retreat/includes/functions_showthread.php on line 1357
TTG are you sure you made all the edits in showthread. I checked right now and didn't get any error.
I think there are 2 file edits in showthread.
The Geek
05-04-2005, 10:53 AM
Getting an error when I edit the showthread.php
Fatal error: Call to undefined function: process_gal_text() in /usr/home/thetechg/public_html/retreat/includes/functions_showthread.php on line 1357
ttg - check the file edit to global. And make sure the files are all uploaded.
ttg - check the file edit to global. And make sure the files are all uploaded.
That was the one I missed .. thanks The Geek :)
T3MEDIA
05-04-2005, 02:04 PM
Well after some harsh testing I can not find any other errors on my side.
I find the pop up takes cr returns dubble when you only put single.
I think you should have a switch. HTML VB or TXT. txt has a fixed box size.
Ummm the link name should show up in the display box. or at least with the discription. after you change it you may for get... oh yeah this link is cars.
I did this with 35 links in frames and out of frames. the _self tag works so... seems cool.
I wish I knew css I would love a more fancy box. I seen some sexy ones here and there on sites.
I also was thinking for my self I would like the link to be a solid background.
Some sites have that. I wish I could show you an example. but say instead of a underline the whole background of the link is blue.
catches the eye better I find.
If this honestly with the clicktru's and all that isnt Hack of the month they should just close this place down.
This and a few others (since this IS Geeks thread) are like the bests ones on here.
This can make you money if your smart.
Hint for the Google people. No money in that.... the word you want to learn is affiliate. BELIVE me.
Lionel
05-05-2005, 12:39 AM
Help. I did the upgrade, checked twice, everything looks good, but step 300 in functions_showthread is causing me to have a blank page
Lionel
05-05-2005, 01:44 AM
OK I got it to work by saving one link again. Not sure if it's because I made that one expire. But I do have another problem: When I select all categories, it is checking all, then I save and look again, half of them is unchecked.
Lionel
05-05-2005, 01:54 AM
Hum, found out why: forumids varchar(255). That takes care of only half of my forums, specially they have 3 digits IDs :-)
Lionel
05-05-2005, 02:04 AM
What is going on? I unselected some forums, selected some more, and I am getting blank showthread again.
I went back to select all, it is giving me a blank page for all those selected. Since half of them although selected could not be selected, those display, but of course not the autolink.
This appears to behave like if there are no autolinks in the page, showthread will not display.
The Geek
05-05-2005, 09:11 AM
What is going on? I unselected some forums, selected some more, and I am getting blank showthread again.
I went back to select all, it is giving me a blank page for all those selected. Since half of them although selected could not be selected, those display, but of course not the autolink.
This appears to behave like if there are no autolinks in the page, showthread will not display.
click debug->rebuild and let me know if that helps.
Lionel
05-05-2005, 09:14 AM
debug shows empty earlier. Now I get some:
Find #((\bAssociated Press\b)s?)#im
Replace <a href='autolink.php?id=10{TRACK_HITS}' target='_blank' class='DEF' onmouseover='GAL_popup(this,1, "International <!--GAL_REMOVAL-->News <!--GAL_REMOVAL-->Agency", "border: 1pt solid;background: #FFFFCC;padding: 1px;font: 8pt;", "0", " Associated Press", "border: 1pt solid;background: #FFFFCC;padding: 1px;font: 8pt;", "0");' onmouseout='GAL_hidepopup();'>$1</a>
Lionel
05-05-2005, 09:22 AM
Debug/rebuild seemed to help. About the forums list being too long, can I put "*" directly in db to make it for all? I am missing half the forums.
The Geek
05-05-2005, 09:55 AM
Debug/rebuild seemed to help. About the forums list being too long, can I put "*" directly in db to make it for all? I am missing half the forums.
Change the datatype of forumid in geek_autolink_cats from varchar(255) to mediumtext
That will sort it (this has been changed in the next update)
Lionel
05-05-2005, 10:12 AM
Geek, thank you very much. This is truly an amazing mod.
When I add a new category only half of the forums are checked, clicking "check all" and save does nothing ?
Links don't work any longer. All worked well with version 3, can I re-install version 3 or will that create more problems ?
Lionel
05-05-2005, 10:28 AM
you have to change forums table from varchar(255) into mediumtxt and debug/rebuild
you have to change forums table from varchar(255) into mediumtxt and debug/rebuild
Thanks Lionel .. that solved it.
Lionel
05-05-2005, 11:11 AM
Looks like the ignore function is giving me a hard time. I created an article in gas, then tried to autolink and placed the threadid in ignore, but it is displaying as linked in article.
T3MEDIA
05-05-2005, 12:10 PM
AH HA! I found something new. (maybe its not) in the Link description if you put a "'" the popup will disapear...
example.
Title Ain't worth it!
Expires Month
- - -
Ain't will make the pop-up title well the whole pop up not pop up.
say that two times fast!
The Geek
05-05-2005, 12:13 PM
AH HA! I found something new. (maybe its not) in the Link description if you put a "'" the popup will disapear...
example.
Title Ain't worth it!
Expires Month
- - -
Ain't will make the pop-up title well the whole pop up not pop up.
say that two times fast!
thanks - ill look into it.
Ignoreid is a known issue - its sorted for next release (same with the forumids problem).
I think I have it all pretty much licked. Im just messing about with the stats layout then Ill release 1 more package.
Lionel
05-05-2005, 07:51 PM
OK Geek, got it working in calendar. Sorry for posting in wrong thread earlier.
The Geek
05-05-2005, 08:09 PM
no prob - I actually didnt notice until after I had posted :)
Lionel
05-05-2005, 08:12 PM
People are already driving me crazy. We use accents in my language. So I must enter double entries, because sometimes they do Hérard and sometimes just Herard. Is there a way to avoid the double entries and ignore accents?
The Geek
05-05-2005, 08:24 PM
People are already driving me crazy. We use accents in my language. So I must enter double entries, because sometimes they do H?rard and sometimes just Herard. Is there a way to avoid the double entries and ignore accents?
GAL4.0 supports multiple entries so you can put:
bob,bobby
for 1 entry. Each entry needs to be seperated by a comma.
Damn good thing Im psycic and figured you needed that feature :)
Lionel
05-05-2005, 08:25 PM
God! Give me 6 lotto numbers.
T3MEDIA
05-05-2005, 09:24 PM
GAL4.0 supports multiple entries so you can put:
bob,bobby
for 1 entry. Each entry needs to be seperated by a comma.
Damn good thing Im psycic and figured you needed that feature :)now (this member of vbulletin.org) tells us!
stroke25
05-06-2005, 01:52 AM
excellent hack.
I do have a minor problem.I can't get the ordinal to work.It didnt work with 3.0 version either for me.
Example i have
ordinal 1 - Keyword Phrase
ordinal 2 - Keyword
No matter what it does ordinal 2. Ive tried debug.
Am i doing somthing wrong?
The Geek
05-06-2005, 06:42 AM
you certain keyword phrase would qualify in the instance you site? Seems to work from my end. Can you try several tests?
stroke25
05-06-2005, 04:11 PM
pm sent with test url.
Neutral Singh
05-07-2005, 12:18 AM
Wonderful Hack as usual from The Geek and atlast i have a gr8 glossary option at my hands. Thanks a ton.
i have this warning message showing consistantly when i click Display in Admin CP.:
Warning: Invalid argument supplied for foreach() in /admincp/GAL_admin.php on line 1146
Is there anyway, where i have no need to enter an url e.g. if the link is to be used as a Glossary, i need no link but just the yellow box coz if leave the link option blank i am shown the "pants" :nervous: message ??
Best Regards
The Geek
05-07-2005, 05:44 AM
Wonderful Hack as usual from The Geek and atlast i have a gr8 glossary option at my hands. Thanks a ton.
i have this warning message showing consistantly when i click Display in Admin CP.:
Warning: Invalid argument supplied for foreach() in /admincp/GAL_admin.php on line 1146
Is there anyway, where i have no need to enter an url e.g. if the link is to be used as a Glossary, i need no link but just the yellow box coz if leave the link option blank i am shown the "pants" :nervous: message ??
Best Regards
Ill remove the url check. Just put anything in for now.
Make sure you have your styles and replacements entered as per the readme. The error is most likely caused because you are missing one of those.
The Geek
05-07-2005, 12:50 PM
Updated to 4RC2.
IMPORTANT: You MUST read the README!!! At the bottom is the instructions to upgrade from rc1x to rc2.
New additions:
Width property for popup (200 is a good figure)
Stats enhanced
Bugs squashed
New box style property - allows you to have a solid style instead of 2.
nJoy
Lizard King
05-07-2005, 06:00 PM
Geek there is a problem. When I make the edit in vbulletin_menu.js and upload it (RC2) the menu's in navbar are not working. When i uploaded the old backup they start to work. Here is my vbulletin_menu.js maybe i did a worng file edit :
var vbmenu_usepopups = true;
var vbmenu_registered = new Array();
var vbmenu_initialized = new Array();
var vbmenu_activemenus = new Array();
var vbmenu_currentactive = false;
var slidetimer = false;
var vbmenu_opensteps = 10;
var vbmenu_doslide = true;
var vbmenu_dofade = false; // can be very slow
var vbmenu_datefields = new Array();
function GAL_popup(e,offset,width, box_style, value,value_style, title, title_style){
if (!offset){
offset=1;
}
var leftpx = fetch_object_posleft(e);
var toppx = fetch_object_postop(e) + e.offsetHeight;
var dest=fetch_object("GALBox");
toppx=toppx-offset;
//value=value.replace(/
/g,'<br />');
//title=title.replace(/
/g,'<br />');
dest.style.left = leftpx + "px";
dest.style.top = toppx + "px";
if (width){
width=" Width='" + width + "' ";
}
var innerhtml="<table border='0' cellpadding='5' cellspacing='0' " + box_style + width + "><tr><td ";
if (title){
innerhtml=innerhtml + title_style + "'>" + title + "</td></tr><tr><td ";
}
innerhtml= innerhtml + value_style + "'>" + value + "</td></tr></table>";
dest.innerHTML=innerhtml;
//alert(innerhtml);
if ((window.document.body.clientWidth-dest.offsetWidth)<leftpx){
leftpx=window.document.body.clientWidth-dest.offsetWidth;
dest.style.left = leftpx + "px";
}
dest.style.visibility='visible';
}
function GAL_hidepopup(){
fetch_object("GALBox").style.visibility='hidden';
}
// ################################################## ###########################
// another function to handle the different event models of different browsers
Didn't paste the rest cause it was not needed.
stroke25
05-07-2005, 09:48 PM
Geek there is a problem. When I make the edit in vbulletin_menu.js and upload it (RC2) the menu's in navbar are not working. When i uploaded the old backup they start to work. Here is my vbulletin_menu.js maybe i did a worng file
I also had the exact same problem.I just put my old vbulletin_menu.js file back and works now. Also im now getting a mysql error when adding a new category.
T3MEDIA
05-08-2005, 02:00 AM
Hey geek some forums are breaking up weird... check it out.
i recently was talkin to a girlfriend of mine who had went on a first Dating Ideas", "border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;background: #CCCCCC;padding: 1px;font: 8pt;font-weight: bold;color: #000000;", "0");' onmouseout='GAL_hidepopup();'> date with this guy she met.
The Geek
05-08-2005, 06:55 AM
Guys - in your vbulletin_menu.js file.... remove these lines:
//value=value.replace(/\n/g,'<br />');
//title=title.replace(/\n/g,'<br />');
To see if that helps. If so then ill update the package. It looks like that line went screwy. Doesnt matter anyway as they are no longet needed.
The Geek
05-08-2005, 06:56 AM
t3media - did you do the changes required in the readme to update from rc1 to rc2?
Lizard King
05-08-2005, 10:19 AM
Guys - in your vbulletin_menu.js file.... remove these lines:
//value=value.replace(/\n/g,'<br />');
//title=title.replace(/\n/g,'<br />');
To see if that helps. If so then ill update the package. It looks like that line went screwy. Doesnt matter anyway as they are no longet needed.
That solved the menu problem for me but now the pop up is not working. If you want to check here (http://forum.ayyas.com/showthread.php?t=7867) Tom Waits is auto linked but pop up is not working.
The Geek
05-08-2005, 12:38 PM
That solved the menu problem for me but now the pop up is not working. If you want to check here (http://forum.ayyas.com/showthread.php?t=7867) Tom Waits is auto linked but pop up is not working.
There is a typo in the readme.
Re: the popup replacement codes (the one with a title and the one with no title). Edit them and change:
"$gal_box_style" "$gal_description",
to
"$gal_box_style","$gal_description",
Then click debug->rebuild
Craigr
05-08-2005, 01:30 PM
Also im now getting a mysql error when adding a new category.
I too get a SQL error when adding a new category.
Lizard King
05-08-2005, 02:01 PM
This is the error when you try to add a categorie
Database error in vBulletin 3.0.7:
Invalid SQL: INSERT INTO geek_autolink_cats
(description,
ordinal,
forumids,
usergroups_exempt,
exempt_field,
exempt_value,
replacementid,
box_styleid,
styleid,
offset,
title_styleid,
title_prefix,
track_views,
track_hits,
width) VALUES
('Test',
0,'0,3,23,38,14,15,13,17,32,8,40,25,24,33,5,7,30,3 6,22,10,9,11,19,16,4,6,42,41,28,37,34,12,',
''
,2,
''
,1,
,
5,
1,
5,
''
,1,
1, 0)
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
5,
1,
5,
mysql error number: 1064
Date: Sunday 08th of May 2005 11:00:23 AM
Script: http://forum.ayyas.com/admincp/GAL_admin.php
Referer: http://forum.ayyas.com/admincp/GAL_admin.php?do=addcat
Username: Lizard King
I have upgraded. I am not getting any errors or anything, just my word is missing? I have oasis as my word and it is linked to another site but it has just dissapeared. Am I going something wrong or is this something I am missing?
nevermind. I should read. Thanxs Geek for the outstanding support you offer for your hacks.
Ok, I am getting a database error also when trying to add a category.
in vbulletin_menu.js there is something wrong there. It kills all my drop boxes in the nav bar. Thought I would let you know about it.
Lizard King
05-08-2005, 06:07 PM
in vbulletin_menu.js there is something wrong there. It kills all my drop boxes in the nav bar. Thought I would let you know about it.
https://vborg.vbsupport.ru/showpost.php?p=650720&postcount=89
check this post just one page before. there is a fix for this.
The Geek
05-08-2005, 06:55 PM
Package updated.
To upgrade form rc1 - follow the upgrade instructions toward the bottom of the readme.
To upgrade from the previous rc2 - just replace GAL_admin.php, replace your popup with title, popup with no title replacements with the ones in the readme (unless you applied the comman fix a few posts back) and replace the vbulletin_menu.js file change (unless you already removed the two commented lines mentioned a few posts back).
nJoy
T3MEDIA
05-08-2005, 11:38 PM
Package updated.
To upgrade form rc1 - follow the upgrade instructions toward the bottom of the readme.
To upgrade from the previous rc2 - just replace GAL_admin.php, replace your popup with title, popup with no title replacements with the ones in the readme (unless you applied the comman fix a few posts back) and replace the vbulletin_menu.js file change (unless you already removed the two commented lines mentioned a few posts back).
nJoywhat???? LOL... Sooo nervous!
No pop ups showing on any kind of link now !?
The Geek
05-09-2005, 08:00 AM
eh?
Replace the 2 'replacement codes' with the ones in the readme
Redo the changes to vbulletin_menu.js
replace admincp/GAL_admin.php
TTG- did you do this? Can you pm me a link to check out?
Lizard King
05-09-2005, 01:22 PM
Geek everything is working pretty good with me. But just one question :) I know it may be hard or stupid but is there a way to get the pop up box style match with forum styles ? When I change a style the box style will change also :bandit:
The Geek
05-09-2005, 04:24 PM
Geek everything is working pretty good with me. But just one question :) I know it may be hard or stupid but is there a way to get the pop up box style match with forum styles ? When I change a style the box style will change also :bandit:
hmmm. you should be able to use style variables. Better yet - use class names instead of inline css. Its much lighter and will do what you want.
Lionel
05-10-2005, 01:01 AM
GAL just saved my life. Somehow, half of admincp/index.php got deleted by accident, until I remembered the gish folder with the backup:-)
The Geek
05-10-2005, 01:19 PM
Gish saves the day :)
BTW: Is everyone happy with the latest release? I would like to move it to a gold status and release it.
CosmicBlend
05-10-2005, 02:00 PM
Yes release it!! I also want to add your banner system, so release AutoLinker so you can finish the banners!
stroke25
05-10-2005, 03:53 PM
ordinal still doesnt work for me. Does it work for you guys?
The Geek
05-10-2005, 03:58 PM
Actually - good point stroke. I was looking into that the other day and it has stumped me beyond belief.
It was working in an earlier for me, but now it doesnt work consistantly. If I print the arrays before submitting to preg_replace, they are in the right order. I can even reset the pointers with ksort, but still, they come out in a different order. I have to be honest and say I have no freaking clue as to why it wouldnt be working. It could possibly be something with a version of php as I am using on local server right now and havent put it on my live server yet.
Like I said - there is no logical reason whatsoever as to why it would not replace in the order of the keys in the array... thats how its designed to work. Im putting my money on a older php bug.
One small problem which is probably easily solved. Changing the Popup offset seems to have no effect !?
The Geek
05-10-2005, 04:05 PM
One small problem which is probably easily solved. Changing the Popup offset seems to have no effect !?
Have you tried to debug->rebuild since changing? The settings really only there for people with funked CSS settings for their links.
For instance, a dotted, underlined link can cause the oncouseout event to be called before the onmouseover for the popup gets called. The only option there is to set the offset higher so it partially overlaps the word itself.
Do me a favor and just debug->rebuild as it seems to work on mine.
Do me a favor and just debug->rebuild as it seems to work on mine.
No change :confused:
The Geek
05-10-2005, 04:42 PM
No change :confused:
hmmm. have to look into it.
In the meantime I have released 4.0 in its release thread.
https://vborg.vbsupport.ru/showthread.php?threadid=76054
Clsing this pup. Thanks for everyones help.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.