vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   WebTemplates 2.x: VB Integrated Content Management System (https://vborg.vbsupport.ru/showthread.php?t=54875)

Highlander 07-15-2003 04:24 AM

Hi there..that means i can parse a complete PHP/HTML site with this Webtemplates?
So an example here:
http://spielplanet2.de/download.php?db=2 <--this is self coded and merged HTML/PHP it is possible to parse all this code (47KB) ??

greets
Highlander

www.spieleplanet.com

corsacrazy 07-15-2003 05:44 AM

Quote:

Yesterday at 08:52 PM Intex said this in Post #79
corsacrazy - I guess that depends on what you mean. I believe Logician's design surrounds vB and allows you to control everything 'within' vB so you can admin it anywhere.

You can certainly include HTML, PHP, TXT etc. within the templates, so if you have something external to the forum, you would create a template and place that code within the custom template you've made. You then get all the headers and page hits and other superb admin capabilities.

Superb hack - install it NOW !!! :D.

well i basically wanted to run my entire site thru this hack BUT still include som vb functions ie the forum headers and footers members online and a welcome panel and maybe a few l8test threads. but it needs to be in the root directory cos i cant/dont want have a site all in the forums directory !

Quote:

Today at 03:22 AM K33nny said this in Post #80
Do you mean something like this?

http://www.ewplanet.org/view.php?pg=adverts

similar :D

Logician 07-15-2003 07:17 AM

Quote:

Today at 09:44 AM corsacrazy said this in Post #82
well i basically wanted to run my entire site thru this hack BUT still include som vb functions ie the forum headers and footers members online and a welcome panel and maybe a few l8test threads. but it needs to be in the root directory cos i cant/dont want have a site all in the forums directory !

As I mentioned in the FAQ:

This is possible but I dont support it, sorry. Because although it is no big deal to add a change directory command at the begining of view.php and change its locations, if you do that there might be a lots of sections in the hack code to change to fix smaller bugs that modification will produce.

For instance admin cp "view webtemplate" link will not work. Webtemplate Admin Panel links will be broken etc. There can be other bugs introduced after the change which I can not think at the moment either.

So if you dont mind such small bugs, only care that you put view.php to another directory and it displays webtemplates and take the risk of having some bugs, that is ok, you are welcome to do it with your own risk as K33nny did.

But if I support this modification, I will be then invited to fix the bugs that is introduced by this hack which may require working on the entire code from the start so this is why I neither support, nor encourage this change. ;)

K33nny is welcomed to share how he did it and you or any others are welcomed to apply his hack to change this behavior.

I'm sure you'll understand my point.

corsacrazy 07-15-2003 07:21 AM

Thanks alot for the explanation i will give it a go

soccerclue 07-15-2003 07:13 PM

hi logician,

when i try to edit the page using TEXT format....I have problem to make more than one space character..when I try to make for example several space characters..it will just show one space character. Can you let me know how to manipulate using the keyboard space character for the space character instead of making nbsp;?

Logician 07-15-2003 07:36 PM

Quote:

Today at 11:13 PM soccerclue said this in Post #85
hi logician,

when i try to edit the page using TEXT format....I have problem to make more than one space character..when I try to make for example several space characters..it will just show one space character. Can you let me know how to manipulate using the keyboard space character for the space character instead of making nbsp;?

In text parsing webtemplate is parsed exactly in the same way a vbulletin post is parsed. And this restriction is inherited from vb post parsing. Test it and you'll see you can not add more than one consecutive space into vbulletin posts too.

soccerclue 07-15-2003 07:37 PM

Yeah..that's the problem..do you have any idea how I can manipulate that? How come the board cannot allow multiple spaces?

soccerclue 07-15-2003 09:05 PM

Hi,

Just now find the general discussion of this hack..and saying that newer version supports the form processing? Is this the new version already? Does it mean we can use the form to send the data from user's input into our SQL with this hack?

Logician 07-15-2003 09:47 PM

Quote:

Today at 01:05 AM soccerclue said this in Post #88
Hi,

Just now find the general discussion of this hack..and saying that newer version supports the form processing? Is this the new version already? Does it mean we can use the form to send the data from user's input into our SQL with this hack?

yes new version means ver 2.x

This supports form processing by accepting outside variables. You can then use this variables in your webtemplates or webqueries so yes technically you can use user input for SQL. Check webquery help file please, there are a lot of info there.

soccerclue 07-15-2003 10:01 PM

Does that mean we can trace the variable's value from SQL table and also insert value to SQL table?

proxyMX 07-16-2003 02:58 AM

Just what i wanted!
Using this as my homepage!

soccerclue 07-16-2003 07:27 PM

Hi Logician,

I have problem with the editors of webtemplate page. I try to set the editors based on the userid and it cannot work. I just need to include the userid in the input box with paranthesis right? I don't know why it just displayed blank page. Do we need to modify the php file? But, I just want to set editor based on the userid, not usergroup one? Hope to hear from you again.

Logician 07-16-2003 10:03 PM

check if you created templates correctly, with all template sets and with correct names (including caps)

soccerclue 07-16-2003 11:42 PM

hi logician,

why when i open webtemplate.php i got this error above the login box:

Warning: Cannot modify header information - headers already sent by (output started at /home/asiangui/public_html/forum/wt_options.php:87) in /home/asiangui/public_html/forum/admin/functions.php on line 1652

soccerclue 07-16-2003 11:53 PM

Maybe the problem is I am trying to set the admin as the editor again? I put the admin userid in the editor input box. How can I check myself then if the editor works or not if I were the admin then without asking the mods? However, I asked one of the mods to open the editor page and it cannot work also. I have checked the template name and it should be correct because I use $WT_Editor_link to open the editor and it just shows blank page.

soccerclue 07-17-2003 12:40 AM

It seems that I still got the error after removing admin userid from the editors...do you know what's wrong?

Logician 07-17-2003 07:04 AM

You made some errors while editing the file wt_options.php. I have an article about this error in hacking hints forum, read it and you'll understand how to fix it.

soccerclue 07-17-2003 01:57 PM

All right I will read it now..Thanks...I will let you know if still got error.. :)

soccerclue 07-17-2003 02:12 PM

Wow..really a great tips..it really works now..I got put several newline chars in the end of the file...

soccerclue 07-17-2003 02:50 PM

Hi Logician,

I dont know why still got blank page when my mods try to click on the Edit this page link. He can see the link and when click just got blank page. Do we need to modify any files?

soccerclue 07-17-2003 03:30 PM

Just found out the error..somehow the new templates all deleted..silly me..it works great now..thanks a lot for the hack..really love this hack..

chad 07-18-2003 03:30 AM

bravo Logicon this has gotta be one of the best hacks ever made this KicKS ASS!
/me hits install

Ninth Dimension 07-18-2003 12:01 PM

wow, i'm impressed, fantastic hack, thank you for sharing

/me clicks install

Intex 07-20-2003 05:57 PM

Logician - I have a page where I need to use the following code to refresh an image on a page automatically:

Code:

<head>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

<script language="JavaScript"><!--
function refre++++() {
if (!document.images) return;
document.images['myCam'].src = 'http://mysite/mypic.jpg?' + Math.random();
setTimeout('refre++++()',20000); // refresh every 20 secs
}
//--></script>

</head>

<body onLoad=" setTimeout('refre++++()',20000)">
<center>
<img border=2 src="http://mysite/mypic.jpg"
height="240" width="320" alt="Loading..." align="center">

Basically this refreshes the image on the page without refreshing the whole page. As you can see part of it is between the <head> tags. I've tried creating a page, but it doesn't refresh. The code by itself on a normal html page outside the forum works fine.

Any ideas how I might be able to achive this?

Intex 07-20-2003 05:58 PM

Logician - I have a page where I need to use the following code to refresh an image on a page automatically:

Code:

<head>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

<script language="JavaScript"><!--
function refre++++() {
if (!document.images) return;
document.images['myCam'].src = 'http://mysite/mypic.jpg?' + Math.random();
setTimeout('refre++++()',20000); // refresh every 20 secs
}
//--></script>

</head>

<body onLoad=" setTimeout('refre++++()',20000)">
<center>
<img border=2 src="http://mysite/mypic.jpg"
height="240" width="320" alt="Loading..." align="center">

Basically this refreshes the image on the page without refreshing the whole page. As you can see part of it is between the <head> tags. I've tried creating a page, but it doesn't refresh. The code by itself on a normal html page outside the forum works fine.

Any ideas how I might be able to achive this?

Intex 07-20-2003 05:58 PM

Logician - I have a page where I need to use the following code to refresh an image on a page automatically:

Code:

<head>
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

<script language="JavaScript"><!--
function refre++++() {
if (!document.images) return;
document.images['myCam'].src = 'http://mysite/mypic.jpg?' + Math.random();
setTimeout('refre++++()',20000); // refresh every 20 secs
}
//--></script>

</head>

<body onLoad=" setTimeout('refre++++()',20000)">
<center>
<img border=2 src="http://mysite/mypic.jpg"
height="240" width="320" alt="Loading..." align="center">

Basically this refreshes the image on the page without refreshing the whole page. As you can see part of it is between the <head> tags. I've tried creating a page, but it doesn't refresh. The code by itself on a normal html page outside the forum works fine.

Any ideas how I might be able to achive this?

Psidefect 07-20-2003 08:27 PM

Amazing hack!

Exactly what I needed. Thanks. :)

roxics 07-21-2003 04:10 AM

This is awesome. Something I've been looking for for a long time. I've got it up on my site where my VB is at and plan to switch all the regular HTML pages to webtemplates.

Just out of curiousity do you know of a system similar to this that doesn't use a vbulletin database? I have a couple other personal sites where I'd love to add, edit and delete pages via templates from an adminCP (not to mention and awesome theme system like you have. Very simple to use and works well). But have no need for a forum on those sites or the price that goes with it.

I know moveabletpe is similar but it's cgi and I have no need for a weblog. Just a simple way to manage webpages online and change a general theme on them all quickly.

Logician 07-21-2003 10:02 AM

Quote:

Today at 08:10 AM roxics said this in Post #108
Just out of curiousity do you know of a system similar to this that doesn't use a vbulletin database?
Frankly I don't know portal systems very well, nor like them much. I prefer to write my own system when a need arises so I'm not familiar with them (neither vb integrated, nor self-independent). So I cant help you with your question but I'm sure there must be some kind of PHP based portal systems around which would let you create pages within an admin cp and does not depend to vb.

matham 07-21-2003 03:52 PM

Hey

I really love this hack and I already have so many great ideas how I could use it to increase interaction between my main page and forums but I have one big cookie-related problem.

Everything is fine when i call the board cookie through the view.php?pg=template file but as soon as I put the view.php?pg=template into an include file or include view.php itself into my mainpage i´m logged out on the main page. And there seems to be nothing I can do about it.

I already tried this:
- i changed my settings to "accept cookies", logged out, erased all cookies in IE and then returned and logged in
- i already changed the cookie host domain to: .mydomain.de like suggested in the admin CP

It seems as if as soon the template file is put into another file and included there the cookies seem to get lost.

Any idea how I could solve this? I read something about removing sessionhash completely but I wonder if that wouldn´t make the Who´s online useless.

I hope that you have an idea how to work around this problem. Maybe I can put a line in my include file header or into the header of the page I want to include into that reads out the cookies from the board.

Logician 07-21-2003 04:47 PM

These are the problems I was mentioning when I say I don't suggest to use the hack as a main page or outside its default location. :)

Sorry I don't have any idea how you can manage your goal.

matham 07-21-2003 05:32 PM

Hey thx for the reply.

Hmm I´m wondering if a special global.php file that you would put in your web site root wouldn´t do the job.

Could I anybody try to code something like this? When I see php code I know more or less what it does and mean but i´m definately not able to do this on my own.

I think if it worked it´d be worth the effort.

JohnXWA 07-24-2003 04:02 PM

Crap :(

I installed VB 2.3.0 and this broke WebTemplates which I knew was gonna happen. So as I was on the old version, I went to install this one.

I can't run the SQL queries in the file, I keep getter errors. phpMyAdmin just reports SQL Error. However a small script called MySql Table Manager reports:

You have an error in your SQL syntax near '; INSERT INTO `wt2_themes` (`themeid`, `themename`, `themesortorder`, `themeban' at line 1 Number of Rows affected: -1

Any ideas?

Logician 07-24-2003 05:52 PM

Quote:

Today at 08:02 PM JohnXWA said this in Post #113
Crap :(

I installed VB 2.3.0 and this broke WebTemplates which I knew was gonna happen. So as I was on the old version, I went to install this one.

I can't run the SQL queries in the file, I keep getter errors. phpMyAdmin just reports SQL Error. However a small script called MySql Table Manager reports:

You have an error in your SQL syntax near '; INSERT INTO `wt2_themes` (`themeid`, `themename`, `themesortorder`, `themeban' at line 1 Number of Rows affected: -1

Any ideas?

I can not say whether or not you can run the queries with other tools but I know that phpmyadmin runs them successfuly. As a matter of fact that query list is compiled with phpmyadmin in the first place so it will run them successfully too.

So my suggestion will be:
1- If your phpmyadmin is an old version, upgrade to the last version first.
2- Make sure you have permissions to run INSERT/UPDATE queries in MYSQL via phpmyadmin (check with your host) and confirm with by running a test INSERT/UPDATE query.
3- Then run the queries in phpmyadmin.

There are 2 ways of running it both of which are mentioned in the instructions. Although I confirmed that both works, try the other one if one fails for you.

If this still fails, I would suspect your PHP.ini or MYSQL configuration is not allowing you to send large number of texts to the server and if this is the case, you might try to run the queries in the query list in smaller groups. Or send the list to your host and they can run for you.

JohnXWA 07-24-2003 08:14 PM

The create table queries worked fine, but it was the Insert queries that were messing up the works. So I added each Inset a line at a time and it worked fine in the end.

I know it's not really for use as a sites only content system, but i'm using it that way and it's working perfectly. Great work and I look foward to the VB3 version :) Maybe with VB style WYSIWYG editor (Just a thought)

***EDIT***

Is it possible to place Who's Online on a webtemplates page?

JohnXWA 07-27-2003 07:07 PM

Anyone?

glo 07-28-2003 12:52 PM

Hi Logician,

Just installed the hack,
Your instructions were sharp! :cheeky:

Now i just have to make sure i can utlise it properly!

Thanks.......clicks install!!!

mossyuk 07-29-2003 11:46 AM

j e b u s h c h r y s l e r.

Now thats a hack! *installed*.

Logician 07-30-2003 02:33 PM

New Version 2.03

Added Feature: You can now pull any regular vbulletin template into your webtemplates (See screenshot below)

Logician 07-30-2003 02:34 PM

Screenshot of added feature in 2.03


All times are GMT. The time now is 01:30 PM.

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.01456 seconds
  • Memory Usage 1,844KB
  • 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_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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