vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Tutorial Hack (https://vborg.vbsupport.ru/showthread.php?t=58919)

FleaBag 12-07-2003 09:40 PM

Haha there's no stopping you!

iceman-x 12-08-2003 08:19 PM

Then the hack is installed. Thanks again :):)

gldtn 12-08-2003 08:24 PM

Haven't try this out yet, but am I able to upload pictures to my tutorials? if not, maybe this could be a feature on the next version. Maybe allow a person to upload as many picture they need to upload and than sort it out in the tutorial using the tag?

assassingod 12-08-2003 08:47 PM

gldtn, as of yet you cannot upload pictures. I'll take this into consideration in future version:)

iceman-x 12-08-2003 09:07 PM

- Is it posible to make it for only registered member.

JulianD 12-09-2003 01:20 AM

Can I ask why do you always set $templatesused after require global.php? I think it's pointless because the templates are not being cached, and there will be one query for every template the script reads.

assassingod 12-09-2003 05:50 AM

iceman-x, Only registered users should be able to post tutorials

JuliadD, i've always used $templatesused in my scripts wether it's needed or not. But when I re-code tutorials.php, I'll be sure to see what's not needed

iceman-x 12-09-2003 09:38 AM

Quote:

Originally Posted by assassingod
iceman-x, Only registered users should be able to post tutorials

JuliadD, i've always used $templatesused in my scripts wether it's needed or not. But when I re-code tutorials.php, I'll be sure to see what's not needed

Thanks. But i was woundering if only registerd people can view the tutorials.

Areku 12-09-2003 10:54 AM

Can we make it so only REGISTERED users can view/access the tutorials zone?

Brad 12-09-2003 11:07 AM

Quote:

Originally Posted by assassingod
iceman-x, Only registered users should be able to post tutorials

JuliadD, i've always used $templatesused in my scripts wether it's needed or not. But when I re-code tutorials.php, I'll be sure to see what's not needed

That is not the issue here, the error is calling global.php before you define $templatesused. This means everytime you call get_template(); in the script it runs a query.

So instead of:

PHP Code:

require_once('./global.php');

if (
$do =  'moo')
{
$templatesused 'blah,blah3,blah999';


Use:

PHP Code:

if ($do 'bahh')
{
$templatesused 'sheep,sheepy';
require_once(
'./global.php');

// your code here




All times are GMT. The time now is 08:37 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.01392 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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