![]() |
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! |
Okay, Logician...
I guess I can't have my cake and eat it, too... After I removed $stylevar[htmldoctype] from the Default Basic Theme, vbulletin's default theme seemed to expand the width of the template pages. They appear, normally, under my other skin, though. Interesting... If you visit the site and take a look at the Knowledge Base links and the Resources page (using the current Default template)... everything appears normal... but if you switch styles at the bottom of the page... you'll see what I mean. Link to site in sig... Any way I can fix this without doing a major overhaul? Again... I appreciate the assistance. Update: BTW...this does not happen when using Firefox. So far, I've only seen it happen using the Internet Explorer and Avant browsers. So...my guess is that this mod is only compliant with certain web browsers. Am I correct in assuming this? Anyone? Anyone at all? |
I am searching for a way to add a Google Adsense Box to a normal HTML Template made with this product. I enter the normal Script Code but it is not showing up.
Does anyone know how I can make this working? |
Quote:
|
Is there anywhere that templates for this mod are shared? For instance, I like the Meet Our Staff page on this site (probably not done with this mod, but you get the idea) and would love to be able to copy and paste some code for this. Or for some of the sample sites given in the OP.
|
When a template page links through to a second page determined by a condition how is the conditional page edited?
example might be on first web page "select name" which goes to webtemplate123&selected20%name for example. erm thats probably not that clear but please try and help |
Hi,
Ive installed a program called HESK - its a free ticket based helpdesk. It has two txt files - header.txt and footer.txt Would it be possible to use this mod to give HESK the header and footer from my forum? www.doverlocals.co.uk/support is what I currently have. Any help will be greatly appreciated |
I want to say thanks, this is a great mod. I had a few questions after installing.
When I select PHP parse when creating a new WebTemplate, it only displays the parsed php not the forum template. How do I fix this? Is it possible to include a php script in the WebQueries >> Query Result Row field, other than creating a plugin with the php file? |
I just installed this hack and I am trying to figure it out. There are several pre-loaded Advanced Web Queries in the Logicians Web Template section at the top of the Admin CP but nothing happens when I click on them. I see a box for "Edit" and "remove" to the right of the page but no "Run" command. How do I run a query?
I am a beginner at this so please be gentle! |
You put the name of the webquery into a Logican's Web Template (and tick the appropriate box on the Web Template). This is how a Web Query gets 'run'.
Have a look at the example Web Templates provided in conjunction with the supplied documentation. It may be confusing to start with but once you become familiar, LWT will be like an old friend. |
Sorry to bump this thread, but has anyone tested this with the latest vB 3.6.8 PL2.
Clicked install and waiting for an answer. |
Thanks Tigerware. I found the web template and clicked on "Visit" and got this message:
Not Found The requested URL /forum/view.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a DAV/2 mod_bwlimited/1.4 mod_jk/1.2.25 FrontPage/5.0.2.2635 mod_auth_passthrough/2.1 Server at www.myforumname.com Port 80 Is that how you "run" a template, you click on "visit"? |
Quote:
|
Quote:
|
Quote:
** edit to add ** Beaten to the punch by the master himself. |
Thanks Logician! That is exactly what happened. Funny, I used Smart FTP to drag the files over to the directory and that View.php and editor.php didn't copy over with the admincp and includes ones.
Everything is working fine now, thanks so much for your help!! Now I just have to think of some more stats I can run! |
We have a library for article relevant to our site content this currently consists of a huge number in excess of 180 webtemplate pages. Each template has the same menu code in it and the page layout is the same other than obviously the article content is different.
I wonder if people have any suggestions to improve this arrangement? The biggest problem is if we add a new menu item all the 180 plus templates require modification. thanks |
Quote:
|
Thanks TiggerWare that looks like a good solution and very helpful, I'll have a go and see how it works out.
|
Quote:
|
Logician...
I've searched through this thread, and have found some related issues, but I'm a little green when it comes to PHP...so please, be patient. Here's my issue...and I have to reference another coder's mod...so again, please be patient with me. I am using the Radio and TV mod developed by Dream. It references a page named radioandtv.php. When this page loads...it doesn't show the header, navbar, or footer. Okay...so I read Dream's entire thread regarding his mod and in post #97 find the code I need to add the header, navbar and footer. The header, navbar and footer display, but with an "error on page" message at the bottom of the page. Also, the links in the navbar that have pop-up menus do not work, either. I asked Dream about it...and since the code is not part of his mod...I'm sort of stuck. This is what I'd like to do...using your web template system, I would create a PHP template and use the PHP code from Dream's radioandtv.php file. So far...so good...the page displays. Yet, I still need to incorporate my header, navbar and footer. How would I go about coding Dream's radioandtv.php file, within your template mod, so the header, navbar and footer are shown and functioning properly? I know you don't support his mod, but I guess my main question is how to make sure I have the header, navbar and footer coded correctly within a PHP template while maintaining the integrity and functionality of the navbar and footer...making sure the links and pop-ups work as they should? BTW...I have also PM'd the creator of the code referred to earlier for Dream's mod, but have yet to receive a response. So, I'm hoping you can at least shed some light on my issue and point me in the right direction. Any help you provide will be greatly appreciated... |
Please see if this will shed any lights to your question:
https://vborg.vbsupport.ru/showpost....&postcount=185 |
Logician...
Thanks...it does shed some light, but not being able to code with PHP brings me two steps back. In my header template...I have some javascript...which is what's probably causing the error on page. I have no clue where to place the codes you referred to (in that link) within the PHP code of Dream's PHP file... I'm definitely at a loss here...but still would like to thank you for your help...much appreciated... |
Quote:
IE. <?php echo $stylevar[htmldoctype]; echo $headinclude; echo $header; echo $navbar; include ("http://www.mydomain.com/forum/dreams_file.php"); echo $footer; ?> |
Has anyone tested the hack with 3.7? Any compatibility issues?
|
I've had a quick test and everything seems fine.. but maybe wait to hear from someone who's had more of a play around first.
|
I'm pretty new to using vbulletin and I'm still picking up on the coding used...I was wondering if it's possible to remove the "Currently Active Users Viewing this Page: 1 (1 members and 0 guests) " box at the top of the template and how would I go about that if it is?
Thanks! Great mod! |
edit webtemplate, set "Display Page Browsers?" to no
|
Quote:
Great mod though...I'm loving it! *already clicked installed* |
Just a question ... will this mod be updated for 3.7 (or does it already work with 3.7?) ?
Cheers OS |
Quote:
|
All times are GMT. The time now is 02:28 PM. |
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:
|