vb.org Archive

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

Logician 01-06-2006 07:12 AM

Quote:

Default Basic Theme? whos got one of those then?
Exactly as roscoe36 said.

You forgot to install default webtemplates and webqueries in installation step 3

b6gm6n 01-06-2006 12:55 PM

DOH!, i miss read, sorry guys, all working!

-b6

adwolf1 01-10-2006 10:16 PM

hi, great plugin!

quick question about simple form handling ..

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.

The submitted form variables aren't making it to the target page (ie, echo $_POST['myvariable']; shows nothing. Is there anything special I have to do to get the variables to show up?

Thanks for the help!

Gayble 01-12-2006 08:48 AM

EXACTLY what I was after! :) I love you! :)

Thanks for making this hack.

WAR 01-12-2006 07:26 PM

Quote:

Originally Posted by Gayble
EXACTLY what I was after! :) I love you! :)

Thanks for making this hack.

First off, thank you for an awesome hack.

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...

WAR 01-13-2006 11:22 AM

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?

I found the function in the includes file that processes usergroup permissions, is there anywhere else that I would need to change to switch the default into an opt-in system rather than an opt-out? (will be testing later today to try and answer this on my own)

Logician 01-15-2006 07:53 AM

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_webtemplateCHANGE `banusergroups` `banusergroupsMEDIUMTEXT NOT NULL ,
CHANGE `logvisitors` `logvisitorsMEDIUMTEXT NOT NULL ,
CHANGE `editors` `editorsMEDIUMTEXT NOT NULL 


Kurisu 01-15-2006 12:19 PM

Awesome hack!

But I get an error directly after installing... (see screenshot)

Logician 01-15-2006 02:59 PM

Quote:

Originally Posted by Kurisu
Awesome hack!

But I get an error directly after installing... (see screenshot)

Apparently the installation didn't go well for a reason. Uninstall the hack, login to phpmyadmin and manually delete webtemplate tables:

DROP TABLE `wt35_query`, `wt35_theme`, `wt35_visitlog`, `wt35_webtemplate`;

Then reinstall it again (carefully!). If you still have the problem after second install and don't mind me giving admin cp, ftp and phpmyadmin access, I can check for you. Otherwise, I am not sure what goes wrong for you.

Kurisu 01-15-2006 03:35 PM

Quote:

Originally Posted by Logician
Apparently the installation didn't go well for a reason. Uninstall the hack, login to phpmyadmin and manually delete webtemplate tables:

DROP TABLE `wt35_query`, `wt35_theme`, `wt35_visitlog`, `wt35_webtemplate`;

Then reinstall it again (carefully!). If you still have the problem after second install and don't mind me giving admin cp, ftp and phpmyadmin access, I can check for you. Otherwise, I am not sure what goes wrong for you.

Didn't work either... Same error.

Could it have something to do with my PHP version (5.0.5)? I read that PHP 5 handles arrays different...


All times are GMT. The time now is 01:06 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.01763 seconds
  • Memory Usage 1,764KB
  • 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
  • (7)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