vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Prefix for Sub-Forum Status Images (https://vborg.vbsupport.ru/showthread.php?t=183899)

dannykilla 06-28-2008 10:00 PM

Prefix for Sub-Forum Status Images
 
This allows the Prefix for Forum Status Images on Sub forums.

In the template
forumhome_subforumbit_nopost

replace all the code with this:

Code:

<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
In the template
forumhome_subforumbit_post

replace all the code with this:

Code:

<img class="inlineimg" src="$stylevar[imgdir_statusicon]/$forum[imageprefix]subforum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
to change the file type simply edit the code (highlighed in RED)!

iogames 06-29-2008 07:20 PM

Finally! :):up:

irongloves 06-30-2008 10:08 AM

Well done! :up:

tunistunis 07-02-2008 07:12 PM

how to add img ?? link adresse ???

dannykilla 07-02-2008 10:55 PM

simply add a prefix to your subforum.

for an example lets say we have a subforum called "manutd"
Now in:
AdminCP > Forum & Moderators > Forum Manager > choose your sub forum in this case manutd

then in the option > Prefix for Forum Status Images
add a prefix called (this is an example)

manutd_

Now create your images, I have two images and called them the following:

manutd_subforum_new.png
manutd_subforum_old.png

Now upload these images to the directory /images/statusicon/

and thats it, if you want to change the file type of the status images simply change the file name in the code (above) to whatever you want. I have now highlighted that part in red!

I have attached some images to help some of you out!

aksolo 07-03-2008 12:08 AM

very nice thank u sir.

tunistunis 07-03-2008 11:58 AM

thanks my friend

aksolo 07-05-2008 03:07 AM

i have 1 question, this is for the subforums. and it also works for the forums status icon.
but i see on your forums that u have 3 icons. i was wondering how did u that other icon next to the forums, looks very nice.

dannykilla 07-05-2008 07:23 AM

I dont know what you mean by 3 icons?
if you mean, what I think you mean (look at image)


http://www.vbulletin.com/forum/showthread.php?t=114545

Dan

KURTZ 07-05-2008 09:47 AM

hi Danny, interesting hack, but i saw that you have a trouble with the alignment of the subforums (if you have some) ... it's possible to fix this?

thanks

dannykilla 07-05-2008 09:50 AM

@Kurtz
I have looked at my forum and I don't see any problem regarding the alignment, did you mean that you are having an alignment problem?
If so I am using Cyb's Subforum hack

https://vborg.vbsupport.ru/showthread.php?t=177954

KURTZ 07-05-2008 09:54 AM

@ Dan: i mean this alignment (check the pic attached)

dannykilla 07-05-2008 10:00 AM

Yeah I am trying to solve this at the moment lol
I'll post if I can fix it!

KURTZ 07-05-2008 04:22 PM

thx Dan ;)

aksolo 07-07-2008 02:04 AM

Quote:

Originally Posted by dannykilla (Post 1567201)
I dont know what you mean by 3 icons?
if you mean, what I think you mean (look at image)


http://www.vbulletin.com/forum/showthread.php?t=114545

Dan

yes thanks again my man.

nexialys 07-10-2008 08:09 AM

Quote:

Originally Posted by dannykilla (Post 1567256)
Yeah I am trying to solve this at the moment lol
I'll post if I can fix it!

this is quite simple actually... you can surround the $subforums with a div that have padding-left: 10px; or something similar depending on your design... nothing fancy...

dannykilla 07-10-2008 08:26 AM

I'll give it a go, thanks Nexialys

KURTZ 07-17-2008 06:01 PM

news Dan?

GaiLoan 07-22-2008 02:43 AM

Quote:

Originally Posted by KURTZ (Post 1567252)
@ Dan: i mean this alignment (check the pic attached)

this happen cuz by images size.

MissKalunji 07-23-2008 08:05 PM

Nice mod sadly i found it when i finished doing it myself

Thanks :)

K4GAP 07-24-2008 12:09 AM

Quote:

Originally Posted by KURTZ (Post 1567252)
@ Dan: i mean this alignment (check the pic attached)

Excuse me for butting in but the image on top (the ball) is so much larger causing the images below it to offset. I really think if you stick with the same size images everything would be ok.

MCAlexandre 11-14-2008 08:41 PM

Er... Seems a nice mod, but no files uploaded? :P

RobbieZ 11-14-2008 09:54 PM

Cool. Thanks

Quote:

Originally Posted by MCAlexandre (Post 1665767)
Er... Seems a nice mod, but no files uploaded? :P

Its a template change !!

JVCode 11-18-2008 11:33 PM

Not showing any images for me... even after changing the format to .gif - any help? I'm running the latest version of vBulletin (3.7.4).

Bibee 11-27-2008 11:06 PM

It's
Code:

<img class="inlineimg" src="$stylevar[imgdir_statusicon]/$forum[imageprefix]subforum_$forum[statusicon].png" alt="" border="0" id="forum_statusicon_$forum[forumid]" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
for both post and nopost.
But thanks a lot this is very usefull.

khurtsiya 11-11-2010 12:29 PM

any one used this on 3.8.1?

T.Nguyen 12-04-2010 05:31 PM

After I finished these changes, then I got a problem with sub-forum columns. Look at the picture. I put 2 columns in sub-forum manager. But It's not working
https://vborg.vbsupport.ru/external/2010/12/60.png


All times are GMT. The time now is 05:49 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.01159 seconds
  • Memory Usage 1,767KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete