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)
-   -   [Release - Gamma] Advanced Custom Forum Status Icon Mod (https://vborg.vbsupport.ru/showthread.php?t=88330)

Matrixgl 12-18-2003 06:55 PM

Quote:

Originally Posted by Faranth
theres another trick to do this that requires absolutly no conditionals

Faranth, we would love it if you share the trick with us :)

Thank you everyone for the compliments, I am glad that you like it :)

Bad Bunny 12-19-2003 04:26 AM

Quote:

Originally Posted by Faranth
theres another trick to do this that requires absolutly no conditionals

Has no conditionals and no hacking, and allows you to specify only SOME forums to have unique icons? I seriously doubt it.

Colicab2 12-19-2003 11:50 AM

GEnius i was half wy thru trying to write version of this for use on ao3 (my sites new design) cause im gonna use it so that each of the forums had a diff part of the image table surrounding them change

Zachery 12-19-2003 01:14 PM

yes thats right no hacking and only allows certain forums to have differnt icons, very simple isnt it :P actuallty its lready been done at vbnl feldon came up with the trick

theres really a few differnt ways to do it

prefix or addd it as a folder or somthing

$stylevar[imgdir_statusicon]/$forumid/$forum[statusicon].gif
or
$stylevar[imgdir_xxx]/$forumid_$forum[statusicon].gif

now either you need to make some extra folders OR make some extra files. but either way it requires no condtionals and no hacking :) just renaming and extra files :)

Matrixgl 12-19-2003 03:17 PM

Well, when you said no hacking, I thought you meant no template edits, because your hack and mine does the same template edits, but mine requires more coding. And IMO, your one requires more work as you need to make so many copies of the base images.

TheAnt wrote a hack similar to the one that you mentioned, and I decided to write mine because I didnt think that was convienent enough. IMO, it is not a very good way of doing this. I think its too much work, and whenever you add a new forum, you will need extra icons even if you dont want those to be customized. And communities with more than 20 forums will have a lot of images. And if you have more than one style, its twice as much as work.

Quote:

Originally Posted by MatrixGL
So what that means is you dont have to have every status icons (including the default ones) as seperate files.

So to make the hack more user friendly and more convienent, I have decided to use the conditional statements, to make it "Advanced" :p

Zachery 12-19-2003 04:08 PM

when i refer to hacking im refering to file changes

yours and mine are just as dynamic.

now what if you want every forum to have its own icon?

you now have a problem of writing 40 if statments

Bad Bunny 12-19-2003 07:27 PM

We already know about the old way of doing it. But this was an advaced way that allowed some to have custom icons and others to not (and use the same image instaed of having tons of repetitive graphics)
Faranth, I see no reason for you to blow your own trumpet. Thank you for releasing your template mod, but this is not the thread for your template mod.

This one approaches the problem with a different solution and I commend Matrixgl for doing it. Thanks, Matrixgl.

Asterik 12-19-2003 08:08 PM

Yes, great job Matrixgl ;) Im lovin it.

Faranth: Keep ur bullshit 2 urself >_>

Zachery 12-19-2003 08:12 PM

Asterik thats uncalled for, i was only offering another option :) if you feel my posts are bullshit please use the ignore feature

feldon23 12-19-2003 08:45 PM

Ok, let's not kill each other.

You can add per-forum icons with 1 template change, but then you'll need icons for each forum...

In template forumhome_forumbit_level2_post, I changed
Code:

<img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" />
to
Code:

<img src="images/tiles/$forum[forumid]$forum[statusicon].gif" alt="" border="0" />
then I create a folder images/tiles and put gifs in there 01new.gif 01old.gif, 02new.gif, 02old.gif, etc.


There can never be enough vB3 hacks. :)


All times are GMT. The time now is 01:53 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.01023 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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