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)

wolfyman 04-15-2005 03:12 PM

I'm with it now, thank you very much :D

The Geek 04-15-2005 05:11 PM

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

Quarterbore 04-15-2005 05:32 PM

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

The Geek 04-15-2005 05:37 PM

It shouldnt do that in safe mode. Please let me know which mode you are running in.

Quarterbore 04-15-2005 05:46 PM

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!

The Geek 04-15-2005 06:52 PM

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 :(

rainyleaves 04-16-2005 04:28 AM

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...^^

rjerina 04-16-2005 05:57 AM

Is this supported in FireFox as well or is it just IE?

The Geek 04-16-2005 06:41 AM

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 :(

rainyleaves 04-16-2005 06:43 AM

Thanks...^^ GEEK.


All times are GMT. The time now is 09:05 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.01775 seconds
  • Memory Usage 1,756KB
  • 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
  • (5)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
  • (3)pagenav_pagelinkrel
  • (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