![]() |
im getting this error when i view my test page and a similar error when i make a new page and try to view it any ideas
Fatal error: Call to undefined function: array_key_exists() in /nfs/cust/9/46/70/607649/web/GX/view.php on line 433 |
Quote:
OR replace all "array_key_exists" as "key_exists" in the scripts. |
First off, this looks like an awesome piece of work; congrats on your skills Logician.
I'd like to see if anyone here, with experience with webtemplate can tell me if it will help me implement a new feature on our site. Our Site vB3.0.7 with vBaCMPS1.0.1. I have some custom & tweaked modules running in CMPS and we have the gallery. Great system. New Feature We're putting up a database driven guide with over 3000 entries for our members. You select the group to view with one form, then get back a page of results to update with the return and finally submit that back to a third form which gives your result. I'm using ADODB with DreamweaverMX/PhaKT to create the PHP database code. The forms are working fine and doing what I want. Problem Now the time is come to integrate with vB! However, vB isn't going to let me run php code. OK, vBaCMPS module time! Well, that works for the first selection, but once I post that selection I have to drop out of vBaCMPS. No way to post back to it. OK, require global.php, then load my other php code. Works great for the first form, restricts access, etc. However, global.php prevents you from accepting post/get input. Questions
Well, if you got this far, thanks for reading. I'm amazed at how cool vB is; its a new world for me, but it really is saving me tons of time and helping get features out to our members. It just has some limits I'm not used to in free-coding (simple though mine is). Cheers, 'snore |
Fantastic!!!!!
Now I jsut need to make them work for each user as they log in. Two thumbs up! Installed Clicked! |
Quote:
On theory it sounds like "doable". However my concern is that there can occur many unexpected drawbacks when you integrated your code. Some can be even unrelated to webtemplates: Eg. your variables can clash with vbulletin variables etc. So no way to say whether it will work or not without trying it. As for your questions: 1- yes, sounds ok. If you put it into vb phpinclude template and it worked (except getting GET/POST VARIABLES successfully), it will work in phpinclude template of webtemplate. 2- You can use a webquery for this and use the phpinclude field of the webquery for the postid variable your code passes. It will return you the post info. However it will return it to the webtemplate, not your code (which is inside phpinclude of webtemplate!) so I don't know if it is ok with you. 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. (again: provided that this strategy worked in the default phpinclude field of vb! If it does not work in vb's phpinclude field, it will not work in webtemplates's phpinclude field) 4- If it does not work, I still don't suggest you to use a seperate autentication for your application. I think your path should be copying vb global.php into another file, remove GET/POST variable blocking of it in your new file and include it in your application to simulate vb authentication. This sounds more logical. You can check webtemplates source code to see how it manages to accept variables vb global.php blocks. |
Is there a version of the hack for vb 3.5 or is it planned ?
|
This like an article system?
|
The number of page views doesn't seem to be incrementing for my webtemplates.
I have the 'Count page visitors?' set to 'Yes' and the 'Logged Visitors' to 0. Any idea what's wrong? |
Quote:
Here is the fix: Edit "view.php", find: PHP Code:
PHP Code:
|
$DB_site->query("UPDATE $WT_DB_TemplateTable SET lastvisitorid='$bbuserinfo[userid]', lastvisittime='".time()."' WHERE wtid='$WT[wtid]'");
in the above line that you were to replace you made a little typo you made a mistake and put this instead $$DB_site->query("UPDATE $WT_DB_TemplateTable SET lastvisitorid='$bbuserinfo[userid]', lastvisittime='".time()."' WHERE wtid='$WT[wtid]'"); Thanks for the bug fix hope you update the view.php file before someone else downloads |
All times are GMT. The time now is 09:29 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|