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 amnesia623 on 03-23-2007, 04:32 AM

so how does this work with the current version? How can I process text in my vbadvanced pages?

...think i missed something somewhere
Reply With Quote
By The Geek on 03-23-2007, 07:26 PM

There isnt a specific way to do this with the 5.x series yet as its still in beta.
Reply With Quote
By KenDude on 01-23-2008, 04:28 AM

FWIW the method described in this article does NOT work on VBa CMPS 3.0 RC2, all you will get is a blank page if you try to insert that line into the news.php file.
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 10:49 AM.

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

Tutorial powered by GARS 2.1.9 ©2005-2006