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] Find: PHP Code:
PHP Code:
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> Enjoy. |
Superb! Looks great.
|
Yes it does look great & thanks for sharing your coding skills "Cole". :D
|
I tried to use this but when I made the edit to new.php I get this error message:
Parse error: parse error, unexpected T_VARIABLE in /forums/modules/news.php on line 180 Line 180 is: $geek = array(); |
any screenshots or demos of this? thanks great work
|
Hello Cole,
Quote:
I can see on your home page (http://www.digitalsupremacy.com) that the list of articles display articles from different forums and sub-categries forums. Is it possible to do this with GARS (we've bought it and we made a lot of tests, but can't find the way to do this :rolleyes: ) ?... Thanks for your help... Best Regards |
newave, "vBa" is short for vBadvanced. In this case it's the vBadvanced CMPS portal that is being referenced.
http://www.vbadvanced.com |
For the template wouldn't be better
HTML Code:
<if condition="$geek[0]"> |
Cole, thanks for the contribution! This is exactly what I needed!
Lizardking, thanks for the modification! :D |
Quote:
|
All times are GMT. The time now is 09:57 AM. |
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Release powered by GARS 2.1.9 ©2005-2006