vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Image on Forumbit (forumhome) (https://vborg.vbsupport.ru/showthread.php?t=89121)

sabret00the 03-08-2005 07:53 PM

if it's a problem i'll sort an alternative via a hack :)

thinkpixels 03-10-2005 12:03 AM

Here is there reply, sort of...
http://www.vbulletin.com/forum/showthread.php?t=132424

sabret00the 03-10-2005 09:08 AM

ok, i'll wait until another person replies before i give you the code to enable it.

thinkpixels 03-11-2005 06:24 PM

They responded a bit but I am not sure what to make of it. Take a look if you get a chance. Thanks.
http://www.vbulletin.com/forum/showt...757#post830757

AlexUK 03-29-2005 01:41 PM

Hi there I followed your instructions but my forums dont show any images at all, everything is actually correct....how strange??

My template:

<tr align="center">
<td class="alt1"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
$forum[forumhomeicon]

<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="$forum[parentid]==2 OR $forum[parentid]==2"><img src="$stylevars[imgdir_misc]/[forumhome]/$forum[forumid]2.gif" alt="$forum[title]" border="0" vspace="2 px" hspace="2 px" align="left"/></if>

<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]">$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]&nbsp;</div></td>
</if>
</tr>
$childforumbits

Renada 04-01-2005 03:08 PM

Quote:

Originally Posted by sabret00the
this is for the forumhome, open your "forumhome_forumbit_level2_post" template and find ;
HTML Code:

                <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
add above that
HTML Code:

<if condition="$forum[parentid]==XX OR $forum[parentid]==XX"><img src="$stylevars[imgdir_misc]/[forumhome]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2 px" hspace="2 px" align="left"/></if>
if you want it to appear for all forums, remove the conditional, you can also just change the conditional to suit your needs better, the XX's in the conditional are to be replaced by the parentid's of your desire [cyclops] the parentid is just the forumid of the catergory.

Hi,

I'm new to php and am a bit confused (nothing unusual in that) with what to change in this script.

I've edited the template - changed the first two XX's to 5 which is the id of the forum (should it be 05?) and left the 2nd 2XX's alone.

If that is correct, and please someone tell me if it's not, then where do I find the place to add the graphic?

Hope this makes sense.
Renada

hollyboy 04-18-2005 07:59 AM

I've added this code:

<if condition="$forum[parentid]==9 OR $forum[parentid]==9"><img src="$stylevars[imgdir_misc]/[forumhome]/$forum[forumid]9.jpg" alt="$forum[title]" border="0" vspace="2 px" hspace="2 px" align="left"/></if>

Why doesnt it work?

imported_y2ksa 05-21-2005 09:52 AM

Hi is it posible to add difrent images as statusicon to each forum?
like the one in this forum
http://www.montada.com

thanks

kall 05-22-2005 11:09 PM

Quote:

Originally Posted by vdm
I've added this code:

<if condition="$forum[parentid]==9 OR $forum[parentid]==9"><img src="$stylevars[imgdir_misc]/[forumhome]/$forum[forumid]9.jpg" alt="$forum[title]" border="0" vspace="2 px" hspace="2 px" align="left"/></if>

Why doesnt it work?

You don't need the 9 in the image name.

It comes from the $forum[forumid] variable.

Also, the statement is saying 'If the parent of this forum is Forum #9, display the icon that is named with this Forum's number' .. which obviously won't be 9.jpg ... as that is the Parent forum.

I think what you want is:

HTML Code:

<if condition="$forum[forumid]==9"><img src="$stylevars[imgdir_misc]/[forumhome]/$forum[forumid].jpg" alt="$forum[title]" border="0" vspace="2 px" hspace="2 px" align="left"/></if>
A MUCH nicer way of doing it is as follows:

HTML Code:

<if condition="in_array($forum['forumid'], array(3,4,7,9))"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="images/forumhome/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" align="left"/></a></if>
This will cause it to show for any forums whose ids you enter in the comma-separated list...and each image will be linked to that forum, as the title is.

a-la: http://www.nzboards.com/forums :)

sensimilla 05-25-2005 02:18 PM

hmmm... did it worked to someone with ARia template..

the forumhome_forumbit_level2_post looks like this.. thanks in advance for any tip..

PHP Code:

<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>
            <if 
condition="$forum[link] != ''"><a style="float:$stylevar[right]; padding-top: 9px;" href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img  src="$stylevar[imgdir_statusicon]/link_home.gif" alt="Jump to $forum[title]border="0" /></a><else /><a style="float:$stylevar[right]; padding-top: 9px;" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumidsrc="$stylevar[imgdir_button]/collapse_lastpost.gif" alt="Last post information" border="0" /></a><a style="float:$stylevar[right]; padding-top: 9px;" href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$lastpostinfo[lastthreadid]"><img  src="$stylevar[imgdir_statusicon]/lastpost_home.gif" alt="$vbphrase[go_to_last_post]border="0" /></a></if><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&amp;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>
<if 
condition="$forum[link] != ''"><else /><div>$forum[lastpostinfo]</div></if>
    </
td>
    
    <
td class="alt2"><div style="color: #496690; font-weight: bold; padding-top: 6px; font-family: Tahoma;"><b>$forum[threadcount]</b></div></td>
    <
td class="alt1"><div style="color: #496690; font-weight: bold; padding-top: 6px; font-family: Tahoma;"><b>$forum[replycount]</b></div></td>
       
</
tr>
$childforumbits 



All times are GMT. The time now is 03:55 PM.

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.01217 seconds
  • Memory Usage 1,793KB
  • 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
  • (4)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)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