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)

jcr 03-13-2005 10:27 PM

I upgraded to the lates version, but now the safe-mode does not work at all?

See this post for exactly what I mean ( well it should, but does not )

http://www.bareprat.com/showpost.php...29&postcount=8

The above does not work at all,

But this:
http://www.bareprat.com/showthread.p...129#post232129

Shows you exactly what i mean..

zachlee 03-21-2005 04:14 PM

Is it possiable to us a JS command with GAL?

ie,

onmouseover="window.status='Football-Forums.com Affiliate';

If so, how/where would I place it, to make it work.

The Geek 03-21-2005 10:14 PM

JCR - hey man - I totaly missed your post - sorry about that. Can you try rebuiling in dager mode for me and ill check the link again. There are snippets of the HTML that looks odd.

Zachlee - yea you can - you can find the html in the GAL_admin.php file (under redbuild_datastore)

agiacosa 03-23-2005 08:26 PM

Hi,

I have a situation where I need to provide auto links to the following:

rotala macranda
rotala rotundifolia
rotala wallichii

Is it possible to have the system link each one to a different link or is it going to link all three to the same link? Do I need to put it into some sort of order?

The Geek 03-24-2005 10:20 AM

Quote:

Originally Posted by agiacosa
Hi,

I have a situation where I need to provide auto links to the following:

rotala macranda
rotala rotundifolia
rotala wallichii

Is it possible to have the system link each one to a different link or is it going to link all three to the same link? Do I need to put it into some sort of order?

each link can be seperate and wont cause a problem as each keyword is different.

however if you had rotala as a keyword too, then you would want that last as it will replace all the others first, then the single rotala.

If that makes sense ;)

Lionel 03-24-2005 07:06 PM

I have an idea for mass auto-linking, using vbalinks and geekarticles (I use for biographies etc...)

1-we alter table links add new field gal_linked.

2-we do a query, select title, url where gal_linked=0

3-we get the result in a new editable page where we can alter title, and a checkmark to select it.

4-and on submit, we update auto link with those values while setting gal_linked = 1 in links table

same thing for Articles.

Sound simple, right?

I don't know how to do it!!! But I know it should be less than 5 minutes.

Lizard King 03-26-2005 09:12 AM

Quote:

Originally Posted by Lionel
I have an idea for mass auto-linking, using vbalinks and geekarticles (I use for biographies etc...)

1-we alter table links add new field gal_linked.

2-we do a query, select title, url where gal_linked=0

3-we get the result in a new editable page where we can alter title, and a checkmark to select it.

4-and on submit, we update auto link with those values while setting gal_linked = 1 in links table

same thing for Articles.

Sound simple, right?

I don't know how to do it!!! But I know it should be less than 5 minutes.

Maybe it might be possible to search this query for some forums thread name . Instead of writing one by one this might be way easier to use and it will give vbulletin'e complete new face.

memobug 03-27-2005 07:29 AM

TNG, Three questions before I try installing this, please:

1. could you explain this statement on the README in the context of now having safe mode, is it still true?
Quote:

Can really mess up some hyperlinks. For example, if a post has www.bob.com/my_bestlink.html and you have bestlink as an autolink... it will mess up the original hyperlink.
Curernlty I have no way to prevent this apart from prayers. Interestingly, it happens very seldom.
2. Does this actually alter the post text or does it simply modify the output as it is being displayed? That is if it turns out to be a problem can we just uninstall the hack without worrying that the data have been linked?

3. What does someone who edits a thread that contains autolinks see in the editor? ANSWER - It's fine it the autolink doesn't show in the editor!

Thanks a lot.

Matt

memobug 03-27-2005 08:02 AM

Note on installation

Step 4.1 says
Quote:

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

but in vb3.07 I have

Quote:

// *************************************************

$printhr = false;
if (can_administer('canadminstyles'))
I put the the insertion before the comment bit.


2. Also - the CSS for the autolinks is still missing in the download.

3. Any idea why the sequence

, keyword
. keyword

(that is comma-space-keyword or period-space-keyword) doesn't autolink the keyword?

Regards,

Matt

trainer 04-01-2005 10:50 PM

will these both link

name and Name - will this hack treat these as the same? even with the first letter capitalized?

memobug 04-01-2005 10:56 PM

Quote:

Originally Posted by trainer
will these both link

name and Name - will this hack treat these as the same? even with the first letter capitalized?

I believe so - I haven't seen any case sensitivity in any of my links yet.

Regards,

Matt

The Geek 04-02-2005 05:54 AM

Matts right - it will link them regardless of case. name Name nAme NAME names name. name NAme! are all the same to the system

Tom1234 04-03-2005 06:53 PM

The CSS for the autolinks is still missing in the download.

Tom1234 04-03-2005 08:03 PM

How about adding an option of only linking a phrase once per post or once per thread rather than every occurrence so it's not so annoying to members?

One problem... in safe mode, if you search on the phrase, it won't get linked because of the <span class="highlight"> tag that surrounds it. What would be a good way to avoid that problem - insert a space before and after the highlighted word in the highlighting code so the HTML would come out as

<span class="highlight"> PHRASE </span>

which would then get autolinked?

TheFocusElf 04-04-2005 03:26 AM

tag -- to be installed tomorrow night -- geek autolinker 2.0

The Geek 04-04-2005 05:42 AM

interesting idea - ill hve to play about with that one. As far as linking once per post... ill have a play with that as well.

Tom1234 04-04-2005 05:57 PM

Geek,

You still have the "gel" typo in the README:

3.2 BELOW ADD

// === GEEK AUTOLINK step 3.2 ===
'gal_text', 'gal_links', 'gal_ignores','gel_settings',
// === /GEEK AUTOLINK ===

The Geek 04-04-2005 06:24 PM

Quote:

Originally Posted by Tom1234
Geek,

You still have the "gel" typo in the README:

3.2 BELOW ADD

// === GEEK AUTOLINK step 3.2 ===
'gal_text', 'gal_links', 'gal_ignores','gel_settings',
// === /GEEK AUTOLINK ===

thanks - ill look at rolling up to another release this week

Lizard King 04-04-2005 07:37 PM

If i move the geet auto link menu to modcp will my mods also be avaible to add links ? Cause it is a pain in the ass to add bunch of links by myself :rolleyes:

The Geek 04-04-2005 07:40 PM

Quote:

Originally Posted by Lizard King
If i move the geet auto link menu to modcp will my mods also be avaible to add links ? Cause it is a pain in the ass to add bunch of links by myself :rolleyes:

havent tried it - but should work in theory ;)

Tom1234 04-04-2005 10:09 PM

Quote:

Originally Posted by The Geek
greenhybrid: Make sure the longer is in the system first.
The order that they are put in is the order they are matched.

Is there a better way to do this rather than requiring the longer match phrase (e.g. Toyota Celica) be entered before the shorter one (e.g. Toyota)? Maybe you can sort them internally first by length and then by alphabetic?

The Geek 04-04-2005 10:21 PM

Quote:

Originally Posted by Tom1234
Is there a better way to do this rather than requiring the longer match phrase (e.g. Toyota Celica) be entered before the shorter one (e.g. Toyota)? Maybe you can sort them internally first by length and then by alphabetic?

currently - no there isnt. Ill add an ordinal column in a future release though.

memobug 04-04-2005 10:41 PM

Quote:

Originally Posted by The Geek
Ill add an ordinal column in a future release though.

1. That would be helpful. I found that I'd added so many links that being able to organize them by categories would be helpful (movies, games, etc) I would probably be using that ordinal column for that purpose, so it would help

2. How about adding a TITLE text field to the link so a tooltip shows up when you hover on it?

Thanks for this great hack!

Matt

The Geek 04-05-2005 05:34 AM

Quote:

Originally Posted by memobug
1. That would be helpful. I found that I'd added so many links that being able to organize them by categories would be helpful (movies, games, etc) I would probably be using that ordinal column for that purpose, so it would help

2. How about adding a TITLE text field to the link so a tooltip shows up when you hover on it?

Thanks for this great hack!

Matt

Yea - its actually already there - I just forgot to tie it into the admincp!

Ill look into the categories option too

Tom1234 04-05-2005 05:46 AM

I notice that the text to match on can only be 25 characters since that is its size in the DB. Is it OK to just change that VARCHAR(25) to a larger number in the DB without breaking anything else?

The Geek 04-05-2005 05:49 AM

sure - wouldnt cause any problems being longer. I dont think there is a check on the textbox size before update/insertion.

Tom1234 04-05-2005 06:04 AM

The autolinker was working perfectly, but then began displaying incomplete link code in the message posts rather than using the proper link syntax. I do not have an example since I immediately rebuilt the list and fixed it, but the only things I can think of that changed was that I deleted one autolinker entry (which was the first time I had done that) and later a re-start of the httpd daemon. Any clues as to how things could have been corrupted with the autolinker text replacement? I'm not familiar with the "datastore" and how that maintains state through an httpd restart. My suspicion is the entry deletion however. I'm using "safe mode" here if that matters.

The Geek 04-05-2005 06:15 AM

hmmm. got me. Every time you make a chage - it rebuilds the datastore. THe datastore is simply just a serialized version of an array of built links. this saves an extra query to the db and save looping through and rebuilding at run time.

The only thing I can think of is that it rebuilt it in danger mode instead of safe mode.

Lizard King 04-05-2005 08:42 AM

Geek for the next version is there a way to add some forum id's to settings so that whenever a new thread will be open in that forum the thread name will be auto linked ?
it might be really good for movie - book forums .

The Geek 04-05-2005 08:49 AM

Quote:

Originally Posted by Lizard King
Geek for the next version is there a way to add some forum id's to settings so that whenever a new thread will be open in that forum the thread name will be auto linked ?
it might be really good for movie - book forums .

Hey Mert - I think that could be a little bit of a nightmare. Maybe as an addon or something. GAS uses a new file that ties into this that could be used as the basis for something like this.

Hooper 04-05-2005 10:23 AM

I'm having the same database error I'm reading about in here. Anyone know how to resolve it with vb3.07?

Thanks

The Geek 04-05-2005 10:53 AM

Quote:

Originally Posted by Hooper
I'm having the same database error I'm reading about in here. Anyone know how to resolve it with vb3.07?

Thanks

You mean the table creation at installation? here is the command to create the table. Just run this in a sql window:
Code:

'CREATE TABLE geek_autolink (
                      `id` int(11) NOT NULL auto_increment,
                      `text` varchar(25) NOT NULL default '',
                      `link` varchar(250) NOT NULL default '',
                      `ignorethread` int(11) NOT NULL default '0',
                      PRIMARY KEY  (`id`);

HTH's

Hooper 04-05-2005 11:47 AM

Quote:

Originally Posted by The Geek
You mean the table creation at installation? here is the command to create the table. Just run this in a sql window:
Code:

'CREATE TABLE geek_autolink (
                      `id` int(11) NOT NULL auto_increment,
                      `text` varchar(25) NOT NULL default '',
                      `link` varchar(250) NOT NULL default '',
                      `ignorethread` int(11) NOT NULL default '0',
                      PRIMARY KEY  (`id`);

HTH's


I get an error running that as well... :=(
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax near ''CREATE TABLE geek_autolink (
`id` int(11) NOT NULL auto_increme' at line 1

konstance 04-05-2005 04:48 PM

There seems to be a parenthesis missing at the end of the statement:
Code:

CREATE TABLE geek_autolink (
                      `id` int(11) NOT NULL auto_increment,
                      `text` varchar(25) NOT NULL default '',
                      `link` varchar(250) NOT NULL default '',
                      `ignorethread` int(11) NOT NULL default '0',
                      PRIMARY KEY  (`id`));


007 04-06-2005 07:42 PM

What this is missing is an option to enter text for "STATUS BAR DISPLAY!"

Let's put some basic javascript to work and hide those affiliate codes in the links! :)

I have searched the files inside and out with no luck whatsoever on any ideas for doing this.. I can't find where links are made..

The Geek 04-06-2005 07:51 PM

Quote:

Originally Posted by 006
What this is missing is an option to enter text for "STATUS BAR DISPLAY!"

Let's put some basic javascript to work and hide those affiliate codes in the links! :)

I have searched the files inside and out with no luck whatsoever on any ideas for doing this.. I can't find where links are made..

currently, links are made in the admincp.
However that is about to change. I have a new version I am working on the upgrade script for right now.
If you want to slide me the js ill see if I can work it into the next release.

The new version features:
Description field (for the url 'title' attribute). Was in there, just didnt draw up the interface for some dumb reason
Ordinal field. So you can specify the order of replacement instead of the 'first come first served' option.
Installer. This is the thing that is taking so freaking long. I am adapting my GISH installer for this hack. Eventually all of my hacks will feature my installer that auto edits files for you (if you want that is).
Limit option. Someone was asking for the option to limit a match to once per post. Thats in there now.

I think thats about it besides a few other tweaks and fixes.

Beta testers for the installer/upgrader can PM me if they want to give it a whirl. Should be ready by tomorrow if I get time to finish it up.

konstance 04-06-2005 08:43 PM

I have a little problem with the comments under the article. When I set "Show preview of comments only on the last page" to No, the comments do not appear at all. There is a word "Comments" under the article, but no comments themselves. Any Ideas why that would happen?

You can check out the test page here: (currently that option is set to No)

http://www.digital-tutors.com/forums...play.php?f=107

Thanks in advance for any help

The Geek 04-06-2005 08:46 PM

Quote:

Originally Posted by konstance
I have a little problem with the comments under the article. When I set "Show preview of comments only on the last page" to No, the comments do not appear at all. There is a word "Comments" under the article, but no comments themselves. Any Ideas why that would happen?

You can check out the test page here: (currently that option is set to No)

http://www.digital-tutors.com/forums...play.php?f=107

Thanks in advance for any help

check the number of comments to preview (and post the response in the GAS thread as this thread is for the Geek Auto Linker ;) )

konstance 04-06-2005 09:15 PM

ooops, sorry about that. I was wondering why I couldn't find my post in the GAS forum! ha.

zachlee 04-06-2005 09:43 PM

Quote:

Originally Posted by 006
What this is missing is an option to enter text for "STATUS BAR DISPLAY!"

Let's put some basic javascript to work and hide those affiliate codes in the links! :)

I have searched the files inside and out with no luck whatsoever on any ideas for doing this.. I can't find where links are made..


I tried looking at the code as well to implement this, but came up short. I would LOVE to be able to hide affiliate links.


All times are GMT. The time now is 12:40 PM.

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.03149 seconds
  • Memory Usage 1,854KB
  • 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
  • (3)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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