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)

Sofia 05-24-2009 01:11 PM

Quote:

Originally Posted by FiMeTi (Post 1816243)
Hi Sofia. I got a little problem, hoping you?ll help me out.

Your code is missing the "<strong>$forum[title]</strong>".
So I see the pictures, but not the Forumtitle.
I added it and use the following code now.
Code:

            <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" alt="$forum[title]"  hspace="4px" align="left"/><strong>$forum[title]</strong></a>
works fine with this. But I do also have forums without pictures and there the forumtitle shows up two times. See picture below. How can I now get rid of the first forumtitel, so it shows normal without picture?
http://img39.imageshack.us/img39/161/feedback.jpg

Strange... forumtitle shows up two times because you enter $forum[title] in your code.
If you use my code, you can see pictures and forumtitles.

You must add

HTML Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].png" alt="$forum[title]"  hspace="4px" align="left"/></a>
after forumtitle variable. Don't delete your forumtitle code.

You can post in this thread your templates, if you want.

Sofia 05-24-2009 01:59 PM

Here : forumhome_forumbit_level2_post


HTML Code:

<tr align="center">
    <td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></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>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" alt="$forum[title]"  hspace="4px" align="left"/></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&amp;f=$forum[forumid]" rel="nofollow">$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">$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]&nbsp;</div></td>
    </if>
</tr>
$childforumbits


FiMeTi 05-24-2009 02:04 PM

still crap. looks like something is fu*ked up here(my forums).
See attached image. Okay I try a few more ... bleh

thx anyway

Sofia 05-24-2009 02:14 PM

Quote:

Originally Posted by FiMeTi (Post 1816269)
still crap. looks like something is fu*ked up here(my forums).
See attached image. Okay I try a few more ... bleh

thx anyway

Hummm... Ok

You must create into your "images" folder "iconforums".. In "iconforums", upload your images like this :

2.png, 4.png, etcc... 2 and 4 are forum ID. If something is wrong, only forumtitle show up.

FiMeTi 05-24-2009 02:24 PM

lool i got it solved yet.
alt="$forum[title]"
this little part got on my nerves. ;)
Just deleted it and now it is aaalll fineee

thanks mate

Sofia 05-24-2009 02:24 PM

Quote:

Originally Posted by FiMeTi (Post 1816275)
ye I know. That worked, but for those forums, where I dont use a picture, there just again shows up the forumtitle. lol

Ohhhhhh !!!! Ok. I didn't understand !

Simply delete "alt="$forum[title]" in my code.

Sorry :o

aliali 05-24-2009 02:26 PM


Do you have a way to develop a new image, the place of icons and the old as it is in the picture :)

http://images.upload2world.com/get-5...d_com_pnyq.png

tanks all

Sofia 05-24-2009 02:34 PM

Quote:

Originally Posted by aliali (Post 1816280)

Do you have a way to develop a new image, the place of icons and the old as it is in the picture :)

tanks all

Hi aliali. Yes, it's possible, but only 1 icon by forum, so you cannot have old/new posts system.

In the template forumhome_forumbit_level2_post and forumhome_forumbit_level1_post

Find:

HTML Code:

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
Replace by:

HTML Code:

<td class="alt2"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/$forum[forumid].gif" hspace="4px" align="left"/></a></td>

aliali 05-24-2009 02:47 PM

First, Thanks for the quick reply :)
Yes it,s 100%,Work but are there pictures of icons?
Thank you

compact123 05-24-2009 02:54 PM

wow perfect, i installed...thanks.

http://img194.imageshack.us/img194/305/adszggu.png


All times are GMT. The time now is 05:54 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.01135 seconds
  • Memory Usage 1,759KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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