vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Geek AutoLinker 4.02 (https://vborg.vbsupport.ru/showthread.php?t=76054)

OrangeFlea 02-10-2005 09:03 PM

Sir Flea here again.

One more question: Does this marvelous tool highlight phrases? For example, if I want Catch 22 hyperlinked, will it do so as long as the words are adjacent to one another, or will it hyperlink all instances of "Catch" and "22" individually (I hope not!)?

The Geek 02-10-2005 09:05 PM

Quote:

Originally Posted by OrangeFlea
Sir Flea here again.

One more question: Does this marvelous tool highlight phrases? For example, if I want Catch 22 hyperlinked, will it do so as long as the words are adjacent to one another, or will it hyperlink all instances of "Catch" and "22" individually (I hope not!)?

Hey Flea:

It will link only Catch 22 if that is what it is set to replace.

The Geek 02-10-2005 10:16 PM

As an FYI - I just found a couple of minor typos in 2.0 GAL_admin.php file that may affect safe mode links (in rare situations). I updated the package to 2.01

To upgrade from 2.0, just replace your GAL_admin.php file with the new one.

DrkFusion 02-10-2005 10:26 PM

I just installed this, seem to have a little problem, I will get back to you with what is going on after a little digging around.

The Geek 02-10-2005 10:35 PM

Quote:

Originally Posted by DrkFusion
I just installed this, seem to have a little problem, I will get back to you with what is going on after a little digging around.

O. Let me know. Im a little overbaked from all the recent hacking. hope I havent missed anything.

xmitchx 02-10-2005 11:48 PM

Another nice mod. Thank you :)

rlamego 02-11-2005 03:26 AM

Didn't know that you were the brains behind tang ;)
No, seriously, you hurt my feelings! You were keeping this beauty away from me =)

So, Sam, if this thing rocks as much as the comments show, why don't you make this one of the ultimate hacks several times requested but never delivered: vB Glossary?
Seems simple, just replace the link text field for a text area (or add instead of replace) and link the word to a popup window (or a neat mouseover effect) to display the text!

The Geek 02-11-2005 06:25 AM

Quote:

Originally Posted by rlamego
Didn't know that you were the brains behind tang ;)
No, seriously, you hurt my feelings! You were keeping this beauty away from me =)

So, Sam, if this thing rocks as much as the comments show, why don't you make this one of the ultimate hacks several times requested but never delivered: vB Glossary?
Seems simple, just replace the link text field for a text area (or add instead of replace) and link the word to a popup window (or a neat mouseover effect) to display the text!

ooo. Is that a challenge? Sounds groovin to me.

Any links to any examples would be super.

Thanks guys.

webrats 02-11-2005 07:00 AM

im trying to make the links another color without changing the links everywhere

i see the class defined as DEF but can we add a <span> before the code on the showthread?

The Geek 02-11-2005 07:59 AM

Quote:

Originally Posted by webrats
im trying to make the links another color without changing the links everywhere

i see the class defined as DEF but can we add a <span> before the code on the showthread?

Sure webrats - but make the change in the GAL_admin.php file (in the rebuild function)as that is where all the Geek AutoLinker 2.0 changes are made. Then rebuild a viola.

I may look toward adding a setting to define the exact replacement.

Also - please click the install. Its the only charge for using the hack ;)

[edit]
BTW: the links are formed on line 66 of your admincp and looks like this:
PHP Code:

  $links[]= "$leadingchar<a href='$result[link]' target='_blank' class='DEF' title='$result[description]'>$leadingstripper$1</a> 

if you wanted to add a span, try this:
PHP Code:

  $links[]= "$leadingchar<SPAN><a href='$result[link]' target='_blank' class='DEF' title='$result[description]'>$leadingstripper$1</a></SPAN> 

[/edit]
Thanks.

The Geek 02-11-2005 08:17 AM

updated package just to fix a couple of typos that were pointed out to me in the install (they dont actually affect the install though so there is no need to upgrade).

OrangeFlea 02-11-2005 01:20 PM

Sir Geek, 'tis I, Sir Flea.

Is there any way that we can input the words & and the associated links as a set or group? I've got over two hundred stored in an excel spreadsheet and inputing these one-by-one will be torture. Is there some way I can just paste and upload the two sets (words and links) to a file or something....lol

tomshawk 02-11-2005 01:29 PM

I like the concept.

This is actually a great idea but...

Before you ask, sorry I have not read through this entire thread yet, so if it has been asked and answered sorry.

Anyway...

I have a tech site, and I have alot of links already throughout the site.

I have links to http://www.transcsender.com for example

1) Now, if I add an autolink to transcender so as people type it, it autolinks. Does it go through past posts and set up links, if it does, what will it do to these pre-existing links I have?

2) When I am creating a link to another site, and the name of the site is in the autolinker, what will that do to the link I create?

Again, sorry if these questions have been answered, I'll read this thread more carefully tonight. but any help on these questions would be greatly appriciated.

Thank you

OrangeFlea 02-11-2005 02:04 PM

Quote:

1) Now, if I add an autolink to transcender so as people type it, it autolinks. Does it go through past posts and set up links, if it does, what will it do to these pre-existing links I have?
I had asked this question before, and Geek informed me that the feature does, in fact, work in retrospect thus all corresponding words -- even those that predate the hack's installation -- will be hyperlinked.

webrats 02-11-2005 02:41 PM

is there a way to keep it from changing anything in [img] tags?

The Geek 02-11-2005 04:43 PM

Quote:

Originally Posted by webrats
is there a way to keep it from changing anything in [img] tags?

Use safe mode ;)

Tomshawk - safemode is the answer for what you need. There are slighlty fewer matches, but it prevents screwing up any other urls in posts.

OrangeFlea 02-11-2005 05:33 PM

Geek, will you be adding a feature that will allow users to input group keywords and their corresponding URLs?

The Geek 02-11-2005 06:14 PM

Quote:

Originally Posted by OrangeFlea
Geek, will you be adding a feature that will allow users to input group keywords and their corresponding URLs?

What do you mean by grouped key words. You mean vb, vbulletin, bb, cool all pointing to the same url?

tomshawk 02-12-2005 06:17 AM

Quote:

Originally Posted by OrangeFlea
I had asked this question before, and Geek informed me that the feature does, in fact, work in retrospect thus all corresponding words -- even those that predate the hack's installation -- will be hyperlinked.

Thanks OramgeFlea and the nail geek for answering my question ;)
I'll be installing this this weekend ;)

Quote:

Originally Posted by the nail geek
What do you mean by grouped key words. You mean vb, vbulletin, bb, cool all pointing to the same url?

what I think he means is there going to be an option in the future where users can add autolinks, or at least autolink suggestions. Actually I think that might be a good idea too ;)

I have another suggestion as well, The ability to add a description of the site in the autolink, and have it come up in a bubble when hovering over it.

Kind of like this http://www.computing.net/windows2003...orum/2751.html
Notice the word download in the message, it is highlighted in green. Hover your mouse over the word, and check out the bubble ;)

Symbian.info 02-12-2005 12:34 PM

Use install and the readme file, but did not really do the database ad, look:
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM geek_autolink ORDER BY text asc
mysql error: Table 'mysite.geek_autolink' doesn't exist

mysql error number: 1146

Date: Saturday 12th of February 2005 03:19:59 PM
Script: http://www.mysite/forum/admincp/GAL_...o=rebuildspace
Referer: http://www.mysite/forum/admincp/GAL_...php?do=rebuild

How can I do it manual?

And you are talking about a include/geek_autolink.php
But there is not in the zip file! Only admincp/GAL_admin.php and admincp/GAL_install.php is the file not complet?

Thanks for any help!

EDIT: Ok did it manual (looking in the PHP file) and works now almost ok!
De safemod is not working :disappointed:
And if I press the Add new link in the admincp I get :
Thats a crummy text replacement and you know it!
But at Display it works the Add new. strange!


Wow very nice script, thanks!!

OrangeFlea 02-12-2005 02:45 PM

To expand on tomshawk clarification, I thought it would be a good idea for users to somehow add files, containing large lists of keywords and the URLs for each, into the system so they don’t have to initially add them in manually. As it stands now, if I were running a music forum, and my ambition was to have practically every mentioned album hyperlinked, I’d have to collect the URLs first (which is fine), and then manually enter each one (and the album titles) into the system once they’re all collected. I don’t know if it’s practical in terms of building something like it, but I do know it’d be easier.

The Geek 02-12-2005 03:27 PM

Quote:

Originally Posted by Symbian.info
Use install and the readme file, but did not really do the database ad, look:
Database error in vBulletin 3.0.3:

Invalid SQL: SELECT * FROM geek_autolink ORDER BY text asc
mysql error: Table 'mysite.geek_autolink' doesn't exist

mysql error number: 1146

Date: Saturday 12th of February 2005 03:19:59 PM
Script: http://www.mysite/forum/admincp/GAL_...o=rebuildspace
Referer: http://www.mysite/forum/admincp/GAL_...php?do=rebuild

How can I do it manual?

And you are talking about a include/geek_autolink.php
But there is not in the zip file! Only admincp/GAL_admin.php and admincp/GAL_install.php is the file not complet?

Thanks for any help!

EDIT: Ok did it manual (looking in the PHP file) and works now almost ok!
De safemod is not working :disappointed:
And if I press the Add new link in the admincp I get :
Thats a crummy text replacement and you know it!
But at Display it works the Add new. strange!


Wow very nice script, thanks!!

Hey Alex, it looks like you may have an older package. Pre 2.0, there was a fucntions_geek_autolink.php file. Since then the function is inline.

I also went through the code and there are TABL_PREFIX's for all calls so once again I suspect an older version.

I did however find a typo in the changes to your admincp/index.php file. I updated the readme and noted the changes in the first post (basically replace the GAL_admin.php?do=create with GAL_admin.php?do=add

Thanks for that!

The Geek 02-12-2005 03:30 PM

Quote:

Originally Posted by OrangeFlea
To expand on tomshawk clarification, I thought it would be a good idea for users to somehow add files, containing large lists of keywords and the URLs for each, into the system so they don?t have to initially add them in manually. As it stands now, if I were running a music forum, and my ambition was to have practically every mentioned album hyperlinked, I?d have to collect the URLs first (which is fine), and then manually enter each one (and the album titles) into the system once they?re all collected. I don?t know if it?s practical in terms of building something like it, but I do know it?d be easier.

Hey guys,

I know where you are coming from... but to be honest I am not planning on doing something like that (though it would be really easy to do). One reason why is that you would almost need a moderator ability otherwise a user could really mess up your boards big style.

I would rather do the yellow popup box mentioned eariler first - though to be honest I am not even planning on doing that for a little while. I am knee deep in doing some wicked additions to geek articles 3 that I want to focus on. Then I have already started work on geekbay ;)

wirewolf 02-12-2005 03:35 PM

First - Clicked Install, nice hack nail geek.
Quote:

Originally Posted by webrats
im trying to make the links another color without changing the links everywhere............................

I did this to change the color of the GAL_autolink:
find in GAL_admin.php, line 66:
Quote:

$links[]= "$leadingchar<a href='$result[link]' target='_blank' class='DEF' title='$result[description]'>$leadingstripper$1</a>";
Change to this:
Quote:

$links[]= "$leadingchar<a href='$result[link]' target='_blank' class='DEF' title='$result[description]'><font color='#FF0000'>$leadingstripper$1</font></a>";
I chose Red (#FF0000)(same color as used in search.php) but you can put in any color.
Here's an example from one of our posts (I used the word "Finish" as a test autolink to one of our members' Articles.) Another note on color choice, if you change the autolink color, make the color change in GAL_admin.php, then open up any autolink in adminCP and just hit "Save".
One other point on checking to see if a word you want to autolink is included in any url's in any of your existing posts. If you have a downloaded save of your database (YOU SHOULD!), open it up with a text editor and do a search for the words you want to autolink. If they show up inside any urls, you could change one of the words, leave out that certain word, or just use "Safemode". Of course that doesn't help with future posts. It would be nice if you could pick "I wanna play it safe" or "Na, I live life dangerously" for each specific word instead of globally. (Hint - nail geek!)
John

The Geek 02-12-2005 04:30 PM

Quote:

Originally Posted by wirewolf
First - Clicked Install, nice hack nail geek.
I did this to change the color of the GAL_autolink:
find in GAL_admin.php, line 66:

Change to this:
I chose Red (#FF0000)(same color as used in search.php) but you can put in any color.
Here's an example from one of our posts (I used the word "Finish" as a test autolink to one of our members' Articles.) Another note on color choice, if you change the autolink color, make the color change in GAL_admin.php, then open up any autolink in adminCP and just hit "Save".
One other point on checking to see if a word you want to autolink is included in any url's in any of your existing posts. If you have a downloaded save of your database (YOU SHOULD!), open it up with a text editor and do a search for the words you want to autolink. If they show up inside any urls, you could change one of the words, leave out that certain word, or just use "Safemode". Of course that doesn't help with future posts. It would be nice if you could pick "I wanna play it safe" or "Na, I live life dangerously" for each specific word instead of globally. (Hint - nail geek!)
John

Hey John,
I looked at doing it per word... but it seemed excessive as you never know if a word will appear in a link or not.

As for the colour choice, why not just alter the DEF css? The one included is just an example (the one I use).

wirewolf 02-12-2005 05:03 PM

Hi nail,
Quote:

I looked at doing it per word... but it seemed excessive as you never know if a word will appear in a link or not.
See what you mean. Nothings perfect. For example - my test word, 'Finish". In most of the posts, the context of the word 'finish' relates to the article I autolinked to "Finishing of Models". But I found a few where the context in some posts meant "Finish", as in "I just about to 'finish' my model" (as in "done with my model"). That's one area that computers haven't quite solved yet, the word and how it is used in a sentence.
Quote:

As for the colour choice, why not just alter the DEF css?
Thought of that, but the GAL_admin.php method allows for both options, ex: red for one, another color for the other.
John

OrangeFlea 02-12-2005 05:24 PM

Quote:

Originally Posted by the nail geek
Hey guys,

I know where you are coming from... but to be honest I am not planning on doing something like that (though it would be really easy to do). One reason why is that you would almost need a moderator ability otherwise a user could really mess up your boards big style.

I would rather do the yellow popup box mentioned eariler first - though to be honest I am not even planning on doing that for a little while. I am knee deep in doing some wicked additions to geek articles 3 that I want to focus on. Then I have already started work on geekbay ;)

Well, I shouldn't have said "users." I meant admins. Doesn't matter, I suppose, since you're too busy with other projects at the moment.

If anyone comes up with an idea to input multiple keywords and URLs at once (as opposed to one-by-one), I'm all ears.

Symbian.info 02-12-2005 05:59 PM

Quote:

Originally Posted by the nail geek
Hey Alex, it looks like you may have an older package. Pre 2.0, there was a fucntions_geek_autolink.php file. Since then the function is inline.

Nope I download it today!, but standing in the text above. But look wrong. Just wondering..

Quote:

I also went through the code and there are TABL_PREFIX's for all calls so once again I suspect an older version.
See above. today download. But what is the databae SQL format? So that I can check if its really ok..

Quote:

I did however find a typo in the changes to your admincp/index.php file. I updated the readme and noted the changes in the first post (basically replace the GAL_admin.php?do=create with GAL_admin.php?do=add
Ok that solve the add new one problem
Now the safe mode. I must have safe mode .. It looks bad now
Can I do the setting manual??

The Geek 02-12-2005 06:31 PM

Quote:

Originally Posted by Symbian.info
Nope I download it today!, but standing in the text above. But look wrong. Just wondering..


See above. today download. But what is the databae SQL format? So that I can check if its really ok..


Ok that solve the add new one problem
Now the safe mode. I must have safe mode .. It looks bad now
Can I do the setting manual??

hmm.

The table SQL is in the install file.
For safe mode, just clikc settings->Safe mode, and the datastore is built in safe mode.

Symbian.info 02-12-2005 06:36 PM

Quote:

Originally Posted by the nail geek
hmm.

The table SQL is in the install file.
For safe mode, just clikc settings->Safe mode, and the datastore is built in safe mode.

not working. thats why I ask :squareeyed:
How can I do it manual.. What does it do?

OrangeFlea 02-12-2005 07:10 PM

In the demo, I noticed that the keywords had a funky looking underline. Does the hack do that this automatically?

The Geek 02-12-2005 07:24 PM

Quote:

Originally Posted by OrangeFlea
In the demo, I noticed that the keywords had a funky looking underline. Does the hack do that this automatically?

Flea: The dashed underline is from the CSS addition that was in the readme. Change it how you fancy.

Symbian: How is Safe mode not working? Is that when you get the SQL error? Edit your GAL_admin.php file and search for rebuild_datastore its there that the links are built dpending on your preference to safe or dangerous mode.

HTH's

OrangeFlea 02-12-2005 10:02 PM

I'm entering my keywords (half-way done!). I noticed that there is a character limit set for the titles. How do I modify the limit?

Basically, I can enter the keywords normally -- regardless of the number of characters -- but on the display, it will only show a portion of the title if it's more than 20 or so characters. Furthermore, it will only hyperlink the text up to that point, leaving the rest of the text un-linked

The Geek 02-12-2005 10:24 PM

Quote:

Originally Posted by OrangeFlea
I'm entering my keywords (half-way done!). I noticed that there is a character limit set for the titles. How do I modify the limit?

Basically, I can enter the keywords normally -- regardless of the number of characters -- but on the display, it will only show a portion of the title if it's more than 20 or so characters. Furthermore, it will only hyperlink the text up to that point, leaving the rest of the text un-linked

Edit the text column of geek_autolink using phpadmin or something similar.

ryancooper 02-13-2005 11:50 AM

Quote:

Originally Posted by the nail geek
Theres an idea! Ill mull that one over for awhile.

noppid: The idea is that keywords are highlighted without them even knowing about it. Otherwise the previous suggestion would be the perfect hack.

Say you have eBay as a sponsor. Well, everytime eBay is mentioned- it will link it automatically.

Hope that makes sense.
I am mulling over adding a post field to disable it (like disabling smiles). That way if a user notices a link of theirs messed up (or knows ahead of time that it will get messed up) they can simply tick the 'do not autolink me'. Im only hesitant because I hate making DB changes to vB db's.

Ok i am still poretty new with vb but couldn;t this be done with replacements?

The Geek 02-13-2005 12:17 PM

Quote:

Originally Posted by ryancooper
Ok i am still poretty new with vb but couldn;t this be done with replacements?

Hey ryan. Wish it could be, it would make life much easier.
The #1 problem with replacements is that it takes a word like bob but bobs bob's and it will take things like Bob and turn in into bob as it doesnt take the what it is replacing and merge it with a replacment value. In other words, while it may work for some mild instances, replacements are very very limiting for most situations.

HTH's

FASherman 02-13-2005 05:38 PM

Nicely done. Such a simple hack, but with a lot of benefit. Should be a hack of the month candidate.

ryancooper 02-13-2005 08:35 PM

Quote:

Originally Posted by the nail geek
Hey ryan. Wish it could be, it would make life much easier.
The #1 problem with replacements is that it takes a word like bob but bobs bob's and it will take things like Bob and turn in into bob as it doesnt take the what it is replacing and merge it with a replacment value. In other words, while it may work for some mild instances, replacements are very very limiting for most situations.

HTH's

AHHHHhhh I see. . .Well then in that case. GREAT HACK! ;)

OrangeFlea 02-14-2005 02:29 AM

Quote:

Originally Posted by FASherman
Nicely done. Such a simple hack, but with a lot of benefit. Should be a hack of the month candidate.

It'll definitely get my vote. Just finished adding 800+ keywords and links. It was all worth it.

NuclioN 02-14-2005 09:48 AM

Installed...but most of the smileys are not working anymore.
--edit-- w wait... some had the url in it that whas geeked :) Working now.


All times are GMT. The time now is 07:40 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
  • Page Generation 0.01906 seconds
  • Memory Usage 1,874KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (29)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete