![]() |
vBa: Show GARS article image on article
I whipped this up for my forums, and it may be of use to some people.
GARS (Geek Article and Review System) - is a system by the geek (http://www.thevbgeek.com) that transforms a forum into a fully disguised articles, reviews, tutorial system ,and so on. This, will display the article image icon that is included with the article you are using on the vBadvanced system. Modifications needed (in #FORUM_DIR#/modules/news.php): Find: PHP Code:
PHP Code:
this code anywhere where you want the image to appear for that article. HTML Code:
<if condition="$geek[header_image]"> <img align="$stylevar[left]" src="$geek[header_image]" alt="" style="padding:6px" alt="" border="0"/> <else /> <img align="$stylevar[left]" style="padding:6px" alt="" border="0" src="$news[avatarpath]" title="$news[postusername]'s $vbphrase[avatar]" /> </if> Enjoy. |
where to download GARS ?
|
I try this and I get this on my potal:
Parse error: parse error, unexpected $ in /domains/myredspider.net/public_html/home/modules/news.php on line 333 |
Quote:
www.thevbgeek.com you have to buy it there first to get access to the download area. RC will be released soon. |
I got my problem fix thank you any way .
|
i really want to buy most of the geek stuff but its all in beta at the moment
|
Quote:
Hopefully! :) |
Quote:
|
I used the code and works perfect! Thanks.
|
Quote:
BTW, updated the code, No real reason for a query_read and a which when I can just fetch the array using the query_first function. Also used a free_result function to free up the results of the query so we can clear the little memory we are using with this query in the cache. Templates were changed slightly too. (Mandatory to change templates if you are going to change the code and use my update.) This update does not add any functionality to the script, it just makes it a bit more efficient. If you currently have the script installed, you can just bypass the update if you want. |
All times are GMT. The time now is 08:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|