Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Geek AutoLinker 4.02 Details »»
Geek AutoLinker 4.02
Version: 4.02, by The Geek The Geek is offline
Developer Last Online: Jan 2019 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 02-09-2005 Last Update: 05-25-2005 Installs: 151
DB Changes
 
No support by the author.

HowdA All,

Welcome to Geek Autolinker 4.0 from the makers of Geek Autolinker 2.0 and Tang - the stuff the people in space drink.

posts for version 4.0 start here

What it does:
It allows you to specify key words to replace in posts with ANY FREAKING URL YOU COULD THINK OF. Thats right, you to can now have key words automatically url'ed to other areas of the world wide web.

Now in 4.0 you can create popups, track impressions and click-thrus, get statistics on them and specify more attributes of the links. The popups can now also use bbcode to create virtually any kind of popup you could imagine. You can limit categories of links to certain forums and also enable specific usergroups to toggle GALs on or off (by category).


This is a perfect gift for sponsors, click throughs, referal programs, definitions, instructions, birthdays and other celebrations.

Example:
If I define Bob as a keyword that I would like to automatically come up hyperlinked to bob.com all I have to do is say so (well, you put it into the admincp). Presto! As quick as that, everytime a user sees the word bob, bobs, bob! Bob bOb? etc... it comes up linked to bob.com

How much will bob love you?

If the url you want it to jump to is actually a thread on your site, you can use the nifty ignorethreadid option. Heres how that works:

If I have a thread entitled Reputation and how to use it, I can put the word reputation into the Geek AutoLinker with the URL pointing to the thread about reputation. Then everytime the word reputation appears in someones post, anyone can click on it to learn more. Since it would be stupid to have the thread Reputation and how to use it autolink to itself, I put the threadid in the ignorethreadid box. That way all matches for reputation are linked to that thread except for the reputation matches in the thread Reputation and how to use it.

Safe mode and dangerous mode.

There are now two modes of operation. Safe mode will autolink any match AS LONG AS IT HAS A SPACE BEFORE IT. That means that <br />bob or .Bob are not valid matches and wont be highlighted. The reason for this is to prevent the autolinker messing up URLs with matches in them (like www.bob.com). Safe mode will most likely end up with fewer matches, but no messed up URLS.
Dangerous mode however could care less about your cute little spaces. It will link them regardless. That means more matches, but a slight increase that an existing url might break in a post.

Here are some examples in action.
Keyword: freak

Safe mode.
Freak out whenever freaks freak about on www.freak.com
Dangerous mode:
Freak out whenever freaks freak about on www.<a href="www.freak.com">freak</a>.com

Other stuff:
  • Category management - allows you to override global settings
  • Limit - limit the number of replacements per link per post
  • Ordinal - organise the order replacments are made
  • Customize your own replacment code on a global, catergory, or individual level.
  • The installer is a prototype GISH installer that does the file edits for you. Please check the readme for details on how it works - its pretty cool).
Upgrading
  • Download, replace all existing files with new ones.
  • Run the gal4_install.php file (in your admincp)
  • Follow the upgrade path.
  • The system will ahve you manullay chage any files it can not find to update.
DEMO: http://www.thenailgeek.com/showthread.php?t=11011 (note the words MMA and PREP. If you follow to MMA you will notice that MMA isnt linked in the final article thanks to ignorethreadid)

Difficulty: Easy
File mods: 4 simple ones
Added queries: 0 or greater depending on your settings

Updated 10.5.05 - Major
Massive update in functionality

Updated 13.4.05 - Major
Massive update in functionality

Update 25.03.05 - oops!
Changed readme addition to functions_showthread.php Things look good now

Updates 25.05.05 to v.204 - sneaky bug
Thanks to Razz - I found 2 minor typos that end up causing people working in safemode to actually be working in danger mode! To upgrade, simply check out this post

Updated 12.2.05 to v. 2.03 - ultra minor
Fixed a typo in readme. To upgrade, al you need to do is edit admincp/index,
do a search for
construct_nav_option($vbphrase['GAL_add_new'], 'GAL_admin.php?do=create');
and replace with
construct_nav_option($vbphrase['GAL_add_new'], 'GAL_admin.php?do=add');

Updated 11.2.05 - ultra minor
Fixed a typo in README (dont worry, it wasnt in the instructions)
Stopped phrase text spitting out during install. Some of the phrase is html so it looked confusing to new installers.
Removed reference to GAS3 settings in the install. This is because its the same installer. Just forgot to remove that line.
All in all, this was just a typo fix. There is no upgrade because there are no problems with the code.

Updated 10.2.05 - minor
Found a couple typos that affect safe mode.
Nothing major - just replace the GAL_admin.php file

Updated 10.2.05 - Major
Completely re-written.
See README for upgrade instructions.

Update 10.2.05 - minor
Updated include/geek_autolink.php as it was missing a table_prefix
To upgrade, download latest package and replace your geek_autolink file.


nJoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #322  
Old 04-15-2005, 03:12 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm with it now, thank you very much
Reply With Quote
  #323  
Old 04-15-2005, 05:11 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant replicate the limit bug you have mentioned. It seems to work fine at this end.
I cant replicate the settings not saving dangermode. It works as expected on a clean install.

I did find that putting $url in when you are not using the popup (in other words - using standard links) can cause extra HTML formatting to appear. It would be silly to put the $url variable just so it appears in a standard tooltip box anyway as it would be totally unusable.

I also found that in the replacement code - dont bother putting an apostraphe around the $description tag as one is done automatically within the construction of the variable.

HTH's
Reply With Quote
  #324  
Old 04-15-2005, 05:32 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just finished installing this on my board and it is a great mod!

I only had one problem with the install that you may want to evaluate...

In the install script there is line for "Modifying file: admincp/index.php"

In my install I got an error saying...

Quote:
Can not complete change to admincp/index.php - step 200 as I can not find the text to replace. You will have to manually complete this step. [click here for manual step step 200]
I looked at the directions and it said to open admin/index.php and find

Code:
// *************************************************
	if (can_administer('canadminstyles'))
and replace above with:

Code:
// === GAL step 200 ===
    $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=settings');
    construct_nav_option($vbphrase['GAL_cats'], 'GAL_admin.php?do=cats');
    construct_nav_option($vbphrase['GAL_cat_add'], 'GAL_admin.php?do=addcat');
    construct_nav_group($vbphrase['GAL_CP']);
    // === /GAL step 200 ===

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

In my file I had the following:

Code:
// *************************************************

	$printhr = false;
	if (can_administer('canadminstyles'))
	{
		$printhr = true;
		construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
		construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
		construct_nav_option($vbphrase['replacement_variable_manager'], 'replacement.php?do=modify', '<br />');
		construct_nav_option($vbphrase['download_upload_styles'], 'template.php?do=files', '<br />');
		construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates', '<br />');
		construct_nav_group("$vbphrase[styles] &amp; $vbphrase[templates]", '<hr />');
	}
	// ***
So I updated my code by replacing the line:

Code:
// *************************************************

	$printhr = false;
	if (can_administer('canadminstyles'))
with

Code:
// *************************************************

	$printhr = false;
	// === GAL step 200 ===
	    $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=settings');
	    construct_nav_option($vbphrase['GAL_cats'], 'GAL_admin.php?do=cats');
	    construct_nav_option($vbphrase['GAL_cat_add'], 'GAL_admin.php?do=addcat');
	    construct_nav_group($vbphrase['GAL_CP']);
	    // === /GAL step 200 ===
	
	                            	// *************************************************
	if (can_administer('canadminstyles'))

As for my board... I am running vB 3.0.7. and the only other Mod I have installed is vBAdvanced. The replacement code seems to work however with one minor thing I would like changed if possible...

If your keyword is used as the title for a link such as "Click here for link on vBulletin" and you use vBulletin as a replacement term then what happens is "Click here for link on" goes to the initial link while "vBulletin" goes to a different link as defined by this mod.

Is there any way to have the mod detect that text should not be between a [url= some url ]Click here for link on vBulletin[ /url]?

EDIT: ALSO whay aren't the font colors working on this board (vBulletin.org)?
Reply With Quote
  #325  
Old 04-15-2005, 05:37 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It shouldnt do that in safe mode. Please let me know which mode you are running in.
Reply With Quote
  #326  
Old 04-15-2005, 05:46 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using safe mode.

You can see it at work here:

http://www.quarterbore.net/forums/showthread.php?t=19

In reply to below... not a major issue and I can live with it... I just need ro remember not to use my keyword in my description of the link anymore! As I find them, I will just reword them...

Thanks again for an excellent mod!
Reply With Quote
  #327  
Old 04-15-2005, 06:52 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It wont change anything except in a postbit.
As far as the [url=www.somesite]i like bob a lot[/bob] getting messed up... that is a limitation. Both safemode and danger mode will screw up that link.
The reason being that bob qualifies to get linked because there is a space in front of it.
There isnt really a way to determine (within reason) if bob is in middle of a link or not. All it can do is (in safe mode) determine that it isnt a link itself (ie www.bob.com). In order to determine if it is sitting in a url, you would have to come up with the mother of all regex that would find a match and scan backwards to ensure that there wasnt a < a href in front without a matching </a> after it. This would be a nightmare to make the regex and it would dramatically slow things down.

Sorry
Reply With Quote
  #328  
Old 04-16-2005, 04:28 AM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Realy thanks..GEEK. Very cool hack.

I have major problem.
I can use English key words.
But I can not use Korean key words.
Korean key word can not link. Nothing appear.
Korean language is 2byte language.
How can I use Korean key word with GAL.

Thanks.
Sorry my English...^^
Reply With Quote
  #329  
Old 04-16-2005, 05:57 AM
rjerina rjerina is offline
 
Join Date: Jan 2004
Location: Cleveland, OH
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this supported in FireFox as well or is it just IE?
Reply With Quote
  #330  
Old 04-16-2005, 06:41 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rjerina
Is this supported in FireFox as well or is it just IE?
Works in FF as well.

rainyleaves - I really have no clue about that - maybe someone here can shed some light onto it. sorry
Reply With Quote
  #331  
Old 04-16-2005, 06:43 AM
rainyleaves rainyleaves is offline
 
Join Date: Mar 2004
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks...^^ GEEK.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.16042 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete