vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Forum Icons on forumhome (https://vborg.vbsupport.ru/showthread.php?t=214289)

Erez Wolf 11-05-2009 12:08 PM

1 Attachment(s)
Hello!

I'm having trouble getting this code to work.
I'm using version 3.8.3, have edited the code as it said and uploaded gifs for all the forums in the new directory "iconforums" and this is the resault:

Attachment 105904

i guess it supposed to be something simple that i'm missing but i don't know what it is.
please help.
Thank you,
Erez.

RenatoMN 11-09-2009 04:20 AM

Hum.. the images "are being show"...

Right click the "x" errors and see the properties and check if the images are right uploaded to the address informed for each forum.

vijayninel 11-10-2009 02:46 AM

Thanks for this great mod ..but how can I get them to appear for subforums in forumdisplay ?

Edit..sorry..got it now... :)

compact123 11-18-2009 05:31 PM

please update that for vb4 sir...
thanks >_<

bluej 11-25-2009 06:05 AM

thank you sophia for this great mod :)

i got the icons installed and looking great, but one problem i see is that the gradient on my footer is not extending all of the way to the end of the footer, it is short about an half inch...

any idea why this is or what i can do about it?

thanks for your help and great work :)

ViciousCode 12-06-2009 07:41 PM

why does it have to be gif? i think PNG's are better!

MattIS 01-09-2010 05:08 AM

Quote:

Originally Posted by ViciousCode (Post 1926458)
why does it have to be gif? i think PNG's are better!

PNGs have a hard time being read in IE. Use them though tell IE users to use firefox or something.


Can anyone tell me how I would add this to Sub-Forums?

Gigio755 01-15-2010 11:47 AM

Please Sofia make it compatible with Vbulletin 4 :(

pleaaaase

a9eel 01-16-2010 06:01 AM

thx sofia good jop :)

Rideharder 02-11-2010 07:51 AM

Quote:

Originally Posted by RenatoMN (Post 1906775)
To fix:

1- division between icon/forum title & description
2- error "image not found" in IE browser
3- both fixes

1-
PHP Code:

<div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div

2-
PHP Code:

<if condition="in_array($forum[forumid],array('2','3','4'))"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></if> 

3-
PHP Code:

<if condition="in_array($forum[forumid],array('2','3','4'))"><div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div></if> 

Note: if using fixes 2 and 3, replace ('2','3','4') with the forum IDs you want the image to be show. I hope you don't wonder "why the new uploaded image for forum 50 isn't be showing up?" -> ADD THE ID THERE! :P

*Untested code*

Thanks you so much!


if condition="in_array($forum[forumid],array('2','3','4'))"><div style='float:left'

or

if condition="in_array($forum[forumid],array('2','3','4')"><div style='float:left'

You have two ))

New Joe 02-11-2010 07:54 AM

Quote:

Originally Posted by Gigio755 (Post 1956401)
Please Sofia make it compatible with Vbulletin 4 :(

pleaaaase

https://vborg.vbsupport.ru/showthread.php?t=229529
Take a slow read through the posts, many ways to get different looking icons.

Rideharder 02-11-2010 07:59 AM

if condition="in_array($forum[forumid],array('2','3','4'))"><div style='float:left'

or

if condition="in_array($forum[forumid],array('2','3','4')"><div style='float:left'

You have two ))

Erica1977 02-11-2010 02:11 PM

Thank You Sofia works great with 3.8.4 Thanks again great mod.

hayaldunya 02-17-2010 08:47 AM

Thank You :up:

Darkgardevoir 02-18-2010 11:57 PM

Hi how can i put this in the subforums too?

Kimberley 03-06-2010 06:49 PM

Can someone please tell me how I can get the icon inline with the statusicon so it looks centered next to the forum description and subforums?

You will notice in the sections with more subforums that it sits at top.

http://www.relentlessflame.com/forum/index.php

That is forumhome

I appreciate help fixing this please

I also tried to seperate that section with a line like the previous posts but it did NOT work at all so I am hoping just getting this sorted will work for me.

Thank you in advance.

Shotgunmaniac 03-09-2010 01:43 PM

Kimberley, what's the name of the skin you are using ?

TimberFloorAu 03-10-2010 01:18 AM

Quote:

Originally Posted by Kimberley (Post 1998660)
Can someone please tell me how I can get the icon inline with the statusicon so it looks centered next to the forum description and subforums?

You will notice in the sections with more subforums that it sits at top.

http://www.relentlessflame.com/forum/index.php

That is forumhome

I appreciate help fixing this please

I also tried to seperate that section with a line like the previous posts but it did NOT work at all so I am hoping just getting this sorted will work for me.

Thank you in advance.

I would be more concerned that your forum links, when clicking the status/forum icon take you to an unreachable place !
Perhaps thats a guest thang, but even so not good coding, you should fix this.

L0rd-81 03-14-2010 12:04 PM

Thank You for this :D It?s great and functionally.
Can you say me where i can this make in subforum?

My english is no good, sorry

vBseo.it 08-20-2010 09:26 AM

where is the file to download

Mehryar10 08-20-2010 10:50 PM

where's the file ?!?!

fxwoody 09-25-2010 05:22 PM

Super mod! Installed with ease ,tho, i'm still struggling with the alignment !
Tried the setup from Rideharder and had no good results! :(

I'm running 3.8.6 , if anyone found out a way to do it, it would really cool to know how ;)

fxwoody 09-26-2010 11:01 AM

1 Attachment(s)
Ok, not sure if it will work for every one but i pasted the code in the subforum and got little icons showing too ;)

Here's what i did:

Find this in the "forumhome_subforumbit_post" (you will need to edit every style template that you have)
PHP Code:

<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a

Add the modified code before it:
PHP Code:

            <!---iconforums--->
                        <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" hspace="2px" align="left" width="25px" height="25px" /></a>
            <!---/
iconforums---> 

FTP the image to match the forumdisplay , adjust the Width & Height to your taste, and it should be all good ;)

fxwoody 01-15-2011 10:55 PM

Just in case anyone would like this for V4.xxx
Reminder: don't forget to change the extension to your images (.jpg .gif .png)
also, adjust the size with in the codes for better fit on your board ;)

Have fun!

~~~~~~~~~~~~~~VB 4.1.1~~~~~~~~~~~~~~

Find in "forumhome_forumbit_level2_post":
HTML Code:

                                <div class="datacontainer">
                                        <div class="titleline">
                                                <h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                                <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                        </div>
                                        <vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>

Replace with:

HTML Code:

                          <div class="datacontainer">
                                    <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px;" />
                                <div>
                                    <h2 style="font-weight:bold; font-size:13px;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                      <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                      <vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if></div>

If you have subforums

In "forumhome_subforumbit_post" replace with this:

HTML Code:

<li class="subforum">
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:if condition="$depth > 1"></vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title} <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px; width: 25px; height: 25px;"/></a>
</li>


Sworm 03-15-2011 08:25 PM

There's a way to put the images on the right (next forum title) and not on the left?

fxwoody 03-16-2011 09:33 AM

Quote:

Originally Posted by Sworm (Post 2173749)
There's a way to put the images on the right (next forum title) and not on the left?

You mean after the text?

Sworm 03-16-2011 04:54 PM

Quote:

Originally Posted by fxwoody (Post 2173920)
You mean after the text?

Yes after the text but on the extreme right, before the "Last post" column..... Like now the icons are together the vbulletin forum icon , and i don't like..... IMHO

Thanks

ShawneyJ 06-04-2011 02:50 AM

Quote:

Originally Posted by RenatoMN (Post 1906775)
To fix:

1- division between icon/forum title & description
2- error "image not found" in IE browser
3- both fixes

1-
PHP Code:

<div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div

2-
PHP Code:

<if condition="in_array($forum[forumid],array('2','3','4'))"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></if> 

3-
PHP Code:

<if condition="in_array($forum[forumid],array('2','3','4'))"><div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div></if> 

Note: if using fixes 2 and 3, replace ('2','3','4') with the forum IDs you want the image to be show. I hope you don't wonder "why the new uploaded image for forum 50 isn't be showing up?" -> ADD THE ID THERE! :P

*Untested code*

thank you very much RenatoMN. i used code 2 worked great 3.8.7.
how annoying having an "x" on every forum where you dont need to use an image only with IE.
cheers mate.

montsa007 09-23-2011 04:14 AM

How do i add icons in child forums?

Fready 09-23-2011 08:20 AM

This works on vB 3.8 and it is much easier to use, no templates to edit;
https://vborg.vbsupport.ru/showthread.php?t=179596

amine13420 11-10-2011 02:13 AM

Worked fine,

Just need some website where to download icons :)

cstreater 01-01-2012 01:57 AM

Quote:

Originally Posted by Fready (Post 2249188)
This works on vB 3.8 and it is much easier to use, no templates to edit;
https://vborg.vbsupport.ru/showthread.php?t=179596

That hack is for categories. This one is for individual forums.

duketxboy 01-01-2012 08:45 PM

I got it just curious on how to just put one status icon, I upload the file I want to take the forum icons place it shows up but on the side heres a link>>>www.horsepowertech.net I don't have it up right now but you should get the idea

rpgamersnet 02-13-2012 04:04 PM

Works perfectly. I made some minor tweaks to help with centering, I put the code inside a table... otherwise, just what I needed! thanks

rockerzteam 10-10-2012 09:55 PM

Are these files still available anywhere?

crouzmind 11-29-2012 06:42 PM

Quote:

Originally Posted by Sofia (Post 1841446)
Hey Joe. :)
Try to upload images in the folder misc.


If it doesn't work, you can test this:

Only if you have 3.7.x and newer version (3.8.x)

You can have specific status icons by forum.
With no product, no template modification and very easy.







Installation


1. AdminCP


AdminCP >> Forums & Moderators >> Forum Manager >> Choose a forum

In this forum, find: Style Options
In Style Options,
we can modify Prefix for Forum Status Images.

This setting allows you to have a prefix by forum that will be used on status icons filenames.

You must enter here your forum ID.

How I can find my forum ID?
On the same page, at the top of this page, you've your forum name and your forum ID.

http://www.forum-test.fr/Sans%20titre.png



In this example, ID is "2", so you must enter "2" in Prefix for Forum Status Images.
Then, I use "_" so that it is more clean on your filenames.


2. Images

Now, you have to create your images for every forum where you want to have specific status icons.

Your images must have this name:
ID_forum_link.gif
ID_forum_new.gif
ID_forum_new_lock.gif
ID_forum_old.gif
ID_forum_old_lock.gif

In my example, images have this name:
2_forum_link.gif
2_forum_new.gif
2_forum_new_lock.gif
2_forum_old.gif
2_forum_old_lock.gif

Finally, upload images into "images/yourstyle/statusicon".


i do the same but when i put the prefix 2_ and click on the save button its show me database error . can you help me about this ?

SoniaTel 12-27-2012 11:03 AM

Nice addition, thanx

Goomzee 07-02-2014 04:52 AM

How do i put image in sub-forum?


All times are GMT. The time now is 04:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01436 seconds
  • Memory Usage 1,873KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (8)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete