The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Tutorials

Tutorials Tutorials and articles on using vB Geek stuff.

Advertisement
  Learn how to remove ads

Comment
 
Tutorial Tools Display Modes
Using GAL with vBaCMPS
Using GAL with vBaCMPS
Published by The Geek
09-15-2005
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.

find
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
GAL

Tutorial Tools
Show Printable Version  Email this Page 

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

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
  #2  
By Bad Bunny on 09-15-2005, 04:56 PM
Default

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

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
  #4  
By Fleabag on 09-16-2005, 12:18 AM
Default

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

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

i postyed this on vb.org 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??

and
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
  #7  
By The Geek on 02-02-2006, 06:57 PM
Default

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.

HTHs
Reply With Quote
  #8  
By PixelFX on 02-24-2006, 06:43 AM
Default

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

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
Comment

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:52 AM.


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

Tutorial powered by GARS 2.1.9 ©2005-2006