vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How did vb.org create (https://vborg.vbsupport.ru/showthread.php?t=46973)

Auero 12-25-2002 12:37 AM

How did vb.org create
 
... the setup they have when doing a NEW HACK in the Full Releases forum

First they have the NEW HACK button where the NEW THREAD button should be.
Then they have a information page about what and what not to do regarding a new hack.

Lastly they have a different setup to the newthread page which includes some different fields.

All this is ONLY available for the Full Releases forum.

How is this achievable...???

:cross-eyed:

DrkFusion 12-25-2002 01:22 AM

One way is making a style, amd making that forum use that style, and making it override the users style.

Another way is using if/else statements and replacing the place where newthread will go witha variable. So for instances, if the forumid where the threadid is is XX then put <img src="newhack.jpg"> else <img src="newthread.jpg">

Auero 12-25-2002 01:24 AM

...and the proper way of doing it?

Sparkz 12-25-2002 10:00 AM

Both are proper ways of doing it...
You just have to figure out which one suits you better. :)

Chris M 12-25-2002 01:35 PM

The if/else statement is probably a better way, but its up to you;)

Satan

DrkFusion 12-25-2002 03:48 PM

I always use if and else statements, as I am to lazy to make 2 styles for each new style I have, lets say I have 6 styles, I will have to make 12 different styles just for that one forum.

or, you can switch around the template, make if/else statements so that if the forumid is 6 then the newreply will use newreplynew template, if not it will use the default one.

You see :)


All times are GMT. The time now is 10:59 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.02192 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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