vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Geek Auto-Linker 4.5 LITE (https://vborg.vbsupport.ru/showthread.php?t=96336)

paulfletcher 04-15-2006 12:05 AM

I'm really confused... lol. I have the Pro version of this, and I've been trying to get those wikipedia images next to our links. I see the code that has been posted a few pages back, but where do I put that code in the software? In Styles, Replacements, Descriptions ??? So confused :-( lol...

Thanks,
Paul Fletcher

ryancooper 04-23-2006 03:45 PM

WOW THis hack is AWESOME! I will definatally install this once I upgrade! Thanks;;; :)

paulfletcher 04-23-2006 04:56 PM

My problem is fixed now.

ryancooper 04-23-2006 11:34 PM

Quote:

Originally Posted by Curzon564
Finally I found this hack (thanks to andreas). \o/

Unfortunately there is a 'little' problem after installing it.

As it seems only the words in the first post get replaced.

If you want, you can see it here quite well:
http://www.board.eternal-chronicles....ead.php?t=4835

In the first Post "RW" gets replaced, in the second it doesn't.


I installed this in my test board and I have the same problem. It only replaces the words in the first post? Any help??

tansu 04-29-2006 11:01 PM

It didn't work in my forum too. I think there is an include problem while page is loading.

When i ctrl+refresh the browser and send message with quick replay, it works

But when i quote a message and send same word it doesn't work.

mawby 05-19-2006 02:35 PM

Hi,

I seem to have the same problem reported by others. I have added the expression "Turbo Timer" into my system.

When I create a new thread with that expression in it gets turned into a link as expected. If I then create a new post using the Quick Reply (AJAX) option then that post too gets displayed correctly with the links in. If I use the tradional Post Reply option then when the thread is redisplayed only the expressions in the first post are changed into links. This applies to all posts, even those that previously worked after a Quick Reply. If, however, I link directly to a post (which isn't the first post) then the expressions get changed into links correctly.

Time for an example. Here is a thread which has two posts, both containing the only expression I have at the moment. As can be seen only the first one gets expanded. However, if I link directly to the second post then it works for that second post, as here.

In my settings I have "Limit replacements per post?" set to zero. I have tried using the Maintenance -> Debug -> Rebuild option and that doesn't fix it.

Any clues as to why this only seems to work on the first post being displayed?

Also, the option to "Ignore thread" doesn't work either.

Any help greatly appreciated. If it's of any relavance I'm running on PHP version 5.0.5.

The Geek 05-19-2006 02:44 PM

huh. Not 100% sure to be totaly honest. Ill try to get to it over the weekend if I can.

mawby 05-19-2006 02:58 PM

Quote:

Originally Posted by The Geek
huh. Not 100% sure to be totaly honest. Ill try to get to it over the weekend if I can.

Thanks, that will be great.

The Geek 05-19-2006 06:45 PM

mawby. I havent had time to even test this change, nor am I sure it will even do what you're after. I just wanted to give it a shot before I head out of town so dont sue me if it doesnt work :)

In your geek/gal/includes/gal_class_core.php file, change the entire process_text function to this:

PHP Code:

    function process_text(&$text)
    {


        static 
$find;
        static 
$replace;
        static 
$cached;
        static 
$settings;

        if (!
$cached)
        {
            
$settings =& $this->settings;
            
$find   =& $settings['data']['text'];
            
$replace=& $settings['data']['replacement'];
            
$find[] = "|<!--GAL-->|";
            
$replace[] = "";
            
$cached 1;
        }
        if (
$settings['limit'] < 1)
        {
            
$settings['limit'] = -1;
        }
        if (
$find)
        {
            
$text preg_replace($find$replace" " $text$settings['limit']);
        }
        return 
$text;
    } 

Now, I guess youre kind of SOL if you don't know what I mean there - all I can do is apologize in advance :)

Once again - I havent even tested the above to see if it works let alone fixes your problem.

Hope this helps anyway :)

mawby 05-19-2006 06:50 PM

Cheers, I'll give it a try this very minute......


All times are GMT. The time now is 03:32 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.01333 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_php_printable
  • (2)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
  • (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