View Full Version : Forum Home Enhancements - vB Category Icons
Logikos
06-08-2005, 10:00 PM
vB Category Icons
vBulletin 3.5.0 RC 1
www.vBHackers.com
What this does
This will allow you to setup a icon to display by the title of each forum you have. The look of the icon depends on how you want to set it up in the templates. This will work for all levels of sub-forums.
Note:
This hack will work for vBulletin Version 3.5.0 RC-1 and RC-2 ONLY!
To do list...
Time to install: 3 minutes
Queries to run: 1
File Mods: 0
Templates to edit: 2
Templates to add: 0
New Phrases: 1
New Plugins: 2
Template Edit
Alot of people want to get there icon like my screenshot. So you have bugged me enough for me to post how. :p Enjoy!
Replace Template: forumhome_forumbit_level1_post With The Folllowing:
<tbody>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>$forum[forumhomeicon]</td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
$childforumbits
</tbody>
</if>
Replace Template: forumhome_forumbit_level2_post With The Folllowing:
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>$forum[forumhomeicon]</td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits
And Thats All! :)
Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
[b]PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack
[b]Click It
[img]https://vborg.vbsupport.ru/images/darkblue/buttons/installed.gif (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=82750)
Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.
Please post bugs and errors here. Hope you like, feedback welcomed.
Andreas
06-09-2005, 06:52 PM
You might want to update the instructions to save 1 file-edit, as this can be done with a plugin :)
Logikos
06-09-2005, 06:53 PM
I can use the hooks for "class_db_forum.php"?
Andreas
06-09-2005, 06:55 PM
Yes. See my post in your thread regarding this.
Logikos
06-09-2005, 07:07 PM
See mine :p
Logikos
06-09-2005, 07:17 PM
Hack Updated: Now using The Default Hooks System!
roundhost
06-09-2005, 07:44 PM
You were quick to do this. Well done :D
Corriewf
06-09-2005, 07:50 PM
You just had to have the first hack didnt you?
Good job :)
Logikos
06-10-2005, 04:00 AM
hehe, i didn't get to have the first hack, but the first public hack. :p
sensimilla
06-10-2005, 08:46 AM
great hack good to see it released already
mholtum
06-17-2005, 06:10 AM
I am a little confused as to where to do this step:
Add $forum[forumhomeicon] in your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post
to display on all your forums, and sub forums.
I know where the templates are, but where should I place the $forum[forumhomeicon]
Logikos
06-17-2005, 06:12 AM
I am a little confused as to where to do this step:
Add $forum[forumhomeicon] in your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post
to display on all your forums, and sub forums.
I know where the templates are, but where should I place the $forum[forumhomeicon]
Where ever you add the $forum[forumhomeicon]. Thats where your icon will appear. Treat that variable as <img src="" border="0" alt="" />. Because thats whats stored inside $forum[forumhomeicon]. :)
mholtum
06-17-2005, 06:17 AM
like this?:
<tbody>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$forum[forumhomeicon]" alt="" border="0" /></td>
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
$childforumbits
</tbody>
</if>
Logikos
06-17-2005, 06:21 AM
No like this:
<tbody>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>$forum[forumhomeicon]</td>
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
$childforumbits
</tbody>
</if>
You should understand what i meant in my above post now :)
mholtum
06-17-2005, 06:33 AM
Ah, ok. but but I add it to the forumhome_forumbit_level2_post template no matter where I seem to put it it jacks my display up. Here is my current working template. Would you mind showing me where I need to insert that piece of code to make it look like your image? Sorry I am such a n00b.
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits
Logikos
06-17-2005, 07:48 AM
You enter the IMG info when your editing your forums in the Admincp. Pretend you want to edit a forum title or a forum description. It should be just underneath that. Also, to get it to look like my screenshot, you would need to mock up some HTML. I was feeling nice tonight so I edited my first post with a little tutorial on how to get the image like the screenshots. Also updated the screenshots as well.
mholtum
06-17-2005, 08:26 AM
Thank you so much. I found where I was supposed to edit the image info.. Working Like a charm Thank you again.. I am feeling very stupid now.
OmaniMan
06-17-2005, 08:42 AM
Thanks again dear Live ...
Logikos
06-17-2005, 08:55 AM
Thanks everyone, glad you like. :)
pauloo
06-20-2005, 05:07 PM
Thank you ! Is valided with W3C ;)
Logikos
06-21-2005, 05:54 AM
All my work is ;)
Asterik
06-28-2005, 02:45 AM
Can you use these icons in the forum display template? Because im having a problem that MIGHT be related to this: http://www.programmersforums.com/forumdisplay.php?f=7. As you can see, when i put icons in the sub forums, it gets alittle crazy :(. Is there any way to maybe fix this at all?
Sorry for this noob quesion but what is a query? Which is the first step on the read me file.
Logikos
07-12-2005, 10:14 PM
I can't find it here. But read this http://www.vbhackers.com/forum/thread82.html
I can't find it here. But read this http://www.vbhackers.com/forum/thread82.html
That worked great thanks. Next question.... Add phrase? Where do I do that part of the installation
Well I found out how to add phrases but its not quite working yet
I did it my first big hack too. It looks great! Thanks so much for this hack.
Logikos
07-13-2005, 12:51 AM
Glad you got it working... Please click the install button to show support.
Glad you got it working... Please click the install button to show support.
I almost had to ask for help on how to do that too.. :nervous: I didnt know what you meant. But thanks I was stuck forever there. By the way what does the Query do by running it? What did it do. When I tred running the query thru the admincp it told me I didnt have permission...And this is my board. I installed and added 3 plugins/hacks.
Logikos
07-13-2005, 02:15 AM
The query is so you can store the <img> info inside the database. In order to run querys in the Admincp you need to edit the config.php file. Change the following line:
Find:
$canrunqueries = '';
Replace With:
$canrunqueries = 'X';
Change X to your Userid. You can find your userid by clicking on your profile and seeing the number at the end of the URL. If your the owner of the site, this will ussally be 1.
Loki12
07-13-2005, 08:44 PM
The following does essentially the same thing, but is easier and quicker to install, I think...
http://www.vbulletin.com/forum/showthread.php?t=114545
Logikos
07-14-2005, 03:30 AM
As stated in my other thread about that post on vb.com. I personaly like to keep things as orginaized as possiable, so there for its eaiser for me to just edit the forum info in the ADMINCP. As if you have more then one style, you would have to edit every template that contains the icon information. My way, you would just edit one field and be done.
Brinnie
07-22-2005, 09:58 PM
Hi,
Please bear with my noobness, as I don't always know. But couldn't one add <img> tag to the forum description?
I think this is a great tutorial. Now if I could only kill the default status icons... Anyone have any ideas?
Wayne Luke
07-23-2005, 04:15 AM
As stated in my other thread about that post on vb.com. I personaly like to keep things as orginaized as possiable, so there for its eaiser for me to just edit the forum info in the ADMINCP. As if you have more then one style, you would have to edit every template that contains the icon information. My way, you would just edit one field and be done.
If you use the imagedir stylevar, you wouldn't have to though. Just let it be inherited from the parent.
Andreas
07-26-2005, 06:26 PM
@Live Wire
This Hack can be implemented without File Edits in RC 1 by using Hook forumadmin_edit_form, so you might want to update it :)
Logikos
07-26-2005, 07:17 PM
lol, thanks mate. Gonna update.
GrendelKhan{TSU
07-27-2005, 06:51 AM
figures I just installed this yesterday (LOVE IT AND showed support with "INSTALL" ;)), next day RC1 is out... heh. I take it I have to redo this if I update to RC1?
Logikos
07-27-2005, 06:59 AM
All you will have to do is import a xml file from the admincp. Working on it now/
GrendelKhan{TSU
07-27-2005, 07:35 AM
All you will have to do is import a xml file from the admincp. Working on it now/
SCCHWWEETT! ! you rock :) :D
Logikos
07-27-2005, 08:16 AM
UPDATED FOR vB 3.5.0 RC1No Code Changes Necessary!
First post updated with zip. Zip includes readme.txt and product-caticons.xml.
Please read the readme file before doing anything!
Thanks for all your support!
Andreas
07-27-2005, 08:30 AM
If you add the following as Install-Code, new Users won't have to run Queries manually - just import the XML as existing Users :)
$db->hide_errors();
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD (forumhomeicon VARCHAR(250) NOT NULL DEFAULT '')");
$db->show_errors();
Btw: Moved to Plugins as it does not require File Edits any longer, nor comes with additional Files.
Logikos
07-27-2005, 08:35 AM
KirbyDE Thank you for that! Updated now. :)
Logikos
07-27-2005, 08:46 AM
Updated zip with install/uninstall code thanks to KirbyDE! :)
Chris_D
07-27-2005, 09:25 PM
Great work, love it :)
When I get some more icons made up I think it'll look pretty cool :D
GrendelKhan{TSU
07-28-2005, 06:32 PM
btw...
this should SOOOOOOO be a standard feature for vbulletin. Its easy, gives the admin a flexibility and DRAMATICALLY improves the look and feel a site.
great job again. :D
Logikos
07-29-2005, 02:40 AM
Thanks for the support :)
akanevsky
08-02-2005, 03:33 PM
I don't think anyone wants to have double icons. Too cluttered... :(
It would be cool, though, if you replce the standard skin icon of the forum...
Logikos
08-02-2005, 04:10 PM
Apparently 198 users do :p. That would have to be a complete rewrite of the on/off images as far as I can tell. But thats something that i'm going to look into.
akanevsky
08-02-2005, 04:24 PM
Where did you get 138 from? "Installs: 30"...
Blam Forumz
08-02-2005, 04:35 PM
im liking it already :D
http://blamforums.com/forum/forumdisplay.php?f=80
Logikos
08-02-2005, 04:49 PM
Where did you get 138 from? "Installs: 30"...
Come on man, look around! :p https://vborg.vbsupport.ru/showthread.php?s=&threadid=70365 198
im liking it already
Glad you like :)
Boofo
08-02-2005, 04:56 PM
I likee, I likee! Now, if only you can come up with some icons I can use. ;)
Hello,
I have a suggestion for an upgrade. Could you make it so that the icon we choose can also be a link to another page if we want it too? That would allow us to have sponsor on each forum that when clicked, leads to a custom profile page or something that describes their company.
"Clicks Install"
Logikos
08-03-2005, 07:10 PM
I would have to create a seperate hack for that. I'll do that for you tonight. :)
Hello,
I wasn't trying to get a new hack. lol (I will take it though!, lol) I assumed that it would require a series of conditionals and an extra table. I didn't realize it would require a completely new hack though. Thanks though!
Brinnie
08-04-2005, 05:26 AM
Apparently 198 users do :p. That would have to be a complete rewrite of the on/off images as far as I can tell. But thats something that i'm going to look into.
can't wait :)
SkyShadow
08-13-2005, 09:13 AM
Has anyone tested this plugin with vBulletin 3.5. RC2 or will it be released for RC2?
Brinnie
08-13-2005, 12:52 PM
Has anyone tested this plugin with vBulletin 3.5. RC2 or will it be released for RC2?
I did it on RC1 and worked fine.
I don't know about RC2, as I am waiting for the next release.
Logikos
08-13-2005, 02:18 PM
This will work for vB 3.5.0 RC1 and RC2 :)
SkyShadow
08-13-2005, 02:35 PM
Thanks
Harald_T
08-21-2005, 09:42 AM
I think, this nice hack has a little problem: It works only for all styles, you can't have different icons for each style.
erratic assasin
08-21-2005, 11:41 AM
Clicks install -- Love this addition to my board thanks!
feldon23
09-07-2005, 08:00 PM
Apparently 198 users do :p. That would have to be a complete rewrite of the on/off images as far as I can tell. But thats something that i'm going to look into.
On my forum, I have 'new' and 'old' versions of each forum category icon instead of two icons next to each other. It's not as elegant to have a category icon AND the standard vB icon for 'this forum contains new posts'.
Zachariah
09-07-2005, 11:17 PM
On my forum, I have 'new' and 'old' versions of each forum category icon instead of two icons next to each other. It's not as elegant to have a category icon AND the standard vB icon for 'this forum contains new posts'.
:glasses: few edits and I bet it would. perhaps some <if> statements
Logikos
09-08-2005, 03:36 AM
:glasses: few edits and I bet it would. perhaps some <if> statements
I've made one for 3.5 RC2. Where it will use diffrent status icons for each forum. I'll try and release it tomorrow :)
Zachariah
09-10-2005, 03:53 PM
I've made one for 3.5 RC2. Where it will use diffrent status icons for each forum. I'll try and release it tomorrow :)
* Zachariah waits ..... :)
The Wise One
09-25-2005, 05:47 PM
* Zachariah waits ..... :)
im waiting for this as well.
b65ran
10-01-2005, 10:26 AM
I tried this on on 3.5 gold. doesn't seem to work! anyone has it working on 3.5 final release??
dsotmoon
10-01-2005, 09:47 PM
i just tried and couldnt get it to work, would love to see and update on this, thanks
Allan
10-05-2005, 05:58 PM
Hey, work with vB3.5 Gold ?
WNxWakko
10-05-2005, 09:23 PM
I got it to work on 3.5.0 Gold just fine.
Alien
10-06-2005, 10:14 AM
Works fine on 3.5 Gold... I've tested it too.
dsotmoon
10-06-2005, 05:21 PM
Works fine on 3.5 Gold... I've tested it too.
are you adding in the $forum[forumhomeicon] to the forum home template or did you use the ones posted above?
dsotmoon
10-06-2005, 06:07 PM
never mind, i got it to work in gold using the code above, i just couldnt get it to work by adding in $forum[forumhomeicon] for some reason, thanks, installed
DefenceTalk
10-08-2005, 10:18 PM
never mind, i got it to work in gold using the code above, i just couldnt get it to work by adding in $forum[forumhomeicon] for some reason, thanks, installed
Thanks!
The FORUM NAME / LINK font changed to SMALL, how to change back to default?
http://www.defencetalk.com/forums/
MR-2ZZ
10-08-2005, 10:34 PM
Excellent! Worked great!
Kalipo
10-08-2005, 10:53 PM
Hi mate cheers for teh hack, Only one problem ive noticed.. The images dont have a space after them.. so the image is vertualy on the forum name and description :(
Apart from that, Looks good and a good way to brigthen up a dull forum :)
dsotmoon
10-09-2005, 12:48 AM
Hi mate cheers for teh hack, Only one problem ive noticed.. The images dont have a space after them.. so the image is vertualy on the forum name and description :(
i noticed that too so i increased the canvas size of the pic in photoshop by 5 or pixels to give it some space
Logikos
10-09-2005, 07:09 PM
To make a space, you can do what dsotmoon has done. All my images have a 5 pixel space; left, right, top and bottom. Or you can add a <td> </td>. But pixel space seems to be the best answer.
The Wise One
10-19-2005, 08:25 PM
On my forum, I have 'new' and 'old' versions of each forum category icon instead of two icons next to each other. It's not as elegant to have a category icon AND the standard vB icon for 'this forum contains new posts'.
Live Wire
if you havent got this working yet, i got it working via strait template edits. its a little messy though. i tried doing it via a plugin using the global_start hook but couldnt get it to work. if you want it...ill send you what i did. if not...maybe ill just release it in the templates forum.
Lea Verou
10-20-2005, 07:50 AM
Does this work for categories too? (if you've unchecked the "Act as a forum" checkbox)
pauloo
10-20-2005, 07:56 AM
Please, i need template forumhome_forumbit_level1_post and forumhome_forumbit_level2_post for Vb 3.5.
Thank you
rabid dingo
10-20-2005, 10:18 AM
Is there a way to:
1. Get rid of the original VB icons?
2. make the icons be a substitute for the actual forum name? (i.e. Have a clickable logo with no text next to it.)
Allan
10-20-2005, 04:31 PM
Thanks for this hack ;)
Click Install ;)
Craftiness: https://vborg.vbsupport.ru/showpost.php?p=633205&postcount=67 (work perfectly on vB 3.5 Gold)
delds
11-08-2005, 02:36 AM
The message received after updating to vb 3.51 the latest update was to revert certain templates otherwise some funtions may not work. If the code has changed for the 2 templates, then we cannot replace as instructed to do so in the first post. I have tried to just insert the one line but haven't been able to get the alignment right.
Any Help ? Or perhaps updated templete replacements to refect the revised templates in the new vb 3,51 update
jluerken
11-08-2005, 08:50 AM
The message received after updating to vb 3.51 the latest update was to revert certain templates otherwise some funtions may not work. If the code has changed for the 2 templates, then we cannot replace as instructed to do so in the first post. I have tried to just insert the one line but haven't been able to get the alignment right.
Any Help ? Or perhaps updated templete replacements to refect the revised templates in the new vb 3,51 update
I reverted the template to match the 3.5.1 default one and then I added all changed by hand.
Simply try and error, nothing big can go wrong.
The CatHack is working fine on my board at www.clanforums.com vB3.5.1
I added the correct code to main and subforums but I think posting this here does not help cause I have several other modifications in there.
I think I will add cat icons today to better show how it works.
Actually only my birthday board has an icon which I used to test things out.
Great hack!!
Is there a way to show the category icon in forumdescription in forumdisplay?
ps. I'm talking about this forumdescription vB option:
This option displays the forum description in the navbar. Helps visitors to know what the topic of a forum is, as well as possibly increasing search engine rankings.
jluerken
11-08-2005, 11:47 AM
Great hack!!
Is there a way to show the category icon in forumdescription in forumdisplay?
ps. I'm talking about this forumdescription vB option:
This option displays the forum description in the navbar. Helps visitors to know what the topic of a forum is, as well as possibly increasing search engine rankings.
You mean the description on top of a forum if you access one?
Yes, this should be possible also.
Simply add the $forum[forumhomeicon] variable where you need it and the image should be shown.
You mean the description on top of a forum if you access one?
Yes, this should be possible also.
Yes...that's what i'm talking about :squareeyed:
Unfortunately it's not showing... no matter if it's in the navbar template OR in the forumdisplay template. :nervous:
(no errors....it doesn't display the icon...)
jluerken
11-08-2005, 12:28 PM
Yes...that's what i'm talking about :squareeyed:
Unfortunately it's not showing... no matter if it's in the navbar template OR in the forumdisplay template. :nervous:
(no errors....it doesn't display the icon...)
Problem is that the hack is designed to work in the forumdisplay section only.
You have two options:
1. Change the variable to be valid globally or
2. Change the templates
Problem is that the hack is designed to work in the forumdisplay section only.
You have two options:
1. Change the variable to be valid globally or
2. Change the templates
Thank you that's what i'm going to do...
As I said the main problem it doesn't work in any of the FORUMDISPLAY templates...only in FORUMHOME templates...
jluerken
11-08-2005, 12:43 PM
Thank you that's what i'm going to do...
As I said the main problem it doesn't work in any of the FORUMDISPLAY templates...only in FORUMHOME templates...
I played around with the templates and the plugin entry points but did not find the right one. Maybe the author can help here with a hint very fast :D
delds
11-08-2005, 12:55 PM
was able to get the icons back
$forum[forumhomeicon]
using that code, but ended up deletely it for now, as I just can't seem to get it to align correctly, the forum title, description to appearing towards the bottom right of the icon pic or bellow it, I want the forum title and description to appear just to the right of the icon pic starting at the top right of the pic.
This was the way it was before by using your replacement codes at the that was posted, but with updated templates v3.51 I can't use that.
Xplorer4x4
11-09-2005, 03:39 PM
I have added the plug in and added the phrase code just like LiveWire did but it simply refuses to work for meo n 3.5.1, and the input box in forum editing is at the very bottom and looks like it is simply part of my age lock hack.
Logikos
11-09-2005, 06:23 PM
Hey guys, I'm without power at my house still cause of the hurricane. When I get my power back I will update the code for everyone. Just give me a few days. There saying it will be back on the 15. I hope that will be sooner. :)
roosevelt
11-09-2005, 10:29 PM
Hello everyone,
First of all very good mod by LiveWire. I have installed it too and its running wild.
Here is a little modification of the template file I made so that you can actually replace the status icon with your chosen forum icon. And if there isn't any forum icon chosen, then it will display the status icon.
On forumhome_forumbit_level1_post
Replace:
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
With:
<if condition="$forum[forumhomeicon]">
<td>$forum[forumhomeicon]</td>
<else />
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
</if>
On forumhome_forumbit_level2_post
Replace:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
With:
<if condition="$forum[forumhomeicon]">
<td class="alt2">$forum[forumhomeicon]</td>
<else />
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
</if>
Demo: http://www.photoshopcity.com/community/
jarod1981?
11-11-2005, 05:05 PM
Hi all
it's work on Vbulletin 3.5.1?
Thanks
sensimilla
11-14-2005, 10:42 AM
it didnt worked for me at 3.5.1 ?
TygerTyger
11-14-2005, 07:10 PM
If anyone else doesn't want to wait for the updated plugin, as I couldn't ;) and you don't mind doing it all though a template edit instead of using a plugin, I described how do it using a similar template mod here:
https://vborg.vbsupport.ru/showthread.php?t=97861
https://vborg.vbsupport.ru/showpost.php?p=821233&postcount=17
HTH
Xtrato
11-14-2005, 08:22 PM
That can be to much work for some people i rather wait for the plugin.. :nervous:
BrandiDup
11-15-2005, 12:20 PM
I installed this on 3.5 Gold and it works perfectly :) I had to insert the $forum[forumhomeicon] manually though, because copy and pasting the code above was giving me an error. Instead of saying (10 viewing) or whatever, it was saying (Array Viewing).
I do have one question though. Is there any way I can get my icon to show up all the way to the right of the forum name and description, next to the "last post" column? I tried tweaking it a little bit but the tables kept getting distorted and unaligned.
TygerTyger
11-15-2005, 12:31 PM
Refer to the template mod I linked to a couple of posts above this one to have the icons on the right.
BrandiDup
11-15-2005, 12:49 PM
Oh, I can't believe I missed that. Thank you very much. :)
BrandiDup
11-15-2005, 01:31 PM
Wow, works like a charm! Thank you so much for sharing this! I've been looking for something like this for a long time!
Works great on 3.5 Gold... virtually no problems installing!
Ramsesx
11-15-2005, 02:22 PM
Thank you very much, works perfect with 3.5.
klaush
11-27-2005, 02:02 PM
Like it!
Thanks!
thanhbinhcle
11-30-2005, 02:18 AM
Can i use this for 3.5.1? Thanks
Vierie
11-30-2005, 09:38 AM
Yes, you can.
eNforce
12-09-2005, 06:27 PM
Would it be possible to make this work per style, so we can use different icons for each style?
BiReL41r
12-16-2005, 08:17 PM
Are you able to make it so that it goes over the default icon, not having 2 icons?
quanvo81
01-04-2006, 09:38 PM
You are always my favorite guy, Live Wire . You always have great hacks and great supports.
All my best wishes for you .
Bubble #5
01-05-2006, 03:42 AM
Is there going to be a 3.5.3 version of this? :ermm:
quanvo81
01-07-2006, 02:29 AM
Is there going to be a 3.5.3 version of this? :ermm:
Work good on my 3.5.3 board :rolleyes:
Mastar
01-07-2006, 03:00 AM
Need help here please:
Where would I insert it in mine to make is display like yours?
forumhome_forumbit_level1_post
<tbody>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
$childforumbits
</tbody>
</if>
forumhome_forumbit_level2_post
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits
Gripemaster
01-07-2006, 03:26 PM
*Clicks Install* Thank you... now I have smilies as category icons!
Dark_D
01-09-2006, 11:51 PM
Installed, off to find icons!
Logikos
01-13-2006, 06:39 AM
I don't think anyone wants to have double icons. Too cluttered... :(
It would be cool, though, if you replce the standard skin icon of the forum...
vBLightbulbs Released!
https://vborg.vbsupport.ru/showthread.php?t=105204
erhanerhan_5
01-16-2006, 04:56 PM
i maked category icons. i was add child forum, child forum's main forum is this;
Before;
http://img33.imageshack.us/img33/1131/aasdsaaaaaa5gz.jpg
After;
http://img33.imageshack.us/img33/9960/bbbbbbbbbbbb8eb.jpg
Please help me!. my english is very bad
rex_b
04-08-2006, 04:18 PM
Will this work on 3.5.4?
fosman
04-15-2006, 09:31 AM
Will this work on 3.5.4?
Like to name that too?
Logikos
04-16-2006, 08:42 AM
This will work for 3.5.4
sudn3sc3d
04-25-2006, 08:51 PM
nice job man appericate it .
bashy
04-26-2006, 05:55 PM
Hi
Whats the uninstall procedure please...
I can find my backup of the templates i changed, What do i remove please?
Logikos
04-26-2006, 07:46 PM
uninstall the product from the products manager.
bashy
04-26-2006, 07:55 PM
Cheers m8...
never used it after testing so time to remove sorry :(
Thanks anyway, maybe in time :)
Logikos
04-26-2006, 08:00 PM
No problem :)
shoot1st
05-03-2006, 07:07 PM
Great hack!! Installed!!
Question? Is there a way to have the image be active? In other words I would like the image to link to hte forum I have added the image to. Instaed of a user clicking the text to enter the forum they can click on the image.
Thanks in advance
Logikos
05-03-2006, 07:45 PM
Just change the $forum[forumhomeicon] variable in the templates to:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[forumhomeicon]</a>
shoot1st
05-04-2006, 10:14 PM
Nice one Livewire!! Works great! I appreciate the quick reply.
It did however place a purple backround under the image. I am assuming that it is because the image in now a hyperlink. Anyway, I will look around to see where to change that. Still figuring Vbull out :) If you could point me in the right direction that would be great. Apprectiate your work.
-Shoot
Logikos
05-04-2006, 11:35 PM
Make sure your img code in the admincp has border="0" ;)
Lonny
05-05-2006, 10:48 AM
Does this work for 3.5.4?
Logikos
05-05-2006, 06:55 PM
Yes :)
shoot1st
05-05-2006, 06:58 PM
Make sure your img code in the admincp has border="0" ;)
Feeling pretty silly about this:confused:
I have looked in several places for the code that controls the border for the images, no luck in seeing any border values that aren't already set to zero.
Any suggestions to the exact location? Feeling like a noob here, hahaha.
http://forums.gameworldarena.com
Thank in advance!!
Logikos
05-05-2006, 07:11 PM
See this screenshot: https://vborg.vbsupport.ru/attachment.php?attachmentid=26844&d=1118346491
Thats the image code you have to enter via the admincp. Example: Your forum titled General is using this image. http://forums.gameworldarena.com/images/category/pc-gd.png
Change your code from
<img src="http://forums.gameworldarena.com/images/category/pc-gd.png">
to
<img src="http://forums.gameworldarena.com/images/category/pc-gd.png" border="0" alt="" />
Logikos
05-05-2006, 07:12 PM
I'm going to update this hack really soon. ;)
shoot1st
05-05-2006, 08:03 PM
Thanks Livewire,
Now don't I feel silly, hahahaha.
Thanks again for the great hack and support!!!
Smiry Kin's
05-08-2006, 03:28 PM
I'm going to update this hack really soon. ;)
how long dude? i really want this for my new project!!
blkatt
05-10-2006, 05:29 PM
I'm going to update this hack really soon. ;)
Sounds good.
wrang
05-16-2006, 11:12 AM
I'm going to update this hack really soon. ;)
Great will it work for 3.5.4 :bunny:
Lonny
05-16-2006, 11:16 AM
Yes it works on my forum which is 3.5.4
wrang
05-18-2006, 07:05 AM
Sorry but where do i find this?
https://vborg.vbsupport.ru/attachment.php?attachmentid=26844&d=1118346491
I haved looked in the ACP and Forums & Moderators
Logikos
05-18-2006, 07:20 AM
When you add a new forum you will see that option.
wrang
05-18-2006, 09:40 AM
Okey so this plugin dosent work for the old forums i already have?
Logikos
05-18-2006, 05:09 PM
when you add/edit a forum you will see that option.
ramone_johnny
05-28-2006, 06:49 AM
Has anyone tested this on 3.5.4?
RJ
Mythotical
06-12-2006, 04:59 AM
I am not seeing any option what so ever in my Forum Manager when I click to edit a forum. I have uninstalled and re installed, I am running 3.5.4 test site so its not live but still bothers me that it should work but doesn't.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.