vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Images next to the Description for every Forum (https://vborg.vbsupport.ru/showthread.php?t=143098)

Ekka 04-29-2007 10:17 PM

If you look at the video forum and picture forum I have added an icon but doesn't line up well.

http://www.treeworld.info/index.php

How exactly do I line it up like this guys forum?

http://forum.palmettostaterivals.com/index.php

And how do I turn the icon into a link?

Hey, I'm a new user and this isn't that simple ... pretty good I got this far!

Quote:

Originally Posted by scdurwood (Post 1215856)
Not sure why you would need to define the CSS....I just added:

Code:

<span><img src="$stylevar[imgdir_statusicon]/$forum[forumid].gif" border="0" align="left"></span>
to the link tag:

Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span width="100"><img src="$stylevar[imgdir_statusicon]/$forum[forumid].gif" border="0" align="right"></span><strong>$forum[title]</strong></a>
You can align them left or right as you so wish.

DEMO: www.palmettostaterivals.com

Like where do you put these codes?

scdurwood 05-08-2007 02:31 AM

Quote:

Originally Posted by dbirosel (Post 1231694)
How do you exactly apply this code?

Here's my forumbit:

Code:

<tr align="center">
        <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
        <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='forumdisplay.php?$session[sessionurl]f=$forum[forumid]';">
                <div>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span width="100"><img src="$stylevar[imgdir_statusicon]/forumimgs/$forum[forumid].gif" border="0" align="right"></span><strong>$forum[title]</strong></a>

May be a little different than the norm since I also use a mouseover flip for the cell...the important part is in the <div> tag:

Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span width="100"><img src="$stylevar[imgdir_statusicon]/forumimgs/$forum[forumid].gif" border="0" align="right"></span><strong>$forum[title]</strong></a>
That makes the icon a link to the forum and, depending on your choice of left or right, will align the icon relative to the title and description.

ericgray 05-14-2007 02:30 PM

Quote:

Originally Posted by scdurwood (Post 1243407)
Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span width="100"><img src="$stylevar[imgdir_statusicon]/forumimgs/$forum[forumid].gif" border="0" align="right"></span><strong>$forum[title]</strong></a>
That makes the icon a link to the forum and, depending on your choice of left or right, will align the icon relative to the title and description.

this is all you need --

-- thanks!

nhdriver4 05-16-2007 11:41 AM

Thanks for this. Quick, easy, and works great! Installed!

leoniec 05-18-2007 08:55 AM

I can't seem to get this to work. I've followed the directions exaclty as followed, but the images still don't show up.

Edit: I can get a broken image, but I can't get my uploaded images to appear.

StarBuG 05-18-2007 04:35 PM

Did you format the images as PNG?
If you try to use GIF you need to change PNG to GIF in the code

Adam21 05-19-2007 12:58 AM

Quote:

Originally Posted by StarBuG (Post 1250292)
Did you format the images as PNG?
If you try to use GIF you need to change PNG to GIF in the code

You can change them all to PNG or GIF,but not a mixed of GIFs or PNGs and you also need to specify in the code Starbug provided,which to use.Here's a free image converter site to convert all images as you wish http://www.coolutils.com/Online-Image-Converter.php.

And to place them besides the forum titles,descriptions,place this code
Code:

<img src="images/categoryicons/$forumid.gif" alt="" class="ForumImages" /><br />
before this code
Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
See the screenshot to what i meant.

leoniec 05-19-2007 07:24 PM

nevermind, i just customized the code and made it work.

Nephalim 05-20-2007 11:32 AM

Quote:

Originally Posted by Adam21 (Post 1250552)
You can change them all to PNG or GIF,but not a mixed of GIFs or PNGs and you also need to specify in the code Starbug provided,which to use.Here's a free image converter site to convert all images as you wish http://www.coolutils.com/Online-Image-Converter.php.

And to place them besides the forum titles,descriptions,place this code
Code:

<img src="images/categoryicons/$forumid.gif" alt="" class="ForumImages" /><br />
before this code
Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
See the screenshot to what i meant.

cool, but what size are the images?
thank you

Adam21 05-21-2007 03:52 AM

Quote:

Originally Posted by Nephalim (Post 1251357)
cool, but what size are the images?
thank you

Mine is 72x72.


All times are GMT. The time now is 04:10 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.01160 seconds
  • Memory Usage 1,749KB
  • 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
  • (9)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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