The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Add-ons

Add-ons Modifications and add-ons for vB Geek stuff.

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

Comment
 
Release Tools Display Modes
 
Old 05-10-2006, 07:00 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default vba CMPS GARS block

This is just a quick vba Module I threw together to try and please the 'Damnit - come up with vba support' people.

This will create 3 different layouts depending on the modules...

Last edited by The Geek; 04-14-2007 at 11:53 AM..
Reply With Quote
  #100  
By The Geek on 08-14-2006, 02:49 PM
Default

Not yet... Im still ov vacation!
Reply With Quote
  #101  
By altsounds on 08-15-2006, 08:43 AM
Default

Quote:
Originally Posted by The Geek
Not yet... Im still ov vacation!
I got it now anyway. It was calling the vburl at the beginning and on the image call causing it to pull in the VBURL twice. I removed it from the image portion and replaced with "" and nowall works fine.
Reply With Quote
  #102  
By The Geek on 08-15-2006, 08:56 AM
Default

Thanks for the heads up.
Reply With Quote
  #103  
By Fleabag on 08-20-2006, 12:23 AM
Default

This works well, thanks a lot!
Reply With Quote
  #104  
By allsoppg on 08-20-2006, 11:54 AM
Default

how would i do this on vb3.6 and the latest version of gars

i dont see this option in the "type" section
Reply With Quote
  #105  
By Shack Networks on 08-21-2006, 01:58 PM
Default

Is it me or does it not parse BB code on the block.. ?

Anyway to make it parse BB code ?
Reply With Quote
  #106  
By Shack Networks on 08-21-2006, 05:57 PM
Default

Answered it myself...

Find

PHP Code:
$maxchars 600;    //  Maximum amount of chards to snip 
Add Under

PHP Code:
$parsebb 1
Thanks to my m8 Gaf for sorting it..

JFYI

maxchars may be diff on your gars.php module php
Reply With Quote
  #107  
By ang2el on 08-25-2006, 04:12 AM
Default

Is this the random review shown in the homepage and if yes does it work with vb3.6 ?
Reply With Quote
  #108  
By The Geek on 08-25-2006, 07:34 AM
Default

Yes. No. After I upgraded one of my sites to 3.6 It stopped working. However it shouldnt be too big of a deal (it may also just be my site)
Reply With Quote
  #109  
By chrisj8221 on 08-31-2006, 11:32 PM
Default

Followed the tutorial on setting up module for vb advance and here is what it looks like
article_mess.jpg
I am assuming it must be a mistake in the template code to do with <tr> or <td>. copied the code out of the tutorial so am assuming it should be fine.

Any ideas? code in templates shown for better understanding.


...bit1
PHP Code:
<if condition="$vertical"><tr></if><td class="alt2" align="center">
    <
a href="$bburl/showthread.php?t=$result[threadid]" title="$result[title]">
    <
img alt="$result[title]" src="$result[image]" style="border: 2px #000000;padding:2px;" /><br />
    <
strong>$result[title]</strong></a><div class="smallfont">$result[byline]</div>
</
td>
<if 
condition="$vertical"></tr></if> 
... bit2
PHP Code:
<td class="alt1" rowspan="3" valign="top">
            <
a href="$bburl/showthread.php?$session[sessionurl]t=$result[threadid]"><img src="$result[image]" border="0" style="border: 2px #000000;padding:2px;" alt="$result[title]" /></a>
    </
td>
    <
td class="alt2" valign="top" width="100%" colspan="2" title="Read More">
        <
div>
            <
a href="$bburl/showthread.php?$session[sessionurl]t=$result[threadid]"><strong>$result[title]</strong></a>
            <if 
condition="$result[byline]">
               <
div class="smallfont">$result[byline]</div>
            </if>
            <if 
condition="$result['message']">
            <
div class="smallfont"><hr>$result[message]</div>
            </if>
        </
div>
    </
td>
    </
tr>
<if 
condition="$result['author_rating'] || $result['member_rating']">
<
tr>
    <if 
condition="$result['author_rating']"><td class="alt1" style="white-space:nowrap;" <if condition="!$result['member_rating']">colspan="2"</if>><span class="smallfont">Author rating</span></td></if>
    <if 
condition="$result['member_rating']"><td class="alt1" style="white-space:nowrap;" <if condition="!$result['author_rating']">colspan="2"</if>><span class="smallfont">Member rating</span></td></if>
</
tr>
<
tr>
    <if 
condition="$result['author_rating']"><td class="alt2" <if condition="!$result['member_rating']">colspan="2"</if>><img class="inlineimg" src="$stylevar[imgdir_rating]/gars_$result[author_rating].gif" border="0" alt="Author rating: $result[author_rating_percent]%" /></td></if>
    <if 
condition="$result['member_rating']"><td class="alt2" <if condition="!$result['author_rating']">colspan="2"</if>><img class="inlineimg" src="$stylevar[imgdir_rating]/gars_$result[member_rating].gif" border="0" alt="Member rating: $result[member_rating_percent]%" /></td></if>
</if>
<
tr>
    <
td class="tcat" style="padding:0px;" colspan="3"><span class="smallfont">&nbsp;</span></td
... bit3
PHP Code:
<td class="alt2" align="$stylevar[left]">
    <
a href="$bburl/showthread.php?t=$result[threadid]" title="$result[message]">
    <
strong>$result[title]</strong></a><if condition="$result['byline']"><div class="smallfont">$result[byline]</div></if>
</
td
I'm sure it is something silly that I have missed.

Thanks in advance.

Chris
Reply With Quote
Comment

Release 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

Similar Threads
Release Release Starter Category Comments Last Post
Who wants a GARS module for vBa CMPS? (vB 3.7+) daisukem Geek Article and Review System 4 08-21-2009 09:37 AM
how to make Top 5 Articles block show up on frontpage (vbA CMPS) beowulf68 Geek Article and Review System 1 02-23-2008 10:29 AM
GARS / Links vBA block gothic Geek Article and Review System 1 09-24-2006 10:07 AM
GARS + vBA CMPS SoloX Geek Article and Review System 9 07-15-2006 04:51 AM
Yet Another GARS and vBA CMPS thread... tgreer Geek Article and Review System 20 04-27-2006 07:17 PM


All times are GMT. The time now is 02:49 PM.


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

Release powered by GARS 2.1.9 ©2005-2006