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
  #22  
Old 11-03-2005, 03:19 PM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should update your original code to reflect the corrections.
Reply With Quote
  #23  
Old 11-03-2005, 03:24 PM
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
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>
wow how disrespectful are you, you carry on liek this and you'll make me swear.

Quote:
Originally Posted by Original Release Post
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.
if anyone doesn't know the difference between forumid's and categoryid's then the problem is on their end in the understanding department and that's what this thread is here to help them with, if you want forumid's you change the conditional to relfect that yourself, i'm a man can't be arsed with specific forums when i want a whole category to have images and thus i released according to my needs.
Reply With Quote
  #24  
Old 11-03-2005, 03:24 PM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But allas that didn't fix it either. All that did was enter the name of the forum where the image should be, but still no image.
Reply With Quote
  #25  
Old 11-03-2005, 03:25 PM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whatever
Reply With Quote
  #26  
Old 11-03-2005, 03:26 PM
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
But allas that didn't fix it either. All that did was enter the name of the forum where the image should be, but still no image.
whatever? and yet i'm still gonna help you.

the problem is that you're getting a 404 on the images, find out where they're pointing on your forumhome and either change it in the template or change it image location's to match.
Reply With Quote
  #27  
Old 11-03-2005, 03:32 PM
Katman's Avatar
Katman Katman is offline
 
Join Date: Oct 2002
Location: New Glarus, WI
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not going to argue with you over this but perhaps if your hack had better instructions then people wouldn't be having so many problems with it. Look back through the posts in this thread, the history is there, people do not understand your hack.

As for my 404 error, sure it's 404'ing file not found because it's looking in the wrong place because your original code is wrong. Your code says "<img src="$stylevars[imgdir_misc]/$forum[forumid].gif" which is the "misc" directory under the "images" directory which is under the "forum" root directory, yet that's not where it's looking for the images. It's looking for them in the root of the website.
Reply With Quote
  #28  
Old 11-03-2005, 05:02 PM
Watson's Avatar
Watson Watson is offline
 
Join Date: May 2004
Location: Scotland
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
url so i can see it in action or lack of lol?
http://forums.bootleg.org.uk

the bands forums only it should be in mate, Nothing there at all
Reply With Quote
  #29  
Old 11-05-2005, 08:40 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
http://forums.bootleg.org.uk

the bands forums only it should be in mate, Nothing there at all
sorry, seems i missed it, can you drop me an pm when you've reenabled it and i'll fix it for ya.
Reply With Quote
  #30  
Old 11-05-2005, 08:41 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
I'm not going to argue with you over this but perhaps if your hack had better instructions then people wouldn't be having so many problems with it. Look back through the posts in this thread, the history is there, people do not understand your hack.

As for my 404 error, sure it's 404'ing file not found because it's looking in the wrong place because your original code is wrong. Your code says "<img src="$stylevars[imgdir_misc]/$forum[forumid].gif" which is the "misc" directory under the "images" directory which is under the "forum" root directory, yet that's not where it's looking for the images. It's looking for them in the root of the website.
then just throw a $vboptions[bburl] in front.
Reply With Quote
  #31  
Old 11-06-2005, 01:16 AM
smokering smokering is offline
 
Join Date: Mar 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the

if anyone doesn't know the difference between forumid's and categoryid's then the problem is on their end in the understanding department and that's what this thread is here to help them with, if you want forumid's you change the conditional to relfect that yourself, i'm a man can't be arsed with specific forums when i want a whole category to have images and thus i released according to my needs.

well thanks for releasing it and admitedly it is on my end as i dont know any thing about it was trying to learn here understand nice sounding hack


cheers
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 09:01 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.05562 seconds
  • Memory Usage 2,321KB
  • 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
  • (3)bbcode_html
  • (7)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
  • (4)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