vb.org Archive

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

Logician 07-25-2005 03:37 PM

Quote:

Originally Posted by slim cutty
Thanks for the bug fix hope you update the view.php file before someone else downloads

Updated, thank you!

bulbasnore 07-27-2005 01:02 AM

Quote:

Originally Posted by Logician
What you are trying to achieve is really sophisticated and I can not say if you can do it with webtemplates or not without trying it.

3-webqueries can only query vb database. But if you use your own DB connection commands in your phpinclude field of webtemplates, they are not blocked so your commands can query other dbs.

OK I finally installed your system on the test-board. Nice and easy, thanks. Love the built in help with the variables.

Here's how far I got:

Selection page (a.php) This db driven page loads its date for the selection drop down just fine. Yay!

Update Form (b.php) Alright, this page comes up blank, except for static text, but no errrors. In my php code I'm looking for this variable (adodb style): $HTTP_POST_VARS['formSetNo'] . It apparently isn't being passed, even though I put this HTTP_POST_VARS['formSetNo'] in your blank for "Outside Variables".

I'm guessing "Outside Variables" is expecting slightly different syntax OR "Outside Variables" can only pass info to some restricted part of the page.

Would you again steer me down the right path? If I can get this variable's value from the post, the problem is licked!

Again, my compliments on an easy install.

jluerken 07-27-2005 06:26 AM

Quote:

Originally Posted by Inzagi
Is there a version of the hack for vb 3.5 or is it planned ?

I would like to know this also...

Logician 07-27-2005 07:48 AM

Quote:

Originally Posted by bulbasnore
OK I finally installed your system on the test-board. Nice and easy, thanks. Love the built in help with the variables.

Here's how far I got:

Selection page (a.php) This db driven page loads its date for the selection drop down just fine. Yay!

Update Form (b.php) Alright, this page comes up blank, except for static text, but no errrors. In my php code I'm looking for this variable (adodb style): $HTTP_POST_VARS['formSetNo'] . It apparently isn't being passed, even though I put this HTTP_POST_VARS['formSetNo'] in your blank for "Outside Variables".

I'm guessing "Outside Variables" is expecting slightly different syntax OR "Outside Variables" can only pass info to some restricted part of the page.

Would you again steer me down the right path? If I can get this variable's value from the post, the problem is licked!

Again, my compliments on an easy install.

Try to set your outside variable as "formSetNo" instead of "HTTP_POST_VARS['formSetNo']"

Logician 07-27-2005 07:52 AM

Quote:

Originally Posted by Inzagi
Is there a version of the hack for vb 3.5 or is it planned ?

I don't have such a plan in the near future, however I believe webtemplates should work with vb3.5 either (not tested by me). Since it is a add-on, not a hack and it does not change any vb db tables, nor vb source coude, I don't think a 3.5 version is needed either. 3.5's pluggin support is for hacks which changes vb source code but webtemplates does not.

I can advise better after I checked 3.5 code myself (which I haven't done yet) but I'd encourage people to test a 3.5 installation as it shouldn't have any clash issues.

bulbasnore 07-29-2005 11:19 PM

Quote:

Originally Posted by Logician
Try to set your outside variable as "formSetNo" instead of "HTTP_POST_VARS['formSetNo']"

Ah, thanks for the reply.

I tried this, but the missing piece for me was -

Don't try to read from the http_post_vars array. The value is passed DIRECTLY in the variable(s) you reserve in the outside variables link.

So, where my code was:
$somevar = $HTTP_POST_VARS['formSetNo']
if had to become
$somevar = $formSetNo;
So, my path was:
  1. a.php - Select from a menu and post the selection as 'formSetNo' (normal form menu code).
  2. b.php - set 'outside variables' to formSetNo in the control panel AND read from $formSetNo in the script
  3. c.php - now here is the trick! There are about 200 variables that get created by b.php and posted to c.php (arrays of arrays). That is probably going to HAVE to be an outside form!!

harry1951 08-01-2005 11:49 AM

If I run http://mywebsite.co/forum/admincp/webtemplate.php I get this error:

Warning: main(..\wt_options.php): failed to open stream: No such file or directory in \admincp\webtemplate.php on line 29

Fatal error: main(): Failed opening required '..\wt_options.php' (include_path='.;c:\php4\pear') in D:\mywebsite\www\forum\admincp\webtemplate.php on line 29

The OS = WinNT 4.0

I removed the if else statement and changed it to a direct require_once and then it works fine.

Bro_Joey_Gowdy 08-01-2005 06:43 PM

Is this available for vb3.5.0 yet ?

bulbasnore 08-06-2005 02:51 PM

Hey there! I now have WebTemplates installed on our production forum and will be moving the pages from the test board into it this weekend. That is the last use I have for our test board before I start testing our systems with 3.5, so when I get around to testing WT with 3.5 I'll let you know the results (probably not 'til late Sept).

I did some further exploration in this vast system and tried the priv_privatemessages template. This template is to return the last 30 pms on the board! However, it returns 30 pms, in an order I don't understand (database hash?).

Anyway, as I microscopic contribution to this vast system, I provide the code to to change the privatemessages example so it does give you the last 30. Insert the code in red into the $WQ_priv_privatemessages webquery.

Code:

SELECT pm.pmid, pm.pmtextid, pm.userid, pm.folderid, pm.messageread, pt.fromusername, pt.fromuserid, pt.title, pt.message, pt.touserarray, pt.dateline, u.username AS tousername
FROM " . TABLE_PREFIX . "pm pm
LEFT JOIN " . TABLE_PREFIX . "pmtext pt ON pm.pmtextid = pt.pmtextid
LEFT JOIN " . TABLE_PREFIX . "user u ON pm.userid = u.userid
WHERE pm.folderid = '0' order by pm.pmid DESC
LIMIT 0 , 30

Anyway, this is dangerous code, like any code! After I'm done putting up our price guide in WT, I think I'll adapt this example so that members can see their last 50 PMs on a page. We have people who make lots of trades and I imagine going one by one through their PMs to find where to send the requested items can be a pain. Seeing the last 30-50 at once will let them pick off the addresses and items in one scroll.

T3MEDIA 08-14-2005 06:49 AM

Is there a way to make a very simple WOL varable? WOL as in Who's online on the whole site not just viewing the Logician's Webtemplates page. Like online.php. I used a iframe and put online.php in it but I do not want the header and footer (making a nice personals page). Any ideas if anyone is still into this?

Thanks in advance.


All times are GMT. The time now is 11:25 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.02633 seconds
  • Memory Usage 1,753KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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