vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ok, where is all this stuff coming from... (https://vborg.vbsupport.ru/showthread.php?t=75061)

Dionysis 01-25-2005 05:55 AM

Ok, where is all this stuff coming from...
 
http://www.nrgdrink.com/asdf.jpg


You'll notice the "asdf" and "fff" inserted.
here is the code:

about 90% of the way down admincp/template.php you'll find : I just added "asdf" and "fff" in there.

PHP Code:

if ($debug)
    {
        print_style(-1);
    }  ?>asdf <?php
    
foreach($stylecache AS $styleid => $style)
    {
        
print_style($styleid$style);
    }

?>      fff
</div>


Ok. now here is where i say "omfg wtf." The only thing in that code is a foreach() and it's creating a default style, dropdown menu, expander, and list ????? where is all this stuff coming from?

Marco van Herwaarden 01-25-2005 06:02 AM

Well a few lines higher you will find some page initialisation putted out.

'print_style' is a function that is part of 'include/adminfunctions_template.php' that will take care of the rest.

Dionysis 01-25-2005 06:35 AM

i did a ctrl+f and searched for "print_style" in 'include/adminfunctions_template.php'

didn't find anything.

Marco van Herwaarden 01-25-2005 07:17 AM

First it should have been 'includes/adminfunctions_template.php', typo from me.

You will find the print_style function around line 1069 in adminfunctions_template.php (3.0.6).

What editor are you using?

Dionysis 01-26-2005 01:50 AM

ah ok, found the function. i'm using "context" editor.

Zachery 01-26-2005 02:34 AM

print_style($styleid, $style);

print_style(number, name);

basicly, its a function.

Dionysis 01-26-2005 09:09 PM

yea thanks guys, learning something new everyday ^_^


All times are GMT. The time now is 07:12 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.01148 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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