PDA

View Full Version : Geek AutoLinker 3.00 RC1


The Geek
04-07-2005, 10:00 PM
HowdA all.

BETA CLOSED. PACKAGE IS RELEASED HERE (https://vborg.vbsupport.ru/showthread.php?t=76054)

I have finally gotten GAL3.0 to a stage where it can be beta tested via fresh install or upgrade from 2.6

GAL is designed to be able to auto link keywords to your own specific URLs. (Read more here (https://vborg.vbsupport.ru/showthread.php?t=76054)).
3.0 builds on 2.6 but includes the following:
1- ability to specify ordinal
2- ability to add URL titles
3- ability to cusomize the URL replacement
4- abiilty to limit # of time a match is replaced per post
5- new installer/upgrader/uninstaller built on a prototype GISH installer. This means that all file edits are done automatically for you unless you choose otherwise.
6 - Just added a category manager to categorize your GALS, but also so you can override the global replacement text on a category level.
7- Global, categorical, or individual replacment value. You can customise the replacement code on a global level, but override it on a category level, or even override that on an individual level which gives you massive versatility.

All is pretty much self explanitory in the readme and the GAL 2.6 (https://vborg.vbsupport.ru/showthread.php?t=76054) thread.

As this is a beta, I would encourage that it is not used on a live board and that you backup your DB and files before running.

edit:

I just updated the package to allow for "'s in the replacement.
Now you can customize the replacements with things like:

For normal:

<a href='$link' target='_blank' class='DEF' title='$description'>$text</a>


or this to hide the status bar display:

<a href='$link' target='_blank' class='DEF' title='$description' onmouseover="window.status='$description'; return true" onmouseout="window.status=''; return true">$text</a>



I have spent all afternoon and just come up with a way to have the hovering popups!!! Consider it a beta add on for a beta. Once that is working 100% I will fold it into the main package. For now, the instructions are in the current package. It requires a file edit and a template edit.
The rest just works off replacement code that you create.


Like I said - the above is just pseudo code. But I am sure something like that would work (my javascript chugs).

nJoy

zachlee
04-08-2005, 06:58 PM
lets say that I am 110% happy with the previous version, and all I want to do is to add the URL Title part. Is this possiable? I believe in... if its not broke, dont fix it.

The Geek
04-08-2005, 07:03 PM
hey Zach... you could manually hack the code to add support for it (it is already in the table you installed). But personally it would be a lot more work than to simply upgrade it.

Its also much quicker as it reduces the unserialize functions by about 300%. Im pretty chuffed with it. If you love the existing version - youll dig this one.
If unsure - just hang for a few to make sure it will be the final. Ive worked pretty long and hard to get it right so I really do not forsee any problems arising.

You may also dig the new replacement editing ability. You have far more flex with it.

Lionel
04-08-2005, 09:43 PM
I wish you add support for mass importing exisiting links from other sources.

The Geek
04-08-2005, 09:59 PM
Hey Lionel - like what? Its not that hard to do if you know the format the links are in. Is there some other type of hack similar that needs an import script?

BTW: Those that have installed - can I get feedback? I assume that no word means all went ok? I would like to move this to a final asap.

Cheers Beers.

Lionel
04-08-2005, 10:20 PM
Geek, for example I have the vbadvanced link, and I am using one forum as biographies with your articles. I was thinking like

1-adding a field gal_linked in vblinks (1,0), then do a query that will pull all titles and id. Will present them to me so I could edit, add a checkmark, then make the import into GAL, and setting gal_linked=1 (so it does not display them again). When someone would type the word, that will automatically link it to the vblinks details page. Could even edit them to add keywords. Someone types cars, and the car dealer link appears...

2-For GAS, a query that will pull article title for specific forums, we could edit title, then import threadid into GAL. Then you type Georges Bush, and it will automatically link you to that guy's biography, for example.

Lizard King
04-08-2005, 10:21 PM
I get this error when I run the installer : Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home2/*******/public_html/forum/admincp/gal3_install.php on line 127

The Geek
04-08-2005, 10:35 PM
I get this error when I run the installer : Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home2/*******/public_html/forum/admincp/gal3_install.php on line 127
Thats it mate! Thats what I am after. Package updated to fix the error reported.

Lionel - In GAS, you can add article key words to auto enter into GAL. As far as vba links... beyond the scope of this pup. Maybe an add on would suffice?

Lionel
04-08-2005, 10:38 PM
OOOO I must have missed that. I got the latest GAS and am on my way to it now.

Yes this is what I am looking for, an addon. Guys like you do that in 5 minutes. Guys like me take weeks of frustrating trial and errors.

The Geek
04-08-2005, 10:42 PM
OOOO I must have missed that. I got the latest GAS and am on my way to it now.

Yes this is what I am looking for, an addon. Guys like you do that in 5 minutes. Guys like me take weeks of frustrating trial and errors.
Dont overestimate us 'guys'. Some of us just are lame and spend far too much time tweaking stuff ;)
Note that the functions_gal in this package is NEWER than the one with gas 3.51 therefore dont overwrite it!
You can turn on the gal coupling in gas via the gas settings.

Lionel
04-08-2005, 10:49 PM
Does that work if I edit existing article? I selected the option to auto add title in GAL, but I don't see where to put keywords and it did not update.

Lizard King
04-08-2005, 10:52 PM
I had to finish the file edits by myself. After installation when i go to admincp and click on display I get an db error :
Database error in vBulletin 3.0.7:

Invalid SQL: SELECT id, text, link, ignorethread, ordinal, description FROM geek_autolink ORDER BY ordinal,text asc
mysql error: Unknown column 'description' in 'field list'

mysql error number: 1054

Date: Friday 08th of April 2005 07:48:37 PM
Script: http://forum.ayyas.com/admincp/GAL_admin.php
Referer: http://forum.ayyas.com/admincp/index.php?do=nav
Username: Lizard King
IP Address: **********

I also get an error when I wanted to add a link
Database error in vBulletin 3.0.7:

Invalid SQL: INSERT INTO geek_autolink(text,link,ignorethread,ordinal,descr iption) VALUES ('Lizard King', 'http://forum.ayyas.com/member.php?u=4',0, 0, '')
mysql error: Unknown column 'description' in 'field list'

mysql error number: 1054

Date: Friday 08th of April 2005 07:51:10 PM
Script: http://forum.ayyas.com/admincp/GAL_admin.php
Referer: http://forum.ayyas.com/admincp/GAL_admin.php?do=add
Username: Lizard King
IP Address: ******

Lionel
04-08-2005, 11:00 PM
hum, the autolinking is not happening for me. I am using GAS 3.51 and have not updated yet to the beta GAL

The Geek
04-08-2005, 11:04 PM
hum, the autolinking is not happening for me. I am using GAS 3.51 and have not updated yet to the beta GAL
The GAS tie in only works when creating a new article

Lizard - can you run the DB element of the install again? Let me know what happens.

Lionel
04-08-2005, 11:07 PM
Not for me. I created a new article, copied the title and started a new thread where I pasted it. Nothing happened.

Lizard King
04-08-2005, 11:08 PM
I run the upgrade section and did the database again didn't gave me an error but later same errors .

Lionel
04-08-2005, 11:22 PM
I looked at newthread.php, shouldn't the functions_gal.php be included in somewhere?

Lionel
04-08-2005, 11:54 PM
Got it! There was an extra blank space line in functions_gal.php after ?> plus I had to upgrade the phrases.

Lionel
04-09-2005, 12:27 AM
Jesus! Geek, you are an absolute genious! Just finished playing with this beauty. Exactly what I needed to do all along. Now, I got to worry about that vbaLinks addon and then I shall eternally be grateful.

The Geek
04-09-2005, 06:31 AM
Lizard - I found the problem. I had to go back through the old install files and I finally found the problem.
Run the install or upgrade DB step again with this new package and that should sort you out.

Has anyone upgraded from 2.6 yet?

The Geek
04-09-2005, 07:50 AM
updated package to allow for "'s in replacement variable. Also added a couple of replacement examples in the first post.

Frzzy
04-09-2005, 10:36 AM
You Geek :D

Can you add more feature to this hack???

Sometime I don't want to link the keyword to any where, just want to have a popup dhtml tooltip with pre-defined content.

This may use with advertising purpose, or use as a glossary. My site is all about computer thing, and members are going crazy answering repeating question of noobie.

Let's see, when you are "lol"ing... do you want some one ask you "Please, what does 'lol' mean?"

The Geek
04-09-2005, 10:56 AM
well, currently the global replacement is just that - global.
It could easily be modified so that the replacement is on an individual basis (unless left blank - then it uses the global... As easy as it would be to do - I want to freeze functionality to get this released.

All I need to know is:
1- does it do a clean install without problems?
2- does it do a clean upgrade without problems?
3- does it work as intended.

When I get a yes across the board - it will get moved into its release thread.

Ill keep your suggestion in mind ;)

Frzzy
04-09-2005, 11:32 AM
Then save this feature for 3.1, may be 3.5 :D

I'll take a look at the code, hopefully I can submit a patch.

The Geek
04-09-2005, 11:42 AM
The code is pretty simple in flow.

What would need to be done is:
1- Add a replacement field to the gal table
2- Add a textarea box to admincp add & edit link sections
3- Capture the replacement text in the save section
4- Add a check in the functions_gal rebuild_gal_links function to see if that field is blank. If so, use the flow it does now. If not - use the text is contains.

Sounds more difficult than it would be. Since I seem to be waiting around for feedback on how it is now... Maybe ill throw it in and save you a minute.

The Geek
04-09-2005, 11:58 AM
Done (in about 10 minutes!) ;)

Package updated.

You can now have the replacement on an item by item basis - or leave blank for the global setting.

Guys - so far there are 6 installs and I only have feedback from 1 person. Can I get a green light from you guys that have installed that all was well?

T3MEDIA
04-09-2005, 01:41 PM
Lizard - I found the problem. I had to go back through the old install files and I finally found the problem.
Run the install or upgrade DB step again with this new package and that should sort you out.

Has anyone upgraded from 2.6 yet?Doing it now. ON A LIVE BOARD!
6000 users online.... IT BETTER WORK!
Hum... ha. he... muhah ahhahahahhaha HAAAAAAAAA!

zachlee
04-09-2005, 01:47 PM
I tired to upgrade. I had to do 3 manual edits, step 100, 200 & 300. What I found was that instead of GAL linking each instance of a word, it removed it. I see the edit box in each item, where we can set variables:
Replacement code
$link = url
$description = link title
$text is the text replacement.

For example. Every instance of all my keywords were being removed instead of linked. So I set the variable $text = 49ers and I ended up with:
1. San Francisco 49ers = 49ers in the forum, niether case being linked.

So I went for the uninstall/reinstall. Same result. Just opened pandoras box on myself, because I mistakingly deleted my backup. Gotta go back a few days in archive.

The Geek
04-09-2005, 01:51 PM
Well, whilst waiting around for results, I decided that I would add a category manager to it as well.

This way you can categorize the links and override the global replacement code with a category code (which of course can be overridden on an individual level).

Man alive this has to be complete now dont you think?

So much for the feature freeze ;)

If you have already installed - Run the installer but do the following individual steps:
1- DB
2- Phrases

Then click the manual file changes and redo Step 200.

nJoy

The Geek
04-09-2005, 01:52 PM
I tired to upgrade. I had to do 3 manual edits, step 100, 200 & 300. What I found was that instead of GAL linking each instance of a word, it removed it. I see the edit box in each item, where we can set variables:
Replacement code
$link = url
$description = link title
$text is the text replacement.

For example. Every instance of all my keywords were being removed instead of linked. So I set the variable $text = 49ers and I ended up with:
1. San Francisco 49ers = 49ers in the forum, niether case being linked.

So I went for the uninstall/reinstall. Same result. Just opened pandoras box on myself, because I mistakingly deleted my backup. Gotta go back a few days in archive.
Whats the global replacement value (in settings).
Use the one listed in the first post in this thread that says normal

zachlee
04-09-2005, 01:53 PM
Also, on Add New page in admincp, there are 2 boxes below ignore thread, the one directly below stays empty, the second inherits a 0 from somewhere. What are those?

The Geek
04-09-2005, 02:01 PM
Also, on Add New page in admincp, there are 2 boxes below ignore thread, the one directly below stays empty, the second inherits a 0 from somewhere. What are those?
Thats the ordinal and replacement.
That has changed in the RC2 version as there is also a category box.

Get the latest package and update as per a couple posts back. That will correct the missing phrases you have and also check for an empty global replacement variable. If empty, it defaults to the standard.

zachlee
04-09-2005, 02:18 PM
I removed everything, the code from step 100, 200 & 300, the database info, tables, etc. Started from scratch. This is what I found.

The db tables geek_autolink_cats do not get created by the install script, others do, just not the cats table.

I will create the tables manually when I get back, unless something changes with the installer between now and when I get back from picking up my car.

-Z

The Geek
04-09-2005, 02:22 PM
I removed everything, the code from step 100, 200 & 300, the database info, tables, etc. Started from scratch. This is what I found.

The db tables geek_autolink_cats do not get created by the install script, others do, just not the cats table.

I will create the tables manually when I get back, unless something changes with the installer between now and when I get back from picking up my car.

-Z
Thanks for that. I found the error.
To upgrade from RC2.02, just download the latest package, replace the gal3_install.php file... run it... chose the install path... click the DB single step option.

Thanks

Lizard King
04-09-2005, 02:26 PM
Geek I still get a database error , here it is :
Database error in vBulletin 3.0.7:

Invalid SQL: SELECT id,description FROM geek_autolink_cats
ORDER BY ordinal, description
mysql error: Table 'serenity_forum.geek_autolink_cats' doesn't exist

mysql error number: 1146

Date: Saturday 09th of April 2005 11:24:48 AM
Script: http://forum.ayyas.com/admincp/GAL_admin.php?do=add
Referer: http://forum.ayyas.com/admincp/index.php?do=nav
Username: Lizard King
If you need i can send you admin pass .

T3MEDIA
04-09-2005, 02:43 PM
I tired to upgrade. I had to do 3 manual edits, step 100, 200 & 300. What I found was that instead of GAL linking each instance of a word, it removed it. I see the edit box in each item, where we can set variables:
Replacement code
$link = url
$description = link title
$text is the text replacement.

For example. Every instance of all my keywords were being removed instead of linked. So I set the variable $text = 49ers and I ended up with:
1. San Francisco 49ers = 49ers in the forum, niether case being linked.

So I went for the uninstall/reinstall. Same result. Just opened pandoras box on myself, because I mistakingly deleted my backup. Gotta go back a few days in archive.Darn beat me to it.
Same here....

The Geek
04-09-2005, 03:32 PM
RC2.03 should sort that just follow me previous post.
oh, and replace the files with those in the new package ;)

Lizard King
04-09-2005, 03:48 PM
Now i didn't get any database error but i used to have autolinks and they are all gone :) That is not a big deal but what are the 1:0 in the top left :)
I try to add a link and it worked good.

The Geek
04-09-2005, 03:52 PM
oops! A bit of debug code.

Do you have phpMyAdmin? Can you tell me what the id of unknown is in geek_autolink_cats?

If its 1 - can you put it to zero?

Frzzy
04-09-2005, 03:53 PM
Man, you are a liar!!!

You said this release is features freezed... you are a liar!!!

Btw, I like that kind of liar :D

Edit: Downloaded... gonna install, stay tuned for my feedback...

The Geek
04-09-2005, 04:10 PM
Just updated package to 2.04

THis is just a minor fix where I made the unknown category hardcoded so it couldnt be deleted or editied. THat way all existing links will appear in unknown if not assigned to a category. In Lizards situation - the unkown category ID was 1 but all his existing links were category 1, therefore they were not appearing (even though they are still there). This fixes it.
To upgrade from 2.03, just replace the GAL_admin.php file. Oh, and rerun the install->phrases path of the new install file to insert the latest phrases.

If Unknown is showing up in your category display (where you can edit/delete) just change the name or delete it as it is not needed anymore.


Thanks. Think we are alomst there ;)

Lizard King
04-09-2005, 04:37 PM
everhthing is working perfect

Lizard King
04-09-2005, 04:50 PM
One quick tip. If you have previous gal and entered some auto link variables you have to edit them , paste the replacement variable <a href='$link' target='_blank' class='DEF' title='$description'>$text</a> and then change the categorie to secopnd unknown. Otherwise it is not autolinking.

The Geek
04-09-2005, 05:01 PM
Hey Lizard - not sure what you mean.

If there is no global replacement text, or category text, or item text, it should substitute the above for you. (Make sure you have the latest functions_gal.php file).

The replacement order goes:

Is there an item specific code?
yes -> Use it
No -> Is there a category code?
yes-> Use it
No->Is there a global replacement?
Yes->Use it
No->Use hard coded default (the one you posted).

Let me know if that is not how it is working for you.

Frzzy
04-09-2005, 05:04 PM
Hmmm... step 200 and step 300 have to be manually applied.

It's my fault, since I was move the placement of the code, but maybe you can improve it by not searching for:

// *************************************************
if (can_administer('canadminstyles'))

Just search for:

//=== GEEK AUTOLINK step 4.2 ===
$printhr = true;
construct_nav_option($vbphrase['GAL_display'], 'GAL_admin.php');
construct_nav_option($vbphrase['GAL_add_new'], 'GAL_admin.php?do=add');
construct_nav_option($vbphrase['GAL_settings'], 'GAL_admin.php?do=rebuild');
construct_nav_group($vbphrase['GAL_CP']);
//=== /GEEK AUTOLINK ===

That's step 200. Now I'm going to do step 300, report going after...

Frzzy
04-09-2005, 05:09 PM
Step 300 has the same problem, but this is my fault to have extra linebreak after the last comment.

This may break the code if it's the fresh install, but if the previous has been installed and worked, maybe just do the search from the start comment to the last comment is enough.

Just my 2 cents.

After all, it worked :D

Thank you Geek.

The Geek
04-09-2005, 05:21 PM
Hi Frzzy.

I am stumped as to what you mean. Clean installs are a bit o cake. Upgrading is a little more challenging.
THat said - there are really only 3 file edits at the most anyway.

Did you upgrade from 2.6? I thought you were doing a clean install.

Frzzy
04-09-2005, 05:44 PM
Ya Geek,

I installed 2.6, it work great... then I think maybe it's better if it can popup a tooltip, then I go here and ask for it... then I found out about 3.0 :D

It worked well here... I'm tweaking the replacement code, since I dont' like the "title" attribute tooltip :)

The Geek
04-09-2005, 05:54 PM
I would love a floating popup tooltip too. Just dont know how to do it.
You should be able to include $post variables as well (like the post id) which may help someone develop that - but once again... Im not sure how.

The way this version has been designed was to give someone the flexability to do that though.

Let me know how you get on.

007
04-09-2005, 07:02 PM
Interesting... the install went well. Had to do 3 manual edits, but everything else was fine.

The links don't work though. Just plain text now.

How would I go about finding what the problem is? Thanks!

zachlee
04-09-2005, 07:23 PM
Interesting... the install went well. Had to do 3 manual edits, but everything else was fine.

The links don't work though. Just plain text now.

How would I go about finding what the problem is? Thanks!

Same here geek. Removed everything from 2.6 including tables. Plus other edits. Did full new install. Seems to work, except nothing is being linked.

007
04-09-2005, 07:24 PM
Ah ha! I moved the created files from the "gish" folder back into their respective locations in my real forums and that fixed it.

Works now. Try that zachlee.

The Geek
04-09-2005, 07:26 PM
Ah ha! I moved the created files from the "gish" folder back into their respective locations in my real forums and that fixed it.

Works now. Try that zachlee.
Yea - the hacked files need to be moved over manually when editing is done ;)

Also - I just updated the package to help with empty replacement settings. If you have 2.04, just replace functions_gal.php and GAL_admin.php with the latest from 2.05

Lizard King
04-09-2005, 07:27 PM
zachlee and 006 try to do the way i explained in here (https://vborg.vbsupport.ru/showpost.php?p=638400&postcount=43) and put the links in dangerous mode. This way the links will work.

Geek I checked everything but if you will not do it like this then it is not linking.

The Geek
04-09-2005, 07:36 PM
Mert - did you try the latest functions_gal and GAL_admin in 2.05? It looks to sort it.

zachlee
04-09-2005, 08:01 PM
Yea - the hacked files need to be moved over manually when editing is done ;)

Also - I just updated the package to help with empty replacement settings. If you have 2.04, just replace functions_gal.php and GAL_admin.php with the latest from 2.05

Correct me if I am wrong. On the installer page, it says that it was unable to do the file edits on showthread.php, functions_showthread.php & admincp/index.php

SO, I edit those three files manually. When I go into the gish/gal/3.00/ folder, those are the same three files that I manually updated.

What exactly am I to move over, if I make those edits manually, what else needs copied over. For ++++s and giggles, I backed up those 3 files, moved them from the gish folder, and still nothing.

I am not sure what I am missing, since I have removed all remnants of 2.6 (includeding db entrys)

007
04-09-2005, 08:15 PM
Well I deleted 3 of the datastore rows with gal_ in front of them trying to get rid of all my links so I can start over. (Somehow after deleting them they still showed up).

Now no links work. How do I get the rows back lol!

The Geek
04-09-2005, 08:57 PM
Zachlee, I am not sure what you mean.
If you manually edited the files... did you do it on the run time files or the ones moved to gish/gal/3.0?
If you edited the ones in gish, then those are the ones to move over. If you manually edited your actual files, then dont copy the gish ones over.

006 - whenever you do anything in the GAL_admin page, it rebuilds the datastore of links. It pulls the links from the geek_autolink table. Delete those and all will pretty much go bye bye

007
04-09-2005, 09:10 PM
Well I totally uninstalled. I was going to reinstall, but the file edit changes show up blank?

Also, how soon after creating an autolink should it take for it to start working?

The Geek
04-09-2005, 09:30 PM
Well I totally uninstalled. I was going to reinstall, but the file edit changes show up blank?

Also, how soon after creating an autolink should it take for it to start working?
Its immediate.
THe manual uninstall file edits are essentially giving you a delete.
Replace x code with nothing.

007
04-09-2005, 09:36 PM
Ok will try a reinstall and see what happens. Thanks.

By the way I freaked out when I saw the steps number 100, 200, and 300. At first I thought it made 99 file edits and then found a problem, and made me manually do step 100. I started to get really worried!

Of course I didn't back up, and 300 file edits would have been bad to remove if they caused problems. Turned out to only be 3 steps though! Thanks for the scare! :)

007
04-09-2005, 09:40 PM
And I meant the edits were blank when re-installing... Makes it hard to do :(

For step 2 it's telling me:

in admincp/index.php, replace:

--------------------------------------------------------------------------------

// *************************************************
if (can_administer('canadminstyles'))
--------------------------------------------------------------------------------

with:

--------------------------------------------------------------------------------

The Geek
04-09-2005, 09:41 PM
:) used to number them 1.01, 1.02 each whole number representing a different file. Not sure why I canged... one of those things.

THere are really only 3 file edits and remember - GISH makes a backup of your files before it starts hacking in GISH/gal/backup - it never touches those.

The Geek
04-09-2005, 09:47 PM
And I meant the edits were blank when re-installing... Makes it hard to do :(

For step 2 it's telling me:

in admincp/index.php, replace:

--------------------------------------------------------------------------------

// *************************************************
if (can_administer('canadminstyles'))
--------------------------------------------------------------------------------

with:

--------------------------------------------------------------------------------


ooops. Confirmed.

Found typo and have updated the package to 2.06
Only file that changed was gal3_install.php

007
04-09-2005, 09:53 PM
Cool thanks! :)

007
04-09-2005, 10:02 PM
Well, now all is installed correctly, and autolinks do not appear. Didn't forget anything either...??? Actually this hasn't worked for me yet. It was pulling the datastore from my old links when I thought this worked..

The Geek
04-09-2005, 10:04 PM
Well, now all is installed correctly, and autolinks do not appear. Didn't forget anything either...??? Actually this hasn't worked for me yet. It was pulling the datastore from my old links when I thought this worked..
can you PM me an admin account (only need basic admin to get to gal settings)

zachlee
04-09-2005, 10:10 PM
Got it working!

I went in and created a Category named all. Then when creating links, you have to make sure you select 'All' (in my case) under category name.

just my .02 but there should be a 'default' category, instead of a 'unknown' category. Until I created the 'All' category, it never worked.

Now just have to figure what combination I need to do, so that the status bar will display the same for all links.

The Geek
04-09-2005, 10:13 PM
Got it working!

I went in and created a Category named all. Then when creating links, you have to make sure you select 'All' (in my case) under category name.

just my .02 but there should be a 'default' category, instead of a 'unknown' category. Until I created the 'All' category, it never worked.

Now just have to figure what combination I need to do, so that the status bar will display the same for all links.
edit your settings->replacement code to include the mouseover events like in the example in the first post.

There is supposed to be a default category. Ill look into it now :(

zachlee
04-09-2005, 10:16 PM
I altered my replacement code to:

<a href='$link' target='_blank' class='DEF' title='Link opens in New Window'>$text</a>

This makes it to when you mouse over the link, it shows "Link opens in New Window'

What I want to do, is make it so it says that same thing, in the status bar.

The Geek
04-09-2005, 10:31 PM
I altered my replacement code to:

<a href='$link' target='_blank' class='DEF' title='Link opens in New Window'>$text</a>

This makes it to when you mouse over the link, it shows "Link opens in New Window'

What I want to do, is make it so it says that same thing, in the status bar.
leave the title=$description' bit and do the second example in the first post of this thread.

zachlee
04-09-2005, 10:51 PM
perfect! everything is working A-OK now. Only thing onmy todo list, is figure out how to get the GAL to parse the text on my vBadvanced CMPS homepage.

Thanks Geek! Do you have a 'wishlist' anywhere?

The Geek
04-09-2005, 11:00 PM
perfect! everything is working A-OK now. Only thing onmy todo list, is figure out how to get the GAL to parse the text on my vBadvanced CMPS homepage.

Thanks Geek! Do you have a 'wishlist' anywhere?
good news!

Only wishlist is to get this working for 006, get a gold release, and some sleep!

007
04-10-2005, 12:28 AM
Good wish list! :)

And I actually created a category a while ago thinking that same thing, and it didn't help... Hey Geek, was looking for your email and didn't see it so I am back.

I honestly can't think of what I could have done wrong. I never have trouble with hacks! (Well now I do I guess, but this is the first in a while!) :)

Those rows were never created again in my datastore table...

The Geek
04-10-2005, 01:33 PM
Updated package.

I have spent all day trying to work the popup concept into GAL and think I have finally gotten it!

To update from 2.06, just download latest package and replace the GAL_admin and functions_gal.php files.
Then follow the instructions of the GAL3popup_addon text file included with the new package. Its as a seperate file right now just through testing. When done I assume I will be folding it into the final package.

nJoy

The Geek
04-10-2005, 02:27 PM
quick update. The popup add on instructions were fine for IE but not FF. Had to do some adjusting to them and now it works in both.
I also sorted out the need for extra escape characters.

To upgrade from 2.07, just replace your functions_gal.php file and the steps outlined in the GALpopup_addon.txt file.

The Geek
04-10-2005, 04:19 PM
Alright. Updated package again.

Fized bug where links in unknown were not getting linked.

As far as I am concerned... THis should be it (again). Im a bit over the whole thing now ;)

Check it out in action (look at the word MMA) http://www.thenailgeek.com/showthread.php?p=109431

007
04-10-2005, 06:40 PM
Ohh... my....

* 007 slaps self

Here's what happened. When I instaleld 3.0, I clicked upgrade. Well, I thought the code edits that it told me were based on what was in my current code, and I ended up leaving Step 2 from 2.0 in my functions_showthread.php file, which obviously caused problems.

It's working fine now with 3.10. Sorry for all the trouble!

Awesome hack! :D

The Geek
04-10-2005, 08:16 PM
Ohh... my....

* 006 slaps self

Here's what happened. When I instaleld 3.0, I clicked upgrade. Well, I thought the code edits that it told me were based on what was in my current code, and I ended up leaving Step 2 from 2.0 in my functions_showthread.php file, which obviously caused problems.

It's working fine now with 3.10. Sorry for all the trouble!

Awesome hack! :D
Whew! Got my wishlist sorted :)

006 - did you do the popup add on? Just curious as I worked all freaking day on it.

nJoy

Frzzy
04-10-2005, 10:42 PM
Hello Geek, I'm going to upgrade from RC2.05 to RC2.10 (latest)

Is there any DB changes? Or default vBulletin file changes? Or all I have to do is just replace GAL files?

I added the popup myself, it work quite well...

T3MEDIA
04-11-2005, 12:24 AM
Hey I upgraded n database stuff works and all that.

BUT I get page errors in the HTML. Now this doesnt stop it from working just not HTML friendly.

Error: Expected ";"
Code:0


No pop up. (didnt work) I put it in the Header as well.

The Geek
04-11-2005, 05:50 AM
Hey Frzzy. Tough to say since there were so many changes ;)

I would run the installation (except for file changes) and just manually check those (there are only 3). Great to see the popup working.

t3media. Thats most likely a javascript error. which version of the package did you install. I assume you installed the popup code? Which browser and version?

mekro
04-11-2005, 07:15 AM
Hi

Sorry if this has been mentioned i did not see it but will there be an option to stop it auto linking in certain forums, for example i have a article forum and would like it not to link anything in there?

Kirk

The Geek
04-11-2005, 07:24 AM
Hi

Sorry if this has been mentioned i did not see it but will there be an option to stop it auto linking in certain forums, for example i have a article forum and would like it not to link anything in there?

Kirk
No there isnt an option for that now.
You can stop certain links in certain threads (thats what the ignorethreadid option is for). That way if a link is for that particular thread, it wont autolink it.

HTHs

mekro
04-11-2005, 07:33 AM
Hi

Do you think you might add it as i have aver 1600+ links already installed and i don't fancy changing the ignore thread for that many each tim a article is posted.

Just an idea.
Thanks
Kirk

The Geek
04-11-2005, 08:20 AM
Hi

Do you think you might add it as i have aver 1600+ links already installed and i don't fancy changing the ignore thread for that many each tim a article is posted.

Just an idea.
Thanks
Kirk
illl mull it over ;)

Lizard King
04-11-2005, 08:22 AM
Geek my autolink for articles is not working.

The Geek
04-11-2005, 08:23 AM
Geek my autolink for articles is not working.
just got your pm. Ill look into it.

BTW - have you installed this version of GAL? It has a newer functions_gal.php that GAS uses. In fact - there is also some debug options with this version that could really help me diagnose the problem.

The Geek
04-11-2005, 08:35 AM
just got your pm. Ill look into it.

BTW - have you installed this version of GAL? It has a newer functions_gal.php that GAS uses. In fact - there is also some debug options with this version that could really help me diagnose the problem.
Duh. Of course you are using this hack :) (not enough coffee yet this morning).

The problem was that there were no usergroupid's specified in the GAS settings. Normall, none would=all however with this type of option - you must be explicit - otherwise people could overrun your board with autolinks!.

On that note - you are using this hack, but you have a few remenants of earlier versions. Downlaod the latest... replace your files and redo the admincp/index.php step so you can get the category management options. Then you can rename your 'unknown' category to something more useful :)

nJoy

Lizard King
04-11-2005, 08:46 AM
I was wondering about categorie option a lot. Yesterday i downloaded the latest version but didn't do the file edits again ;) I think thats the main problem. Just doing it right now.

The Geek
04-12-2005, 07:17 AM
So everyone - how we looking?

Do we feel that the system is sorted now? I assume that everyone would like the popup option built into the install?

Lizard King
04-12-2005, 07:19 AM
So everyone - how we looking?

Do we feel that the system is sorted now? I assume that everyone would like the popup option built into the install?
Everything is working pretty good for me ;)

zachlee
04-12-2005, 11:16 AM
So everyone - how we looking?

Do we feel that the system is sorted now? I assume that everyone would like the popup option built into the install?


I am still on the last RC before you added the popup. Not really a feature I would use, but everything else is A-OK. I also setup a test forum on a seperate box, and fresh install was smoooooth.

The Geek
04-12-2005, 11:41 AM
I am still on the last RC before you added the popup. Not really a feature I would use, but everything else is A-OK. I also setup a test forum on a seperate box, and fresh install was smoooooth.
Thanks Zachlee.

Unless someone says otherwise - Ill most liekly release tonight

Tom1234
04-12-2005, 02:38 PM
Thank you very much for this hack Geek. It is incredibly useful. :)

I would like to see a "smart mode" in addition to the dangerous and safe mode. I am using safe mode, but there are a lot of potential links that are not getting linked. I think it just needs a little more intelligence with regular expressions to catch more of them without resorting to the dangerous mode where even segments of words get linked.

Also, can we enter regexps in the "text to replace" field when adding entries?

T3MEDIA
04-12-2005, 02:46 PM
Pop-up doesnt work and if you do a search that IS the link the link dies.

For example if I made the word sexy a link and do a forum serach for sexy and goto that page.... (http://www.yoursite.com/forums/showthread.php?t=218&highlight=sexy)
The link will die.

Just figured that one out.

T3MEDIA
04-12-2005, 02:52 PM
Hey Frzzy. Tough to say since there were so many changes ;)

I would run the installation (except for file changes) and just manually check those (there are only 3). Great to see the popup working.

t3media. Thats most likely a javascript error. which version of the package did you install. I assume you installed the popup code? Which browser and version?the version I installed was the version dated to the post I made. I did not look and I am at the office at the moment. I was on IE latest version on XP.

The Geek
04-12-2005, 03:04 PM
Tom, you would have to edit the code to edit the regex. If you can supply a better one - I am game to put it in.

In safe mode, it must have a space before the word in order to qualify. when searching, the word gets highlighted with something like <span=highlight>word</span>. It would be very difficult and very slow to try and figure out if the > next to word was the end of a link or not. Same with a full stop . who knows if that is part of an extension of a url? Or an underscore? You get the gist. Without a lot of recursive checking - its very difficult to try to determine if it is safe to link.

But like I said in the begining - if a better regex can be put forward then I think that is a big +

For the popup to work - you have to make file changes to vbulletin_menu.js and you must have the recommended replacement text in the global, category or item replacment where that item lives (if you get me).