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)

Smiry Kin's 07-02-2008 03:42 PM

Quote:

Originally Posted by Goomzee (Post 1564566)
you see above i already did this in test.php

yes but have you entered the correct username?

Goomzee 07-03-2008 03:50 AM

Quote:

Originally Posted by Digital Jedi (Post 1564927)
Take out chdir('/home/username/public_html/'); for right now. Put your test.php in your forum root folder, like so: www.mknexusonline.com/forums/test.php. It should start working for you now.

that i know it will works but i want to add this page here

soundbarrierpro 07-03-2008 11:47 AM

Quote:

Originally Posted by Goomzee (Post 1564463)
this is my Template Coding



and this is my test.php file coding



and it's my page URL

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

but it's not working someone plz tell what i did wrong

You need to name your template "custom_test". Your .php file must be named "test.php" for the template call to work.

Every new template must have the prefix "custom" and an underscore, ie. custom_test

this is the link you should use for every custom page you create. just replace the last word with your custom page name
Code:

http://www.yourdomain.com/misc.php?do=page&template=test

Digital Jedi 07-03-2008 03:37 PM

Quote:

Originally Posted by soundbarrierpro (Post 1565723)
You need to name your template "custom_test". Your .php file must be named "test.php" for the template call to work.

Every new template must have the prefix "custom" and an underscore, ie. custom_test

this is the link you should use for every custom page you create. just replace the last word with your custom page name
Code:

http://www.yourdomain.com/misc.php?do=page&template=test

That's not how this tutorial works. You'll notice it says to create a template called TEST, not custom_TEST. It's says nothing about adding a prefix. That URL that you posted takes you to misc.php and is very much how the custom pages within vBadvanced work. But how can you possibly get to a file named test.php when your navigating to misc.php? Their two different pages. This tutorial teaches you how to create a page without the do= string at the end.

For example, the very first page I created using this tutorial is here: www.cogonline.net/forums/banners.php

The template name I use is BANNERS. The file is banners.php. Navigating to misc.php misc isn't going to take me anywhere near this page.

soundbarrierpro 07-03-2008 04:05 PM

Dude, did you miss the part where I said I have over 40 pages created like this? Each page .php page has it's own name and that name matches up with custom_same page name.

test.php matches up with custom_test =
Code:

http://www.yourdomain.com/misc.php?do=page&template=test
test1.php matches up with custom_test1=
Code:

http://www.yourdomain.com/misc.php?do=page&template=test1
test2.php matches up with custom_test2 =
Code:

http://www.yourdomain.com/misc.php?do=page&template=test2
Don't tell me it doesn't work, because this is how this mod works.

amcd 07-04-2008 06:21 AM

Quote:

Originally Posted by soundbarrierpro (Post 1565933)
Don't tell me it doesn't work,

ok.
Quote:

Originally Posted by soundbarrierpro (Post 1565933)
because this is how this mod works.

no.

And this is an article, not a mod.

Lord Singo 07-04-2008 07:53 AM

How can I put sound files or rss feeds into a page like this?

Digital Jedi 07-04-2008 08:57 AM

Quote:

Originally Posted by soundbarrierpro (Post 1565933)
Dude, did you miss the part where I said I have over 40 pages created like this? Each page .php page has it's own name and that name matches up with custom_same page name.

test.php matches up with custom_test =
Code:

http://www.yourdomain.com/misc.php?do=page&template=test
test1.php matches up with custom_test1=
Code:

http://www.yourdomain.com/misc.php?do=page&template=test1
test2.php matches up with custom_test2 =
Code:

http://www.yourdomain.com/misc.php?do=page&template=test2
Don't tell me it doesn't work, because this is how this mod works.

I didn't say it didn't work. I said that's not how this tutorial works. This tutorial creates individual .php pages with unique names for each one. With your method, the .php pages your creating aren't even being used. Not to mention, the point of the tutorial is to navigate to a page called test.php, not misc.php. You'll notice that nothing your saying is even mentioned in this tutorial.

Lord Singo 07-04-2008 01:25 PM

I can't seem to force users to login to view my page created with this script.

What do I need to do to force guests to login so they can view the page?

mackers8923 07-04-2008 01:36 PM

Folks

Could someone please confirm that this works with 3.7.2 ?

VMT


All times are GMT. The time now is 11:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03495 seconds
  • Memory Usage 1,753KB
  • 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
  • (8)bbcode_code_printable
  • (7)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