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-29-2009 02:23 PM

Quote:

Originally Posted by stejoh (Post 1941468)
Changing the "cellpadding"-value in <table> does not change cell padding.

Anyone here who have a clue which StyleVar to change?

If we had a link to the page, it would be much easier to see what is going on.

ARadarDetector 12-29-2009 02:58 PM

Quote:

Originally Posted by cellarius (Post 1941271)
Try reuploading the file, and make sure there are no characters before <?php.

there is no characters before it, my file is in the main root (i have vbulletin 4.0 with the new cms homepage) named "speed.php" and my template is called "TRAPS" my website url is: Radar-Detector.Net here is the file:

PHP Code:

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('THIS_SCRIPT''/home/matt/public_html/speed.php');
define('CSRF_PROTECTION'true);  
// 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('TRAPS',
);

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

// ######################### REQUIRE BACK-END ############################
// if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
// chdir ('/path/to/your/forums');
require_once('./global.php');

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

$navbits construct_navbits(array('' => 'Test Page'));
$navbar render_navbar_template($navbits);

// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle 'SPEED TRAPS';

// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######

$templater vB_Template::create('TRAPS');
$templater->register_page_templates();
$templater->register('navbar'$navbar);
$templater->register('pagetitle'$pagetitle);
print_output($templater->render());

?>


Lynne 12-29-2009 03:18 PM

Try changing this line:
PHP Code:

define('THIS_SCRIPT''/home/matt/public_html/speed.php'); 



to this:
PHP Code:

define('THIS_SCRIPT''speed'); 

Also, what editor are you using? Are you using a text editor and not something like Word?

ARadarDetector 12-29-2009 04:06 PM

changed that and still not working? I am using a text editor: wordpad

darsalles 12-29-2009 06:20 PM

I dont understand to much and im really interested on this :(

I created the test.php file with the first code, the file is on the forum root. Now on the part I have to create the TEST template with the code that shows there. How do I create that template D:???

ARadarDetector 12-29-2009 06:29 PM

Lynne thanks for the help!

For those that read my problem I was using "wordpad" instead of "notepad" and "wordpad" was adding a lot of random junk above the <php code....even though when I opened the file you couldnt see it....but was hiding it above it...fixed by saving to notepad then reuploading. Thanks Lynne!

Lynne 12-29-2009 07:08 PM

Quote:

Originally Posted by darsalles (Post 1941748)
I dont understand to much and im really interested on this :(

I created the test.php file with the first code, the file is on the forum root. Now on the part I have to create the TEST template with the code that shows there. How do I create that template D:???

Style Manager > find your style > Add New Template

(I always add it to my MASTER STYLE.)

darsalles 12-29-2009 10:39 PM

Quote:

Originally Posted by Lynne (Post 1941797)
Style Manager > find your style > Add New Template

(I always add it to my MASTER STYLE.)

Thanks now its working, i have another question xD... on the original thread u posted it shows how to add "Who is online" I want to add it on this one, but i coulnd't :(

Please modify the article and teach how to add that option :D

4ums 12-30-2009 03:01 AM

Hi lynne ive created a new tab for an arcade i want on my site i used ragteks mod create a new tab in the navbar https://vborg.vbsupport.ru/showthread.php?t=228313

So do i now have to use this mod for it to work i already have the flash game on my server.
but i also have to add some HTML..
<html>
<head>
<title>Pacman Advanced</title>
</head>
<body>
<center>
<h1>Pacman Advanced</h1>
<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400">
<param name="movie" value="pacmanadv.swf">
<param name="quality" value="high">
<embed src="pacmanadv.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="400">
</embed>
</object>
<br>
<a href="http://www.startgames.ws">Online flash game</a>
</center>
</body>
</html>

for the game to work and not sure where to put either been trying 13 hours now and the whte flag is nearly up so any kinda help apprieciated thanks..

Lynne 12-30-2009 03:17 AM

Quote:

Originally Posted by 4ums (Post 1942124)
for the game to work and not sure where to put either been trying 13 hours now and the whte flag is nearly up so any kinda help apprieciated thanks..

If you need help with the modification, you need to ask in the modification thread. I have no idea what is needed for that modification to work.


All times are GMT. The time now is 08:38 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.02052 seconds
  • Memory Usage 1,761KB
  • 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
  • (3)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
  • (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