PDA

View Full Version : Forum Display Enhancements - Forum Intro 1.04


jaks
22 Dec 2007, 11:13
Forum Intro 1.0.4

NO CHANGES FOR 3.7 beta 3 from 3.6.x version

I should also mention that I was approached by a member that wants to produce a souped up version of this hack for 3.7 with additional doodads and what have you. I will also keep you informed of that as soon as I find out.


This is my first real addon and was inspired by Adrian's forum sponsors hack (http://www.vbulletin.org/forum/showthread.php?t=128829).

What does it do?
It just puts a forum specific table on any forum you choose where you can add more forum info, a larger description, rules specific, links or whatever else you want.

It adds 4 new fields when editing a forum in admincp>>>Forums & Moderators>>>Any forum you want to add the Forum Intro to, near the bottom of the page you will find the following fields.
1. Radio Buttons - Turn on and off Forum Intro
2. Text field - Intro Title
3. Text Area - Some sort of content like a description, forum intro, links, ads etc..
4. Text field - Optional image URL. It uses the title as the image alt and when used creates a separate cell between the content and it.

You can change the template to suit your needs. I didn't do much to it so if anyone wants to post some templates for it please do.

Install: (Should works on VB3.6.x - VB3.7beta3 and more than likely there on after.)
1. Import product_forum_info.xml
2. Add the code below to the forumdisplay template below $navbar is a good place to put it. ( Found in the readme as well)
Updated the template below to match the readme. Hopefully this fixes the error when adding the template edit when copying from the browser. If not, just use the code from the readme as it is the same.
<!-- Begin Forum Intro -->
<if condition="$foruminfo['forumintroonoff'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">


<tr>
<td class="tcat" border="1" valign="top" colspan="2"><div align="center">$foruminfo[forumintroname]</div></td>
</tr>
<tr>
<td class="alt1" valign="top"><if condition="$foruminfo['forumintroimage']"><img src="$foruminfo[forumintroimage]" alt="$foruminfo[forumintroname]" border="0" align="left"></td><td class="alt1" valign="top"></if><div align="left">$foruminfo[forumintrodescr]</div></td>
</tr>

</table>
<br>
</if>
<!-- / End Forum Intro -->

Anyway this is a pretty basic hack, addon whatever you want to call it. Did this to see if I can get the rank up for individual forums on my site.

FORUMHOME or Forum wide(Both need to be manually edited with your HTML)
Below is an example template that you would add below $navbar in the Forumhome template. (This would only show on the forum index page.)
For Forum wide add to the bottom of the Navbar template. (This will be on all pages where the Navbar Template is used. NOT RECOMMENDED)

<!-- Begin ForumHome Intro -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">


<tr>
<td class="tcat" border="1" valign="top" colspan="2"><div align="center">Put The Block Title here</div></td>
</tr>
<tr>
<td class="alt1" valign="top">
<img src="Put Image URL Here" alt="Put Image Title Here" border="0" align="left"></td>
<td class="alt1" valign="top"><div align="left">Put your Content Here using HTML</div></td>
</tr>

</table>
<br>
<!-- / End ForumHome Intro -->

Obviously it would look the same as in the forums but below is an example from my site.
http://www.unusualartists.com/images/forumhomeIntro.jpg

enjoy

Download the product and readme Here (http://www.vbulletin.org/forum/attachment.php?attachmentid=72569&d=1195806963)
Install time: 30 seconds.
Please post bugs in the appropriate thread so as to not confuse things.

If you like this mod and want to show your gratitude I really don't want your money BUT if you want to sign up for my site and post a few pictures I would be very happy. Every post counts even if it is just a couple :) Link is below.

Unusual art from unusual artists - http://www.unusualartists.com

Snake
22 Dec 2007, 20:17
Looks interesting. Thanks for the release!

gforce75
18 Jan 2008, 21:14
Thanks for the mod. Great job :)

dklassen
01 Mar 2008, 17:05
Can you insert HTML such as ad code?

Pamela
05 Mar 2008, 09:08
*Clicks install*

This is awesome! Just what I needed!!! :D

PGAmerica
18 Jun 2008, 03:13
I installed this, but do not see anything in my forums. What am I doing wrong?

tonyzhou
16 Aug 2008, 17:04
I second the motion. I added the HTML and everything

PGAmerica
24 Aug 2008, 18:04
Is there any support here at all?

stonner
16 Sep 2008, 00:50
Is it possible to show the intro also in a thread?

Thank you

Pamela
08 May 2010, 05:24
Here is the code fix for 4.0 if anyone needs it.

I didn't code this, so unfortunately I cannot offer support on it, but it's here in case anyone wants it... :)


-------------------------------
This code is for vb4 only!
-------------------------------

<!-- Begin Forum Intro -->
<vb:if condition="$foruminfo['forumintroonoff'] == 1">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:1px">
<tr>
<td class="tcat" border="1" valign="top" colspan="2"><div align="center"><strong>{vb:raw foruminfo.forumintroname}</strong></div></td>
</tr>
<tr>
<td class="alt1" valign="top"><vb:if condition="$foruminfo[forumintroimage]"><img src="{vb:raw foruminfo.forumintroimage}" alt="{vb:raw foruminfo.forumintroname}" border="0" hspace="5" vspace="5" align="left"></td><td class="alt1" valign="top"></vb:if><div align="left"><div style="padding-left:5px; padding-right: 10px; padding-top: 5px; padding-bottom: 5px;">{vb:raw foruminfo.forumintrodescr}</div></div></td>
</tr>
</table>
<br>
</vb:if>
<!-- / End Forum Intro -->