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 a own vBulletin page (without plugin and php file) (https://vborg.vbsupport.ru/showthread.php?t=229194)

Allan 11-29-2009 10:00 PM

[HOW TO - vB4] Create a own vBulletin page (without plugin and php file)
 
1 Attachment(s)
Here is a trick that allows you to create vBulletin pages without plugin or php files.
  • Create one template named "custom_wazaaaa", add in:
PHP Code:

{vb:stylevar htmldoctype}
<
html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <
head>
    <
title>{vb:raw vboptions.bbtitle}</title>
    {
vb:raw headinclude}
  </
head>
  <
body>
    
    {
vb:raw header}
    
    {
vb:raw navbar}
    
    <
div id="pagetitle">
      <
h1>{vb:raw pagetitle}</h1>
    </
div>
    
    <
h2 class="blockhead">Titre de la page (title page)</h2>
    <
div class="blockbody">
      <
div class="blockrow">
        
Le texte que vous souhaitez mettre (the text)
      </
div>
    </
div>
    
    {
vb:raw footer}
  </
body>
</
html

  • It'll just create a link to this url: /forum/misc.php?do=page&template=wazaaa
  • The template MUST be named custom_xxxxxx - change xxxxxx to whatever you want.
  • When call the page, you enter template=xxxxxx where xxxxxx is the part of the template name after custom_
PS: You are free to customize the text in the template ;)

Zaiaku 12-01-2009 01:40 AM

I was wondering if this changed or not. Best to use this with a mod rewrite so it just don't look wierd.

Brandon Sheley 12-01-2009 02:26 AM

Great info Allan!

Adem GEN? 12-01-2009 10:29 AM

without php file, mytest.php -->plugin

/forum/mytest.php --> /forum/misc.php???????????

Is this possible?

VonDoom 12-01-2009 11:11 AM

I dont know but, ive worked this code ten ways from Sunday and it just reverts to the smilie list. Either that or the instructions are geared towards somebody with more experience then me, and im missing something.

Lynne 12-02-2009 02:48 AM

Works just fine for me guys.

Allan, perhaps something you need to emphasize here....
- The template MUST be named custom_xxxxxx - change xxxxxx to whatever you want.
- When call the page, you enter template=xxxxxx where xxxxxx is the part of the template name after custom_

Allan 12-02-2009 04:55 AM

Quote:

Originally Posted by Lynne (Post 1923808)
Works just fine for me guys.

Allan, perhaps something you need to emphasize here....
- The template MUST be named custom_xxxxxx - change xxxxxx to whatever you want.
- When call the page, you enter template=xxxxxx where xxxxxx is the part of the template name after custom_

Yes, i will add ;)

VonDoom 12-02-2009 03:40 PM

Quote:

where xxxxxx is the part of the template name after custom_
haha there it is.

betty02 12-03-2009 10:05 AM

Having problems with this,

Put the code in a custom template called custom_shoutbox but when you navigate to it then nothing loads?

http://www.twingooc.com/misc.php?do=...plate=shoutbox


EDIT: SORTED!!

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

Ok i have done a test template for a simple homepage layout here

Can you see the second ''block'' how would i alight that to the right of the first block and also create a block to the left of that as well?

So works out like a 3 column template?

Lynne 12-03-2009 01:41 PM

Quote:

Originally Posted by betty02 (Post 1924620)
Ok i have done a test template for a simple homepage layout here

Can you see the second ''block'' how would i alight that to the right of the first block and also create a block to the left of that as well?

So works out like a 3 column template?

You'll use divs and float:right and float:left . You should google "css help" and you'll find several good places that will help you with your css.


All times are GMT. The time now is 01:20 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.01476 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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