Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #29  
Old 10-14-2004, 01:41 AM
Allen Mead Allen Mead is offline
 
Join Date: Jul 2004
Location: London
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep no problem blue chi.

This is what has been done with mine:

create your html pages as normal. Then create a template with vbulletin here:

admincp/styles & Templates/Style Manager/Add New Template

call it what you want, mine is html_poloshirts. Copy all the html code into this template.

eg:

PHP Code:
<!-- saved from url=(0022)http://internet.e-mail -->
<!-- saved from url=(0022)http://internet.e-mail -->
<br><table border="0">
  <
tr>
    <
td colspan="3"><font face="Arial, Helvetica, sans-serif"><b><i><img src="Merchandise/Poloshirts/dealer_stripes.gif" width="32" height="18"><font size="5">Astra-mk2.com</font></i><font size="5">
      
Merchandise</font></b></font></td>
  </
tr>
  <
tr>
    <
td colspan="3" height="24">&nbsp;</td>
  </
tr>
  <
tr>
    <
td colspan="3" height="66">
      <
p align="left"><font face="Arial, Helvetica, sans-serif" size="3">We would
        like you to bare in mind that we are not out to make large profits on
        the goods that are forsale
. As <i>Astra-mk2.com</iis <b>not</ba company
        
and is run in Steve's and Allen's spare timeall profits get put back
        into the website to keep it running
.</font></p>
    </
td>
  </
tr>
  <
tr>
    <
td colspan="3" height="35" valign="bottom">
      <
div align="left"><font face="Arial, Helvetica, sans-serif" size="3">The
        following items are available from Astra
-mk2.com.</font></div>
    </
td>
  </
tr>
  <
tr>
    <
td colspan="3">&nbsp;</td>
  </
tr>
  <
tr>
    <
td width="54%" height="81" valign="top">
      <
div align="left"><font face="Arial, Helvetica, sans-serif" size="3">Polo
        Shirts 
Black with the website logo embroidered on the front left breast
        
(your name underneath is optional). Main website sponsor embrodered on
        the back across the shoulders
.</font></div>
    </
td>
    <
td colspan="2" height="268" rowspan="2">
      <
div align="center"><font face="Arial, Helvetica, sans-serif"></font><font face="Arial, Helvetica, sans-serif"><img src="Merchandise/Poloshirts/Polo_shirt_front.jpg" width="269" height="283"></font></div>
    </
td>
  </
tr>
  <
tr>
    <
td width="54%" height="133" valign="top">
      <
p align="left"><font face="Arial, Helvetica, sans-serif" size="3">Polo
        Shirts are available in the following sizes
:-<br>
        
LXL <b>only.<br>
        <
br>
        &
pound;TBA</b> <br>
        
P+&pound;2.00<b><br>
        </
b>Optional Name under logo on front of shirt<b> <br>
        &
pound;1.76</b></font></p>
      </
td>
  </
tr>
  <
tr>
    <
td width="54%" height="273">&nbsp;</td>
    <
td colspan="2" height="273">
      <
div align="center"><img src="Merchandise/Poloshirts/Polo_shirt_back.jpg" width="267" height="266"></div>
    </
td>
  </
tr>
  <
tr>
    <
td width="54%" height="81">&nbsp;</td>
    <
td colspan="2" height="81">
      <
div align="right"><img src="Merchandise/Poloshirts/logo_front.jpg" width="173" height="80"></div>
    </
td>
  </
tr>
  <
tr>
    <
td width="54%">&nbsp;</td>
    <
td width="3%">&nbsp;</td>
    <
td width="43%">&nbsp;</td>
  </
tr>
</
table>

<
br
Create the php file that will reference this new template you created, eg:

untitled.php

PHP Code:
<?php 

// GO TO FORUM DIR 
chdir('./forum'); 

// STANDARD VBULLETIN STUFF 
define('NO_REGISTER_GLOBALS'1); 
define('THIS_SCRIPT''script_name');
require_once(
'./global.php'); 

// GENERIC_SHELL VARS 
$pagetitle "Title of Page"
$HTML ""// PIECED TOGETHER IN SCRIPT 

eval('$HTML = "' fetch_template('html_poloshirts') . '";'); 

$navbits = array(); 
$navbits[$parent] = 'Meganman'

$navbits construct_navbits($navbits); 
eval(
'$navbar = "' fetch_template('navbar') . '";'); 
eval(
'print_output("' fetch_template('GENERIC_SHELL') . '");');
Don't forget you will need to change your forum root folder if different to mine and obviously the title page.

You can put this file wherever you want really, doesn't make any difference. Oh, don't forget to upload any images referenced in the new template created. Once done, just replicate for the various pages you want.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08397 seconds
  • Memory Usage 3,717KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)bbcode_html
  • (15)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (40)post_thanks_box
  • (40)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (40)post_thanks_postbit_info
  • (40)postbit
  • (40)postbit_onlinestatus
  • (40)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete