vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Images On Forumbit (forumhome) (https://vborg.vbsupport.ru/showthread.php?t=99500)

Katman 11-03-2005 03:19 PM

You should update your original code to reflect the corrections.

sabret00the 11-03-2005 03:24 PM

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.

Katman 11-03-2005 03:24 PM

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.

Katman 11-03-2005 03:25 PM

Whatever

sabret00the 11-03-2005 03:26 PM

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.

Katman 11-03-2005 03:32 PM

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.

Watson 11-03-2005 05:02 PM

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

sabret00the 11-05-2005 08:40 AM

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.

sabret00the 11-05-2005 08:41 AM

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.

smokering 11-06-2005 01:16 AM

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


All times are GMT. The time now is 06:14 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.01147 seconds
  • Memory Usage 1,750KB
  • 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_html_printable
  • (7)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