![]() |
You're absolutely right !!
Thx for the help,... |
Anyone have my same issue? After installing webtemplate the users who using FireFox dont showing check bot for Terms aggrement in registration page (register.php)
|
I have solved my issue, the problem is the language file not compatible, Thanks and sorry for my disturb
|
Quote:
Might prove useful for anyone else that has the same problem. |
edit
|
Awesome! - I will try this out on my forum ASAP.
|
Fricken over the top Logician! Installed! Now I have to figure out how to use it.
|
Anyone got a vBAdvanced CMPS module for webtemplates yet?
|
I'm looking around for that too.
|
This is a great hack, works like a charm
badham |
Well, as Shirley Temple would say*:
OH MY GOODNESS! I followed the install instructions, then the upgrade. Got a little out of phase because of uploading the files in the wrong spot. Then with fear and trepidation I imported my old templates which make heavy use of external variables. BOINK! It just works. Oh wait, looks like I have some work to do on my external variables. Oh well! Hooray for Logician and happy new year! *Sorry, I'm an old guy. Watch one of her movies! |
Alrighty, here's my problem.
In the old templates I had this in the Outside Variables box of the target template: formSetNo Another template POSTS that variable and an integer value to the target via selection from a popup menu. Following this sample code: $vbulletin->input->clean_array_gpc('r', array( 'my_variable_1' => TYPE_STR, 'my_variable_2' => TYPE_INT, )); I have the following in the 3.5 target template: $vbulletin->input->clean_array_gpc('r', array( 'formSetNo' => TYPE_INT )); I've also tried it with TYPE_STR. Anyway, the target template isn't getting the variable. Any suggestions? This is for a major feature of our site! |
And here's the fix:
vBulletin wisely forces you to clean inputs. This is explained here: http://www.vbulletin.com/docs/html/codestandards_gpc :glasses: For your Webtemplate PHP include, you can collect and clean variables (using an array) or a single variable (using key/value hash pair). I used the latter. So, my one webtemplate POSTs a variable from a form field called 'formSetNo'. In the target webtemplate, my php include is: PHP Code:
To use the value in that variable in my php script in my target webtemplate, I use something like this: PHP Code:
Nice to see that vB has a way to do this and it works with WT :banana: |
sheer genius.
thanks logician. now i just gotta learn how to write queries. :D |
I wondered if adding my default style header, navbar & footer wouldnt be more easier... i've read the docs and assumed i could either add my default vb header using : $header either in a 'theme' where it's called into my pages (with styling) or as pages parsed as php, but i does not... whats the trick? i've tried : Included VB Templates...nope, tried a simple theme, no go, also added as php...so frustrating, please help
-b6 |
Quote:
|
How do i make this text smaller?
WebTemplate Quick Info Panel for Admins - [CMS by Logician] |
Quote:
Please check the default themes that comes with the installation. For instance check "Default Basic Theme" theme. It already has "$header" variable in it, and it is displaying your default style header, isn't it? So if you create a theme of your own and put $header in it in the same way "Default Basic Theme" has, it will display your header. It should include all relevant variables like this: PHP Code:
PHP Code:
Quote:
|
Default Basic Theme? whos got one of those then?
right... my default install came with nothing, i created a simple bbcode page as the instructions told me and it worked, no styling of anykind just text on a white background, great, ...i see i have "No Header/Footer WebTemplates Exist at the moment.." and "No Themes Exist at the moment.."... i did create a theme but still nothing, so...whats the code for this "Default Basic Theme"? and what to call it when im setting it up etc etc, i did hope to see my header, nav and footer with my text also...im i being pushy? :) -b6 |
Quote:
Quote:
|
Quote:
You forgot to install default webtemplates and webqueries in installation step 3 |
DOH!, i miss read, sorry guys, all working!
-b6 |
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! |
EXACTLY what I was after! :) I love you! :)
Thanks for making this hack. |
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... |
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) |
Quote:
https://vborg.vbsupport.ru/showpost....3&postcount=93 You should clean your POST variable in phpinclude field of webtemplate: PHP Code:
Quote:
PHP Code:
PHP Code:
Quote:
PHP Code:
|
Awesome hack!
But I get an error directly after installing... (see screenshot) |
Quote:
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. |
Quote:
Could it have something to do with my PHP version (5.0.5)? I read that PHP 5 handles arrays different... |
Quote:
|
Seriously I was desperate after discovering that 3.5 doesn;t seem to have a portal system available (yet)
But even so, I like the concept of webtemplates MUCH better. THANKS |
Excellent mod and support Logician, Thanks
I missed this somehow when released. I just saw it listed in the H/O/M poll .. Hmm, I think I'm gonna run back over there and vote :D |
Hey guys can anyone post a link to pages they have made with this hack so i can see the power of it :D
Thanks |
Quote:
Here you go here |
Nice anyone else got any other examples then can show me :D
|
Quote:
Thanks for the quick reply and the fix. It worked as far as it was designed, but unfortunately my original request was flawed. I have 12 "Primary" usergroups. All members belong to at least one of these groups. I also have a couple hundred "Secondary" usergroups, most members belong to several of these each. Using the "Opt-out" paradigm you have here, it is impossible for me to allow access to secondary usergroups without also granting access to entire primary usergroups Example: If a user is a member of primary group 1 and secondary group A, If I try and block access to Primary Group 1 and allow access to Secondary Group A then the user will still not be allowed access because the way you have it written all users that are in primary group 1 are denied access. So I re-wrote your permissions function in your include file to switch the whole system to an "Opt-in" paradigm so that it better matches how vbulletin usually treats permissions. Can you take a look at this and let me know if it looks ok? I have tested it out and it seems to work fine. The only thing I needed to disable was the "Restrict individual users" function that you had, other wise granting access to a user with userid = 20 also grants access to the usergroup with usergroupid = 20. PHP Code:
|
Quote:
The section you commented out checks for paranthesis too so I wouldn't think it is allowing usergroupid 20 when you allowed userid 20. Quote:
I'm sure you'll agree that most of the admin's permission system would depend on "primary usergroups", not "secondary usergroups" so IMO how it is designed is make sense. :) |
I never meant to imply that it worked any way other than what you intended. It is an exceptionally well-written hack. For my own purposes though, I need it to work a different way, I just wanted to have you look over what I did above for a sanity check.
Thanks for clarifying the issue with the ()'s and the individually specified users, it makes much more sense that what I had assumed was going on. Quote:
Again, this is an incredible hack, many thanks for sharing! |
I hate to be a bother, but I'm in need of some help. I searched through the support document, and I've skimmed most of this thread. I'm sorry if this has been asked before.
BUT - I was wondering how could I use the two column theme, but have the content of the one column user-editable while keeping it "moron proof." Actually, if there was a way for them to enter the number (its for scrim record) in a text box, that would be grande (and then another text box to enter the teams they scrimmed). Also, is it possible to add another user editable field (editor I mean) that would show up another main table (for lack of a better word). If you need clarification, I'll post it. Thank you so much! |
All times are GMT. The time now is 01:51 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:
|