View Full Version : WebTemplates 3.5.x: VB Integrated CMS (Content Management System)
Logician
09-14-2007, 06:20 AM
I did a search for "count" and "iterate" on this mod and found nothing (can't handle going through 50 pages of posts) so I will ask my question:
I want to create a page that displays the results of a query in three columns. This means I need code within the query that iterates the records and keeps count - when it reaches three it will end a table row then start a new row.
how can i add code for a multiline recordset such that I can keep a counter as the records are returned?
I wouldn't think it is possible.
toucan42
09-14-2007, 11:37 AM
Yeah that's what I am encountering though I may have a method that uses CSS instead of tables for the layout.
Thank you for this awesome hack - this is going to enable so many things for my site.
tunamix
09-16-2007, 02:43 AM
Great job with this mod.
Thank you!
da prez
09-16-2007, 08:49 PM
does anyone have some created web queries they wouldn't mind sharing ?
thanks
RollaJedi
09-17-2007, 03:05 PM
i solved my problems and just want to say thank you to Logician for this great mod!
toucan42
09-20-2007, 03:39 PM
I have a question - I am running a web query against a custom table for which many columns are NULL allowed. When I am looping the recordset in the WebQuery it seems that as soon as I encounter a NULL it stops processing that record.
Say my query is:
SELECT field1,field2,field3 FROM sometable WHERE condition = somecondition
in the WebQuery Query Result Row I am assigning the values of fields 1,2 and 3 to a string to be output to the screen:
var someString = '$WQfield[field1]' + ' some words ' + '$WQfield[field2]' + ' more words ' + '$WQfield[field3]'
If field2 is NULL - a valid data condition - field3 never shows up
Not sure if you have a tip on how to preserve NULL but also how to handle it within the WebQuery Query Result Row window?
toucan42
09-20-2007, 03:57 PM
I am trying to format the output so that ONLY IF there is a 'dept', it will print out.
I tried putting code in the query output area as well as at the main page template.
$WQfield[name]<br/>
<if condition="$WQfield['dept']">
$WQfield[dept]<br/>
</if>
Thanks! :)
This question earlier may apply - how can you test the condition of the return set for a field?
kollam003
09-23-2007, 03:52 AM
Installed and works like a charm , you have very well explained for even a newbie would do it professionally .
Kudos
Clicks Install
Wolfhawk
09-23-2007, 07:32 AM
Awesome product ya created! Thanks a Million! Setup was extremely simple, Your "tutorial" and User Manual is very understandable and easy to follow...Man, the possibilities!
::: Running off to format some templates---Not forgetting to click the Install button and ratings on my way out :::
Great Job Logician! Keep up the good work!
TigerWare
10-07-2007, 08:30 AM
does anyone have some created web queries they wouldn't mind sharing ?
thanks
Maybe there should be a repository somewhere?
Here is one that I have implemented which appears at the bottom of an article page written in LWT. The idea is to provide readers with snippets of comments made about the page they have just read, plus a visible link to a specific thread in the forum to read fully or add comments of their own. It displays a collapsable table containing the last 3 comments to the specific thread specified in the query. Text from each post is truncated at 500 characters. If there are no replies to the specified threadid, then the table content reverts to a generic "Be the first to add a comment" style.
Query name: $WQ_comments_sometitle
Advanced Query?: Yes
Description: Displays information about comments for this page.
Query: (Required ThreadID is hard-coded in the WHERE clause) select thr.threadid AS threadid, pst.title AS title, thr.firstpostid AS firstpostid, thr.replycount AS replycount, thr.views AS views, pst.postid AS postid, usr.username AS username, pst.dateline AS dateline, pst.userid AS userid, LEFT(pst.pagetext, 500) AS pagetext FROM thread AS thr LEFT JOIN post AS pst ON(thr.threadid = pst.threadid) LEFT JOIN user AS usr ON(usr.userid = pst.userid) WHERE thr.threadid = 0000 AND pst.postid <> thr.firstpostid ORDER BY pst.postid DESC LIMIT 3
Query PHPInclude Code (Before): (Required ThreadID is hard-coded in the WHERE clause) $queryfirstpostid = $db->query_first("SELECT firstpostid FROM " . TABLE_PREFIX . "thread AS thread WHERE threadid = 0000");
$firstpostid = $queryfirstpostid[firstpostid];
The above PHPInclude provides the WebQuery with a variable [$firstpostid], which contains the first post id of the required thread. This variable is consumed in the 'Query No Results Row' which forms part of the link to the thread reply editor screen. (Many thanks to Logican for input on this).
Result Prefix Code: <div style="padding-bottom:15px">
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="75%">
<thead>
<tr><td class="tcat"><a href="#top" onclick="return toggle_collapse('mysite_comments_module')" style="float:right"><img alt="" border="0" id="collapseimg_mysite_comments_module" src="images/buttons/collapse_tcat.gif" /></a>
<span class="smallfont"><strong>» Discussion & Comments...</strong></span></td></tr>
</thead>
<tbody id="collapseobj_mysite_comments_module" style="">
Query Result Row: <tr><td><span class="smallfont"> </span></td></tr>
<tr>
<td class="thead"><a href="showthread.php?t=$WQfield[threadid]" title="[click here to view other comments]" target="_blank">$WQfield[title]</a></td>
</tr>
<tr>
<td class="alt2">
<div class="smallfont"><strong>Posted By</strong>: <span style="cursor:pointer" onclick="window.open('member.php?u=$WQfield[userid]')">$WQfield[username]</span></div>
<div class="smallfont"><strong>Posted On</strong>: $WQfield[dateline]</div>
<br/>
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="95%">
<tr>
<td class="alt1">
$WQfield[pagetext]<span class="smallfont"><a href="showthread.php?p=$WQfield[postid]#post$WQfield[postid]" title="[click here to read more]" target="_blank">...</a></span>
</td>
</tr>
</table>
<br/>
</td>
</tr>
<tr class="thead"><td><span class="smallfont">Views ($WQfield[views]) - Comments ($WQfield[replycount]) - <a href="showthread.php?t=$WQfield[threadid]" title="[click here to view other comments]" target="_blank">View</a> or <a href="newreply.php?do=newreply&noquote=1&p=$WQfield[firstpostid]" target="_blank" title="[click here to add your comment now]">Add</a> Comments</span></td></tr>
Result Affix Code: </tbody>
</table>
</div>
Query No Result Row: <tr><td class="alt2"><span class="smallfont">Be the first to <a href="newreply.php?do=newreply&noquote=1&p=$firstpostid" target="_blank" title="[click here to add your comment now]">Add</a> a comment.</span></td></tr>
BB Code Parsed Field Names: pagetext (can be omitted if your template is 'text parsed')
Date Parsed Field Names: dateline
[Note: If your template is 'text parsed' please ensure that the HTML shown above contains NO line breaks. This would be interpreted and a hard break added to each line with a <br/> HTML code. This will make the formatting look very strange]
** edit - see below **
The only caveat in the above configuration is the hard-coded id in the Query No Result Row. This is required because the LWT does not parse field result values in anything other than the Query Result Row. If the LWT could parse field values in Result Prefix Code, Result Affix Code and Query No Result Row, it would be utterly fantastic!
@Logican, is my above enhancement suggestion something that you may be planning for a furture version?
** Update **
Text in grey (above) is no longer relevant due to Logican's input. The example has now been enhanced to incorporate suggested php pre-query. Thanks Logican!
Anyway, I hope this gives an idea of what can be done. I am really just starting to learn certain aspects of the LWT, and it helps in learning mySQL syntax too, which is a plus! LWT rocks! :up:
dartho
10-16-2007, 12:24 AM
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...
Logician
10-16-2007, 03:57 PM
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...
I guess I've forgotten to update the version in the pluggin file but if you overwrote the .php files and if your WT footer displays it as 3.6.02, then you are fine. It is really the WT footer version that really shows which version you are using. :)
garyrogers
10-22-2007, 11:27 AM
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
dartho
10-30-2007, 12:17 AM
I've noticed an erro in my AdminCP for web templates:
Warning: unserialize() expects parameter 1 to be string, array given in /admincp/wt_wt.php on line 49
Warning: unserialize() expects parameter 1 to be string, array given in /admincp/wt_wt.php on line 50
it doesn't seem to affect functionality. Not sure what I could have done to cause it - any ideas?
Thanks
Logician
10-30-2007, 05:49 PM
I've noticed an erro in my AdminCP for web templates:
Warning: unserialize() expects parameter 1 to be string, array given in /admincp/wt_wt.php on line 49
Warning: unserialize() expects parameter 1 to be string, array given in /admincp/wt_wt.php on line 50
it doesn't seem to affect functionality. Not sure what I could have done to cause it - any ideas?
Thanks
You must be using PHP5. This fix can help:
https://vborg.vbsupport.ru/showpost.php?p=1213756&postcount=667
Logician
10-30-2007, 06:01 PM
The only caveat in the above configuration is the hard-coded id in the Query No Result Row. This is required because the LWT does not parse field result values in anything other than the Query Result Row. If the LWT could parse field values in Result Prefix Code, Result Affix Code and Query No Result Row, it would be utterly fantastic!
In your example you want to use postid returned in a Query No Result Row but it does not make sense because query no result row applies only when there is no results returned (which means there is no postid either). So how could the hack get that variable in the first place? :)
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. ;)
TigerWare
10-30-2007, 07:09 PM
In your example you want to use postid returned in a Query No Result Row but it does not make sense because query no result row applies only when there is no results returned (which means there is no postid either). So how could the hack get that variable in the first place? :)
You know, now that I read that reply I realize what a dummy I am... :D Not enough brain-cells were sparking in my head when I wrote that. :rolleyes:
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.
Logican, that's simply perfect. I didn't realize that one could share the output in that way. That's just too cool :up: I shall be ripping the guts out of my webqueries this weekend to implement this.
Thanks for the education.
** edit **
Updated my example WebQuery based on Logican's suggested enhancement. Works a treat, thank you! [link (https://vborg.vbsupport.ru/showpost.php?p=1354651&postcount=760)]
:up:
Saviour
11-13-2007, 01:49 AM
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!
Logician
11-13-2007, 04:45 AM
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!
You can remove this line from your webtemplates:
$stylevar[htmldoctype]
If you are using a theme webtemplate, you should remove it from parent theme. Eg. "Default Basic Theme"
Saviour
11-13-2007, 04:52 AM
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!
Saviour
11-13-2007, 01:31 PM
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?
jluerken
11-15-2007, 11:52 AM
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?
Logician
11-15-2007, 12:48 PM
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?
There shouldn't be any problem for this. I think it is about google adsense. It sometimes starts displaying a few hours later and refuses to display for you if you refresh the page with same IP too much. Check source code of your wt and if you see the code there flawless then it is not WT that is the problem.
afullcup
11-19-2007, 06:00 PM
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.
Icehawk002
11-20-2007, 11:06 AM
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
powerful_rogue
11-22-2007, 09:34 AM
Hi,
Ive installed a program called HESK (http://www.phpjunkyard.com/free-helpdesk-software.php) - 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
pokemonleague
11-25-2007, 08:13 PM
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?
Tikibird
12-15-2007, 07:27 AM
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!
TigerWare
12-15-2007, 08:39 AM
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.
valdet
12-15-2007, 09:37 AM
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.
Tikibird
12-15-2007, 10:29 AM
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"?
Logician
12-15-2007, 10:43 AM
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 (http://www.myforumname.com) Port 80
Is that how you "run" a template, you click on "visit"?
Have you uploaded all hack files correctly to your server? In this specific example you seem to forget uploading "view.php"
Logician
12-15-2007, 10:44 AM
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.
Hack is compatible with all 3.5 and 3.6.x versions including 3.6.8 PL2.
TigerWare
12-15-2007, 10:48 AM
but has anyone tested this with the latest vB 3.6.8 PL2.
Yes, it works fine.
** edit to add **
Beaten to the punch by the master himself.
Tikibird
12-15-2007, 05:48 PM
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!
Icehawk002
12-16-2007, 01:24 PM
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
TigerWare
12-16-2007, 01:31 PM
Each template has the same menu code in it and the page layout is the same other than obviously the article content is different.
...
The biggest problem is if we add a new menu item all the 180 plus templates require modification.
It sounds like you need to put the menu system in the WebTemplate "Theme" and not inside each template page. My article here (https://vborg.vbsupport.ru/showthread.php?t=157529) may give you some ideas. (Just ignore the vBa bits for your reading).
Icehawk002
12-16-2007, 02:19 PM
Thanks TiggerWare that looks like a good solution and very helpful, I'll have a go and see how it works out.
Logician
12-16-2007, 04:24 PM
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
Exactly as tigerware told. You have to make a single webtemplate theme and then use this theme in your article webtemplates. I suggest you read "theme" section in manual.
Saviour
12-18-2007, 12:59 PM
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...
Logician
12-18-2007, 03:48 PM
Please see if this will shed any lights to your question:
https://vborg.vbsupport.ru/showpost.php?p=888161&postcount=185
Saviour
12-18-2007, 04:46 PM
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...
Logician
12-18-2007, 04:54 PM
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...
Have you tried to run this sample code as a PHP webtemplate by changing the include line with Dream's PHP file?
IE.
<?php
echo $stylevar[htmldoctype];
echo $headinclude;
echo $header;
echo $navbar;
include ("http://www.mydomain.com/forum/dreams_file.php");
echo $footer;
?>
boxingscene
12-19-2007, 06:23 PM
Has anyone tested the hack with 3.7? Any compatibility issues?
Razasharp
12-19-2007, 08:49 PM
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.
s3nt3nc3d
01-06-2008, 01:02 AM
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!
Logician
01-06-2008, 08:40 AM
edit webtemplate, set "Display Page Browsers?" to no
s3nt3nc3d
01-06-2008, 10:05 AM
edit webtemplate, set "Display Page Browsers?" to no
Thanks very much for the reply even though I really didn't deserve it...I just realized how much of an idiot I was and was coming here to say nevermind:rolleyes:
Great mod though...I'm loving it! *already clicked installed*
OneShot
01-07-2008, 05:12 PM
Just a question ... will this mod be updated for 3.7 (or does it already work with 3.7?) ?
Cheers
OS
Logician
01-07-2008, 05:53 PM
Just a question ... will this mod be updated for 3.7 (or does it already work with 3.7?) ?
Cheers
OS
I haven't test it with 3.7 yet but I'd guess, it would work. If it does not, I'm going to update it when 3.7 gold is released.
dilbert
01-07-2008, 08:23 PM
Very glad to hear this. Thank you for the work you did on this modification.
I haven't test it with 3.7 yet but I'd guess, it would work. If it does not, I'm going to update it when 3.7 gold is released.
jpbryan
01-08-2008, 01:05 PM
Thanks, installed very easily, and working great.. Thanks
Rush2008
01-11-2008, 02:08 AM
OMG, this is wicked awesome! And it's FREE??? Dude, you need an agent. :)
Very nice job sir!
--Rush
Forum Lover
01-16-2008, 02:10 PM
I haven't test it with 3.7 yet but I'd guess, it would work. If it does not, I'm going to update it when 3.7 gold is released.
waiting bro...
roymogg
01-17-2008, 10:25 AM
Hi Logician,
Nice hack installed v easy on the test forum - I have done the donation its so good
Confirmed OK vbAdvanced 3.0 RC2 and vb 3.6.8
I have installed a couple of templates just wanted to ask how I get the template to 'open' on page load within a module.
if you have a quick glance at the test site www.crosslight.co.uk
you see an aboutus link at the top - I wish to have this open on page load as default
any help much appreciated
RoyMogg
pedro84
01-19-2008, 08:32 AM
Fantastic mod! I got question before installation. I'd like to host my users sites @ my board. Is it any possibility to give users permission to make their own simple pages?
TigerWare
01-19-2008, 10:05 AM
I'd like to host my users sites @ my board. Is it any possibility to give users permission to make their own simple pages?
You can, though giving end-users their own pages to play with requires some Admin work. You would set up a webtemplate 'theme' (examples in the install) and then create individual web template pages as your users require. The web template page is displayed inside the theme, so the end users cannot alter the theme itself, only the page they are given access to. You assign appropriate edit permissions for the user(s) for that page and they can edit to their hearts content.
However, be careful about allowing HTML web templates for end users, it's very dangerous, and easy for them to make a complete hash of it (there's abuse too, but we'll take that as read). You have the option of bbCode based web template pages, which is by far the safest option and easiest to understand from the end users perspective.
LWT is great and I've had a lot of fun with it for my site. Spending time understanding this modification is not as daunting as it may first appear. It's worth the small learning curve, because this mod is FAB!
HTH
pedro84
01-19-2008, 01:37 PM
You can, though giving end-users their own pages to play with requires some Admin work. You would set up a webtemplate 'theme' (examples in the install) and then create individual web template pages as your users require. The web template page is displayed inside the theme, so the end users cannot alter the theme itself, only the page they are given access to. You assign appropriate edit permissions for the user(s) for that page and they can edit to their hearts content.
However, be careful about allowing HTML web templates for end users, it's very dangerous, and easy for them to make a complete hash of it (there's abuse too, but we'll take that as read). You have the option of bbCode based web template pages, which is by far the safest option and easiest to understand from the end users perspective.
LWT is great and I've had a lot of fun with it for my site. Spending time understanding this modification is not as daunting as it may first appear. It's worth the small learning curve, because this mod is FAB!
HTH
Thanks for reply. But before installing I got one more question. Will the users opportunity to edit their pages after posting them? How will it works like? Can I get more details?:)
Cheers!
Pedro
TigerWare
01-19-2008, 03:04 PM
Will the users opportunity to edit their pages after posting them?
Yes, an "Edit" link is provided at the foot of the web template page which allows the authourized user access to the editing features.
pipin
01-21-2008, 03:51 PM
I guess I've forgotten to update the version in the pluggin file but if you overwrote the .php files and if your WT footer displays it as 3.6.02, then you are fine. It is really the WT footer version that really shows which version you are using. :)
Yeah, but the footer displays 3.6.01 for the last version. ;)
And it would be nice if the productname would link to this thread,too.
Saviour
01-28-2008, 03:15 AM
Logician...
Again, I'd like to thank you for this mod...very nice!
Is there any way, at all, this can be updated to include a "printer friendly" and "email to a friend" option?
I know this mod is not supported...but would like to know if it's at all possible...it would be a nice addition to this mod.
The reason I ask is that I use this mod for a Knowledge Base I've started on my site...
It has come to our staff's attention that these two requests should be implemented within the Knowledge Base articles.
This means I'm going to have to create duplicate pages and link to them...so you see the reason for my asking?
I appreciate any feedback you have to offer on this...
Hello can anybody advise how to place checkbox with profile field option?
I am saving the form with profile.php everything works fine but the checkbox. (textfield works fine).
I have tried this:
<input type="checkbox" value="$bbuserinfo[field29]" name="userfield[field29][]" id="cb_cpf_field29_1"/>
this doesnt load wheter checkbox is checked or not and if I check nothing is saved.
and this
<input type="checkbox" value="$bbuserinfo[field29]" name="userfield[field29][]" id="cb_cpf_field29_1" <if condition="$bbuserinfo[field29] =='1'">checked="checked"/if> />
But this load "checked" in whatever case and doesnt save "unchecked" option.
Can anybody advise how to proceed with this checkbox field?
THANK YOU!!!
Logician
01-28-2008, 08:46 AM
I have installed a couple of templates just wanted to ask how I get the template to 'open' on page load within a module.
if you have a quick glance at the test site www.crosslight.co.uk (http://www.crosslight.co.uk)
I'm not sure if I understand your request but if you are trying to display the content of http://www.crosslight.co.uk/CrossLightForum/view.php?pg=aboutcrosslight when in http://www.crosslight.co.uk/CrossLightForum/index.php why don't you just put the content inside your vbadvanced module? It seems to be the best method.
Or you can put a popup javascrit to your vbadvanced page and when it is loaded, it popups about us page.
Logician
01-28-2008, 08:49 AM
Logician...
Again, I'd like to thank you for this mod...very nice!
Is there any way, at all, this can be updated to include a "printer friendly" and "email to a friend" option?
I know this mod is not supported...but would like to know if it's at all possible...it would be a nice addition to this mod.
The reason I ask is that I use this mod for a Knowledge Base I've started on my site...
It has come to our staff's attention that these two requests should be implemented within the Knowledge Base articles.
This means I'm going to have to create duplicate pages and link to them...so you see the reason for my asking?
I appreciate any feedback you have to offer on this...
Unlike vb posts, having a built-in printer friendly version with WT is not very easy because a WT can have 3 different formats : bbcode parsing (text), HTML and php. So for instance how can the code automatically create a printer friendly version for HTML or PHP webtemplates, it is very hard. :)
john.friel
02-18-2008, 09:47 PM
Nice Mod! I have it installed and working but have a question. I link to a WebTemplate page from a message on the forum, but when clicked it opens a new browser tab in IE7. None of the other fully qualified links on the site do this. Have I missed a setting?
Running 3.6.8 patch2 and the latest download of WebTemplates.
You can see this at http://reunion.cedarfallshigh.org and clicking on the Reunion Roll Call from the center News Item.
Thanks in advance.
John
Logician
02-19-2008, 04:26 PM
This is not really about the hack. It is how your vbulletin deals with tags. If WT is openning the links in a new window, your vbulletin must be openning links in messages in new window too:
[URL]http://www.vbulletin.com/forum/showthread.php?t=172169
http://www.vbulletin.com/forum/showthread.php?t=227351&highlight=links+window
GoTTi
02-25-2008, 11:48 PM
i am trying to past a lot of data and make a page, but am getting this error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 867187 bytes) in /home/site/public_html/forums/includes/adminfunctions_template.php on line 2184
what is causing this?
Logician
02-26-2008, 03:03 PM
This is not about the hack. Even if it is vbulletin that is producing this error, it is not about vb either. It happens due to a server restriction you have and because you are trying to post data which is above this restriction.
Please see here for more info and also fix:
http://www.vbulletin.com/forum/showthread.php?t=78563
(If you are on shared hosting and can't get PHP memory limit increased, try to shorten your page)
FLMom
03-09-2008, 11:16 PM
Hi Logician!
Just a quick question for you. A couple of weeks ago my team and I completely overhauled my site. We had to integrate my current forums into the new template skin which worked fine, but when I am in the admincp in the Webtemplates section none of the pages work. However they do work when on the regular page. I was told it has something to do with CSS?
Would you happen to know how I can fix this? If you need any log in info to see what I am talking about I will be more than happy to give it to you.
Thanks,
Cori
Razasharp
03-09-2008, 11:26 PM
Are all you WebTemplate files in tact? (ie do you need to upload them again?)
Logician
03-10-2008, 08:23 AM
Hi Logician!
Just a quick question for you. A couple of weeks ago my team and I completely overhauled my site. We had to integrate my current forums into the new template skin which worked fine, but when I am in the admincp in the Webtemplates section none of the pages work. However they do work when on the regular page. I was told it has something to do with CSS?
Would you happen to know how I can fix this? If you need any log in info to see what I am talking about I will be more than happy to give it to you.
Thanks,
Cori
You can create header/footer webtemplates in Add New Header/Footer page, then copy your new style's CSS and other related style codes and then you can edit your templates and choose it to use this header/footer instead of default vb header/footer.
This should fix it.
dilbert
03-13-2008, 12:42 AM
I had someone do some custom work for me related to this terrific script. I made the poor decision to upgrade, and seem to have lost the ability to do what i had done previously.
Essentially what I am trying to do is include a cold fusion page inside of a web template. That way I can use the forum look, but include the page I need. Two reasons for this - I am using a different database (MS SQL) and have no idea how to create a php page, but am familiar with cf.
Is there a way to include pages?
vrokar
03-13-2008, 02:37 AM
An appropriate representation of the requested resource /forums/admincp/wt_wt.php could not be found on this server.
Everytime I try to add some code. Plain text works fine. But anytime I try to use some custom code it dies. Any idea?
Logician
03-13-2008, 03:22 PM
An appropriate representation of the requested resource /forums/admincp/wt_wt.php could not be found on this server.
Everytime I try to add some code. Plain text works fine. But anytime I try to use some custom code it dies. Any idea?
This can't be related to hack. It should be a server issue. I suggest you check with server admin. It can be a jumpy mod-security setting if server has it.
MikeHolohan
03-17-2008, 07:29 AM
Anyone test this on 3.7?
I read back a few pages and you said it will be updated when 3.7 goes gold but I was wondering if anyone tested it in 3.7, it works fine in 3.7 for me...
This is one awesome hack...
Mike.
Logician
03-17-2008, 09:33 AM
Anyone test this on 3.7?
I read back a few pages and you said it will be updated when 3.7 goes gold but I was wondering if anyone tested it in 3.7, it works fine in 3.7 for me...
This is one awesome hack...
Mike.
Yes except a few minor issues it works fine with 3.7.x too. There are only some small issues like in "export webtemplate" sections. They don't effect the working of the hack, unless you specifically attempt to use that section.
dartho
03-17-2008, 11:38 AM
yep, works a treat on 3.7
adwolf1
03-26-2008, 11:43 AM
Thanks logician for the great script I'm making extensive use of it on my forum.
Just one quick question -- I know you can have multiple webqueries on a page, but is there any way to pass the output of one query to another? If so, I haven't figured out how to do it.
Thanks again
Logician
03-26-2008, 11:53 AM
Thanks logician for the great script I'm making extensive use of it on my forum.
Just one quick question -- I know you can have multiple webqueries on a page, but is there any way to pass the output of one query to another? If so, I haven't figured out how to do it.
Thanks again
I'm always happy to see the hack is attempted to be used in such creative and advanced ways but unfortunately it can not support all of these sophisticated methods. :) Answer is no, sorry..
adwolf1
03-26-2008, 12:59 PM
I'm always happy to see the hack is attempted to be used in such creative and advanced ways but unfortunately it can not support all of these sophisticated methods. :) Answer is no, sorry..
bummer :( guess i'm pushing the script a little too far :)
Just thinking outside of the box -- can one include eval statements in the phpinclude before/after parts of the webquery? If so, I can see a way to issue additional queries & pass the results on to the webquery for final output.
FLMom
04-01-2008, 12:56 AM
You can create header/footer webtemplates in Add New Header/Footer page, then copy your new style's CSS and other related style codes and then you can edit your templates and choose it to use this header/footer instead of default vb header/footer.
This should fix it.
Sorry to respond so late to you, I have been super busy with things. I will definitely try this out! Thank you very much!! I have also reinstalled all of the files just to make sure everything was there :D
GoTTi
04-08-2008, 04:18 PM
Yes except a few minor issues it works fine with 3.7.x too. There are only some small issues like in "export webtemplate" sections. They don't effect the working of the hack, unless you specifically attempt to use that section.
hey just wondering if you will be releasing a version of this mod for 3.7 addressing any issues. i just upgraded one of my forums to 3.7 rc2, and i want to make sure there arent any problems with any mod on there.
thanks, great mod.
Logician
04-08-2008, 04:23 PM
You should be fine with 3.7. But when it is gold version is up, I plan to release a version covering all these minor issues too. I can't promise its ETA but intend to do it.
GoTTi
04-09-2008, 05:20 AM
keep up the great work logician, you do a great job with all your mods...
Direct Vision
04-09-2008, 04:07 PM
I'm always happy to see the hack is attempted to be used in such creative and advanced ways but unfortunately it can not support all of these sophisticated methods. :) Answer is no, sorry..
Little off-topic. I'm using your great hack on my forum and it works great but I have a small problem. I would like to use the SEO urls and I managed to do that, but since my forum is not in the root and in a /forum/ dir, I have two .htacess files which the second one stops the first from working.
Can I add the SEO urls code to the file in the root and get it work? Is there any modification?
nanaimobar
04-13-2008, 08:33 PM
Installed in 3.7 RC3 but can't get java applet in the html I placed in new web page to init.
Does mod support java applet calls within the html? (html works fine and runs applet when I just load it on server)
Do I need to add some additional code for applet to function using WebTemplates?
Thanks in advance.
nanaimobar
04-13-2008, 09:20 PM
Installed in 3.7 RC3 but can't get java applet in the html I placed in new web page to init.
Does mod support java applet calls within the html? (html works fine and runs applet when I just load it on server)
Do I need to add some additional code for applet to function using WebTemplates?
Thanks in advance.
FIXED!
Needed codebase directory for applet. Duh!
Works like a charm.:up:
nanaimobar
04-13-2008, 10:19 PM
Donated.
nanaimobar
04-16-2008, 04:18 PM
Html code works fine calling applet directly from server but when same html code placed in a new web template window the applet fails to load. Html has codebase defined this time.
<p><APPLET
ARCHIVE = "WSPlay.jar"
CODEBASE = "https://my site.com/forums/wrdsrch/"
CODE = "wsplay.WSPlayApplet.class"
NAME = WSPlayApplet
WIDTH = 496
HEIGHT = 390
HSPACE = 0
VSPACE = 0
ALIGN = middle
>
Have tried getting applet to load from within new web template by:
placing another codebase in the parameter section, to wit
<PARAM NAME = "CODEBASE" VALUE ="https://my site.com/forums/wrdsrch/">
by using in codebase in applet section a "."
Any suggestions as to why this applet works fine when loaded from server as a straight html page but when same html code placed in new web template page it fails?
Thanks.
Maplewoods
04-18-2008, 07:03 AM
Using a template as an intro./welcome page before the VB forum, the template shows
Currently Active Users Viewing this Page: 4
question:
Instead of showing the users on this one page - how can I make it display the total number of users on the entire vb forum?
nanaimobar
04-20-2008, 04:13 PM
A puzzle applet has a save function storing puzzle data in a cgi-bin file. When I click on the save button I get an invalid page notice, "The page you requested does not exist!" The page is the web template containing the puzzle which produces the invalid page notice.
The web template page is at https://my site/forums/view.php?pg=crswrdpuz
It is not an actual html page stored on my server and I think what the save function needs to do is save the puzzle data somehow for replacement in the puzzle grid the next time a visitor reloads the web template page.
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#ffffff">
<TITLE>Crossword Puzzle Test</TITLE>
<APPLET CLASS="CCJava" CODE="Grid_int.class" ARCHIVE="ccjava.jar" NAME="CCXWORD" CODEBASE="https://my site /forums/crswrds/" WIDTH=780 HEIGHT=483>
<param name="SAVE" value="https://my site/forums/view.php?pg=crswrdpuz?%PROGRESS%">
<PARAM NAME="DATAFILE" VALUE="https://my site /forums/crswrds/1.jpz">
<!--[CCPROGRESS]-->
You need Java enabled to view the crossword applet.
</APPLET>
<HR>
</BODY>
</HTML>
Anyone have a suggestion as to how to save the web template data for replacement in puzzle grid the next time a visitor loads a saved web template page?
Thanks.
Logician
04-28-2008, 08:15 AM
Anyone have a suggestion as to how to save the web template data for replacement in puzzle grid the next time a visitor loads a saved web template page?
Have you tried using SEO friendly URLs? This might help since WT will be renamed as
https://my site/forums/view_crswrdpuz.htm
which your script might like better.
However please note that if script is trying to overwrite this HTML somehow (to insert score inside it etc), then it will still fail. I'm not sure why that script is trying to access that html file.
Instead of showing the users on this one page - how can I make it display the total number of users on the entire vb forum?
This is not possible as a default feature but if you don't mind hacking (and this hack will apply to ALL webtemplates too!), this should work:
In view.php, find line:
session.lastactivity > $datecut AND (session.location LIKE '%".$Search_Word_for_session_TB."?%' AND session.location LIKE '".$idSQL."') OR (session.location LIKE '%".$Search_Word_for_session_TBURL."%')
and replace it as
session.lastactivity > $datecut
Any suggestions as to why this applet works fine when loaded from server as a straight html page but when same html code placed in new web template page it fails?
I would think this is related to the applet. It is likely that it is coded to work in the same server enviroment. It doesnt sound like anything related to WT.
klees
05-02-2008, 03:20 PM
Does it work on vB 3.7???
birdie
05-03-2008, 02:53 AM
Does it work on vB 3.7???Did you read the previous page of this thread before posting?
Beermonster
05-04-2008, 07:16 AM
Since upgrading to 3.7 all I get now are pages that say header, any idea how to fix this?
Logician
05-04-2008, 07:31 AM
If you give me FTP and admin cp access to your problematic board, I can check. But before that please make sure your WTs' content is fine.
Beermonster
05-04-2008, 07:58 AM
But before that please make sure your WTs' content is fine.
It was working fine before the upgrade, I've uninstalled the hack and still got the error
nanaimobar
05-06-2008, 04:31 PM
Have you tried using SEO friendly URLs? This might help since WT will be renamed as
https://my site/forums/view_crswrdpuz.htm
which your script might like better.
However please note that if script is trying to overwrite this HTML somehow (to insert score inside it etc), then it will still fail. I'm not sure why that script is trying to access that html file.
Changed to SEO friendly and managed to get Save button to save puzzle data to bookmarks or hard drive, but... when recalling the saved page, using a display saved puzzle cgi script, it just produces a blank page, let alone include any solved words or letters that were in the puzzle when it was saved.
Your quote above indicates overwriting will fail, and this may be the case.
dilbert
05-06-2008, 06:52 PM
Since upgrading to 3.7 all I get now are pages that say header, any idea how to fix this?
I'm getting the same error.
iBaker
05-07-2008, 04:25 AM
Hi
I am using vB v3.7.0 with Web templates v3.5.0.05 - can someone tell me how I can update my version of Web templates to the latest version without losing any of my pages - thanks!
kollam003
05-10-2008, 06:40 AM
Since upgrading to 3.7 all I get now are pages that say header, any idea how to fix this?
Same error here too plz help we are fixed
Logician
05-10-2008, 07:35 AM
Since upgrading to 3.7 all I get now are pages that say header, any idea how to fix this?
Same error here too plz help we are fixed
Someone who is having this error, please give me FTP and vbadmin cp access to his board so that I can check. I can't produce the error in my test boards, hack is working fine with 3.7 for me.
dartho
05-10-2008, 08:03 AM
Not that it helps anyone, but WT is still working great for me after an upgrade to 3.7 Gold on a heavily modded board ... :)
Beermonster
05-10-2008, 01:44 PM
Someone who is having this error, please give me FTP and vbadmin cp access to his board so that I can check. I can't produce the error in my test boards, hack is working fine with 3.7 for me.
Done, thanks
Logician
05-10-2008, 03:58 PM
Since upgrading to 3.7 all I get now are pages that say header, any idea how to fix this?
For those who is having this problem, here is a quick fix:
Edit includes/wt_include.php, find
function WTgettemplate($template, $escape = 1, $gethtmlcomments = 1)
{
extract ($GLOBALS);
REPLACE it as:
function WTgettemplate($template, $escape = 1, $gethtmlcomments = 1)
{
//extract ($GLOBALS);
This should fix it.
@Beermonster: I've already fixed yours, thx!
Beermonster
05-10-2008, 04:50 PM
@Beermonster: I've already fixed yours, thx!
This is probably the most useful plugin available for VB and I would have been lost with out it, thanks :)
kollam003
05-11-2008, 02:29 AM
Wow great support FIXED thanks for this awesome product
Ohiosweetheart
05-11-2008, 03:41 PM
This works perfectly with 3.7. Thank you!
mac27
05-11-2008, 05:10 PM
I am curious as to how I can call the sidecolumn I use on my forum home on each of my webtemplate pages? I have tried creating a plugin to do this and it works on my regular forum but not in the webtemplate pages.
Basically anywhere I place $sidecolumn my sidecolumn wil show up in my forum, but if I place it in a WT page it does not show up.
Thanks
klaush
05-11-2008, 06:56 PM
Thanks!
This is one of the important mods!
tokenyank
05-20-2008, 11:45 PM
I know it's late and I'm probably missing something stupid, but I just installed/tried this and am getting:
Forbidden
You don't have permission to access /forums/admincp/wt_wt.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The file in question, I've chmod'd 777 just incase, but it's still not working. I'll revisit this after Iv'e had some sleep, hopefully in the meantime someone can shed some light on why I'm getting this error! (yes, i did upload the structure properly! :) )
Thanks in advance!
Logician
05-21-2008, 09:19 AM
I know it's late and I'm probably missing something stupid, but I just installed/tried this and am getting:
The file in question, I've chmod'd 777 just incase, but it's still not working. I'll revisit this after Iv'e had some sleep, hopefully in the meantime someone can shed some light on why I'm getting this error! (yes, i did upload the structure properly! :) )
Thanks in advance!
It sounds like a server permission issue to me. You checked chmod'ing but it can be about the user account uploading the file. Please make sure you uploaded (and owned) with a FTP account which is used to upload your other vb files in the folder.
It is definetely not a hack issue. ;)
tokenyank
05-21-2008, 12:52 PM
Hmm... I've reupped the files and I do own the account but still getting the same error...
chmodded to 666 664 755 777 but all still give same error
same again after I reimported xml.
/confused!
tokenyank
05-21-2008, 01:09 PM
Ok, figured it out...
Appearently putting php makes it cry a little bit.
<?php
// # THE FOLLOWING BLOCK IS USED TO RETRIEVE AND DISPLAY LINK INFORMATION.
// # PLACE THIS ENTIRE BLOCK IN THE AREA YOU WANT THE DATA TO BE DISPLAYED.
// # duser key:
$UserKey ="blahblah";
// # MODIFY THE VARIABLES BELOW:
// # The following variable defines how many links to display per page
$LinksPerPage = "25";
// # The following variable defines how many columns are used to display categories
$CategoryColumns = "2";
// # The following variable defines whether links are opened in a new window
// # (1 = Yes, 0 = No)
$OpenInNewWindow = "0";
// # DO NOT MODIFY ANYTHING ELSE BELOW THIS LINE!
// ----------------------------------------------
$QueryString = "script=php";
$QueryString .= "&UserKey=" .urlencode($UserKey);
$QueryString .= "&CategoryColumns=" .urlencode($CategoryColumns);
$QueryString .= "&LinksPerPage=" .urlencode($LinksPerPage);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);
$QueryString .= "&siteid=529" ;
foreach ($_GET as $key => $value) {
$value = urlencode(stripslashes($value));
$QueryString .= "&$key=$value";
}
// congfigure our headers
if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
if(!@readfile("http://www.domain.com?".$QueryString)) {
echo "Error processing request";
}
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
if(!($content = @file("http://www.domain.com?".$QueryString))) {
echo "Error processing request";
}
else {
echo @join('', $content);
}
}
elseif(function_exists('curl_init')) {
$ch = curl_init ("http://www.domain.com?".$QueryString);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
if(curl_error($ch))
echo "Error processing request";
curl_close ($ch);
}
else {
echo "Your web hosting provider has disabled all functions for handling remote pages pages and as a result the LinksPile software will not function on your web site.";
}
echo "<input type='hidden' name='userkey' value='".$UserKey."'>";
?>
Since this was the only thing I was trying to add, it always 'broke'... Adding plain txt or html works fine.
I've tried adding the above as straight php and in the phpinclude. Since it's not working, I'm assuming it has to do with the fopen and/or the curl commands and the vB sanitizer is not liking it?
hobbybox
05-21-2008, 04:41 PM
I installed this on a new site (have used on others with no problems) - for some reason the custom pages stretch across the whole screen instead of staying within the body - I have used the 'default basic theme' on other sites with no alterations and never had a problem - any idea what im doing wrong?
1st picture is the normal site - 2nd picture is what happens with custom page.
Logician
05-21-2008, 05:24 PM
I installed this on a new site (have used on others with no problems) - for some reason the custom pages stretch across the whole screen instead of staying within the body - I have used the 'default basic theme' on other sites with no alterations and never had a problem - any idea what im doing wrong?
1st picture is the normal site - 2nd picture is what happens with custom page.
It is your custom skin's vb header/footer/css that is not coded well to go along with other applications that are inheriting it. You should check their syntax. If you switch to default webtemplate header/footer, the problem will go.
hobbybox
05-21-2008, 05:56 PM
just started to work with no problems - not sure if it was CACHE or not...
I do have another question though....
I would like to customer the top bar that goes around the page - On the line that shows the page name I would like to add an image to the right and left side to give the box rounded corners...is it possible for you to give me the code to change the default basic them so I can add the images for rounded top corners?
onnenkolikko
05-27-2008, 02:55 PM
I get:
Database error in vBulletin 3.7.0:
Invalid SQL:
navbar;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'navbar' at line 1
Error Number : 1064
I'm using vbseo 3.2.0 RC5. Could that do the error?
Edit: The error comes when I try enter mysite.com/view.php?pg=test
When I go to mysite.com/view_test.htm i get page not found
Logician
05-27-2008, 04:37 PM
I get:
Database error in vBulletin 3.7.0:
Invalid SQL:
navbar;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'navbar' at line 1
Error Number : 1064
I'm using vbseo 3.2.0 RC5. Could that do the error?
Edit: The error comes when I try enter mysite.com/view.php?pg=test
When I go to mysite.com/view_test.htm i get page not found
Apply this fix and see if it will help:
https://vborg.vbsupport.ru/showpost.php?p=1515039&postcount=855
onnenkolikko
05-27-2008, 05:06 PM
Now it works with view.php?pg=test but now with view_test.htm. I have SEO Friendly URLs turned on and the .htaccess file is edited..... I would be very happy if you have any idea how to get seo links working. Thank you.
Logician
05-27-2008, 05:14 PM
Now it works with view.php?pg=test but now with view_test.htm. I have SEO Friendly URLs turned on and the .htaccess file is edited..... I would be very happy if you have any idea how to get seo links working. Thank you.
I believe it is clashing with vbseo for this. Try to turn off my hack's SEO friendly URLs and try to convert URLs via vbseo. I'm not a vbseo user but if I remember correctly, they released a solution in their forum to use webtemplates with vbseo in SEO friendly way.
tokenyank
05-31-2008, 10:48 AM
Hi Logician...
Just hoping I could get your advice...
I've never really used includes with vb because I never really needed to!
Now that I've found your modification, I would like to 'wrap' a script around your templates.
I've tried to 'wrap' this (http://www.mumsonline.net/forums/eBay/index.php) using the phpinclude section of your modification which returns a blank page and I've tried using <?php include(); ?> method which results in the permissions error I was getting previously when I was trying to stick 'raw' php in the template.
Do you have any suggestions or am I just out of luck? Thanks in advance!
Logician
05-31-2008, 03:04 PM
Hi Logician...
Just hoping I could get your advice...
I've never really used includes with vb because I never really needed to!
Now that I've found your modification, I would like to 'wrap' a script around your templates.
I've tried to 'wrap' this (http://www.mumsonline.net/forums/eBay/index.php) using the phpinclude section of your modification which returns a blank page and I've tried using <?php include(); ?> method which results in the permissions error I was getting previously when I was trying to stick 'raw' php in the template.
Do you have any suggestions or am I just out of luck? Thanks in advance!
It is really not very easy to say anything. WebTemplate's phpinclude section imitates vbulletin's phpinclude section and it is bound with its lines too. It is not possible to run everykind of PHP code in vbulletin's (hence webtemplate's) phpinclude code because that code runs "inside vbulletin engine" and it shouldn't clash with it somehow. For instance a variable or function which is already declared in vb can cause unexpected results if it also exists in the third party code.
So if vbulletin's phpinclude can handle your script, so does webtemplate. But if it does not, unfortunately webtemplate can not do a miracle as well. :)
tokenyank
06-01-2008, 09:09 AM
Yeah... I finally got it to run, but it was above the header..
It went:
Script
----
Header
----
Content
----
Footer
I couldn't manage to get it to go:
Header
----
Script
----
Footer
I couldn't figure it out though so in end I just iframed it in... Not ideal, but atleast it works in the template! :P
plasticsurgery
06-02-2008, 05:33 AM
This is fantastic!:up:
I have the count visitors not on but it still displays all this at the bottom:
Page Visitors: 0, Last Visitor was Guest at N/A. Edit This Page
Page Created at Never, Last Modified : Today - 06:28 AM.
How can I get rid of this info or just hide it? Thanks
WoodiE
06-05-2008, 01:30 PM
I edited the Default Basic Theme to comment out the nowbrowsing as so:
<!-- $nowbrowsing -->
After saving the changes I now have this at the top of my Logician's Webtemplates admin page:
Warning: unserialize() expects parameter 1 to be string, array given in [path]/admincp/wt_wt.php on line 49
Warning: unserialize() expects parameter 1 to be string, array given in [path]/admincp/wt_wt.php on line 50
This is running on a newly installed 3.7.1 vB forum.
WoodiE
06-12-2008, 12:53 PM
Anyone have any idea how to fix this error?
Logician
06-12-2008, 01:55 PM
This is fantastic!:up:
I have the count visitors not on but it still displays all this at the bottom:
Page Visitors: 0, Last Visitor was Guest at N/A. Edit This Page
Page Created at Never, Last Modified : Today - 06:28 AM.
How can I get rid of this info or just hide it? Thanks
You can edit theme template you are using in that wt to delete that section.
Logician
06-12-2008, 01:57 PM
I edited the Default Basic Theme to comment out the nowbrowsing as so:
<!-- $nowbrowsing -->
After saving the changes I now have this at the top of my Logician's Webtemplates admin page:
Warning: unserialize() expects parameter 1 to be string, array given in [path]/admincp/wt_wt.php on line 49
Warning: unserialize() expects parameter 1 to be string, array given in [path]/admincp/wt_wt.php on line 50
This is running on a newly installed 3.7.1 vB forum.
Was it working ok before you commented out that line? It seems irrelevant to me?
If it does, you can try deleting that line altogether instead of commenting out.
If it does not, delete all default webtemplates and webqueries, uninstall hack, reinstall it and see if it will help.
hobbybox
06-12-2008, 05:25 PM
I installed this on 3.7.1 and it is working great except for one thing...when I was running 3.6, and had a page set to Draft - Yes - the word 'draft' was next to the page in the page list...however with 3.7 (and 3.7.1) the word draft no longer appears...is this something I did or maybe something with 3.7?
WoodiE
06-12-2008, 11:37 PM
Was it working ok before you commented out that line? It seems irrelevant to me?
If it does, you can try deleting that line altogether instead of commenting out.
If it does not, delete all default webtemplates and webqueries, uninstall hack, reinstall it and see if it will help.
I've tried uncommenting the line, deleting the line all together, nothing helps.
I have a second forum that I've also installed this one, everything went well until I deleted one of the default test pages... as soon as I did I got the same error at the first forum.
Odd thing is the error will not go away now when in the AdminCP under WebTemplates. What really makes sense is everything "seems" to be working w/o any issues, just have this error at the top in WebTemplates admincp...
Logician
06-13-2008, 06:59 AM
I've tried uncommenting the line, deleting the line all together, nothing helps.
I have a second forum that I've also installed this one, everything went well until I deleted one of the default test pages... as soon as I did I got the same error at the first forum.
Odd thing is the error will not go away now when in the AdminCP under WebTemplates. What really makes sense is everything "seems" to be working w/o any issues, just have this error at the top in WebTemplates admincp...
If you give me FTP and admin cp access, I can take a look when I have a free time.
hobbybox
06-17-2008, 12:34 PM
I installed this on 3.7.1 and it is working great except for one thing...when I was running 3.6, and had a page set to Draft - Yes - the word 'draft' was next to the page in the page list...however with 3.7 (and 3.7.1) the word draft no longer appears...is this something I did or maybe something with 3.7?
any info on this problem?
louis_chypher
06-18-2008, 05:40 PM
Warning: unserialize() expects parameter 1 to be string, array given in [path]/admincp/wt_wt.php on line 49
This is running on a newly installed 3.7.1 vB forum.
I get the unserialize error when viewing web templates and when doing admin functions for this mod. I begun to get these errors with the upgrade to vb 3.7.1
as an FYI
Logician
06-19-2008, 08:18 PM
I get the unserialize error when viewing web templates and when doing admin functions for this mod. I begun to get these errors with the upgrade to vb 3.7.1
as an FYI
If someone who is having this problem can give me FTP and vbadmin cp access, I can check it out. I don't have this problem myself.
hobbybox
06-19-2008, 08:48 PM
Logician, great hack! Been using it for a while now - currently running fine on my fresh install of 3.7.0 but also have a problem simulair to Hobby's -
When anyone has "edit permission" isn't "edit" supposed to appear in the template too? If you point me in the right direction where to look - phrases? - I could probably figure it out . . . Hobby, I see "Draft : On, Count Visitors : Off, Show Browsers : Off " but not "edit" :)
NOTE: Ah, now I see this in the footer of the stock "priv_privatemessages ":
What's Up Doc? Thanks Again, Rabbit
the part im referring to is in the ADMIN CP area - on my 3.6 board when the list of pages was shown it would show 'Page Title - draft' - now it just shows the page title without the word draft. Makes it hard to scan through the list to see the pages that are still in the works.
ElizeF
06-20-2008, 08:23 AM
Thanks, I have created my first web template. I must admit with the user manual and help documents it is easy enough for anyone to "create" web templates. ;)
silly rabbit
06-20-2008, 10:21 PM
the part im referring to is in the ADMIN CP area - now it just shows the page title without the word draft.
For what it's worth DITTO here (just checked, no "draft" indicator in CP!) I think my problem proved easier to solve than yours might - just found what I was looking for under the "Default Basic Theme" which basically adds another footer between my copyright and the "Quick Info Panel for Admins".
Used to be you could create a new Category (for storing drafts in?) but don't see that now either.
C'est Le Vie, Still Great hack!
Rabbit
Logician
06-21-2008, 07:46 AM
I installed this on 3.7.1 and it is working great except for one thing...when I was running 3.6, and had a page set to Draft - Yes - the word 'draft' was next to the page in the page list...however with 3.7 (and 3.7.1) the word draft no longer appears...is this something I did or maybe something with 3.7?
I've fixed this issue and released another version in the first post. You don't need to make a full install, you can just overwrite file /admincp/wt_wt.php and this will fix it.
Logician
06-21-2008, 07:48 AM
Used to be you could create a new Category (for storing drafts in?) but don't see that now either.
You do it by editing wt_include.php file. Please read manual for detailed info.
hobbybox
06-21-2008, 02:08 PM
great - thank you
purple99
06-21-2008, 02:24 PM
Installed and marked installed. Went without a hitch (3.7.0). Good documentation. Excellent mod, just what I was after, saved me hours writing html pages. Thank you. :up::p:up:
silly rabbit
06-21-2008, 05:24 PM
You do it by editing wt_include.php file. Please read manual for detailed info.
Oh yes, I seem to remember that now. I don't have a "doc" viewer and the text help version is . . . well, to the point?
I will figure it out . . . no! Wait a min, I'm very happy just way your excellent hack is!
Cheers
(Oh, and by the way, I changed the way VBMS notifies you HERE (https://vborg.vbsupport.ru/showthread.php?p=1554979#post1554979))
sparklywater
06-22-2008, 12:55 AM
I have a problem viewing HTML files correctly in my webtemplates. I edit my HTML files in Microsoft Frontpage using its WYSIWYG editor, then copy and paste the HTML code directly into the webtemplate creator in vBulletin Admin CP (in HTML parsing mode). But the resulting webtemplate does not accurately represent the webpage shown in the WYSIWYG interface of Frontpage. For example, there are some inaccurate font colours, font sizes, spacing between lines, etc. even though the same HTML code in Frontpage shows the webpage correctly. However, my forum's custom skin / style has been correctly inherited by the webtemplate, ie. correct background-colour, header / footer, etc. The problem is with the actual content of the HTML page in the webtemplate.
It's not an option for me to edit the page in TEXT mode instead because my webpage includes embedded objects such as RealPlayers, video players, etc. and I need more than the limited features of the vBulletin WYSIWYG editer (hence I use Frontpage). If anyone can shed some light on this issue or give some advice I would be extremely grateful.
PS. Logician, thanks very much for your incredible hard work, effort, and generosity. Please keep up the great work! :)
Logician
06-22-2008, 08:47 AM
I have a problem viewing HTML files correctly in my webtemplates. I edit my HTML files in Microsoft Frontpage using its WYSIWYG editor, then copy and paste the HTML code directly into the webtemplate creator in vBulletin Admin CP (in HTML parsing mode). But the resulting webtemplate does not accurately represent the webpage shown in the WYSIWYG interface of Frontpage. For example, there are some inaccurate font colours, font sizes, spacing between lines, etc. even though the same HTML code in Frontpage shows the webpage correctly. However, my forum's custom skin / style has been correctly inherited by the webtemplate, ie. correct background-colour, header / footer, etc. The problem is with the actual content of the HTML page in the webtemplate.
It's not an option for me to edit the page in TEXT mode instead because my webpage includes embedded objects such as RealPlayers, video players, etc. and I need more than the limited features of the vBulletin WYSIWYG editer (hence I use Frontpage). If anyone can shed some light on this issue or give some advice I would be extremely grateful.
PS. Logician, thanks very much for your incredible hard work, effort, and generosity. Please keep up the great work! :)
If you are using a theme webtemplate to display your custom HTML, it means that you are also using vbulletin CSS file in this template and your custom CSS and vbulletin CSS might clash in certain points. For instance vbulletin CSS might set a table row color as red but your CSS might set it as green etc.
So you have to edit your CSS file and remove clashing points and make it work with vb css if you want to use your code inside a theme template with vb header/footer etc.
This problem is actually not about hack, it is about HTML standards. :)
Alternatively you can paste your code into a webtemplate which does not use a theme (ie webtemplate will be parent itself) and even though your code will render fine now, it won't have vb formating, header, footer etc.
Hope I could explain?
sparklywater
06-22-2008, 03:37 PM
So you have to edit your CSS file and remove clashing points and make it work with vb css if you want to use your code inside a theme template with vb header/footer etc.
Thanks for your reply. I am trying to find an efficient way of identifying and changing the clashing points on the css of my HTML code with the css of my vBulletin skin/style. Do you know if there are any tutorials available on how to do this?
plasticsurgery
06-23-2008, 06:23 AM
Originally Posted by plasticsurgery View Post
This is fantastic!
I have the count visitors not on but it still displays all this at the bottom:
Page Visitors: 0, Last Visitor was Guest at N/A. Edit This Page
Page Created at Never, Last Modified : Today - 06:28 AM.
How can I get rid of this info or just hide it? Thanks
You can edit theme template you are using in that wt to delete that section.
Hi thanks sorry but I'm still a bit confused what to do. When I go to "Edit Webtemplate" for the page I don't see any options for this. Is this section part of the default_webtemplate_footer
Thank you! :)
***UPDATE**** found it in default_basic_theme - thank you!
PoetJA-1975
06-30-2008, 05:40 AM
Hello - I'm looking for resolution to issue on my testboard please. Running 3.7.1 PL1 -- Whenever browsing to custom page --- for instance http://jpicforum.info/testvb/view.php?pg=moderatingteam --- You only see at the top of the page the word "header" on a whitepage - nothing else.
It's interesting really - because the modification had been working fine on the testboard.
Any suggestions/help fixing the issue will be appreciated!
Thanx,
Jacquii.
Logician
06-30-2008, 07:10 AM
Hello - I'm looking for resolution to issue on my testboard please. Running 3.7.1 PL1 -- Whenever browsing to custom page --- for instance http://jpicforum.info/testvb/view.php?pg=moderatingteam --- You only see at the top of the page the word "header" on a whitepage - nothing else.
It's interesting really - because the modification had been working fine on the testboard.
Any suggestions/help fixing the issue will be appreciated!
Thanx,
Jacquii.
Your answer is in the first post of the thread.
PoetJA-1975
06-30-2008, 07:22 PM
Ooops - I missed that - Need glasses anyway LOL
Thanx so much - fixed the issue ;)
Jacquii.
CodeRed
07-02-2008, 02:20 PM
In case anyone here is interested
PAID: Add VB's "Upcoming Events" to a Logician's "WebTemplate" page - $50 (https://vborg.vbsupport.ru/showthread.php?t=184177)
Thanks!
brookemegg
07-14-2008, 03:40 AM
Hello,
Since installing 3.7, we have this on the top of all our webtemplate pages:
Parse error: syntax error, unexpected T_STRING in /nfs/c01/h05/mnt/38570/domains/spiffymoms.com/html/forums/view.php(901) : eval()'d code on line 1
Please see live version here: http://spiffymoms.com/forums/view.php?pg=contest41_shell
How do I fix this? Thanks!!
Logician
07-14-2008, 06:44 AM
Hello,
Since installing 3.7, we have this on the top of all our webtemplate pages:
Parse error: syntax error, unexpected T_STRING in /nfs/c01/h05/mnt/38570/domains/spiffymoms.com/html/forums/view.php(901) : eval()'d code on line 1
Please see live version here: http://spiffymoms.com/forums/view.php?pg=contest41_shell
How do I fix this? Thanks!!
It is not the hack. You have a obselete code in your vb's "headinclude" template. Delete the contents of this template and it will be fixed.
brookemegg
07-14-2008, 02:10 PM
I'm sorry, I don't think I'm fully understanding. I reverted the template back to default and it's still there. And then I deleted the contents of headinclude completely, which didn't work either. I know this doesn't deal with the hack, but if you have any ideas, I'd greatly appreciate them.
Thanks!
Logician
07-14-2008, 02:38 PM
I'm sorry, I don't think I'm fully understanding. I reverted the template back to default and it's still there. And then I deleted the contents of headinclude completely, which didn't work either. I know this doesn't deal with the hack, but if you have any ideas, I'd greatly appreciate them.
Thanks!
Do you have more than 1 style sets? Please make sure you delete the content of it in all style sets. This should help.
brookemegg
07-15-2008, 03:31 AM
I'm not sure what you mean by style sets. Thanks again.
Logician
07-15-2008, 05:36 AM
I'm not sure what you mean by style sets. Thanks again.
If you give me admincp access, I can check for you.
brookemegg
07-15-2008, 01:57 PM
I just sent you a PM, thanks!!
Logician
07-16-2008, 03:13 PM
Hello,
Since installing 3.7, we have this on the top of all our webtemplate pages:
Parse error: syntax error, unexpected T_STRING in /nfs/c01/h05/mnt/38570/domains/spiffymoms.com/html/forums/view.php(901) : eval()'d code on line 1
Please see live version here: http://spiffymoms.com/forums/view.php?pg=contest41_shell
How do I fix this? Thanks!!
If anybody has this problem AND has "QuoteIt!" hack installed, this is because 2 hacks are clashing. To fix the issue, follow these steps:
1- Go to pluggin manager
2- Find pluggin "vBadvanced and Global Quote Stuff" under Product : QuoteIt!, click edit
3- Replace entire content like this:
if (THIS_SCRIPT != 'view')
{
if (defined('VBA_PORTAL') OR defined('QUOTEIT_GLOBAL')) {
$headinclude =& $vbulletin->templatecache['headinclude'];
}
if (defined('QUOTEIT_GLOBAL')) {
$showrandomquote = get_random_quote();
}
}
This should fix your problem. (alternatively you can uninstall either product)
@brookemegg : I've already fixed yours.
brookemegg
07-16-2008, 03:36 PM
Awesome, awesome, awesome!!! Thank you so much Logician, I truly appreciate this. Thank you thank you, thank you!!!
Logician
07-16-2008, 04:54 PM
This is hurting my head...
How would I query a table and count the # of rows?
I know it's:
SELECT COUNT(*) FROM accounts;
But, could you please create and export a simple one really quick? Thanks. :)
Advanced Query : no
Query : SELECT COUNT(*) as count FROM accounts
Result row: We have $WQfield[count] records.
nothing4me
07-16-2008, 05:02 PM
Is there any way to make $WQ_ variables forum global? :(
(Like, be able to use it in VBulletin templates in areas such as the header or footer.)
Edit: Thanks for answering my other question, but I found it and deleted the post before you replied. :(
Logician
07-16-2008, 05:14 PM
Is there any way to make $WQ_ variables forum global? :(
(Like, be able to use it in VBulletin templates in areas such as the header or footer.)
Edit: Thanks for answering my other question, but I found it and deleted the post before you replied. :(
You can't do it with webtemplates.
However adding such a code in a hook like "global_setup_complete" as a vb pluggin can help:
$myspecialcode = $db->query_first("SELECT COUNT(*) as count FROM accounts");
Now you can use $myspecialcode[count] variable in many templates in the entire vb.
nothing4me
07-16-2008, 05:30 PM
You can't do it with webtemplates.
However adding such a code in a hook like "global_setup_complete" as a vb pluggin can help:
$myspecialcode = $db->query_first("SELECT COUNT(*) as count FROM accounts");
Now you can use $myspecialcode[count] variable in many templates in the entire vb.I could also use that on your product too if I do it like that, right?
Logician
07-16-2008, 06:56 PM
I could also use that on your product too if I do it like that, right?
Yes you can
nothing4me
07-16-2008, 07:20 PM
Yes you canWould it be possible for you to quickly reply to my thread here: https://vborg.vbsupport.ru/showthread.php?t=185517 ?
Thanks! :)
Deepdog009
07-17-2008, 03:04 AM
Logician this mod is Super Beauts... {1} Question??? .......>>>3.7 ???<<<
markp_2000
07-20-2008, 04:09 AM
I was trying to use the php include portion of a page and use define.
define(THIS_SCRIPT_WEBTEMPLATES,"My Page");
but I can't get it to be defined.
Mark
Logician
07-28-2008, 12:22 PM
Would it be possible for you to quickly reply to my thread here: https://vborg.vbsupport.ru/showthread.php?t=185517 (https://vborg.vbsupport.ru/showthread.php?t=185517) ?
@nothing4me : I get no permission error in that url, I guess it is deleted.
Logician this mod is Super Beauts... {1} Question??? .......>>>3.7 ???<<<
@Deepdog009 : Yes. Please read first post of the thread.
I was trying to use the php include portion of a page and use define.
Code:
define(THIS_SCRIPT_WEBTEMPLATES,"My Page");
but I can't get it to be defined.
@markp_2000 : WT pages are already defined in view.php as:
define('THIS_SCRIPT', 'view');
So to make checks if you are in WT, you can use template conditionals like:
<if condition="THIS_SCRIPT == view">
we are in wt
</if>
and php conditionals like:
if (THIS_SCRIPT == view)
{
//we are in wt
}
Logician
07-29-2008, 02:42 PM
I have released a version solely for vb 3.7.x. Please find it here:
https://vborg.vbsupport.ru/showthread.php?t=186644 (https://vborg.vbsupport.ru/showthread.php?t=186644)
Some useful info for this new version:
What's New in WebTemplate 3.7.x Version
https://vborg.vbsupport.ru/showpost.php?p=1586684&postcount=4
How to Upgrade to Webtemplates 3.7.x from WebTemplates 3.5.x/3.6.x version:
https://vborg.vbsupport.ru/showpost.php?p=1586685&postcount=5
Brandon Sheley
07-30-2008, 03:18 AM
I have released a version solely for vb 3.7.x. Please find it here:
https://vborg.vbsupport.ru/showthread.php?t=186644 (https://vborg.vbsupport.ru/showthread.php?t=186644)
Some useful info for this new version:
What's New in WebTemplate 3.7.x Version
https://vborg.vbsupport.ru/showpost.php?p=1586684&postcount=4
How to Upgrade to Webtemplates 3.7.x from WebTemplates 3.5.x/3.6.x version:
https://vborg.vbsupport.ru/showpost.php?p=1586685&postcount=5
Awesome!
thanks for the update Logician :)
I just installed it. Looks great. Now it's time to play with it and see how it goes.
Thank you for this, Logician! :)
Welshy2008
08-27-2008, 07:03 PM
Hi Guys,
I have been installing this and have got as far as Step 3. The problems that I have hit are:
Under my Includes file, there were no "Cron and XML files. So I have added one of each as "New Folders" and added the relevent files within them.
I uploaded the Correct .XML file to the add-Import Product Manager, logged out - shut the window - reopened it and there is NO "Logician's WebTemplates" in the left hand menu.
Could someone tell me what has gone wrong Please?
I am running 3.6.8 Patch Level 2
Logician
08-27-2008, 08:00 PM
Under my Includes file, there were no "Cron and XML files.
This is impossible because /includes/cron and /includes/xml are default folders of vbulletin and vb can not be installed (nor run) without these folders. You are obviously inside a wrong "/includes/" folder. Make sure you are in /your_forum_folder/includes/
Welshy2008
08-28-2008, 02:08 PM
Logician,
Thank you for you impressive resonse and reply. (the first time it has happened for me).
I put them in the same route that I have placed on my other add-ons, Mods and hacks etc.
When I look at vB AdminCP -> Plugins & Products -> Manage Products. There is a "Logician's WebTemplates 3.5.0.05 "
If I goto AdminCP -> Styles & Templates -> Style Manager -> Edit Templates -> I can see 6 Web Templates:
Web Templates_AdminPanel
Web Templates_Editors_EditPage
Web Templates_LoginCode
Web Templates_NowBrowsing
Web Templates_VisitorLogMain
Web Templates_VisitorLogMain_Row
I will Un-Install it all now and try again under a different route now. :(
Welshy2008
08-28-2008, 02:36 PM
I have re-done it and it showed in my AdminCP.
Done everything to to letter.
Works great. How would I go abouts taking (your) rights for the bottom of it Please? Can you PM me with regard to this please? Cost etc.
Regards,
Welshy2008
Welshy2008
08-28-2008, 10:38 PM
Thank You very much for this and the support that you have given.
I have Nominated this and sent a donation.
Regards,
Welshy2008.
I haven't seen it talked about, maybe I missed it. Is there anyway to get these pages included in the vbulletin search?
Logician
08-31-2008, 05:35 PM
I haven't seen it talked about, maybe I missed it. Is there anyway to get these pages included in the vbulletin search?
Webtemplate Post-Installation FAQ item 10
Webtemplate Post-Installation FAQ item 10
Thanks. Is there any plans on adding this as a feature in the future?
Logican - this is a great hack!
I saw that you helped another forum member with their site. I am trying to create a sidebar with the latest posts, the latest threads and the latest members which shows up on on my forum all the time. How can this be done?
Logician
09-01-2008, 02:23 PM
Logican - this is a great hack!
I saw that you helped another forum member with their site. I am trying to create a sidebar with the latest posts, the latest threads and the latest members which shows up on on my forum all the time. How can this be done?
Actually what you wanted is not very relevant to this hack. You can do what you want with your webtemplate for "your other pages" but if you want this information in your forum pages, you need to use another hack for this as webtemplate can not do it. ;)
Actually what you wanted is not very relevant to this hack. You can do what you want with your webtemplate for "your other pages" but if you want this information in your forum pages, you need to use another hack for this as webtemplate can not do it. ;)
Thanks for the information - can you recommend a good hack to use?
Also, in webtemplate, how can I do the following things:
1) Move the Currently Active Users Down from the top to the bottom of the page on each template?
2) Move the Stats part of the Two Column template to the right hand side?
Thanks
Fireproof
09-05-2008, 02:23 PM
Logician (or others),
Do you have a good template to use for a NEWSLETTER that I could start with and customize for my purposes?
I'm not good at creating brand-new templates from scratch, but am good with tweaking something already created.
Thanks in advance.
viper357
10-17-2008, 06:25 PM
Hi Logician, I was running 3.5.0.2 on vb 3.6.11
I attempted an upgrade to 3.6.0.3, I followed all of the instructions and then when I went to run the upgrade script I got this error when clicking on the button to Export the old webtemplates page.
Database error in vBulletin 3.6.11:
Invalid SQL:
SELECT wtid, title
FROM wt2_templates
WHERE headerfooter = '0'
ORDER BY category DESC,
title ASC;
MySQL Error : Table '*******.wt2_templates' doesn't exist
Error Number : 1146
Date : Friday, October 17th 2008 @ 10:18:25 PM
Script : http://**********/wt_upgrade.php?do=start
Referrer : http://**********/wt_upgrade.php
IP Address : *******
Username : *******
Classname : vB_Database
However I have tested all of my webtemplates and they all seem to be working fine, is it really necessary to go through the upgrade/export process?
Logician
10-18-2008, 07:51 AM
Hi Logician, I was running 3.5.0.2 on vb 3.6.11
I attempted an upgrade to 3.6.0.3, I followed all of the instructions and then when I went to run the upgrade script I got this error when clicking on the button to Export the old webtemplates page.
Database error in vBulletin 3.6.11:
Invalid SQL:
SELECT wtid, title
FROM wt2_templates
WHERE headerfooter = '0'
ORDER BY category DESC,
title ASC;
MySQL Error : Table '*******.wt2_templates' doesn't exist
Error Number : 1146
Date : Friday, October 17th 2008 @ 10:18:25 PM
Script : http://**********/wt_upgrade.php?do=start
Referrer : http://**********/wt_upgrade.php
IP Address : *******
Username : *******
Classname : vB_Database
However I have tested all of my webtemplates and they all seem to be working fine, is it really necessary to go through the upgrade/export process?
I guess you ran "wt_upgrade.php"? You don't need to do that because that script is for 3.0.x -> 3.5.x upgrades. Since your previous version is not 3.0.x, you don't need to run this script. Your upgrade is already completed.
viper357
10-18-2008, 08:08 AM
Thanks :D
TheLastSuperman
10-18-2008, 11:46 PM
Wonderful!!!! Thanks!!
wacnstac
11-22-2008, 03:53 PM
This looks like an interesting hack to get a CMS. I have a large VB forum but have about 250 disjoint hand designed HMTL pages right now. Can someone post some URL of more examples of webmasters who have made the transition from something like I have to WebTemplates?
www.michigan-sportsman.com
rolandogomez
11-22-2008, 04:49 PM
Check out what I did with http://www.garageglamour.com in the photo tips section (http://www.garageglamour.com/forums/view.php?pg=phototips). I have a few more pages to go down at the bottom links, but almost done. Basically I took my html pages, copied everything in the html file except the body, head, meta tags, in other words, everything within the table, div or span tags, then created the page. You will have a new URL, so you'll have to update the links...works like a charm. I also paid the OP some money via PayPal to go brand free, fyi...rg sends!
wacnstac
11-22-2008, 05:53 PM
Check out what I did with http://www.garageglamour.com in the photo tips section (http://www.garageglamour.com/forums/view.php?pg=phototips). I have a few more pages to go down at the bottom links, but almost done. Basically I took my html pages, copied everything in the html file except the body, head, meta tags, in other words, everything within the table, div or span tags, then created the page. You will have a new URL, so you'll have to update the links...works like a charm. I also paid the OP some money via PayPal to go brand free, fyi...rg sends!
What drives your homepage?..... vbadvanced?
viper357
11-25-2008, 07:40 AM
Logician, please help ;)
I am trying to make a page that is editable by certain users, I see you say that the page must be made in TEXT and not html etc. That is fine and I have done that but no matter what I do I can not find an Edit link anywhere on the page, I have used the webtemplate footer and added the usergroup admin as editors but still nothing. Where is this edit link supposed to be?
Thanks
Logician
11-25-2008, 09:59 AM
Logician, please help ;)
I am trying to make a page that is editable by certain users, I see you say that the page must be made in TEXT and not html etc. That is fine and I have done that but no matter what I do I can not find an Edit link anywhere on the page, I have used the webtemplate footer and added the usergroup admin as editors but still nothing. Where is this edit link supposed to be?
Thanks
If you are using one of the default themes, it should pop up automatically. If you don't, you can always add $WT_Editor_link to your custom design to make it appear.
viper357
11-25-2008, 11:04 AM
If you are using one of the default themes, it should pop up automatically. If you don't, you can always add $WT_Editor_link to your custom design to make it appear.
Thank you, I used the $WT_Editor_link and now it's working perfectly.
Another question if I may:
Is there any easy way of copying a post on the forum into a text template without losing all the bbcode formatting like Bold, Italic etc. As it is now, if I copy and paste a post into the template it loses all the formatting. I am currently using an offline bbcode editor that shows all the bbcode and then pasting that into the template, but it's a long tedious task as I have to basically type out the whole post if there is formatting in it.
Thanks.
Logician
11-25-2008, 01:55 PM
Thank you, I used the $WT_Editor_link and now it's working perfectly.
Another question if I may:
Is there any easy way of copying a post on the forum into a text template without losing all the bbcode formatting like Bold, Italic etc. As it is now, if I copy and paste a post into the template it loses all the formatting. I am currently using an offline bbcode editor that shows all the bbcode and then pasting that into the template, but it's a long tedious task as I have to basically type out the whole post if there is formatting in it.
Thanks.
If you turn on WYSIWYG editor of the vbulletin in your vb options (and also enable it in your user cp options), it can keep the formatting in your pastes as it is usually capable of processing such data well.
When WYSIWYG is on, Webtemplates can also use it.
john h
01-10-2009, 09:12 AM
Is there a way to only display the page visits stats at the bottom of the page to certain usergroups?
i.e. this bit
Page Visitors: 9, Last Visitor was Guest at Today - 10:44 AM.
Page Created at Yesterday - 03:02 PM, Last Modified : Today - 10:45 AM.
Logician
01-10-2009, 09:34 AM
Is there a way to only display the page visits stats at the bottom of the page to certain usergroups?
i.e. this bit
Page Visitors: 9, Last Visitor was Guest at Today - 10:44 AM.
Page Created at Yesterday - 03:02 PM, Last Modified : Today - 10:45 AM.
By default only admins see it. If you want to display to others, you can edit theme webtemplate (eg. default basic theme), find this section:
<if condition="$bbuserinfo[usergroupid]==6">
<tr>
<td class="thead" align="left">Page
Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname]
at $WT[lastvisitdate]. $WT_Editor_link<br>
Page Created at <b>$creationdate</b>, Last Modified
: <b>$lasteditdate</b>.</td>
</tr>
</if>
and change if condition.
Eg.
<if condition="$bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==7 ">
(all staff can see it)
john h
01-10-2009, 08:10 PM
Excellent. I was using a modified copy of the two column theme where it didn't have the "if" condition around that part. All good now :)
bashy
03-01-2009, 08:42 AM
Hi folks
I would like to show one usergroup ID: 26, whats the best way to include the usergroup
on a page please?
Logician
03-01-2009, 09:51 AM
Hi folks
I would like to show one usergroup ID: 26, whats the best way to include the usergroup
on a page please?
Tick all usergroups but 26 in "Disallowed Usergroups" of this webtemplate.
bashy
03-01-2009, 10:03 AM
Hi Logican
Sorry, i should have explained a little better
Basically what i would like to do is create a list of all the members in one usergroup
namely ID: 26 and show it to all members so that members can check to
see if there name is on the list... Pretty much the same as the Showgroups works
but just want one usergroup on this specific page
Problemsolver
03-28-2009, 06:26 PM
Really nice work but I got 2 questions.
1: How do I disable " Currently Active Users Viewing this Page: 2 (2 members and 0 guests) "?
2: How can I change the background if I create a new template? It uses a forum colour but not in a very nice way :).
http://www.bonusforum.se/view.php?pg=test
Problemsolver
04-26-2009, 03:33 PM
Superawesome!
I just wonder if it is possible to remove the text below or at least translate it? Cannot find it in phrases.
Page Visitors: 5, Last Visitor was Guest at Idag - 18:25.
Page Created at 2009-03-28 - 08:16, Last Modified : Idag - 18:30.
Logician
04-26-2009, 03:43 PM
Superawesome!
I just wonder if it is possible to remove the text below or at least translate it? Cannot find it in phrases.
Page Visitors: 5, Last Visitor was Guest at Idag - 18:25.
Page Created at 2009-03-28 - 08:16, Last Modified : Idag - 18:30.
You can remove the text inside theme webtemplate you are using.
Problemsolver
04-26-2009, 05:15 PM
You can remove the text inside theme webtemplate you are using.
Cool!
Thanks! But how do I translate "Never"?
It now says
[Last update in swedish]: Never
Logician
04-26-2009, 05:45 PM
Cool!
Thanks! But how do I translate "Never"?
It now says
[Last update in swedish]: Never
Term "Never" is taken from vb phrase named "never". I guess it was in global phrases
webgroup
06-11-2009, 07:01 AM
Please do not remove the footer copyright. This is a free hack so what's the harm if it has a small tagline in the footer? It helps me keep stats of websites using the hack.
Excellent product!! :)
I have been breaking my head looking how to remove the footer copyrights.
I removed everything and still showing the copyright messages.
Any help?
I'm talking about the vbulletin copyrights.:)
I paid to remove the copyright, and its already removed from all my forum, but somehow its appearing and all the logician's templates pages.
I want to remove the vbulletin copyrights, not yours.
Please help
Hi Logician, about 3 years ago you send me a PM explaining how to remove the copyright notice. Today I upgrade to v. 3.8.2, the product still working great without having to upgrade it, but again, the copyright notice is appearing on the footer.
I dont know how, as I dont remember how to remove it, so I dont know how it got back there by just upgrading the vbulletin version.
Anyway, could you please send me a PM and explain me again how to remove it?
Thanks!!
Shanj
01-09-2010, 04:58 PM
Dear Logician I have been using your template mod very happily for 2 years just with usergroups permissions.
Didn't even REALISE I could make it per individual - though would be easier to select the names who CAN view rather than list all the rest who cannot.
Wonderful though.
I want to now make different personalised pages when my users login.
Anyone got any idea how to force login to go to one of these pages as set by usergroup or even individual?
If it was one page it would be simple but I'm going to have around 30 different ones.
David Rose
11-10-2010, 06:03 PM
Hi, after installing I see the following parse error on top of every page that was generated with webtemplates:
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: forumdisplay_loggedinuser in [path]/includes/functions.php on line 3893
Parse error: syntax error, unexpected T_STRING in /traveltoforum/view.php(337) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: WebTemplates_NowBrowsing in [path]/includes/functions.php on line 3893
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: WebTemplates_LoginCode in [path]/includes/functions.php on line 3893
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: WebTemplates_AdminPanel in [path]/includes/functions.php on line 3893
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: headinclude in [path]/includes/functions.php on line 3893
Parse error: syntax error, unexpected T_STRING in /traveltoforum/view.php(901) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: header in [path]/includes/functions.php on line 3893
Parse error: syntax error, unexpected T_STRING in /traveltoforum/view.php(907) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: footer in [path]/includes/functions.php on line 3893
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: footer in [path]/includes/functions.php on line 3893
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /traveltoforum/view.php(914) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3893
Parse error: syntax error, unexpected T_STRING in /traveltoforum/view.php(960) : eval()'d code on line 1
here's a link to a live message:
http://traveltoforum.com/view.php?pg=test
Any idea how to fix it? I saw a similar error with quoteit! hack but I don't have it installed at all.
Thanks!!
Logician
11-10-2010, 07:30 PM
Hi, after installing I see the following parse error on top of every page that was generated with webtemplates
This is for vb3.5.x version and you installed it into a vb.4.x board. Please uninstall it and install WebTemplates 4.x here:
https://vborg.vbsupport.ru/showthread.php?t=250202
David Rose
11-10-2010, 11:58 PM
My bad:) - thanks a lot!!!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.