vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Geek AutoLinker 3.00 RC1 (https://vborg.vbsupport.ru/showthread.php?t=79627)

The Geek 04-09-2005 07:50 AM

updated package to allow for "'s in replacement variable. Also added a couple of replacement examples in the first post.

Frzzy 04-09-2005 10:36 AM

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?"

The Geek 04-09-2005 10:56 AM

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 ;)

Frzzy 04-09-2005 11:32 AM

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 Geek 04-09-2005 11:42 AM

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.

The Geek 04-09-2005 11:58 AM

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?

T3MEDIA 04-09-2005 01:41 PM

Quote:

Originally Posted by The Geek
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?

Doing it now. ON A LIVE BOARD!
6000 users online.... IT BETTER WORK!
Hum... ha. he... muhah ahhahahahhaha HAAAAAAAAA!

zachlee 04-09-2005 01:47 PM

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
$link = url
$description = link title
$text is the text replacement.

For example. Every instance of all my keywords were being removed instead of linked. So I set the variable $text = 49ers and I ended up with:
Code:

1. San Francisco  49ers = 49ers
in the forum, niether case being linked.

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.

The Geek 04-09-2005 01:51 PM

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

The Geek 04-09-2005 01:52 PM

Quote:

Originally Posted by zachlee
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
$link = url
$description = link title
$text is the text replacement.

For example. Every instance of all my keywords were being removed instead of linked. So I set the variable $text = 49ers and I ended up with:
Code:

1. San Francisco  49ers = 49ers
in the forum, niether case being linked.

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.

Whats the global replacement value (in settings).
Use the one listed in the first post in this thread that says normal


All times are GMT. The time now is 08:57 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.01132 seconds
  • Memory Usage 1,742KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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