The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Tutorials

Tutorials Tutorials and articles on using vB Geek stuff.

This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Tutorial Tools Display Modes
Using GAL with vBaCMPS
Using GAL with vBaCMPS
Published by The Geek
Default Using GAL with vBaCMPS

GAL has been created in a way that makes it a snap to parse text other than your standard posts.

One popular request for many users is to use GAL on their homepage in the news section of their vBaCMPS.

This teeny tutoiral will show you exactly how easy it is to do that!

Open your forums/modules/news.php for editing.

PHP Code:
if (empty($newsforumperms["$news[forumid]"])) 
Above, add
PHP Code:
$news['message'] = $vbulletin->gal->process_text($news['message']); 
Save it and Viola! GAL will now parse your news section.

Cool eh?
Tutorial for

Tutorial Tools
Show Printable Version  Email this Page 

By Fleabag on 09-15-2005, 04:10 PM

Geek you're a mind reader! I was trying to work this out last night. I'll give it a whirl on RC3 when I get home from work.
Last edited by Fleabag; 09-16-2005 at 12:17 AM..
Reply With Quote
By Bad Bunny on 09-15-2005, 04:56 PM

Wow. That is indeed very simple!
Reply With Quote
By The Geek on 09-15-2005, 04:58 PM

Basically, you can do that with any page that loads global.php

$results = $vbulletin->gal->process_text($text_to_parse);

I thought it was a pretty nifty feature
Reply With Quote
By Fleabag on 09-16-2005, 12:18 AM

I'm guessing this can be done using a hook also?
Reply With Quote
By The Geek on 09-16-2005, 06:58 AM

sure.,,, anywhere
Reply With Quote
By mikecp421 on 02-02-2006, 06:44 PM

i postyed this on but I guess its better suited for here. I use the lite for now and had this question

in the GAL manager in this box;

"Ignore threadid (dont autolink this thread)" what do I enter to have every occurence to be linked??

with regards to the ordinal, I know it means "The order of replacement. This is a very important setting as it determines which links will get replaced first. Links are on a first come first serve basis. The lower the ordinal, the more precedence the links have" but what numbner should I have in there if I want every occurence to be linked?
Reply With Quote
By The Geek on 02-02-2006, 06:57 PM

You dont need any number in either boxes for every occurence to be linked.

The ignore thread ID will prevent that thread from getting gal 'ed by that entry while the ordinal just specifies the order it will get linked.

Reply With Quote
By PixelFX on 02-24-2006, 06:43 AM

how would I link this to the vB Journal ? for example?
Reply With Quote
By The Geek on 02-24-2006, 07:30 AM

same way. Not sure exactly where the journal text gets parsed (i.e. if there is a hook in there) but essentially you would do the exact same thing.
Reply With Quote

Tutorial Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 07:12 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

Tutorial powered by GARS 2.1.9 ©2005-2006