![]() |
Geek AutoLinker 3.00 RC1
HowdA all.
BETA CLOSED. PACKAGE IS RELEASED HERE 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). 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 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: Code:
<a href='$link' target='_blank' class='DEF' title='$description'>$text</a> Code:
<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. [/edit] Like I said - the above is just pseudo code. But I am sure something like that would work (my javascript chugs). nJoy |
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.
|
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. |
I wish you add support for mass importing exisiting links from other sources.
|
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. |
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. |
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
|
Quote:
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? |
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. |
Quote:
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. |
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.
|
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 :
Code:
Database error in vBulletin 3.0.7: Code:
Database error in vBulletin 3.0.7: |
hum, the autolinking is not happening for me. I am using GAS 3.51 and have not updated yet to the beta GAL
|
Quote:
Lizard - can you run the DB element of the install again? Let me know what happens. |
Not for me. I created a new article, copied the title and started a new thread where I pasted it. Nothing happened.
|
I run the upgrade section and did the database again didn't gave me an error but later same errors .
|
I looked at newthread.php, shouldn't the functions_gal.php be included in somewhere?
|
Got it! There was an extra blank space line in functions_gal.php after ?> plus I had to upgrade the phrases.
|
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.
|
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? |
updated package to allow for "'s in replacement variable. Also added a couple of replacement examples in the first post.
|
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?" |
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 ;) |
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 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. |
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? |
Quote:
6000 users online.... IT BETTER WORK! Hum... ha. he... muhah ahhahahahhaha HAAAAAAAAA! |
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:
Code:
Replacement code Code:
1. San Francisco 49ers = 49ers 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. |
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 |
Quote:
Use the one listed in the first post in this thread that says normal |
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?
|
Quote:
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. |
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 |
Quote:
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 |
Geek I still get a database error , here it is :
Code:
Database error in vBulletin 3.0.7: |
Quote:
Same here.... |
RC2.03 should sort that just follow me previous post.
oh, and replace the files with those in the new package ;) |
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. |
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? |
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... |
All times are GMT. The time now is 05:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|