The Arcive of vBulletin Modifications Site. |
|
custom page wrapper Details »»
|
|||||||||||||||||||||||||
This lets you create a vBulletin page by just creating a template.
Installation - Upload "custom page wrapper 0.1.xml" plugin and activate it - Create a "page_test" template with anything in it - Test it out with "index.php?page=test" To create pages, add a template that begins with "page_" in the title. You can change that prefix editing the plugin. Enjoy ![]() PHP Code:
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
W00t! Thank you so much!!!
|
|
#3
|
||||
|
||||
|
I need to make some custom pages with 3.0.X
|
|
#4
|
||||
|
||||
|
wowowowow u r Great i wonder how i was going to make something nice like that .
just want know how can i called a data from database not from a templete in 3.5.0 ? this file i make it on 3.0.7 and it works when i call it from the browser Code:
<?php
require_once('./global.php');
if ($id) {
function getcontent($contentid) {
$contents=mysql_query("SELECT content FROM bbs WHERE id='$contentid'");
$content = mysql_fetch_array($contents);
$contentid=$content[content];
$html=str_replace("\"","\\\"",$contentid);
return $html;
}
$que = "SELECT * FROM bbs WHERE id='$id'";
$result = mysql_query ($que)
or die ("error on file");
$page = mysql_fetch_array($result);
$navbits = construct_navbits(array('' => $page[name]));
eval('$navbar = "' . fetch_template('navbar') . '";');
eval("print(\"".getcontent("$id")."\");");
}
|
|
#5
|
||||
|
||||
|
Quote:
Quote:
you could edit the plugin, but im not sure what you are trying to do edit 2: check this post too might help https://vborg.vbsupport.ru/showthread.php?t=92066 |
|
#6
|
||||
|
||||
|
Nice idea
![]() However I'm going to alter this and use an Extension version, by placing the code in a pages.php file ![]() But still, nice idea ![]() Satan |
|
#7
|
||||
|
||||
|
go for it, modify, reuse, rerelease, whatever
edit: would be nice if you released a "blank page" extension, some people seem to need it. i dont know what id need to include etc to make that or else id make one. |
|
#8
|
||||
|
||||
|
How do you mean blank page?
![]() And also - I've been toying with the idea of including a template-caching for the page generated... The code I've been trying to use isn't working - I think it's a case of staring too long at vBulletin source code all day and I'm missing something ![]() PHP Code:
![]() Satan |
|
#9
|
||||
|
||||
|
dunno about cache, I think they are cached when you include global.php, so youd have to merge into the cache array before the script imports it... dont think there are hooks before a global.php include
|
|
#10
|
||||
|
||||
|
Of course - It has to be done via cache_templates
![]() Satan |
![]() |
|
|