View Full Version : Forum Link Image
As requested in this post (https://vborg.vbsupport.ru/showthread.php?t=109645)
This Mod will add an image in the lastpost info for any Forum Link in ForumHome and ForumDisplay.
Let's edit some templates
Open forumhome_forumbit_level1_post & forumhome_forumbit_level2_post Templates
Find
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
Change it to
<td class="alt2" nowrap="nowrap"><if condition="$forum['link']">
<if condition="$forum['forumid'] == x"><img src="http://url.gif" alt="blablabla" border="0" /></if>
<if condition="$forum['forumid'] == xx"><img src="http://url.gif" alt="blablabla" border="0" /></if>
<if condition="$forum['forumid'] == xxx"><img src="http://url.gif" alt="blablabla" border="0" /></if>
<if condition="$forum['forumid'] == xxxx"><img src="http://url.gif" alt="blablabla" border="0" /></if><else />$forum[lastpostinfo]</if></td>ADD/REMOVE/CHANGE urls to your image and forum ids where x is the forum id.
Funkie
03-07-2006, 08:08 AM
thx a million m8 works a treat and such fast service:)
first to click install:)
eNforce
03-07-2006, 08:16 AM
Good work uae
hbalagh1
03-07-2006, 08:19 AM
definitially a useful hack IMO
Glad that you all like it :)
Xplorer4x4
03-07-2006, 08:42 AM
I was going to use it, but decided not to. :p
Good work anyways.
Allan
03-07-2006, 09:27 AM
Nice idea ;)
Funkie
03-07-2006, 09:39 AM
how would I get rid of the - from threads and posts columns?
how would I get rid of the - from threads and posts columns?That will require a lot of template changes and I ain't got the time to try that out at the moment, but I am sure it will need some heavy changes to your templates.
Sorry :ermm:
Funkie
03-08-2006, 07:19 AM
ok m8 thanks
Snake
03-10-2006, 09:10 AM
Thanks bro!
Funkie
03-23-2006, 09:33 PM
I made a slight change allows image to become the link too
<td class="alt2" nowrap="nowrap"><if condition="$forum['link']">
<if condition="$forum['forumid'] == X"><a href="http://url of link of image"><img src="url.gif" alt="blablabla" border="0" /></a></if>
<if condition="$forum['forumid'] == XX"><a href="http://url of link of image"><img src="url.gif" alt="blablabla" border="0" /></a></if>
<if condition="$forum['forumid'] == XXX"><a href="http://url of link of image"><img src="url.gif" alt="blablabla" border="0" /></a></if>
<if condition="$forum['forumid'] ==XXXX"><a href="http://url of link of image"><img src="url.gif" alt="blablabla" border="0" /></a></if><else />$forum[lastpostinfo]</if></td>
Hope you don't mind and thanks again you can even add a paypal donation button like this after getting the html from paypal
<td class="alt2" nowrap="nowrap"><if condition="$forum['link']">
<if condition="$forum['forumid'] == X"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@your domain.com">
<input type="hidden" name="item_name" value="Domain and Maintenance Donations">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form></if><else />$forum[lastpostinfo]</if></td>
dirtycrow
04-18-2006, 01:45 PM
what size should the images be to fit perfectly in the field?
Thanks for this add-on !!!!!
How to make the image span also Threads-count and Posts-count column next to Lastpost column?
That will be wonderfull place for SQUARE BANNERS :-) You should then also rename the thread to SQUARE BANER ON FORUMHOME or something and you will get more installs .-) I BET
Thanks!!!!
TedR719
12-27-2006, 08:29 PM
Any help with what im trying to do in this post?
https://vborg.vbsupport.ru/showthread.php?t=134903&highlight=image+in+forum+link
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.