vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Lynne 03-15-2011 03:53 PM

Quote:

Originally Posted by priest1311 (Post 2173635)
Hello all,

So if i have been ready it correct this is the way to get a custom homepage with the navbar and footer. Because i have been searching like crazy for it but if i can add my own html layout and still use the header and footer that would be great. This is correct right?

Priest!

You may add your own html. Just try it out and see.

kc3815 03-20-2011 11:12 PM

I just get the following when I navigate to http://www.mysite.com/test.php

'test')); eval('$navbar = "' . fetch_template('navbar') . '";'); // spit out template eval('print_output("' . fetch_template('test') . '");'); ?>

Any Ideas?

Lynne 03-20-2011 11:31 PM

You've done something wrong. I suggest you redo it all and make sure you are using a plain text editor when creating the php file. like notepad.

kc3815 03-21-2011 09:07 PM

Quote:

Originally Posted by Lynne (Post 2175617)
You've done something wrong. I suggest you redo it all and make sure you are using a plain text editor when creating the php file. like notepad.

Thanks for the fast response. I tried again and was able to get it to work.

Another question if you don't mind...

Please forgive me if my terminology is not perfect.

I see that I can set values in the // ###### YOUR CUSTOM CODE GOES HERE ##### area and the register them for use by the template in the // ###### NOW YOUR TEMPLATE IS BEING RENDERED ###### area. However, I want to display the output from some php code. Is there a way to add the code and set it's value for template use?

Or I guess, in other words, is there a way to run a php script and display it's output within the template?

Lynne 03-21-2011 10:54 PM

Quote:

Originally Posted by kc3815 (Post 2175945)
Or I guess, in other words, is there a way to run a php script and display it's output within the template?

Run the PHP code and put the result into a variable and then put the variable in the template.

boodog 03-23-2011 12:35 AM

Worked beautifully. Thank you Lynne :)

Phaedrus 03-27-2011 04:19 AM

Excellent. I was able to make a very nice Privacy Statement rather than the pdf file I had before.

Mark4865 03-27-2011 10:26 AM

Hello,

Can anyone tell me how we view the page we have created, we followed all instructions but have no idea how to view the page.

Please help??

Lynne 03-27-2011 05:48 PM

Quote:

Originally Posted by Mark4865 (Post 2177915)
Hello,

Can anyone tell me how we view the page we have created, we followed all instructions but have no idea how to view the page.

Please help??

yoursiteurl.com/yourpagename.php

Mark4865 03-28-2011 11:07 AM

Hello Lynne,

Thanks for response, tried that this is what I get, sorry I am a technical idiot

Mark

Parse error: syntax error, unexpected T_STRING in /var/www/clients/client11/web26/web/custom.php on line 3


All times are GMT. The time now is 08:51 PM.

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.02273 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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