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)

cellarius 12-08-2009 03:42 PM

Replace
PHP Code:

 $tabaux .= '<tr><td class='alt1'>$col1</td><td class='alt1'>$col2</td></tr>'

with
PHP Code:

 $tabaux .= "<tr><td class='alt1'>" $col1 "</td><td class='alt1'>" $col2 "</td></tr>"

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

Or the other way 'round :)
Hi Lynne ;)

Lynne 12-08-2009 03:50 PM

Quote:

Originally Posted by cellarius (Post 1927310)
Or the other way 'round :)
Hi Lynne ;)

Good morning dear!

cellarius 12-08-2009 04:04 PM

Quote:

Originally Posted by Lynne (Post 1927317)
Good morning dear!

Ah, the wonders of time shift - and a good evening to you :D

Stryker412 12-10-2009 02:27 PM

I'm getting this error all the sudden for anyone not logged in:

Unable to add cookies, header already sent.
File: store.php
Line: 5


Code:

<html>
<head>
<title>Shattered Planet's Amazon Store</title>
</html>
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'STORE'); // change this depending on your filename

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(

);

// get special data templates from the datastore
$specialtemplates = array(

);

// pre-cache templates used by all actions
$globaltemplates = array(
    'STORE',
);

// pre-cache templates used by specific actions
$actiontemplates = array(

);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

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

$navbits = array();
$navbits[$parent] = 'Shattered Planet Store';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('STORE') . '");');

?>


Lynne 12-10-2009 02:52 PM

Quote:

Originally Posted by Stryker412 (Post 1928368)
I'm getting this error all the sudden for anyone not logged in:

Unable to add cookies, header already sent.
File: store.php
Line: 5

You need to start your html *after* the global.php file is included - you started it at the top of your page.

Stryker412 12-10-2009 02:57 PM

OK great thanks Lynne. Odd that it worked fine for those of us who were logged in.

Jeweetog 12-12-2009 09:57 PM

Hi Lynne,

Thanks for the tut! I used it for the google search bar to show up the results in that customized page.

Works like a charm!

A small comment, i put that test.php file almost in every directory. I didn't know where to upload. Think you forgot to mention that :D

Lynne 12-12-2009 10:26 PM

Quote:

Originally Posted by Jeweetog (Post 1929592)
Hi Lynne,

Thanks for the tut! I used it for the google search bar to show up the results in that customized page.

Works like a charm!

A small comment, i put that test.php file almost in every directory. I didn't know where to upload. Think you forgot to mention that :D

Glad this worked for you, but it's not my tutorial. :)

Nothing is mentioned regarding where to upload the test.php file because it can be put anywhere as long as you put the correct paths to the files you include in your page.

amcd 12-13-2009 02:06 AM

Quote:

Originally Posted by Lynne (Post 1929604)
Glad this worked for you, but it's not my tutorial. :)

Nothing is mentioned regarding where to upload the test.php file because it can be put anywhere as long as you put the correct paths to the files you include in your page.

Quite right, but it is easiest if you put it in the main forum directory.

Micaiah 12-24-2009 02:31 PM

i loved this soo much thank you :D :D :D :D :D


All times are GMT. The time now is 12:11 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.05334 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)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