![]() |
I've just downloaded the latest product, overwrote files and imported the XML.
My previous LWT version was 3.5.02. It is now reporting as 3.5.05 in AdminCP, I thought it would be 3.6.02? Everything is still working, but not sure about the versioning... |
Quote:
|
I want to replicate the " paid subscriptions" part of the usercp on a webtemplate; the template that vb uses is " subscriptions" in the "paid subscriptions templates" section, but when i copy this into the webtemplate, It doesnt work. for instance there is this code below, how do I get the " activesubscriptions" data from the database into the webtemplate??:
<if condition="$show['activesubscriptions']"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="3">$vbphrase[active_subscriptions]</td> </tr> <tr> <td class="thead">$vbphrase[subscription_title]</td> <td class="thead">$vbphrase[start_date]</td> <td class="thead">$vbphrase[expiry_date]</td> </tr> $subscribedbits </table> <br /> </if> any advice warmly received |
I've noticed an erro in my AdminCP for web templates:
Code:
Warning: unserialize() expects parameter 1 to be string, array given in /admincp/wt_wt.php on line 49 Thanks |
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=667 |
Quote:
I guess you can do what you wanted by using "webquery phpinclude before" section: If you add a firstpostid query there and save it in a variable then you can use it in other section later. Eg. $querymypostid = $db->query_first(" SELECT firstpostid FROM " . TABLE_PREFIX . "thread AS thread WHERE threadid = 0000 "); $mypostid = $querymypostid[firstpostid]; Now you can use $mypostid variable in the Query No Result Row. ;) |
Quote:
Quote:
Thanks for the education. ** edit ** Updated my example WebQuery based on Logican's suggested enhancement. Works a treat, thank you! [link] :up: |
Hopefully, I can get an answer, since this mod is not supported...I guess I'll just take a chance and someone will know the answer.
I'm trying to insert a floating menu script into one of the templates, however, in order for it to work...I'll need to remove the following from the template itself: The floating menu should now be working. If not, remove this tag from the top of your HTML pages: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> That's all I need to know... Is there a way to remove this from the template and still have it function properly? Or can it be re-written in order to support the script I'd like to include within the template? Any help is much appreciated... I've said it once...and I'll say it again...Kudos to Logician for this mod! |
Quote:
$stylevar[htmldoctype] If you are using a theme webtemplate, you should remove it from parent theme. Eg. "Default Basic Theme" |
Logician...
I'm sorry, I'm a little confused...in which webtemplate will I remove that line of code? None of the templates I've created have that code in them...unless it's in the view.php file. Am I missing something here? If I assume correctly, are you talking about this template: WebTemplates_Editors_EditPage If that's the case...I removed that line of code, but if I view the source after creating the template...I still see the code I was referring to in my first post about this issue. Thanks for the quick reply, by the way...much appreciated. In the interim...I'll see if I can find out where you're referring to. Updated... Never mind...I didn't understand fully...found what you were referring to in the Default Basic Theme and removed it. Kudos! You da man! |
All times are GMT. The time now is 09:32 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:
|