The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Auto-Linker

Geek Auto-Linker GAL automatically links keywords that users type in posts to advertising hover pop-ups.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #11  
Old 01-21-2008, 05:18 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

The old regexp is as follows:
Code:
#(\b((?<=\s|"right">|"left">|"center">|<li>|<span class="highlight">|<strong>|<b>|<i>)(?<!--GAL--> )($1))s?\b)#im
You can add that as a new regexp and then under Categories, you can chose the regexp to use, and then Rebuild RegExp Cache to ensure its use.

The new regexp is as follows:
Code:
#(\b($1)\b(?=[^>]*<)(?!.*</option>))#im
This new regexp was made so that text inside HTML tags does not get linked. For example, you wouldn't want to link GARS in the following tag:
Code:
- if this were showing a real image GARS would not be linked with the new regexp
- as this line is not a real image, but rather text for an image tag, GARS links

<img src="wherever.gif" border="0" alt="See GARS in action" />
The old regexp would create auto-links inside tags, but you can try it if you want. Also, with GARS 6 keywords should contain only "word" characters (\w for those familiar with regexp), apostrophe ('), and dash (-). Other characters are stripped, and matches are made on keywords surrounded by boundaries (\b for those familiar with regexp). That means a keyword such as cat would match cat but not catch and not scat and not scatter.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #12  
Old 01-21-2008, 05:28 PM
cellarius's Avatar
cellarius cellarius is offline
Junior Member
 
Join Date: Dec 2005
Posts: 20
Geek Auto-Linker Pro License Holder 
Default

Did not work, I'm afraid. There are no GALs with the old RegEx either...
Reply With Quote
  #13  
Old 01-21-2008, 05:34 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Hmm, I'll take you up on that forum access.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #14  
Old 01-21-2008, 05:43 PM
cellarius's Avatar
cellarius cellarius is offline
Junior Member
 
Join Date: Dec 2005
Posts: 20
Geek Auto-Linker Pro License Holder 
Default

Quote:
Originally Posted by Morgan View Post
Hmm, I'll take you up on that forum access.
You got pm.
Reply With Quote
  #15  
Old 01-21-2008, 06:09 PM
cellarius's Avatar
cellarius cellarius is offline
Junior Member
 
Join Date: Dec 2005
Posts: 20
Geek Auto-Linker Pro License Holder 
Default

Already see you on my board (forgot to make you invisible and several of my users warned me off that there was a rogue Admin on the loose ).

Just wanted to say: If needed, you can have ftp access too, of course.


----
Ceterum censeo that there really should be a Photopost import script for Photoplog

Last edited by cellarius; 01-21-2008 at 06:16 PM..
Reply With Quote
  #16  
Old 01-21-2008, 06:12 PM
Wildthinks Wildthinks is offline
Junior Member
 
Join Date: Dec 2005
Posts: 27
Geek Article and Review System License Holder Geek Auto-Linker Pro License Holder 
Default

i tried the old regex ... no different...

some of my cats are displayed the other not ....
mysterious...
Reply With Quote
  #17  
Old 01-21-2008, 06:31 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Go to the vB ACP -> Geek Auto-Linker -> Categories and for each category click it, and then under Forums, check that the forums where you want auto-links to appear are ticked.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #18  
Old 01-21-2008, 06:55 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

One thing I just found... If you do not set any content for a keyword, then there is no auto-link for that keyword. This makes sense if you are using the gal_link_popup template (as the content is what is shown in the pop-up) but not for the gal_link_standard template (as this template is used to redirect to another page). Am looking into this now, but in the meantime, if you are using the gal_link_standard template, add something, anything, to the content box.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #19  
Old 01-21-2008, 08:32 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Okay folks, tweaks done. Grab the GAL package again and FTP three files:
  • /geek/gal/includes/gal_class_core.php
  • /geek/gal/includes/gal_class_vb_db.php
  • /geek/gal/includes/gal_class_vb_db_dictionary.php
This should take care of the incorrect autolink.php link, as well as deal with the keywords where there is no content.

If not already done, remember to go to the vB ACP -> Geek Auto-Linker -> Categories and for each category in the Categories box, click the link, and then under Forums, check the forums where you want auto-links from that category to appear.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #20  
Old 01-22-2008, 05:37 AM
cellarius's Avatar
cellarius cellarius is offline
Junior Member
 
Join Date: Dec 2005
Posts: 20
Geek Auto-Linker Pro License Holder 
Default

Thank you very much for your quick help!
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
GAL Not working... :( aspkin Geek Auto-Linker 9 08-14-2008 04:08 PM
GAL stopped working Johnny Utah Geek Auto-Linker 1 01-23-2008 05:37 PM
Where can I see GAL working ? .Joel Geek Auto-Linker 4 07-17-2007 12:38 AM
Gars aint working 100% since upgrade Bashy Geek Article and Review System 4 08-21-2006 07:57 PM
GAL working fine, one question jluerken Geek Auto-Linker 2 10-17-2005 09:59 AM


All times are GMT. The time now is 02:32 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.