vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Adding html to forum index or what ever. (https://vborg.vbsupport.ru/showthread.php?t=185877)

PostMaster 07-20-2008 08:29 PM

Adding html to forum index or what ever.
 
to seprate a forum index like the one I see here and add those images for lobby and ect... http://www.technutopia.com/forum/forums.php?

Does anyone know what mod help aid in this or how to go about doing this?

RLShare 07-21-2008 02:27 AM

Well I have 2 guesses about how it can be done. Never tested either so I don't know for sure.

1. Use a bunch of conditionals to check which forum id it is and show the image for that forum ID
ex.
PHP Code:

<if condition="$forum['forumid']==2">
//show image for forum with the id 2
</if> 

With an if statement for each main category forum.
2. Use a naming convention on the images so you can use the forumId as a replacement variable in the image name.
For example name all your images with the naming convention of 'forumhead_2.png' where 2 is the forum ID that image belongs to. Then in the template try something like this.
PHP Code:

<img src='forumhead_$forum[forumid].png' /> 

--------------- Added [DATE]1216611484[/DATE] at [TIME]1216611484[/TIME] ---------------

BTW you would want to add another row to the part of the table in the template 'forumhome_forumbit_level1_nopost' to achieve this as well.

PostMaster 07-21-2008 03:39 AM

Much thanks I will test this out and post back.

PGAmerica 07-21-2008 02:53 PM

To make this work, I would need to know which template to edit (problably FORUMHOME), what to look for, what do I replace with this code?

RLShare 07-23-2008 09:48 PM

I already gave that answer 2 posts up when I posted code.


All times are GMT. The time now is 04:01 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.01853 seconds
  • Memory Usage 1,719KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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