Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Images On Forumbit (forumhome) Details »»
Images On Forumbit (forumhome)
Version: 1.00, by sabret00the sabret00the is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-27-2005 Last Update: Never Installs: 31
Template Edits
 
No support by the author.

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="in_array($forum['parentid'], array(XX,XX,XX))"><img src="$stylevars[imgdir_misc]/$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. the parentid is just the forumid of the catergory.



Screenie: https://vborg.vbsupport.ru/attachmen...chmentid=30323

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-01-2005, 09:17 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ggiersdorf
Really cool IDEA, but us noobs are getting confussed can you please tell us this.

How to I specifiy different images for different Folders?

I have an XBOX forum, a PS3 forum etc and want the image of the console on the forum home next to each forum like your picture shows. How can this be accomplished?

Please show us the script for this
name the image the same as the forum id and it'll show up

so if your xbox forum is forumid23 then name the image 23.gif
Reply With Quote
  #13  
Old 11-01-2005, 09:17 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Watson
The way it used to work was the image was the same name as the forum ID, I imagine its the same this time around, however, mine don't seem to show
url so i can see it in action or lack of lol?
Reply With Quote
  #14  
Old 11-01-2005, 09:18 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smokering
i am a noob as well need real help here

say i wanted it to work in category 5112 forum 6127 where do i put those ?

sorry i am so lame with this i have been trying to get it for over an hour
you're saying you only want it to work on one forum?
Reply With Quote
  #15  
Old 11-01-2005, 07:08 PM
ggiersdorf ggiersdorf is offline
 
Join Date: Aug 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is the path for the images?

in my style/misc folder? or root/misc folder?
Reply With Quote
  #16  
Old 11-03-2005, 03:22 AM
smokering smokering is offline
 
Join Date: Mar 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
you're saying you only want it to work on one forum?

i want to use the different pics for different forums i just dont know where in the code to put the forum id number i feel really stooopid here
Reply With Quote
  #17  
Old 11-03-2005, 03:43 AM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smokering
i want to use the different pics for different forums i just dont know where in the code to put the forum id number i feel really stooopid here
Replace the "X"'s in this code with the forumid numbers of your forums.
Code:
<if condition="in_array($forum['parentid'], array(XX,XX,XX))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" align="left"/></if>
Reply With Quote
  #18  
Old 11-03-2005, 03:45 AM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW, I just tried this hack on my forums and it didn't work.
http://www.madisonsportbikes.com/forums/index.php

I added it to forumid's 46,47,48 and 67 and uploaded gif images to my /forums/images/misc directory with the names of the forumid's and nothing shows.
Reply With Quote
  #19  
Old 11-03-2005, 03:49 AM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It did this:
Code:
this is for the forumhome, open your "forumhome_forumbit_level2_post" template and find ;
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

add above that
<if condition="in_array($forum['parentid'], array(46,47,48,67))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" align="left"/></if>
created the images, named the same as the forumid #'s and uploaded them to the /forums/images/misc directory.

Here's my forumhome_forumbit_level2_post code:
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>
			<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="in_array($forum['parentid'], array(46,47,48,67))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" 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
And still no images appear. I'm running vB 3.5
Reply With Quote
  #20  
Old 11-03-2005, 08:14 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Katman
It did this:
Code:
this is for the forumhome, open your "forumhome_forumbit_level2_post" template and find ;
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>

add above that
<if condition="in_array($forum['parentid'], array(46,47,48,67))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" align="left"/></if>
created the images, named the same as the forumid #'s and uploaded them to the /forums/images/misc directory.

Here's my forumhome_forumbit_level2_post code:
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>
			<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="in_array($forum['parentid'], array(46,47,48,67))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" 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
And still no images appear. I'm running vB 3.5
HTML 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>
			<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="in_array($forum['forumid'], array(46,47,48,67))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" 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
they should show up now.
Reply With Quote
  #21  
Old 11-03-2005, 03:18 PM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So for the others trying to make this work the following is what was wrong with the original code, this > condition="in_array($forum['parentid'] should really be this > condition="in_array($forum['forumid']

HTML Code:
Wrong:
<if condition="in_array($forum['parentid'], array(XX,XX,XX))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" align="left"/></if>

Right:
<if condition="in_array($forum['forumid'], array(XX,XX,XX))"><img src="$stylevars[imgdir_misc]/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2px" hspace="2px" align="left"/></if>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09211 seconds
  • Memory Usage 2,341KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (4)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete