The vB Geek

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

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

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

Release Tools Display Modes
Prev Previous Post   Next Post Next
Junior Member

vB Version: x

Mod Version: x

Released: 11-02-2005

Installs: 34

Last Update: n/a

DB Changes
Installer Included
Uses Plugins
Template Changes
Code Changes
Additional Files
Is a Beta!
Default Topic Image on vBA articles.

I whipped this up for my forums a couple weeks ago.

This will display the topic image along with the article on vBA home (If you get the feed from the forum where articles are defined, you will see the article image in the template).

Modifications needed (in #FORUM_DIR#/modules/news.php): [vBA File]

PHP Code:
$news['message'] = substr($news['message'], 0strrpos(substr($news['message'], 0$mod_options['portal_news_maxchars']), ' ')) . '...' construct_phrase($vbphrase['read_more'], $vbulletin->options['bburl'], $news['threadid'], $session['sessionurl']);
Below Add:
PHP Code:
// GARS modification
$geek = array();
$getgeek $db->query_read("SELECT header_image FROM " TABLE_PREFIX "gars WHERE threadid=" .$news['threadid'] . "");
                while (
$geeksql $db->fetch_array($getgeek)) {
$geek[] = $geeksql['header_image'];
// / GARS modification 
Then, in templates, you can insert in the vBA newsbit (adv_portal_newsbit)
this code anywhere where you want the image to appear for that article.

Better template modification contributed by Lizard King.

HTML Code:
<if condition="$geek[0]"> <img align="$stylevar[left]" src="$geek[0]" 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>


Release Tools


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
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
Topic Image and vBa? wolf32 Geek Article and Review System 4 06-13-2007 08:39 PM
Max image number for articles (GARS 2.0) Zazula Geek Article and Review System 3 01-12-2007 08:13 AM
of topic? beduino Lizard Lounge 1 11-10-2006 04:28 AM
I don't think this is necessarily off topic, but I must say I'm impressed so far... FRAiD Lizard Lounge 1 11-12-2005 09:55 AM

All times are GMT. The time now is 03:12 PM.

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

Release powered by GARS 2.1.9 ©2005-2006