![]() |
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:
|
All times are GMT. The time now is 04:56 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:
|