Quote:
Setting it in php rendering mode, i tried to create a template with a simple web form. I wanted to pass the form to another php page for further processing.
|
This post should help:
https://vborg.vbsupport.ru/showpost....3&postcount=93
You should clean your POST variable in phpinclude field of webtemplate:
PHP Code:
$vbulletin->input->clean_gpc('p', 'formSetNo', TYPE_INT);
$formSetNo = $vbulletin->GPC['formSetNo'];
Quote:
Next up: I would really like to change the default behavior of my webtemplates to be hidden from all usergroups, so that I will have to manually check the boxes for groups that are allowed to view the page rather than selecting which groups are not allowed.
Would this be a difficult thing to accomplish? I have almost 300 secondary usergroups and most of my pages should only be visible to 5-10 roups... That is a whole lot of boxes to check for each page...
|
Edit wt_wt.php, find:
PHP Code:
print_membergroup_row("Disallowed Usergroups <br><font size='1'>Mark usergroups who can <b>NOT</b> display this page</font>", 'webtemplate[banusergroupids]', 2, "");
replace it as:
PHP Code:
$usergroups = $vbulletin->db->query_read("SELECT usergroupid,title FROM " . TABLE_PREFIX . "usergroup ORDER BY title");
while ($usergroup = $vbulletin->db->fetch_array($usergroups))
{
$usergrps_with_space .= $usergroup[usergroupid]." ";
}
$webtemplatebanusergroups[membergroupids] = convert_WTfield_to_usergroup_array($usergrps_with_space);
print_membergroup_row("Disallowed Usergroups <br><font size='1'>Mark usergroups who can <b>NOT</b> display this page</font>", 'webtemplate[banusergroupids]', 2, $webtemplatebanusergroups);
Quote:
After playing around with this last night, I dicovered that I am unable to restrcit more than 50 or so groups from viewing any given page. I am guessing that maybe not enough space for an array was allocated somewhere or something?
Any ideas where i could expand this to allow for more usergroups to be processed?
|
Run this query and see if it will help:
PHP Code:
ALTER TABLE `wt35_webtemplate` CHANGE `banusergroups` `banusergroups` MEDIUMTEXT NOT NULL ,
CHANGE `logvisitors` `logvisitors` MEDIUMTEXT NOT NULL ,
CHANGE `editors` `editors` MEDIUMTEXT NOT NULL