vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Portal Software - WebTemplates 3.7.x: VB Integrated CMS (Content Management System) (https://vborg.vbsupport.ru/showthread.php?t=186644)

Gamelobby 04-19-2009 10:52 PM

I Figured out where my backgrounds are going.. they are going to the Background of the entire site, not within the window.

Any thoughts on that.?

I want to make some simple HTML pages with some images, & a link or two.
Is this possible or only static pages.?

Logician 04-20-2009 06:03 AM

Quote:

Originally Posted by gsmph (Post 1787070)
this is really a nice mod.

i tried to merge it with autoindex but i got problems..

here is the code i use:

PHP Code:

 
 
 
 
 
 
echo "$stylevar[htmldoctype]";
echo 
"<html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\">";
echo 
"<head>";
echo 
"<title>$vboptions[bbtitle] $WT_PageName</title>";
echo 
"$headinclude";
echo 
"</head>";
echo 
"<body>";
echo 
"$header";
echo 
"$navbar";
echo 
"$nowbrowsing";
echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
echo 
" <tr>";
echo 
"<td valign=\"top\"> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\">";
echo 
"<thead>"
echo 
"    <tr>";
echo 
"        <td class=\"tcat\" align=\"left\">&raquo; $WT_PageName</td>";
echo 
"</tr>";
echo 
" <tr> ";
echo 
"  <td class=\"alt2\" align=\"left\">";
echo 
"<div class=\"normalfont\"> ";
// ============================
// Put Your PHP CODE right after this line
 
require_once("autoindex.php");
require_once(
"AutoIndex.conf.php");
 
 
 
 
 
// ============================
echo "</div> ";
echo 
"</td>";
echo 
"</tr>";
echo 
"<tr> ";
echo 
"<td class=\"thead\" align=\"left\">Page ";
echo 
"      Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname] ";
echo 
"      at $WT[lastvisitdate]$WT_Editor_link<br>";
echo 
"      Page Created at <b>$creationdate</b>, Last Modified ";
echo 
"      : <b>$lasteditdate</b>.</td>";
echo 
" </tr>";
echo 
"</thead>";
echo 
"</table>";
echo 
"</td>";
echo 
"</tr>";
echo 
"</table>";
echo 
"$footer";
echo 
"</body>";
echo 
"</html>"


it works perfect but..

https://vborg.vbsupport.ru/attachmen...1&d=1239251457

every time i click the each folder my URL change from view.php?pg=phptest2 to view.php?=dir=x then it redirects to invalid page...

any solution?

Reason why am merging this hack with autoindex to VB is that autoindex has the ability to control speed download and anti-leeching sequence..


thou this is really a great hack i nomionate this hack MOTM
great job Logician

br
gsmph

The url in your folders are created by autoindex hack. So it seems that you need to modify that hack to use WT urls in its folders to achieve your goal

Logician 04-20-2009 06:06 AM

Quote:

Originally Posted by Gamelobby (Post 1794773)
I Figured out where my backgrounds are going.. they are going to the Background of the entire site, not within the window.

Any thoughts on that.?

I want to make some simple HTML pages with some images, & a link or two.
Is this possible or only static pages.?

If you use a default webtemplate theme or webtemplate header/footer, it will use your vbulletin style's colors including your background color. (Actually this is the whole point of the hack hehe).

However if you want to change it, you can:
a) use a stand alone webtemplate (which does not use any themes or header or footer) and use any background color you like there.
b) Create a new webtemplate theme (or header) with a different bg color and use this one for your specific webtemplate

Likewise you can create any HTML pages you like. Just create it in your favorite HTML software (frontpage, dreamweaver etc.), then paste its source code inside a webtemplate.

DaveS 04-22-2009 06:50 AM

Is there a specific forum to get help with the creating of php templates in this mod?
Or do I just clog up this thread? :rolleyes:
I have a tricky one that I'm trying to create, but I'm not sure how to go about it.

Gamelobby 04-23-2009 07:25 AM

Quote:

Originally Posted by Logician (Post 1794969)
If you use a default webtemplate theme or webtemplate header/footer, it will use your vbulletin style's colors including your background color. (Actually this is the whole point of the hack hehe).

However if you want to change it, you can:
a) use a stand alone webtemplate (which does not use any themes or header or footer) and use any background color you like there.
b) Create a new webtemplate theme (or header) with a different bg color and use this one for your specific webtemplate

Likewise you can create any HTML pages you like. Just create it in your favorite HTML software (frontpage, dreamweaver etc.), then paste its source code inside a webtemplate.

Yea we have been putting HTML into the template, but in our code we have a different background color or image, & it shows up on the page not in the body.!?
That seems backwards to me, if it is in the HTML code we add to the template it should change the body of the page not the background..
My forum style had a left side menu, so we are trying to create something that keeps with that.


Quote:

Originally Posted by DaveS (Post 1796540)
Is there a specific forum to get help with the creating of php templates in this mod?
Or do I just clog up this thread? :rolleyes:
I have a tricky one that I'm trying to create, but I'm not sure how to go about it.

YES, this would be very helpful, i cant seem to get much to work on here except BASIC html code. Text with different colors, & fonts, but that about it.

DaveS 04-23-2009 12:22 PM

Hi I'm trying to run a few tests to understand how I might attempt something more complex.

I have a php include file but whenever I include it the file is getting outputted without actually being interpreted.

The include file is outside of the main forum

So e.g. a have a php template. In the PHP Include section I have: include("/file/path/www/links/lwt_links.php");

In that file I have the following PHP code.

PHP Code:

function lwt_test() {
echo 
"test";
}
echo 
"test2"

If I run the template it just outputs the code directly in the browser it doesn't get interpreted.

Any help appreciated. And it's a fantastic mod I've been using it for a long time.

Logician 04-23-2009 05:51 PM

Quote:

Originally Posted by DaveS (Post 1797362)
Hi I'm trying to run a few tests to understand how I might attempt something more complex.

I have a php include file but whenever I include it the file is getting outputted without actually being interpreted.

The include file is outside of the main forum

So e.g. a have a php template. In the PHP Include section I have: include("/file/path/www/links/lwt_links.php");

In that file I have the following PHP code.

PHP Code:

function lwt_test() {
echo 
"test";
}
echo 
"test2"

If I run the template it just outputs the code directly in the browser it doesn't get interpreted.

Any help appreciated. And it's a fantastic mod I've been using it for a long time.

You shouldn't use any echo commands in phpinclude section because this section is "processed" before outputting wt content so if you have an echo command there, it will also pasted before the wt content. Compile its content in a variable like:

PHP Code:

$myvariable =  "test2"

and then use $myvariable in your wt content to paste it in the correct time.

DaveS 04-24-2009 06:44 PM

Thank you. I now have a basic PHP script working really well using your pages to output in the web template.

gsmph 04-27-2009 12:50 AM

Quote:

Originally Posted by Logician (Post 1794966)
The url in your folders are created by autoindex hack. So it seems that you need to modify that hack to use WT urls in its folders to achieve your goal

here is my autoindex kindly check this but still i cant get the right URL on WT :(


br
gsmph

Saviour 04-27-2009 04:10 PM

I have vMoods for 3.7 along with this mod, but the mood dropdown isn''t working in the navbar area of pages I've created using this mod.

Can someone assist?

Much appreciated...


All times are GMT. The time now is 03:42 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.01798 seconds
  • Memory Usage 1,774KB
  • 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
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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