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 12-09-2010 05:22 PM

Put in the full url for your swf.

compunerdy 12-09-2010 05:42 PM

Tried that already.. Its in there now though if you want to take a look. I can also remove those 2 lines of code to show that it loads fine without them. Something in the headinclude and headinclude_bottom make it not load. I am just not sure what.

EDIT.. Actually it does work now in firefox just not IE

DOUBLE EDIT.. added one more full URL and it works fine now.. DUH!!

Thanks and sorry for wasting your time.

Lynne 12-09-2010 06:25 PM

Can you create a second page that doesn't have the header/navbar so I can compare the two?

compunerdy 12-09-2010 06:42 PM

It works now when I put in the full URL. Evidently the headers change the working directory which made it not load without the full URL.

Lynne 12-09-2010 09:54 PM

Great! :)

stevectaylor 12-18-2010 09:21 AM

would this still work in a sub-folder?

--------------- Added [DATE]1292675660[/DATE] at [TIME]1292675660[/TIME] ---------------

I'm struggling here on a test page; Why wont it allow the 'php include' function to show.

<div class="blockbody">
<div class="blockrow">
Testing this page for php input. <?php include("offers/choice_ad1.php"); ?>
</div>
</div>

Lynne 12-18-2010 04:20 PM

Quote:

Originally Posted by stevectaylor (Post 2135824)
would this still work in a sub-folder?

--------------- Added 18 Dec 2010 at 04:34 ---------------

I'm struggling here on a test page; Why wont it allow the 'php include' function to show.

<div class="blockbody">
<div class="blockrow">
Testing this page for php input. <?php include("offers/choice_ad1.php"); ?>
</div>
</div>

You cannot put php in the template. PHP goes into the php file, and html goes into the template.

CroNiX 12-18-2010 09:09 PM

First, thank you for this. I learned a lot and have a few things planned!

When following the example, I noticed that if you went to the url:
http://www.yoursite.com/test (with no .php) the page still comes up fine, but the online locations page would break. I fixed this easily by adding an extra statement to the switch in the plugin using the online_location_process hook:

PHP Code:

switch ($filename)
{
    case 
'test':  //added this line, would need to do for each file if more than one
    
case 'test.php':  
        
$userinfo['activity'] = 'mypage';
        break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.


I'm not sure if this has anything to do with the fact I'm using the mod rewrite url rules.

Lynne 12-18-2010 10:30 PM

Thanks for posting that. I'm guessing you are correct in that it has something to do with the mod rewrite rules because I can't go to just mysite.com/test and get the same page.

stevectaylor 12-19-2010 07:54 AM

Quote:

Originally Posted by Lynne (Post 2135945)
You cannot put php in the template. PHP goes into the php file, and html goes into the template.

Thanks lynne, I did guess that, but when inserted to the php it appears at the very top. How do you position a php include statement.


All times are GMT. The time now is 06: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.03646 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)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