vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   images in forum bit vb3 (https://vborg.vbsupport.ru/showthread.php?t=60097)

nguyenvu27 01-11-2004 10:00 PM

images in forum bit vb3
 
add images into forum bit .
What this hack does:
this will add 1 images on forumlist

1 Query to run

1 Files to edit

admincp/forum.php

2 Templates edit:
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

working on vbb RC 2

jluerken 01-12-2004 08:10 AM

I cannot image what this is doing. Can you please post a screenshot?

nguyenvu27 01-12-2004 08:22 AM

demo at : http://nguyenvu.org/ :D

Allan 01-12-2004 08:26 AM

Quote:

Originally Posted by nguyenvu27

link down :(

Zachery 01-12-2004 08:32 AM

Quote:

Originally Posted by Socrate
link down :(

imo if you want images for every category its not hard(as in no need for hack)

nguyenvu27 01-12-2004 08:39 AM

screen shoot below :

Boofo 01-12-2004 09:27 AM

Quote:

Originally Posted by Faranth
imo if you want images for every category its not hard(as in no need for hack)

Ok, how would you do it for each forum without a hack? ;)

Zachery 01-12-2004 09:31 AM

Quote:

Originally Posted by Boofo
Ok, how would you do it for each forum without a hack? ;)

its nothing more than a small trick :) two ways to do it i guess

for your path to your forum icon
youd use

$stylevar[statusicon]/$forumid/ :)

or
$stylevar[statusicon]/$forumid(rest of the img extension i dun remember atm).gif :)

MrNase 01-12-2004 10:32 AM

nice but it could be done via conditionals as you can see on www.sportboard.de :)

Alien 01-12-2004 10:41 AM

I'd like to go the conditionals route, can you quote the code you use?

Thanks man. :D

idwf 01-12-2004 03:53 PM

Quote:

Originally Posted by Faranth
its nothing more than a small trick :) two ways to do it i guess

for your path to your forum icon
youd use

$stylevar[statusicon]/$forumid/ :)

or
$stylevar[statusicon]/$forumid(rest of the img extension i dun remember atm).gif :)

tbh...i wouldn't of know then witout you tellin me. So, GREAT hack! lol...

thanks

Zachery 01-12-2004 04:57 PM

Quote:

Originally Posted by Alien
I'd like to go the conditionals route, can you quote the code you use?

Thanks man. :D

i think its already been released on vbulletin templates.com :)

sabret00the 01-12-2004 09:16 PM

yeah i'm doing it with conditionals on my board

sabret00the 01-14-2004 02:16 AM

Quote:

Originally Posted by Faranth
i think its already been released on vbulletin templates.com :)

was just about to install this but can't find it :(

Boofo 01-14-2004 03:30 AM

Quote:

Originally Posted by sabret00the
yeah i'm doing it with conditionals on my board

Mind sharing how? ;)

gmarik 01-14-2004 07:27 PM

So it's the sutom on/off images hack.
Could you lower the alpha transparency to the off buttons and a 100% allpha to the on, the new threads in thge place of on.gif and off.gif - just one gif and two states of visibility with the help of CSS.

sabret00the 01-14-2004 09:41 PM

Quote:

Originally Posted by Boofo
Mind sharing how? ;)

as soon as i find out or get enough energy to write the conditional i will.

but to get the images to display it will just be "images/misc/$forumid.gif"

Boofo 01-14-2004 09:47 PM

Ok, great! Thank you, sir. ;)

nhochochack 01-26-2004 08:49 AM

who's known link to download the "icons" anh "smiles"
For VBB?

sypher_again 01-27-2004 03:01 PM

thx it's a good job , ;)

Matrixgl 01-27-2004 03:50 PM

Quote:

Originally Posted by Boofo
Ok, how would you do it for each forum without a hack? ;)

http://www.vbulletintemplates.com/mo...ead.php?t=5037

You dont need a hack for this. You just have to edit two templates, and this can be achived. You can even have both on and off status icons.

gmarik 01-31-2004 02:56 PM

It would be better to have JUST one icon, with different trasparency when on and off ...

LordJMann 02-01-2004 02:20 AM

Quote:

Originally Posted by gmarik
It would be better to have JUST one icon, with different trasparency when on and off ...

gmarik, thats only just more work, then you have to encorporate a bit of code in conjunction with GD to do this and not all servers have GD, this is very simple and effective. Having more than 1 icon is more versatile anyway.

Matrixgl 02-01-2004 01:03 PM

Quote:

Originally Posted by LordJMann
gmarik, thats only just more work, then you have to encorporate a bit of code in conjunction with GD to do this and not all servers have GD, this is very simple and effective. Having more than 1 icon is more versatile anyway.

You can use dhtml/javascript to change the transparency too, dont really need GD. GD would be the radiculas way of doing this.

sabret00the 04-01-2004 09:14 AM

Quote:

Originally Posted by Boofo
Ok, great! Thank you, sir. ;)

HTML Code:

                <if condition="($forum[parentid] == XX) OR ($forum[parentid] == XX)"><img src="images/forumhome/$forum[forumid].gif" alt="" border="0" filter:alpha(opacity=80); -moz-opacity: 0.6;" align="left" /></if>
here you go boofo, forgot you were after this.

Boofo 04-01-2004 09:57 AM

You'd have to write this line of code for each forum then, right? That could get pretty long if you want to use different images for each forum. ;)

sabret00the 04-01-2004 10:23 AM

Quote:

Originally Posted by Boofo
You'd have to write this line of code for each forum then, right? That could get pretty long if you want to use different images for each forum. ;)

nope just add it to your "forumhome_forumbit_level2_post" template, the most you'd have to do is have the images in the right directory and named correctly.

Boofo 04-01-2004 10:52 AM

What is this for then?

HTML Code:

<if condition="($forum[parentid] == XX)

sabret00the 04-01-2004 11:06 AM

it's for if you wanted all the forums in the bears den to bear an image, instead of all the forums on the forumhome.

Boofo 04-01-2004 11:10 AM

How did you know about the Bear's Den? Have you been peeking? ;)

Ahhh, ok, that makes sense now. Thank you for explaining it to me. ;)

sabret00the 04-01-2004 11:56 AM

i find it's best to take a look at mods sites, but also it's easier to explain if you can relate to it ;) so no problem :)

Vb-Hispano 04-11-2004 03:37 PM

working in gold?

thanks

jluerken 05-05-2004 09:29 AM

Quote:

Originally Posted by Vb-Hispano
working in gold?

thanks

Not for me. Maybe the author can check this?

Zachery 05-05-2004 05:34 PM

This is almost totaly a template mod, not even worth hacking

Boofo 05-05-2004 05:42 PM

Quote:

Originally Posted by Zachery
This is almost totaly a template mod, not even worth hacking

Yopu keep saying that but I haven't seen a template mod to do this yet. ;)

sabret00the 05-05-2004 06:35 PM

Quote:

Originally Posted by Boofo
Yopu keep saying that but I haven't seen a template mod to do this yet. ;)

i showed you one ;)

jluerken 05-06-2004 06:02 AM

Quote:

Originally Posted by Zachery
This is almost totaly a template mod, not even worth hacking

I do not agree. With this hack you're able to enter the img url directly during the creation of the board.
There is no need to touch the template again and again.
Second is that I am using for example three styles. Making this working with template hacking means to do the changing always three times.

sabret00the 05-06-2004 08:15 AM

Quote:

Originally Posted by jluerken
I do not agree. With this hack you're able to enter the img url directly during the creation of the board.
There is no need to touch the template again and again.
Second is that I am using for example three styles. Making this working with template hacking means to do the changing always three times.

if they're parent styles then it's only one setting

and also if your images are in the correct folder and named as the forumid then it's just a simple matter of changing images should you want to change the image rather than edit the templates, but each tot heir own i guess :)

msimplay 05-08-2004 05:10 PM

Quote:

Originally Posted by sabret00the
nope just add it to your "forumhome_forumbit_level2_post" template, the most you'd have to do is have the images in the right directory and named correctly.

do i replace

HTML Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="forum_$forum[statusicon].gif" title="" border="0" />
to get this working and then replace make images for each forum id ?

sross 05-18-2004 08:30 PM

Hi, I have installed this hack and like it's ease of use. However I have a forum that is set to "not act as a forum" and still need the image to show, but when the option not act as forum is selected the image doesn't appear, help! :)


All times are GMT. The time now is 04:43 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.01667 seconds
  • Memory Usage 1,816KB
  • 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
  • (3)bbcode_html_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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