vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

Digital Jedi 07-04-2008 06:51 PM

Works fine with with 3.7.1, and the only difference there is some bug/security fixes.

TheInsaneManiac 07-05-2008 05:04 AM

So I don't end up making like 10 pages, is there a way I can do like the misc.php page and be like test.php?do=mypage

I wish to make a custom page, but also have links that go to a different subpage within the same link.

pooker 07-05-2008 12:59 PM

I have a php script I need to run could someone please tell me how I can use it with this article, seeing as with templates it can only call variables from php it seems.

Please I really need help with this thanks

TheInsaneManiac 07-05-2008 04:10 PM

Quote:

Originally Posted by pooker (Post 1567341)
I have a php script I need to run could someone please tell me how I can use it with this article, seeing as with templates it can only call variables from php it seems.

Please I really need help with this thanks

Yea I have a similar issue, I can't get javascript to run lol.

Cip 07-06-2008 02:08 AM

Alot of people seem to have troubles prohibiting guests from accessing their custom pages, I've seen a couple of different methods but none of which seem to work.

Here's what I did, and it works just fine:
Code:

// ########################################################
// ######################## START MAIN SCRIPT #############
// ########################################################

$navbits = array();
$navbits[$parent] = 'Manage Account';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
// ######################## START CIP EDITION #############

if ($vbulletin->userinfo['userid'] == 0)
{
        $show['permission_error'] = 1;
        eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}
elseif (isset($_REQUEST['do']))
{
//And my code goes on, but that's none of your business *evil grin*
eval('print_output("' . fetch_template('YourTemplateWhateverItIsNamed') . '");');
}


TheInsaneManiac 07-06-2008 11:25 PM

For some reason this has issues with my submit button. It is suppose to convert text to hex, but instead it refreshes. Any idea?

Code:

<input id="box" value="YourHexCodeHere" maxlength="48" size="90" name="text" type="text"><input onclick="runHex(document.text2hex.text.value);return false" generate="" value="Convert" type="submit">

Cip 07-07-2008 12:07 AM

^ This has nothing to do with the article, but to solve your problem I think all you need to do is change the "type" attribute from "submit" into "button"

DieselMinded 07-07-2008 05:50 PM

Something ive done with this mod

http://www.dieselbombers.com/About.php

Goomzee 07-08-2008 06:44 AM

Quote:

Originally Posted by DiesellMinded (Post 1569321)
Something ive done with this mod

http://www.dieselbombers.com/About.php

yes exactly like this page i want to make but for everyone guest and members both can access this code could you plz make me that kind of code for my this page

http://www.mknexusonline.com/test.php

DieselMinded 07-08-2008 08:55 AM

Mine does show to guests and members , hints the Register Link on the page

Its HTML dropped in to a VB powered page that this mod creates , Your test page does not have this mod on it , you have to make a vb powered page then on the template insert html code to get what you want .

Land a version of Front Page 2003 , Open a new page and click design and knock your self out then switch to code and copy everything between the Body tags and put in your vb template and your done


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