View Full Version : WebTemplates 3.5.x: VB Integrated CMS (Content Management System)
Clayton
04-06-2006, 04:51 PM
great stuff Logican
are you available for Bar mitzvahs :)
more seriously .. are you ever available for custom work or is that best suited to ask in PM
Thanks
C
Logician
04-06-2006, 04:57 PM
great stuff Logican
are you available for Bar mitzvahs :)
more seriously .. are you ever available for custom work or is that best suited to ask in PM
Thanks
C
I'm sorry, I'm not available for custom work.
Clayton
04-06-2006, 04:59 PM
appreciated Logican
geezmo
04-10-2006, 05:37 AM
I've got this installed in the forum but I'm interested to know if I can use it as an article system because I like its clean, simple template. Right now, what I have in mind as to how to add articles is to manually create a page for EACH article but I'm thinking this is too complicated and if I have hundreds of articles, it will be too messy to have several hundreds of webtemplates page too.
Is there a way to simplify this, to have a simple articles system using WebTemplates? I heard this and GARS Lite can be combined and customized, but I don't know exactly how to do it. Can anyone help? Thanks.
thalamus
04-11-2006, 06:23 PM
I've got to say that this is an awesome tool - Logician, you truly are the master vB hack guru :) *clicks install*
:banana:
ChrisBaktis
04-13-2006, 03:32 PM
certain admins cant access the webtemplates page...says they do not have permission...what permission do i need to set for them to be able to edit pages? They can see the WebTemplates link - when it is pressed says they dont have permission.
arob42
04-15-2006, 05:53 AM
I have a user with with the name <<<username>>>. When I add his name to the Editor Usernames box, I get the response below:
Apparently there is no user named <<>>!
Is there an easy fix for this or should I convince my user to change his name.
Thanks!
dilbert
04-17-2006, 12:04 AM
In PHP parsing, themes are off.
Is there a way to alter this?
I do not understand any php coding, but I am fair with cold fusion. I created a test cold fusion page and included it in a test template and it called the page and performed the cold fusion function. :)
I don't have any of the other info though, the header, footer, theme...
I'd love to be able to add this too, that would solve a lot of my troubles with integrating my site.
Any suggestions (aside from learning php:rolleyes:)?
Thanks, Cliff
msimonds
04-17-2006, 07:44 PM
Logician,
I have spent many hours working on your great modification for VB. I woulud like to report a bug and I have found within this thread.
You seem to have a permissions issue when an admin edits the template and ads a username to allow that user to edit the page:
FIREFOX: http://www.sportsrant.com/forums/editors.php?do=edit&pg=ad_template
user/pass test/test
I either get a blank page or a no permissions issue. The username is entered into the admincp to allow the page to be "edited by"
Internet Explorer:
Same permission error, but there is also a javascript error when the submit button is clicked.
Can you please look into this
msimonds
04-17-2006, 07:49 PM
It also does not allow admins, even myself, to edit the page
I thought that there maybe some sort modification error with vb pager, but I removed it and it is still broken
Thanks
Mike
Sportsrant.com
Logician
04-20-2006, 06:41 AM
certain admins cant access the webtemplates page...says they do not have permission...what permission do i need to set for them to be able to edit pages? They can see the WebTemplates link - when it is pressed says they dont have permission.
It is "can admin styles" permission
Logician
04-20-2006, 06:49 AM
Logician,
I have spent many hours working on your great modification for VB. I woulud like to report a bug and I have found within this thread.
You seem to have a permissions issue when an admin edits the template and ads a username to allow that user to edit the page:
FIREFOX: http://www.sportsrant.com/forums/editors.php?do=edit&pg=ad_template
user/pass test/test
I either get a blank page or a no permissions issue. The username is entered into the admincp to allow the page to be "edited by"
Internet Explorer:
Same permission error, but there is also a javascript error when the submit button is clicked.
Can you please look into this
When I login as "test" I can't see that page either. So it is that view permission that is stoping him to edit that page. If you allow him to view the page first, it should work ok. (I don't know what prevent him to view the page, it can be that his usergroup is banned from webtemplate, or webtemplate is a draft or his username is banned etc.)
msimonds
04-20-2006, 09:28 AM
When I login as "test" I can't see that page either. So it is that view permission that is stoping him to edit that page. If you allow him to view the page first, it should work ok. (I don't know what prevent him to view the page, it can be that his usergroup is banned from webtemplate, or webtemplate is a draft or his username is banned etc.)
These are the settings on the page for test 1:
Draft: No
Disallowed Usergroups: none checked
Disallowed usernames: None entered
Editor usergroups: None checked
Editor Usernames: test; mike
Now you can view the page and even edit it, but when you click on submit as test, it states:
These are the settings on the page for test 2:
Draft: No
Disallowed Usergroups: none checked
Disallowed usernames: None entered
Editor usergroups: Regular members and Administrators:
Editor Usernames: test; mike
same result!!!
test, you do not have permission to access this page. This could be due to one of several reasons:
Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
this happens as either Mike (me as an admin) or test!!
I thought it was maybe a conflict with another modification but I installed a board from scratch and then installed this modification and it still happened. Something with the function permissions is messing that up
Is there any chance that you can look into this, I would gladly donate to get this resolved. This modification is great man, and this could become a great advertisement tool for future clients. I have 3 so far that are interested in doing this, if they can edit their own page
msimonds
04-20-2006, 11:18 AM
Could it possible be something not with the permissions in the scripts, but maybe the permissions issue or something to do with the form in the template:
WebTemplates_Editors_EditPage
msimonds
04-20-2006, 02:41 PM
Sir,
a friend of mine, who is the orginal developer of my custom CMS, Natch (https://vborg.vbsupport.ru/member.php?u=24138) was kind enough to come and look at the errors that were being created.
He was able to get past the .js error by editing the template: WebTemplates_Editors_EditPage
He added the following code to the top of the template:
<if condition="$show['wysiwyg']">
<script type="text/javascript" src="clientscript/vbulletin_wysiwyg.js"></script>
<if condition="$show['mozilla_js']">
<script type="text/javascript" src="clientscript/vbulletin_moziwyg.js"></script>
</if>
<else />
<script type="text/javascript" src="clientscript/vbulletin_stdedit.js"></script>
</if>
attached it the full, corrected, edited template
However there is still a permissions issue with the same tests as before!!
I hope this helps and maybe you could look into the permissions issue for us sir. I would truly appreciate it!
Thanks to Natch for correcting this!!! :banana: :banana:
*****These changes were only tested for vb 3.5.4*****
msimonds
04-21-2006, 03:56 PM
after doing some more internal investigations. Your template system is not erroring. I re-installed it once again on a clean, unhacked version of VB 3.5.4 and it works as designed.
I do believe that however it is conflicting with some other hacks and their permissions!
Sorry for pointing the finger and jumping the gun!!
Mike
robert_2004
04-26-2006, 05:01 PM
i'll install this tomorrow or the next day, and have a look at it - see what i can do to help.
in the mean time, try installing the "vB plugin order" mod. it will allow you to choose when this webtemplates plugin should be executed at the hook location.
https://vborg.vbsupport.ru/showthread.php?t=111679
arossphoto
04-26-2006, 09:13 PM
I've read the manual and searched this topic, but I'm still confused about using php includes. I have a dynamic php file created with dreamweaver that pulls info about members from the database and I want to display that in the body of a template.
I've tried putting the include in the "PHP Include" field and the "Template" field, but neither works. The Parse Method is set to php. How can I do this?
Thanks.
Oh, meant to mention that when I place the include in the Template field it displays the file, but not the header and footer. Even though I've selected to use the Default Template, header and footer.
Spinball
04-27-2006, 07:44 PM
Hello guys,
I use webtemplates for various pages including our podcast page which dynamically displays the number of downloads. It's excellent.
I need to do something which I can imagine many people might want to do.
I have my forums and we publish DVD reviews in a specific forum there.
I want to present the reviews in a nicer way, with more powerful search tools, integrating DVD specifications, screen captures, news etc which I can't do on the forums.
So I have developed a separate website avplay.com to be launched soon.
When a review is published, we will create a thread on our forums for discussion of the review.
Below the review I want to display that thread with login & register options for people who aren't members of our forums, yet. Plus reply options for people who are.
Is this possible with webtemplates? I susepct it is. More to the point has someone already done it who can help with examples?
Many thanks in advance.
Trana
04-29-2006, 01:39 AM
Hello guys,
I use webtemplates for various pages including our podcast page which dynamically displays the number of downloads. It's excellent.
I need to do something which I can imagine many people might want to do.
I have my forums and we publish DVD reviews in a specific forum there.
I want to present the reviews in a nicer way, with more powerful search tools, integrating DVD specifications, screen captures, news etc which I can't do on the forums.
So I have developed a separate website avplay.com to be launched soon.
When a review is published, we will create a thread on our forums for discussion of the review.
Below the review I want to display that thread with login & register options for people who aren't members of our forums, yet. Plus reply options for people who are.
Is this possible with webtemplates? I susepct it is. More to the point has someone already done it who can help with examples?
Many thanks in advance.
Webtemplates is a GREAT HACK, but it sounds like you want something more like GARS which has all of these features already. I use both Webtemplates and GARS since they really do two fairly different things. WT is perfect for static pages, a way to hook in php bits, html files, etc. GARS is better for a review or article system if you want people to be able to create and edit content without the admincp.
Either way, both of these systems are essential, great support too!
Nick0r
04-30-2006, 03:15 PM
I'm getting errors with editors.php - whenever I (or an assigned editor, non-admin) goes to edit one of the pages, they can view the HTML code and can make the appropriate change but as soon as they press update they go to editors.php and receive a no permission error.
CSS59
04-30-2006, 11:04 PM
does this hack have a search function?
Nick0r
05-03-2006, 11:27 AM
Logician, any ideas?
msimonds
05-03-2006, 03:02 PM
I'm getting errors with editors.php - whenever I (or an assigned editor, non-admin) goes to edit one of the pages, they can view the HTML code and can make the appropriate change but as soon as they press update they go to editors.php and receive a no permission error.
This is an ongoing error and Logician seems to busy to look into it!
msimonds
05-04-2006, 11:54 AM
Logician, any ideas?
NickOr - My thoughts make me believe that this permissions issue has to do with some other hack or modification that is conflicting with the permissions...
What hacks/mods do you have installed? I really think that it has to do with that. I have done and spend many hours (literelly) working on the permissions issue and I am sure that is it!! I know this because if you install a fresh un-modded copy of VB and then only install this mod, the page editor works just fine
Nick0r
05-04-2006, 11:57 AM
Let me paste...
vBulletin 3.5.1
Admin Permission Override 1.0.3 This Hack allows you to disable/lock Users Signatures, Custom Avatars, Profile Pictures, Custom Usertitles, Private Messages and the whole Profile.
Automatic Welcome PM 1.0.4 This Hack will automatically send welcome PMs to new members.
Commbull 3.5d Community bulletin email add on
HELLCATs Realtime Page Compressor 1.24 Compresses every outputted page by stripping whitespace, linebreaks and HTML comments
Latest Threads on Forum Home 1.1.2 This product will show the Latest Threads posted (using permissions) on your forumhome
Logician's WebTemplates 3.5.0.05 Logician's WebTemplates Hack
Mini Navbar 1.0.1 Places a breadcrumb from the navbar on the bottom of a thread
Multiple Login Detector 1.01 Cookie-based multiple account login detector
No Links or Images Allowed for People with Fewer t 1.1 Throws an error message for spammers.
phpAdsNew Integration 1.0.3 Integrates phpAdsNew into the template system
Registration Goal for Google Analytics 1.0.1 Beta 2 Allows you to track your registrations as a goal within Google Analytics.
Security Fix for Issue in vBulletin 3.5.3 1.0 This fixes a security issue in vBulletin 3.5.3 and below.
Spam Decimator 1.0.5 Spam Killing Extension
v3 Arcade 1.0.2 A multiplayer gaming system for your vBulletin forum.
vBSEO :: Sitemap Generator 1.3 Generate a Google & Yahoo Sitemap for your Forums
vBulletin 3.5.2 Online Calendar XSS 1.0
Welcome Headers 4.0.6 Boost registration and activity rates with more visible custom welcome messages.
msimonds
05-04-2006, 12:18 PM
hmmm let me get a list of mine and try and compare
msimonds
05-04-2006, 12:23 PM
? vBulletin 3.5.4
? Article Bot 2.70 Parse RSS Feed data and insert it as threads in your forum.
? Easy Template Update 1.0.0
? Feature Threads Hack 1.0.0 Feature en unfeature threads by seba
? Logician's WebTemplates 3.5.0.05 Logician's WebTemplates Hack
? PhotoPlog 2.0.3 PhotoPlog:
? The Lite GalleryRant CMS 1.0.1 Total CMS system
Right Column 1.0 Put a column on the right side of every page
? vBPool 3.5.0 This hack will add a Sports Pool to your website.
? vBSEO 2.4.5 vBulletin SEO
msimonds
05-04-2006, 12:25 PM
I will check into this more, I believe it is something simple!!
Nick0r
05-04-2006, 03:15 PM
I hope we can find a fix, I really want to use this system on my site.
Nick0r
05-09-2006, 07:18 PM
Any ideas anyone? logician?
Makaveli105
05-09-2006, 10:30 PM
Awesome hack, I have 2 questions though!
1. I have created my own footer, and have assigned my HTML page to it, and put $footer in my HTML, but it shows my default forum footer, instead of the custom one I created for these pages.
2. Is there a way to force a certain style to the custom pages?
Thanks :D
Logician
05-10-2006, 01:18 PM
I'm getting errors with editors.php - whenever I (or an assigned editor, non-admin) goes to edit one of the pages, they can view the HTML code and can make the appropriate change but as soon as they press update they go to editors.php and receive a no permission error.
This is not something I can confirm when I test it in my enviroment. It sounds like you have a clashing hack issue. I appreciate if you can check if there is a clash with another hack. Please turn off all other hacks, let only webtemplates installed and test it out if this still happens. If this fixes, then you can enable other pluggins one by one until you find the culprit.
Nick0r
05-10-2006, 01:33 PM
Logician, just done that with every plugin + product and it still didn't work. Could it be because I run 3.5.1? That's the best I can think of to be honest.
Or because I never un-installed/removed the old version of webtemplates before I upgraded from 3.0.x?
Nick0r
05-10-2006, 03:39 PM
Ah ha, template revert = fixed. Cheers all.
Keyser520
05-10-2006, 06:32 PM
What would you recommend using to create a home page that can integrate with all this other stuff?
Logician
05-11-2006, 09:07 AM
1. I have created my own footer, and have assigned my HTML page to it, and put $footer in my HTML, but it shows my default forum footer, instead of the custom one I created for these pages.
you created your footer as a "webtemplate footer", not a regular footer template right? Also you made sure you set your webtemplate to use that footer in edit webtemplate page?
Shaliza
05-12-2006, 10:40 AM
So, if one doesn't want to use any of a template's layout, they don't have to? They can use their own layout with the only vB-related thing being the link & of course the code?
Also, does it have pagination & a feature where people can make comments? The comments thing isn't really a big deal, as I can just make posts for that if there isn't one.
Logician
05-12-2006, 01:46 PM
So, if one doesn't want to use any of a template's layout, they don't have to? They can use their own layout with the only vB-related thing being the link & of course the code?
yes
Also, does it have pagination & a feature where people can make comments? The comments thing isn't really a big deal, as I can just make posts for that if there isn't one.
no
Keyser520
05-12-2006, 01:53 PM
What would you recommend using to create a home page that can integrate with all this other stuff?
Logician
05-12-2006, 05:01 PM
What would you recommend using to create a home page that can integrate with all this other stuff?
Maybe you can use vbadvanced which is a good hack. Or check my FAQ about using webtemplates as site main page.
Shaliza
05-13-2006, 09:18 AM
Good to know. I think I'll just use this instead of integrating a CMS.
-=Sniper=-
05-25-2006, 12:35 PM
very cool hack man, just made this here
http://www.hardwareforums.com/view.php?pg=reviews
bada_bing
05-25-2006, 02:22 PM
Hey Everyone this is a great hack.. Can we you all share what you are using this for and the code? I would like to get more use for this hack and would like to see what everyone else is doing?
Kihon Kata
05-27-2006, 01:59 PM
Hey Logician, I noticed that there was a spot to upload(import) templates via xmls. Is there a list of posted .xmls for templates avail anywhere?
Logician
05-27-2006, 02:06 PM
Hey Logician, I noticed that there was a spot to upload(import) templates via xmls. Is there a list of posted .xmls for templates avail anywhere?
I designed that structure so that people can share their webtemplate/webqueries with eachother easily. So it would make sense only if hack users post their own webtemplate designs. However unfortunately people don't use it.
Kihon Kata
05-27-2006, 02:19 PM
Thanks for the quick reply. Oh, that sux. This is such a powerful hack and no one shares eh? darn
msimonds
05-30-2006, 12:27 PM
Ah ha, template revert = fixed. Cheers all.
NickOr - which template was it man
Could someone help me with a web query?
I created a new profile field that asks a question (field8) and I need to see all the answers to that question on one page sorted by usergroup (usergroupid: 10)
Tim Skellett
05-31-2006, 09:23 AM
I designed that structure so that people can share their webtemplate/webqueries with eachother easily. So it would make sense only if hack users post their own webtemplate designs. However unfortunately people don't use it.
First off, many thanks indeed for the hack!
Second, I will be implementing sa project soon within it, and when I have it all finished, I will learn how to make the .xml then post it in a new thread here, so your feature of sharing .xml's will get some input at last.
Logician
05-31-2006, 01:12 PM
Could someone help me with a web query?
I created a new profile field that asks a question (field8) and I need to see all the answers to that question on one page sorted by usergroup (usergroupid: 10)
SELECT f.field8, u.username, u.usergroupid, u.userid
FROM user u
LEFT JOIN userfield f ON u.userid = f.userid
WHERE usergroupid =10
Kihon Kata
05-31-2006, 01:27 PM
Yay, can't wait :banana:First off, many thanks indeed for the hack!
Second, I will be implementing sa project soon within it, and when I have it all finished, I will learn how to make the .xml then post it in a new thread here, so your feature of sharing .xml's will get some input at last.
SELECT f.field8, u.username, u.usergroupid, u.userid
FROM user u
LEFT JOIN userfield f ON u.userid = f.userid
WHERE usergroupid =10
Thanks! I put that in the Query box and in the Query Result Row area I put:
$WQfield[field8]
And in my webtemplate I put the call to that new webquery I created:
$WQ_newquery
But the field8 doesn't show up when I view the page. Any suggestions?
Logician
05-31-2006, 06:09 PM
Defined that webquery in that webtemplate? (Edit Webtemplate, mark "WebQueries Used in This Page")
Defined that webquery in that webtemplate? (Edit Webtemplate, mark "WebQueries Used in This Page"
Yep, the box next to that webquery is checked.
Was I supposed to edit the query code you posted in any way?
SELECT f.field8, u.username, u.usergroupid, u.userid
FROM user u
LEFT JOIN userfield f ON u.userid = f.userid
WHERE usergroupid =10
PanamaRed
06-01-2006, 12:38 AM
Cant get it to install.. "Logician's webtemplates" never shows in the ACP. I see Logician's webtemplate settings, under VB options, but there is no export/import option to it to complet the install. I reloaded cpnav_webtemplates also no luck there either..
PanamaRed
06-02-2006, 06:03 PM
Little bit of help anyone??
JohnBee
06-03-2006, 06:48 PM
I'm sorry if this has already been answered but I was not able to find it.
Is it possible to use webtemplates as a CMS and have it display pages?
for example if I want to compose a product review and it was 12 pages long
is there a way to use webtemplates to display page 1, 2 3 4 etc?
Logician
06-03-2006, 07:37 PM
I'm sorry if this has already been answered but I was not able to find it.
Is it possible to use webtemplates as a CMS and have it display pages?
for example if I want to compose a product review and it was 12 pages long
is there a way to use webtemplates to display page 1, 2 3 4 etc?
There is no automatic way, sorry! If you want to do it, you have to do it manually (ie split review into 12 different WTs and link eachother at the bottom of all).
Cant get it to install.. "Logician's webtemplates" never shows in the ACP. I see Logician's webtemplate settings, under VB options, but there is no export/import option to it to complet the install. I reloaded cpnav_webtemplates also no luck there either..
I didn't see this message before. Is it you who emailed me and I replied? If not, do you still need help?
PanamaRed
06-04-2006, 04:10 PM
I didn't see this message before. Is it you who emailed me and I replied? If not, do you still need help?
Yes I am the one that emailed, Still can't get it to work.. Deleted the whole thing re-downloaded and re-uploaded.. Loaded the file cpnav_webtemplates as ASCII.. Cant access the webtemplates ACP, If I try to go to it manualy I get this message:
Warning: main(./global.php): failed to open stream: No such file or directory in /data/10/0/30/39/845854/user/866665/htdocs/forum/upload/forum/admincp/wt_wt.php on line 31
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/services/vux/lib/php') in /data/10/0/30/39/845854/user/866665/htdocs/forum/upload/forum/admincp/wt_wt.php on line 31
PanamaRed
06-04-2006, 04:20 PM
I don't see this file under /includes/
require_once(DIR .'/includes/adminfunctions_template.php');
And this is line 31..
require_once('./global.php');
Logician
06-04-2006, 04:21 PM
Yes I am the one that emailed, Still can't get it to work.. Deleted the whole thing re-downloaded and re-uploaded.. Loaded the file cpnav_webtemplates as ASCII.. Cant access the webtemplates ACP, If I try to go to it manualy I get this message:
Warning: main(./global.php): failed to open stream: No such file or directory in /data/10/0/30/39/845854/user/866665/htdocs/forum/upload/forum/admincp/wt_wt.php on line 31
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/services/vux/lib/php') in /data/10/0/30/39/845854/user/866665/htdocs/forum/upload/forum/admincp/wt_wt.php on line 31
If you are sure you applied installation instructions correctly and determined to have the hack, PM me FTP access to your server and vb admin cp access and let me install it for you.
I'm positive there is nothing wrong with the hack.
Logician
06-04-2006, 04:23 PM
I don't see this file under /includes/
require_once(DIR .'/includes/adminfunctions_template.php');
And this is line 31..
require_once('./global.php');
Does your board load fine? That file (adminfunctions_template.php) is a part of default vbulletin installation. If you don't see it, there is definetely something wrong with your vb installation.
PanamaRed
06-04-2006, 07:45 PM
Never mind I got it.. I had uploded the forum folder as it's own folder, instead of unpacking it into the appropriate areas... Sorry I am new to this stuff..
Appriceate all of the help :)
Reeve of shinra
06-06-2006, 02:30 AM
I'm kind of curious - does anyone use this like a wiki?
Eagle Creek
06-06-2006, 06:28 PM
Wow great hack!
And does 'Who's Online' reconize the locations?
Logician
06-06-2006, 06:31 PM
Wow great hack!
And does 'Who's Online' reconize the locations?
yes it does
Eagle Creek
06-06-2006, 06:36 PM
Perfect!
Thx.
jeffj
06-07-2006, 06:59 PM
I have a question about this mod.
I am creating a new set of forums on my site and these forums will contain "articles" to which no one can reply. I want to have these "forum ids" contain a postbit that has a different look than my standard "threads and posts" since people cannot reply to these posts.
will this mod allow me to create custom pages to contain the content of these threads and posts (one post per thread).
thanks in advance.
Deepdog009
06-11-2006, 03:24 PM
How do I change the style in your hack?
I tried some stuff, but it aint working. I want to change the template style and background pic.:confused:
Kihon Kata
06-12-2006, 02:05 PM
Logician, Thanks for featuring one of my sites up on your release.
Hey, why would my CSS not working properly with this?
It calls the CSS from a:<link rel="stylesheet" type="text/css" href="CSS URL HERE">
Here (http://www.makeuptalk.com/forums/view.php?pg=makeuptalk-newsletter-archives-index) is my page I'm trying to get the css to work with
Logician
06-12-2006, 02:18 PM
Hey, why would my CSS not working properly with this?
It calls the CSS from a:<link rel="stylesheet" type="text/css" href="CSS URL HERE">
Here (http://www.makeuptalk.com/forums/view.php?pg=makeuptalk-newsletter-archives-index) is my page I'm trying to get the css to work with
Because you removed vbulletin style itself while using this custom stylesheet so some vb HTML tags are now orphaned. For instance webtemplate footer has "thead" class which is part of default vbulletin style but your stylesheet does not define it properly.
Kihon Kata
06-12-2006, 02:29 PM
But, shouldn't my custom stylesheet work in lue of the vB one? It works fine on other pages (non CMS)
Because you removed vbulletin style itself while using this custom stylesheet so some vb HTML tags are now orphaned. For instance webtemplate footer has "thead" class which is part of default vbulletin style but your stylesheet does not define it properly.
jeffj
06-12-2006, 02:51 PM
since no one has ever responded to my prior post asking a question about this mod, I'll make the following observation and someone can dispute it if they like.
it appears to me as though you have to generate custom links in vb to get any of this code to work (if you want to display a page using the web templates mod)
I asked if templates created with this mod could be used in certain forums (as the forum template) and no one responded.
Since then I have download and installed this mod and found out that the answer is NO - you cannot use this mod to create custom templates for certain fourms.
To be honest - without generating custom links inside VB I'm sure what what use this mod is.. I see the benefit for custom pages on your site, but you have to generate custom links inside your html/menuing system or vbcode to display these templates.
I exported my default style and changed the name - then re-imported the style and applied that style to my new forum on my website. I will simply change the templates that need to be changed inside that style to accomplish what I need.
Unless someone can tell me an easy way to use the templates in this mod and apply those templates to one of my forums I will be removing this mod since it does not need my needs without hacking other code.
This is a very nice mod if you have need for it... very straight forward, well thought out and very comprehensive...
- jeff
Kihon Kata
06-12-2006, 03:05 PM
I agree on some parts of your complaints. This templates system is for users with advanced/semi-advanced experience with php/html/vB, unless of course you are just using the prebuilt ones that Logician has included herein. Logician usually is good at responding to questions, but it seems as if sometimes he forgets that novice users may be implementing this and trying to use it. Nevertheless, I appreciate his work here. I can tell you that MANY hours were eaten up building this system and he should be complimented for that. Luckily I had someone asisst me in building something that I could use with this system. Now I just plug in info and it works. I, for one, love the permissions implemented for use with this.
since no one has ever responded to my prior post asking a question about this mod, I'll make the following observation and someone can dispute it if they like.
it appears to me as though you have to generate custom links in vb to get any of this code to work (if you want to display a page using the web templates mod)
I asked if templates created with this mod could be used in certain forums (as the forum template) and no one responded.
Since then I have download and installed this mod and found out that the answer is NO - you cannot use this mod to create custom templates for certain fourms.
To be honest - without generating custom links inside VB I'm sure what what use this mod is.. I see the benefit for custom pages on your site, but you have to generate custom links inside your html/menuing system or vbcode to display these templates.
I exported my default style and changed the name - then re-imported the style and applied that style to my new forum on my website. I will simply change the templates that need to be changed inside that style to accomplish what I need.
Unless someone can tell me an easy way to use the templates in this mod and apply those templates to one of my forums I will be removing this mod since it does not need my needs without hacking other code.
This is a very nice mod if you have need for it... very straight forward, well thought out and very comprehensive...
- jeff
jeffj
06-12-2006, 03:17 PM
I agree on some parts of your complaints. This templates system is for users with advanced/semi-advanced experience with php/html/vB, unless of course you are just using the prebuilt ones that Logician has included herein. Logician usually is good at responding to questions, but it seems as if sometimes he forgets that novice users may be implementing this and trying to use it. Nevertheless, I appreciate his work here. I can tell you that MANY hours were eaten up building this system and he should be complimented for that. Luckily I had someone asisst me in building something that I could use with this system. Now I just plug in info and it works. I, for one, love the permissions implemented for use with this.
First - my opinion was not a complaint
Second - I am not a novice user have written and contributed numerous mods myself.
Finally - my post was merely an observation based on a lack of response.
Kihon Kata
06-12-2006, 03:25 PM
First - my opinion was not a complaintMy bad!
Complaint was a bad choice of words, sorry.
Second - I am not a novice user have written and contributed numerous mods myself.Then you should have no problem implementing changes then.
Logician
06-13-2006, 07:19 PM
Finally - my post was merely an observation based on a lack of response.
Thanks for sharing your observations and sorry for the inconvience with the lack of response. I just want to tell my part of the story so that I can be excused for this in the future too:
I used to be VERY active in vb.org a few years ago. I had a lot of hacks (I used to be second hacker with most hack releases) and I provided hundreds (literally) of hacks in vb2 hack requests forum for requests of other people. If I released all in these forums, believe me my hack count will be around 300-400.
However my business schedule does not allow me to spend more time in vb.org anymore even though I enjoy sharing hacks and helping others. So I stopped releasing new hack threads and attending to hack requests forum. I focussed supporting my existing hacks which are popular (like Webtemplates) since many people are dependant on it. But even this can be very time consuming and tiresome when your hack count is high, hacks are complicated and you get a lot of support questions via thread, email and PM system.
I have many other ready hacks which I use in my own board that can be popular if released here but I am afraid to release anymore (even if the are already coded) because I don't think I can spend time to give support to new hacks. Even if this is just answering questions.
Even the answer questions can sometimes be a problem. I give very detailed instructions, manuals, FAQs about my hacks to reduce number of help requests but this does not help much. Sometimes a user claim, there is a bug in the system, you check twice, exchange a lot of messages with the user, even get access info to test things yourself and then it figures that he just didn't read instructions well and missing an obvious step. Time wasted for nothing! Or you give an answer to a user but a month later another user asks the same question and says he doesn't have time to check if it is already answered in the thread. Like we have time to answer same questions everyday! ^^
Bottom line, I'm not in the position of supporting my hacks very well due to my busy schedule anymore. I can follow 2 paths:
1- I can remove all my hacks and don't release new ones.
2- I can release them as they are but without support.
I choose to follow the second path because I believe that this helps people who can use the hack without needing support. I'm aware people which needs help is not happy to not receive it in this scenario and I'm sorry for them but I still think this is better than removing all my hacks due to lack of time. I'm doing my best to give easy answers to questions when I can have time but I can not spare time to give a full support and cover all questions anymore. Sorry for this.
Logician
06-13-2006, 07:30 PM
I asked if templates created with this mod could be used in certain forums (as the forum template) and no one responded.
After that looong story above, here is my comment: :knockedout:
The answer is "no" as you found out because this mod is for creating "sites other pages" which is powered by vbulletin. However what you are trying to achieve is change vbulletin's postbit system to make it look like something else in different forums. This request does not have any relation to what this hack does.
I exported my default style and changed the name - then re-imported the style and applied that style to my new forum on my website. I will simply change the templates that need to be changed inside that style to accomplish what I need.
Exactly! So I don't know why you need this hack (or any hack) for this request in the first place. ;)
Logician
06-13-2006, 07:34 PM
But, shouldn't my custom stylesheet work in lue of the vB one? It works fine on other pages (non CMS)
It does IF you include "$headinclude" variable into your webtemplate/webtemplate theme you are using. You probably didnt do this
Kihon Kata
06-13-2006, 07:52 PM
Thanks for your nice reply. Very sorry Logician to hear that, but I am personally wishing you best of luck with your job...I know the feeling.
Now, where exactly do I add "$headinclude"? I tried adding it to my header and to the template and it didn't work. Also I am using "no parent template" option.
Here is how I use this:
(Parse method is PHP)
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/newsletter-google.php");
$userid=$bbuserinfo['userid'];
$usrObj=new users($userid);
$username=$usrObj->getUsername();
print("$popupthepm");
$mesg=$_POST[mesg];
if(!$mesg)
$mesg=$_GET[mesg];
echo <<<TOP
<div align="center">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td width="1"> </td>
<td bgcolor="#FFFFFF"><strong><font class=mesg>
$mesg</strong>
</tr>
TOP;
echo <<<MAIN
<!----------- BEGIN HTML ----------->
lalalalala MY HTML goes here
<!----------- /HTML ----------->
<table border="0" width="100%" cellspacing="7" cellpadding="5" bordercolor="#C0C0C0">
<tr>
<td class="thead" align="left">Page
Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname]
at $WT[lastvisitdate].<br>
Page Created at <b>$creationdate</b>, Last Modified
: <b>$lasteditdate</b>.</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
MAIN;
echo <<<BOTTOM
</table>
</div>
BOTTOM;
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/footer-newsletter.php");
Mayeb you can take a look at it.
It does IF you include "$headinclude" variable into your webtemplate/webtemplate theme you are using. You probably didnt do this
Logician
06-13-2006, 08:05 PM
Thanks for your nice reply. Very sorry Logician to hear that, but I am personally wishing you best of luck with your job...I know the feeling.
Now, where exactly do I add "$headinclude"? I tried adding it to my header and to the template and it didn't work. Also I am using "no parent template" option.
Here is how I use this:
(Parse method is PHP)
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/newsletter-google.php");
$userid=$bbuserinfo['userid'];
$usrObj=new users($userid);
$username=$usrObj->getUsername();
print("$popupthepm");
$mesg=$_POST[mesg];
if(!$mesg)
$mesg=$_GET[mesg];
echo <<<TOP
<div align="center">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td width="1"> </td>
<td bgcolor="#FFFFFF"><strong><font class=mesg>
$mesg</strong>
</tr>
TOP;
echo <<<MAIN
<!----------- BEGIN HTML ----------->
lalalalala MY HTML goes here
<!----------- /HTML ----------->
<table border="0" width="100%" cellspacing="7" cellpadding="5" bordercolor="#C0C0C0">
<tr>
<td class="thead" align="left">Page
Visitors: <b>$count</b>, Last Visitor was $WT[lastvisitorname]
at $WT[lastvisitdate].<br>
Page Created at <b>$creationdate</b>, Last Modified
: <b>$lasteditdate</b>.</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
MAIN;
echo <<<BOTTOM
</table>
</div>
BOTTOM;
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/footer-newsletter.php");
Mayeb you can take a look at it.
vb $headinclude should come before </head> tag so you must include it somewhere inside your included file:
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");
If you can't do it for some reason, alternatively you can remove your vb tags in your code. Eg. don't use
class='thead'
inside your webtemplate.
Kihon Kata
06-14-2006, 01:54 AM
vb $headinclude should come before </head> tag so you must include it somewhere inside your included file:
include("/home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php");
If you can't do it for some reason, alternatively you can remove your vb tags in your code. Eg. don't use
class='thead'
inside your webtemplate.
I am not sure what or how to properly code up the include inside my /home/httpd/vhosts/MYSITE.com/httpdocs/scripts-includes/top.php so I can't do that.
So I went for your alternate way, and I didn't have any "thead" in my tempate other than how it's shows up in my last post.
EDIT: I fooled around with it and now my CSS works LOL
King Kovifor
06-18-2006, 04:11 PM
Question, I've uploaded "wt_wt.php" but it can't find the file when I'm in the ACP... Any help would be appreciated!
Logician
06-18-2006, 04:28 PM
Question, I've uploaded "wt_wt.php" but it can't find the file when I'm in the ACP... Any help would be appreciated!
Make sure you uploaded, includes/xml/cpnav_webtemplates.xml and then refreshed the admincp
King Kovifor
06-18-2006, 04:30 PM
I've uploaded it, and i've restarted my browser about 4 times... It's still not working.
Another Note: In 3.6.0 Beta 2, you can't export your templates...
And if you do something like delete template (as i've renamed it and uploaded a second copy wt_webtemp.php) it will register wt_wt.php?do=killtemp and those things.
Logician
06-18-2006, 04:36 PM
I've uploaded it, and i've restarted my browser about 4 times... It's still not working.
Another Note: In 3.6.0 Beta 2, you can't export your templates...
And if you do something like delete template (as i've renamed it and uploaded a second copy wt_webtemp.php) it will register wt_wt.php?do=killtemp and those things.
So is this board version 3.6.0? Sorry but I didn't confirm the hack works with that version yet. This is probably why.
King Kovifor
06-18-2006, 04:37 PM
So far everything works except the reading of the file as wt_wt.php and the export templates...
OK I've solved my problem with the file by editing the file wt_wt.php. replacing anything wt_wt with wt_webtemp
tommyxv
06-19-2006, 04:24 PM
I installed this on a fresh 3.6 beta 2 install (my test forum) and it works without any problems.
:)
King Kovifor
06-19-2006, 11:07 PM
I installed this on a fresh 3.6 beta 2 install (my test forum) and it works without any problems.
:)
try exporting you templates....
This is a great hack.
Thank You.
LTW
Hi Logician. I just wanted to thank you for this extremely versatile and useful system. I used the original version in my vb2 forum for years, and now that I've finally upgraded I'm delighted to see how much more powerful the vb3 version is. The ability to give editorial permissions and allow others to edit via the WYSIWYG panel is incredible!
So again, thank you for all the time and considerable effort you've put into this essential mod. :)
StuntFactoryX
07-01-2006, 06:58 AM
installed. very noob friendly, thank you very much. working on 3.5.4. w/ embedded flash gallery.
webgroup
07-05-2006, 07:53 PM
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?
Logician
07-05-2006, 08:02 PM
I have been breaking my head looking how to remove the footer copyrights.
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.
webgroup
07-05-2006, 08:07 PM
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.
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
Rik Brown
07-05-2006, 08:31 PM
Logician:
Just installed the current version online today with vb 3.5.3 which just took a few minutes to accomplish (thanks!).
However, when I went to view the sample 2 test pages I got the following error messages above the webpage (the webpage otherwise displayed properly):
Warning: Unexpected character in input: '' (ASCII=25) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=28) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=27) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=27) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=24) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=31) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=29) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Any ideas?
Thanks. -- Rik
Logician
07-05-2006, 08:45 PM
Logician:
Just installed the current version online today with vb 3.5.3 which just took a few minutes to accomplish (thanks!).
However, when I went to view the sample 2 test pages I got the following error messages above the webpage (the webpage otherwise displayed properly):
Warning: Unexpected character in input: '' (ASCII=25) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=28) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=27) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=27) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=24) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=31) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Warning: Unexpected character in input: '' (ASCII=29) state=2 in /var/www/html/subs/forums/view.php(1006) : eval()'d code on line 704
Any ideas?
Thanks. -- Rik
Sounds like a problem in installation. Looks like some characters didnt imported well. Probably line breaks became somehow in the exporting. Can be because of character encoding of your MYSQL version or smt. Cant say why without digging deep into your server.
Temporary solution, in view.php find:
eval('print_output("' . WTgettemplate("$WT[themetemplate_un]") . '");');
replace it with:
@eval('print_output("' . WTgettemplate("$WT[themetemplate_un]") . '");');
This will not fix the problem but it will silence it so error messages will be gone.
Rik Brown
07-05-2006, 11:32 PM
Logician: The code change with the preceding "@" eliminated the error messages. I look forward to trying this out.
Thanks. -- Rik
oninuva
07-08-2006, 02:04 AM
would the next update have a Wysing or what ever thingy?
Kihon Kata
07-08-2006, 02:44 AM
it does if you are editing in txt mode
would the next update have a Wysing or what ever thingy?
Trues
07-08-2006, 03:13 PM
Okies...I can pull it up with:
<?php
echo $stylevar[htmldoctype];
echo $headinclude;
echo $header;
echo $navbar;
include ("http://www.mydomain.com/folder/index.php");
echo $footer;
?>
But after it submits the info from my form it goes back to that scripts default look...anyway to keep the vb look after submitting the form? Thanks...
I'm having the same issue, any ideas?
Thanks in advance.
morrow
07-10-2006, 04:57 PM
I know there are PHP restrictions for using this script. I have a rather simple script that doesn't seam to work. Can someone help me modify it so it can work within webtemplates? I'm not sure if it's possible or not but it would be great if it was!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>U.S. Geological Survey</title>
</head>
<body>
<table>
<thead>
<tr>
<td>USGS</td>
<td>Station</td>
<td>Date</td>
<td>Time</td>
<td>Height</td>
<td>CFS</td>
<td>Temperature</td>
</tr>
</thead>
<tbody>
<?php
$content=file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427510");
foreach($content as $line)
{
if( substr($line, 0, 4)=="USGS" )
{
echo "<tr>";
$column = explode("\t", $line);
echo "<td>".$column[0]."</td>";
echo "<td>".$column[1]."</td>";
echo "<td>".date("j F Y" ,strtotime($column[2]))."</td>";
echo "<td>".date("H:i:s" ,strtotime($column[2]))."</td>";
echo "<td>".$column[3]."</td>";
echo "<td>".$column[4]."</td>";
echo "<td>".$column[5]."</td>";
echo "</tr>";
}
}
?>
</tbody>
</table>
</body>
</html>
morrow
07-12-2006, 07:06 PM
anyone?
Kihon Kata
07-12-2006, 08:13 PM
anyone?
You're prolly gunna have to wait for Logician
orphan
07-17-2006, 07:14 AM
will\need this mob be updated to work with v3.6 ?
-=Sniper=-
07-17-2006, 10:07 AM
3.6 RC1 seems to be working
Kihon Kata
07-17-2006, 01:07 PM
3.6 beta 1, works fine for me
Hi,
First just a quick thanks for a neat add-on. Ideal for simple pages. I do have a problem with VBulletin Styles though.
My site has 2 areas - one area is branded in a particula style and includes some webtemplates. If I log in as the guest user - then the webtemplates are displayed in the default style for the whole site. Is there any way that alter the default style for the webtemplates rather than using the site default?
Ben
bhxtyrant
07-18-2006, 02:04 AM
Hey guys,I was wondering does webtemplates have a "block" type layout like vBACMPS?and also does it have a place to create menu blocks for certain pages?I love the sound of this CMS over VBA but if it doesnt have those two options i dont think it will suit me.Thanks
louis_chypher
07-18-2006, 12:01 PM
I know there are PHP restrictions for using this script. I have a rather simple script that doesn't seam to work. Can someone help me modify it so it can work within webtemplates? I'm not sure if it's possible or not but it would be great if it was!
$content=file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427510");
When I was 'playing' around with your code. I finally figured out that the file() function was not returning anything to be displayed. Even though I could paste the link to get to the page. Perhaps a streaming methood would work?
louis_chypher
07-18-2006, 03:52 PM
Any suggestion on how to pass a parameter to a web querry and have it included in the query? Such as an event id.
such as:
SELECT something FROM calendar where id=xxxx
bhxtyrant
07-18-2006, 04:43 PM
I'll post this once more since it was bumped to the previous page,I was wondering does webtemplates have a "block" type layout like vBACMPS?and also does it have a place to create menu blocks for certain pages?I love the sound of this CMS over VBA but if it doesnt have those two options i dont think it will suit me.Thanks
morrow
07-18-2006, 05:26 PM
Any suggestion on how to pass a parameter to a web querry and have it included in the query? Such as an event id.
such as:
SELECT something FROM calendar where id=xxxx
THanks for looking into that for me. Hopefully someone will offer up some suggestions.
CyberRanger
07-18-2006, 07:42 PM
I'll post this once more since it was bumped to the previous page,I was wondering does webtemplates have a "block" type layout like vBACMPS?and also does it have a place to create menu blocks for certain pages?I love the sound of this CMS over VBA but if it doesnt have those two options i dont think it will suit me.ThanksI think you are comparing apples and oranges. VBA is a portal where you layout your main page. WebTemplates lets you create as many different pages with custom content as you desire while using the vbulletin permissions, etc.
bhxtyrant
07-19-2006, 12:45 AM
I think you are comparing apples and oranges. VBA is a portal where you layout your main page. WebTemplates lets you create as many different pages with custom content as you desire while using the vbulletin permissions, etc.
Yes i know that but what i meant was to put it simply let you easily create menu's to link all the web template pages together.So for example can i make a menu with "link1,link2,link3" that only displays on the main page and a seperate menu that only appears on other pages with "link4,link5,link6" through the admin panel similar to how VBA does.Or will i have to manually code my own menu's.
tommyxv
07-19-2006, 04:24 AM
Is it possible to run a php script inside a webtemplate? Trying to run this script:
<?php
include(dirname(__FILE__)."/language.php");
include(dirname(__FILE__)."/lib.php");
include(dirname(__FILE__)."/engine_dml.php");
$x = new DataList;
if($HTTP_POST_VARS["Filter_x"] != "" || $HTTP_POST_VARS['CSV_x'] != "")
{
// Query used in filters page and CSV output
$x->Query = "select engine.id as 'Part Number', engine.name as 'Part Name', engine.description as 'Description' from engine";
}
else
{
// Query used in table view
$x->Query = "select engine.id as 'Part Number', engine.name as 'Part Name', engine.description as 'Description' from engine";
}
// handle date sorting correctly
// end of date sorting handler
$x->DataHeight = 150;
$x->AllowSelection = 0;
$x->AllowDelete = 1;
$x->AllowInsert = 1;
$x->AllowUpdate = 1;
$x->AllowFilters = 0;
$x->AllowSavingFilters = 0;
$x->AllowSorting = 1;
$x->AllowNavigation = 1;
$x->AllowPrinting = 1;
$x->AllowCSV = 0;
$x->HideTableView = 0;
$x->RecordsPerPage = 10;
$x->QuickSearch = 3;
$x->QuickSearchText = $Translation["quick search"];
$x->ScriptFileName = "engine_view.php";
$x->TableTitle = "Partnumber";
$x->PrimaryKey = "engine.id";
$x->ColWidth[] = 150;
$x->ColWidth[] = 150;
$x->ColWidth[] = 150;
$x->Template = 'engine_templateTV.html';
$x->SelectedTemplate = 'engine_templateTVS.html';
$x->ShowTableHeader = 1;
$x->ShowRecordSlots = 1;
$x->HighlightColor = '#FFE4E1';
$x->Render();
include(dirname(__FILE__)."/header.php");
echo $x->HTML;
include(dirname(__FILE__)."/footer.php");
?>
louis_chypher
07-19-2006, 11:11 AM
Is it possible to run a php script inside a webtemplate? Trying to run this script:
My experience has shown me that it is very possible to run php inside a web template. I did have, at first, a few issues in getting php to run till I viewed the default webtemplate phptest.
tommyxv
07-20-2006, 09:50 AM
Any tips on how to get that script to work? I tried to use the phptest as an example.
orphan
07-20-2006, 07:54 PM
Hi
My WebTemplates works like a charm now (on v3.6RC2)
So thx alot for a very nice hack
But i have a question that maybe you guys can answer
How do i manage to make a webtemplate connect to another Db (not the forum Db) thrue a "WebQuery" ?
I've tryed to put some php connection code in the "Query PHPInclude Code (Before)" window but that doesn't seem to work (or maybe just my php code doesen work :alien: )
Could someone provide some help please or just point me in the right direction?
Thx
barryhand
07-22-2006, 04:06 PM
if you use a php redirect on the site root www.site.com and have the forums installed at www.site.com/forums
You can't login, as it's looking for www.site.com/forums/ files
any help ? (apart from doing a refresh redirect)
rollo tamasi
07-22-2006, 06:56 PM
Hi, I installed this mod this evening. Everthing went smooth and then i went to test it by going to the view.php?pg=test and view.php?pg=test2 page but nothing showed up.
I then setup an aboutus page and went to view.php?pg=aboutus and the same thing happened once more.
I uploaded all the files into the correct path and uploaded the product web templates xml file.
Any ideas what could be wrong?
orphan
07-23-2006, 04:03 AM
Hi, I installed this mod this evening. Everthing went smooth and then i went to test it by going to the view.php?pg=test and view.php?pg=test2 page but nothing showed up.
I then setup an aboutus page and went to view.php?pg=aboutus and the same thing happened once more.
I uploaded all the files into the correct path and uploaded the product web templates xml file.
Any ideas what could be wrong?
SEO Friendly URLs on?
The-Ensemble
07-23-2006, 05:40 PM
I installed this mod and i installed it correctly everything is in the right places. the thing doesnt show up in the admincp, i logged out, i turned the internet off i even restarted my computer and still no change, its no there.
Whats wrong?
morrow
07-24-2006, 01:49 AM
i turned the internet off i even restarted my computer and still no change, its no there.
Whats wrong?Can you please not turn the internet off again. When you did that, you took everyone down and it really wasn't fair to the rest of us here who aren't having the same issue you're having.
I would go back and read the instructions again. It seams to me that you left something out. If you add/replace anything, remember what I asked of you. If you turn the internet off again, nobody is going to be able to help you.
Bubble #5
07-24-2006, 02:06 AM
i turned the internet off
Man, that must be one-hell-of-a-large-switch that you're using :bunny:
barryhand
07-25-2006, 08:25 AM
I want to display some information from a user's profile on the template page.
What code can I use, I want to show their customfields (if they have them)
barryhand
07-25-2006, 12:28 PM
Another question, I have a query to show the last 10 threads from any forum with the title of the thread, the poster and the date. I want to add in the forum that it was posted in.
E.g
Forum - Thread Title - Poster - Time.
Do i need to query 2 tables for this, how ?
Here's the code i have alreadySELECT threadid, title, postusername,postuserid,dateline
FROM " . TABLE_PREFIX . "thread
WHERE sticky=0 AND visible=1
ORDER BY dateline DESC
LIMIT 10
webgroup
07-26-2006, 03:18 AM
Hi, I have noticed that after installing the hack, now my forum is not displaying characters like ñ á á é.
They appear fine if you post in advanced mode, the problem only affects the quick mode.
Any help?
Thanks!!
louis_chypher
07-26-2006, 11:41 AM
Another question, I have a query to show the last 10 threads from any forum with the title of the thread, the poster and the date. I want to add in the forum that it was posted in.
E.g
Forum - Thread Title - Poster - Time.
Do i need to query 2 tables for this, how ?
Here's the code i have already
Two tables, yes. Thread table and forum table
SELECT " . TABLE_PREFIX . "thread.threadid AS threadid, " . TABLE_PREFIX . "thread.title AS title, " . TABLE_PREFIX . "thread.postusername AS postusername," . TABLE_PREFIX . "thread.postuserid AS postuserid," . TABLE_PREFIX . "thread.dateline AS dateline," . TABLE_PREFIX . "forum.description AS description
FROM " . TABLE_PREFIX . "thread LEFT JOIN " . TABLE_PREFIX . "forum ON " . TABLE_PREFIX . "thread.forumid=" . TABLE_PREFIX . "forum.forumid
WHERE " . TABLE_PREFIX . "thread.sticky=0 AND " . TABLE_PREFIX . "thread.visible=1
ORDER BY dateline DESC
LIMIT 10
I tried the above in a query window not using " . TABLE_PREFIX . ", so, you might find an error in my pasting of the " . TABLE_PREFIX . " into the sql statement.
louis_chypher
07-26-2006, 11:46 AM
Any tips on how to get that script to work? I tried to use the phptest as an example.
Notice that phptest does not have the php tags?
I, at first, tried to use the "<?php" "?>" to only have the code not run. When I modeled my php code after the testphp template things ran well.
barryhand
07-26-2006, 04:13 PM
Thanks, thats brilliant louis_chypher.
Is it also possible todo 3 tables?
diretur
07-26-2006, 08:16 PM
this hack is great!
How can I add a template category? I have "Your Custom Pages" and "Default WebTemplates", but I'd like to add a new category in order to make a new WQ_webtemplateslist.
Thanks in advance
Nick0r
07-28-2006, 09:58 PM
Hiya guys,
I'm using a custom template to display my navigation at the top of my site - and it's called using a custom variable, call it $foo.
In order to highlight the active page I do an if condition check for THIS_SCRIPT. I've set THIS_SCRIPT using the phpinclude section of each webtemplate so that each one can have a seperate THIS_SCRIPT definition.
Now - when I try to get it to work, the if condition works within the logician webtemplate, but not within my navigational webtemplate, called by my custom variable.
Any ideas?
ronoxQ
07-29-2006, 01:48 AM
When I made my first test template, basically all I did was add the word "test."
However, it did NOT style itself to look like my vBulletin site.
What am I doing wrong?
Logician
08-02-2006, 10:59 AM
this hack is great!
How can I add a template category? I have "Your Custom Pages" and "Default WebTemplates", but I'd like to add a new category in order to make a new WQ_webtemplateslist.
Thanks in advance
Edit includes/wt_include.php section named "// WEBTEMPLATE CATEGORIES" (You'll see detailed info there)
Logician
08-02-2006, 11:01 AM
When I made my first test template, basically all I did was add the word "test."
However, it did NOT style itself to look like my vBulletin site.
What am I doing wrong?
Make sure you set a "theme" for your webtemplate. Do not make it use "no parent webtemplate" in theme section if you want vb style. Also make sure you set webtemplate header/footer correctly.
Razasharp
08-03-2006, 11:54 PM
Hi Sinan, hope you are well :)
I've noticed a few people saying WTs is working fine on their 3.6 installations, but am waiting for the offcial green light from you before I upgrade... any idea when you might be able to look into it and give it the all clear if you do?
Thanks! And keep up the good work :)
Kihon Kata
08-04-2006, 02:17 PM
Hi Sinan, hope you are well :)
I've noticed a few people saying WTs is working fine on their 3.6 installations, but am waiting for the offcial green light from you before I upgrade... any idea when you might be able to look into it and give it the all clear if you do?
Thanks! And keep up the good work :)
I am running 3.6 gold right here (http://www.bankruptcylab.com/view.php?pg=bankruptcy-home). That site, runs COMPLETELY on WebTemplates for vb 3.5.x
Razasharp
08-04-2006, 04:15 PM
Hi Kihon - thats great stuff :)
I was waiting for the official green light from Logican before taking the plunge to upgrade my vB :)
It's good to hear you are running it without problems tho :)
Ipuck
08-05-2006, 03:38 AM
Hello!!
I have tried to run a web query but when I tried to compare two fields it doesn't work.
I create a table with some especial values and I called it "vb_tbulletins" and I want to compare the values to the customer option fields that I have also created.
Fields5,6,7.
If I run the webquery just like the way is shown it works fine.
SELECT COMPNAME,BULDTE,MAKETXT,MODELTXT,YEARTXT,SUMMARY
FROM vb_tbulletins
If a tried to get the information from the users extra fields works OK.
SELECT COMPNAME,BULDTE,MAKETXT,MODELTXT,YEARTXT,SUMMARY,f ield5,fiel6,field7
FROM vb_tbulletins,vb_userfield
Now if a want to compare the fields, then I get nothing.
SELECT COMPNAME,BULDTE,MAKETXT,MODELTXT,YEARTXT,SUMMARY,f ield5,fiel6,field7
FROM vb_tbulletins,vb_userfield
WHERE MAKETXT=field5 AND MODELTXT=field6 AND YEARTXT=field7
Also how can I use the "fields" from the visitor user?
Thank you for help!!
soletrader
08-05-2006, 02:09 PM
Will you release a version 3.6.0?
Kihon Kata
08-05-2006, 02:39 PM
Why does he need to? It works just fine on 3.6
Logician
08-06-2006, 10:28 AM
I've just tested webtemplates with a clean 3.6.x gold and I couldn't find any problems, bugs or glitches. As far as I can see it is working fine. So I can say it is safe to use it with that vb version too.
Yet if anybody catches a problem, please let me know.
rinkrat
08-06-2006, 04:19 PM
Awesome hack. Just installed it in 3.6 Gold. Can't wait to start churning out content :)
Ohiosweetheart
08-08-2006, 10:00 PM
Someone pointed me to this hack today. I can't wait to work with it this weekend! GOOD to know it's ok for 3.6.0
Razasharp
08-08-2006, 10:05 PM
I've just tested webtemplates with a clean 3.6.x gold and I couldn't find any problems, bugs or glitches. As far as I can see it is working fine. So I can say it is safe to use it with that vb version too.
Yet if anybody catches a problem, please let me know.
Thanks Logician!
Nick0r
08-10-2006, 05:04 PM
Logician, I'm struggling with this hack and the THIS_SCRIPT variable. What I'm trying to do is make half my templates be assigned one THIS_SCRIPT and half the other. Now I've used the PHP_INCLUDE and that works fine for contents WITHIN the template, but I have a tab navigation system that's called before the template is called - and PHP_INCLUDE won't influence that.
Is there anyway I can achieve my goal (or, is there a way I can have two logician webtemplates running?)
Logician
08-10-2006, 06:14 PM
Logician, I'm struggling with this hack and the THIS_SCRIPT variable. What I'm trying to do is make half my templates be assigned one THIS_SCRIPT and half the other. Now I've used the PHP_INCLUDE and that works fine for contents WITHIN the template, but I have a tab navigation system that's called before the template is called - and PHP_INCLUDE won't influence that.
Is there anyway I can achieve my goal (or, is there a way I can have two logician webtemplates running?)
I havent tested it before but I believe it should work fine if you clone view.php as view2.php and then change the value of THIS_SCRIPT in view2.php
ChrisBaktis
08-11-2006, 02:55 AM
Can anyone help me create a webquery to list the top 10 referers?
GreysAnatomy
08-11-2006, 06:41 AM
Installed and worked like a charm. I haven't wored with it though but installation was very easy, thanks!
SweetHome
08-11-2006, 11:28 AM
tabik,i
Logician
08-11-2006, 02:40 PM
Can anyone help me create a webquery to list the top 10 referers?
It is not possible to do it with webquery because a single query can not get such a list due to vb database structure.
You can consider checking these hacks:
https://vborg.vbsupport.ru/showthread.php?t=101000&highlight=refer%2A
https://vborg.vbsupport.ru/showthread.php?t=102452&highlight=refer%2A
https://vborg.vbsupport.ru/showthread.php?t=101324&highlight=refer%2A
Brandon Sheley
08-13-2006, 01:37 AM
I've just tested webtemplates with a clean 3.6.x gold and I couldn't find any problems, bugs or glitches. As far as I can see it is working fine. So I can say it is safe to use it with that vb version too.
Yet if anybody catches a problem, please let me know.
good to hear this :)
I've used this b4, and now want to use it on a new site..
This is a great addition :)
Feckie (Roger)
08-13-2006, 06:46 PM
Is it possible to have a usergroup displayed.
ie: usergroup (11) Members displayed on one page,
What I want todo is have a page display a set group, when called from a webtemplate..............
Logician
08-13-2006, 06:53 PM
Is it possible to have a usergroup displayed.
ie: usergroup (11) Members displayed on one page,
What I want todo is have a page display a set group, when called from a webtemplate..............
If it is their primary usergroup, you can do it by a webtemplate. If it is their secondary usergroup, nope you cant do it
Feckie (Roger)
08-13-2006, 07:02 PM
If it is their primary usergroup, you can do it by a webtemplate. If it is their secondary usergroup, nope you cant do it
Yes it is there Primary Group
so what will i have todo...............
Logician
08-13-2006, 08:48 PM
Yes it is there Primary Group
so what will i have todo...............
Import this webtemplate and then change the usergroup from 6 to whatever you want in the webquery named $WQ_usergroupsfromx
Feckie (Roger)
08-13-2006, 09:33 PM
Import this webtemplate and then change the usergroup from 6 to whatever you want in the webquery named $WQ_usergroupsfromx
Worked a treat.....Thanks Logician. :)
Brandon Sheley
08-14-2006, 12:32 AM
does anyone know what I need to edit for Spiders online ?
https://vborg.vbsupport.ru/showthread.php?t=119134
I'll like to remove
Currently Active Users Viewing this Page: 1 (1 members and 0 guests and [ARG:3 UNDEFINED] spiders)
funky1
08-14-2006, 12:58 AM
Great mod. Works in 3.6.0 for me. I had an initial problem but a simple screen refresh fixed it.
orphan
08-14-2006, 02:59 PM
Hi
Im trying to run this mod under 3.6
But i get some strange errors under the admincp
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /admincp/wt_wt.php on line 1337
No WebTemplates Exist at the moment..
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /admincp/wt_wt.php on line 1416
No Header/Footer WebTemplates Exist at the moment..
But they DO exists and are exportable under Export page
Any ideas?
Logician
08-14-2006, 04:21 PM
Hi
Im trying to run this mod under 3.6
But i get some strange errors under the admincp
But they DO exists and are exportable under Export page
Any ideas?
Not sure why this happens but sounds like there was a problem in the import process. Maybe you should reimport default wt/wq's.
Brandon Sheley
08-14-2006, 04:27 PM
logician, do you know how I can remove the ARG ? I'd like it to show the numbe of spiders, but if not thats okay.. I'd just like to remove that part if possible ?
Logician
08-14-2006, 05:27 PM
logician, do you know how I can remove the ARG ? I'd like it to show the numbe of spiders, but if not thats okay.. I'd just like to remove that part if possible ?
I'm not sure? It is coming from your other hack which I'm not familiar with ;)
Brandon Sheley
08-14-2006, 11:26 PM
I'm not sure? It is coming from your other hack which I'm not familiar with ;)
yes, its from amykhar's show spiders on forumhome hack
https://vborg.vbsupport.ru/showthread.php?t=119134
TPOCJames
08-15-2006, 04:40 AM
Logician, will this be able to create web pages with the .php instead of .html ?
Logician
08-15-2006, 07:04 AM
Logician, will this be able to create web pages with the .php instead of .html ?
If you enable SEO friendly URL option (details in manual), yes
bhxtyrant
08-17-2006, 11:38 PM
Hey guys,I was planning to give webtemplates a test to see if it will suit my needs for our website.But one thing i didnt see in the installation manual was is it possible to install webtemples in another directory?for example our forums are located at
www.mysite.com/forum/
and we want the main site to be in
www.mysite.com/sitename/
Not sure if this can be done but any help would be appreciated.
Razasharp
08-18-2006, 12:03 AM
As far as I am aware it can only be installed in the same directory that vB is installed in.
Many people install vB in the root directory these days :)
bhxtyrant
08-18-2006, 12:13 AM
Thanks for the reply Raza,damn thats to bad the reason we still use sub folders is mainly due to us planning to use multiple systems in the future.Such as a possible wiki and blogs in the future.Im pretty sure this is not the first time this has been asked so hopefully someone out there may know of a way we can do this. :S
Logician
08-18-2006, 06:04 AM
Thanks for the reply Raza,damn thats to bad the reason we still use sub folders is mainly due to us planning to use multiple systems in the future.Such as a possible wiki and blogs in the future.Im pretty sure this is not the first time this has been asked so hopefully someone out there may know of a way we can do this. :S
Actually it is answered in post-installation faq question 3. ;)
I don't support this kind of installation because it is likely to break many things and cause small bugs here and there but I know that there are users who did.
bhxtyrant
08-18-2006, 02:08 PM
Thanks Logician,I didnt even see those lol guess i should have checked the first page.I expected it to be in the included Readme file.
In any case does anyone out there know of someone who managed to do this sucessfully?Or perhaps even make a guide on how to do it?
orphan
08-18-2006, 02:37 PM
Not sure why this happens but sounds like there was a problem in the import process. Maybe you should reimport default wt/wq's.
Sorry Logician that cant be done
If i try i get a "template xxx allready exists - skipped" message
Logician
08-18-2006, 02:48 PM
Sorry Logician that cant be done
If i try i get a "template xxx allready exists - skipped" message
You can empty db tables:
wt35_webtemplate
wt35_theme
wt35_query
via phpmyadmin
ShackMaster
08-18-2006, 08:10 PM
Very nice hack... thanks! Clicked install.
I only have one little thing I can't figure out where to change... at the bottom of the webtemplate it has the following:
Page Visitors: 111, Last Visitor was Sonnie at Today - 4:03 PM. Edit This Page
Page Created at Today - 2:00 AM, Last Modified : Today - 3:38 PM.
Where can I edit and/or delete this stuff?
Thanks!
Logician
08-18-2006, 08:18 PM
Very nice hack... thanks! Clicked install.
I only have one little thing I can't figure out where to change... at the bottom of the webtemplate it has the following:
Page Visitors: 111, Last Visitor was Sonnie at Today - 4:03 PM. Edit This Page
Page Created at Today - 2:00 AM, Last Modified : Today - 3:38 PM.
Where can I edit and/or delete this stuff?
Thanks!
It is in "Two Column Theme" and "Default Basic Theme"
ShackMaster
08-18-2006, 08:43 PM
Perfect! This hack is very flexible, editable, versatile all of the above!
Thanks once again!
ChrisBaktis
08-19-2006, 02:30 PM
Is there a webquery that can be run with this hack that will pull members with a certain custom profile field? Also a certain user group?
If so how can I do this and also provide a link to the members profile?
orphan
08-19-2006, 03:38 PM
You can empty db tables:
wt35_webtemplate
wt35_theme
wt35_query
via phpmyadmin
Tried that, even deleted them and reinstlled the entire mod, same result :confused:
Logician
08-19-2006, 04:58 PM
Tried that, even deleted them and reinstlled the entire mod, same result :confused:
If you are sure, you cant do it and it is important to you, I can check when I have a free time if you let me know FTP access, phpmyadmin access and vb admin cp access.
ShackMaster
08-19-2006, 10:42 PM
Hi Logician... I've tried to get the SEO'd URL working and get a 'Page Not Found' error when trying to access the pages. I've entered the rewrite info into my htaccess file within my forum root directory and then checked the appropriate block in options.
It says something about apache server in the instructions, not sure if this is the problem or not, but I do have the following in my cpanel:
Apache Handlers
Extension(s) Handler
User Defined Handlers
System Defined Handlers
.cgi .pl, cgi-script, .shtml, server-parsed
I don't understand how the handlers work or even what extension to place in field... or if this will even get me where I need to be.
Any ideas?
Thanks!
orphan
08-20-2006, 03:32 AM
If you are sure, you cant do it and it is important to you, I can check when I have a free time if you let me know FTP access, phpmyadmin access and vb admin cp access.
Thx
I will create some accounts for you, I'll pm you the info when done
specmav
08-20-2006, 12:44 PM
Great mod!
I only need one thing though. Is there a way to remove the currently active users part at top of the screen on pages generated by webtemplates?
Thanks!
orphan
08-20-2006, 12:55 PM
Hi Logician... I've tried to get the SEO'd URL working and get a 'Page Not Found' error when trying to access the pages. I've entered the rewrite info into my htaccess file within my forum root directory and then checked the appropriate block in options.
It says something about apache server in the instructions, not sure if this is the problem or not, but I do have the following in my cpanel:
I don't understand how the handlers work or even what extension to place in field... or if this will even get me where I need to be.
Any ideas?
Thanks!
Make sure you .htaccess looks like this
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^view_(.*).htm$ view.php?pg=$1
if this is your only .htaccess or if forum is in the root directory
you might want to write it like this
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^view_(.*).htm$ view.php?pg=$1[/QUOTE]
m3_fs
08-22-2006, 12:14 AM
OK, sorry to be a s00per n00b but hey, we all start somewhere. I am running a vb board http://www.davetyner.com/forum and downloaded the Webtemplate hack. I am trying to add a theme but keep getting this error when I try and create it "You forgot to add $includedtemplate variable into template! This variable marks the location where webtemplates that is using this theme will be inserted so a theme without this variable is pointless to have!"
I read all the documentation and is there a step by step on creating and then implementing a basic theme? Thanks!
ShackMaster
08-22-2006, 12:45 AM
.htaccess is in /public_html/forums/
RewriteEngine On
RewriteCond %{HTTP_HOST} ^hometheatershack.com
RewriteCond %{REQUEST_URI} ^/forums/
RewriteRule (.*) http://www.hometheatershack.com/forums/$1 [R=301,L]
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !chat
RewriteRule ^(.*\.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^view_(.*).htm$ view.php?pg=$1
Logician
08-22-2006, 05:27 AM
OK, sorry to be a s00per n00b but hey, we all start somewhere. I am running a vb board http://www.davetyner.com/forum and downloaded the Webtemplate hack. I am trying to add a theme but keep getting this error when I try and create it "You forgot to add $includedtemplate variable into template! This variable marks the location where webtemplates that is using this theme will be inserted so a theme without this variable is pointless to have!"
I read all the documentation and is there a step by step on creating and then implementing a basic theme? Thanks!
A theme = a webtemplate that can host other "webtemplates" in.
So if you are trying to create a stand-alone page, you should NOT create a theme, you should create a regular webtemplate.
If you want to create a general design in which you will display other webtemplates in, then you should create a theme.
Since themes will display "other webtemplates" inside, you should point in which section of the theme you are going to insert your other webtemplates while creating themes. You do it by using "$includedtemplate" variable somewhere inside your theme. You get the error message because you attempt to create a theme but use this variable nowhere inside it (which is pointless as the error tells). So you must put $includedtemplate inside your theme to avoid the error.
Logician
08-22-2006, 05:29 AM
.htaccess is in /public_html/forums/
I think your vbseo redirection is clashing with webtemplates redirection. I don't use that product so I can't advise how to solve the clash but maybe it can work if you put wt redirection lines before vbseo lines in your .htaccess.
CoralGeek
08-23-2006, 03:02 PM
Hey guys,I was planning to give webtemplates a test to see if it will suit my needs for our website.But one thing i didnt see in the installation manual was is it possible to install webtemples in another directory?for example our forums are located at
www.mysite.com/forum/
and we want the main site to be in
www.mysite.com/sitename/
Not sure if this can be done but any help would be appreciated.
I've still got a few bugs to work out but I have it on a test site working like that now.
My forums are at www.mysite.com/forums
I'm using this for the main page at www.mysite.com and for articles at www.mysite.com/articles.
jluerken
08-23-2006, 09:56 PM
Hi,
I am trying to implement this script http://www.clanforums.com/amxbans
into a CMS Template so that it has the vBulletin style and looks integrated.
Normal Pages are no problem but with this external script I have no idea how I can do this.
Can someone please give me a helping hand?
regards
jluerken
bhxtyrant
08-25-2006, 03:03 AM
Hello again Logician,
Was wondering if you could answer a few things im trying to find out.
I have just installed Webtemplates and so far it looks pretty nice from what i see.Im trying to learn the basics right now but i wanted to know for certain a few major things.
First and the most major question is,is there a way i can make a main homepage in webtemplates that will display news pulled for a certain forum ID?similar to how various other CMS's do.
Second is more something i am totally in the dark about.I posted a while back in this topic but never really got an answer.I want to make a two column template used for all my main site pages.This i can do but what i would like is to have the left column have a main navigational menu and the right column to display the page content.
Certain pages of my site will have different navigational menu's then others so my question is in webtemplates is there an easy way to do this without manually coding everything?It would be a real pain as you can imagine to add new links if each template would have to be edited just to add a link or two if you know what i mean.
Also is there a way to create new custom catagories to seperate webtemplate pages via the admin panel?For example currently there is "Default WebTemplates" and "Your Custom Pages" i was hoping to see an option to add more such as for example "Catagory 1","Catgory 2",ect.
Thanks for your time and for making this awsome mod :D
Logician
08-25-2006, 08:46 AM
First and the most major question is,is there a way i can make a main homepage in webtemplates that will display news pulled for a certain forum ID?similar to how various other CMS's do.
Please read thread and FAQ for this. I've already answered it.
Second is more something i am totally in the dark about.I posted a while back in this topic but never really got an answer.I want to make a two column template used for all my main site pages.This i can do but what i would like is to have the left column have a main navigational menu and the right column to display the page content.
Yes sounds possible but may require some HTML design and PHP coding in phpinclude section of your webtemplate or hacking in view.php file.
I am so sorry but I'm not able to meet all these custom requests of hack users due to my busy schedule. I've released this hack which gives high functionality for such needs but every user needs to find out how to manage it themselves. My business really does not allow me to deal with every custom request one by one.
Certain pages of my site will have different navigational menu's then others so my question is in webtemplates is there an easy way to do this without manually coding everything?.
You can use different themes for these pages or use conditionals to display different menus in different templates.
Also is there a way to create new custom catagories to seperate webtemplate pages via the admin panel?For example currently there is "Default WebTemplates" and "Your Custom Pages" i was hoping to see an option to add more such as for example "Catagory 1","Catgory 2",ect.
This is also recently answered, please read the thread..
jluerken
08-25-2006, 10:07 AM
Second is more something i am totally in the dark about.I posted a while back in this topic but never really got an answer.I want to make a two column template used for all my main site pages.This i can do but what i would like is to have the left column have a main navigational menu and the right column to display the page content.
Do you mean something like this?
http://www.clanforums.com/forum/cms/irc.html
bhxtyrant
08-25-2006, 02:59 PM
Hey jluerken,
Yes thats exactly what i mean,That pages ios pretty close to mine in layout except you have many more things in your left column then i will as i only want to have a navigational menu and possibly a "Online Users" area to show what users are viewing the page/site similar to how VB does showing the number of guests and names of logged in users.By the way would you mind if i PMed you reguarding a small question about VBAcmps portal?I was viewing your site and noticed you done something i have been trying to do for ages but cant seem to get right.I tryed at there support forums but no one seems to want to help :S
@Logician
Thanks for answering those,I didnt expect to get anything custom made Just was more of trying to find out if the things i wanted to do were possible with Webtemplates.Looks like many of them are though.By the way just wanted to also ask do you do custom mods?Our main admin might be interested in paying for the work that would need to be done to get webtemplates running like we need it.Thanks
Smoothie
08-25-2006, 07:02 PM
Hey Logician,
When creating a webtemplate why doesn't the preview button work?
Smoothie
08-25-2006, 07:17 PM
One more question. This line:
Page Visitors: 2, Last Visitor was Admin at Today - 04:14 PM.
Page Created at Today - 02:48 AM, Last Modified : Today - 04:10 PM
Is it possible to edit? I'd like to make it one line and change the wording.
There should be an option to not show that stuff. Is there one I missed?
Logician
08-25-2006, 08:17 PM
One more question. This line:
Page Visitors: 2, Last Visitor was Admin at Today - 04:14 PM.
Page Created at Today - 02:48 AM, Last Modified : Today - 04:10 PM
Is it possible to edit? I'd like to make it one line and change the wording.
There should be an option to not show that stuff. Is there one I missed?
https://vborg.vbsupport.ru/showpost.php?p=1055340&postcount=427
Smoothie
08-25-2006, 11:17 PM
Any word on why the preview button doesn't work when creating a template?
bhxtyrant
08-26-2006, 12:23 AM
hey Smoothie,
I'm not really qualifyed to answer that Q but i just thought i would say that it works fine in my installation of Webtemplates so perhaps you should double check your settings.
Smoothie
08-26-2006, 05:01 AM
Not working for me for some reason. The preview button works in all other templates.
bandare
08-26-2006, 01:06 PM
Will this work for the new 3.6 VB?
bhxtyrant
08-26-2006, 04:19 PM
Hey again,I had a new question maybe someone can help me with.I was wondering is it possible to include a webtemplate into VBAcmps?I am trying to create a page with a set of character bio's in it.I want each character bio to be a seperate webtemplate but i want to have all of them grouped into a number of pages.I havent figured out a way to do this in webtemplates itself so i though a combination might be a better way using both VBA and WebTemplates together.
Smoothie
08-26-2006, 06:02 PM
Hey logician,
Any help on why the preview template button won't work?
bhxtyrant
08-26-2006, 06:57 PM
Will this work for the new 3.6 VB?
According to the release notes it will work with both 3.5 and 3.6
Note in 6.August. 2006 : I've tested Webtemplates with vbulletin 3.6.0 gold version and they are compatible. So this hack released here is both for vb 3.5.x AND 3.6.x
Caddyman
09-01-2006, 03:40 PM
i was wondering if this is possible with this add-on "webtemplates"
i have a forum that has resources for cell phone users and we have many threads for wallpapers.
so say i have thread#1 and it has all these 130x130 .gif attachments
and i make a webtemplate called WT#1 (for example)
can i have WT#1 i guess query or take and find the attachments of thread#1 and display the images as thumbnails (or fullsize) in .gif format?
all this on same server, same domain, same DB.
is this possible? im just looking for a more efficient way of displaying my resource to my users.
im not very technical but the other admins on my site are and i came up with this idea and im trying to support my techs in implementing this.
TIA for any replies or suggestions.
VBUsers
09-01-2006, 04:19 PM
is there a version for 3.6?
Logician
09-01-2006, 06:48 PM
Hey logician,
Any help on why the preview template button won't work?
If you mean the preview button in admin cp create/edit webtemplate page, yes, I'm aware of that but there is no quick fix for this sorry. Actually the hack inherits that row "Search in Template - Find - Preview - Copy" from vb template administration and I kept it as it works fine for find feature. Previewing is not working in that screen, you need to save your webtemplate and visit it.
i have a forum that has resources for cell phone users and we have many threads for wallpapers.
...
is this possible? im just looking for a more efficient way of displaying my resource to my users.
You might want to look at Andrew's Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041) for this.
Maddogz420
09-01-2006, 11:16 PM
First of all, i want to say thanks for puttin this out there. This is exactly what I've been looking for in a CMS.
I am however having a problem with the one query "$WQ_last5threadcontentsfromforum108"
I placed that at the bottom of the page im using as a home page, and it does not show anything. I did edit the query name and WHERE t.forumid = '108' to reflect my news forum, but I'm not having any luck? I'm guessing im just doing something wrong and I'll keep trying, but any help would be much appreciated
Edit: Using VB 3.5.4
Edit Again: Linkage -> http://pcdevil.net/vb/view.php?pg=home
I put the query between center tags, and if you view source, it shows the center tags, but no content between them
Maddogz420
09-01-2006, 11:28 PM
Hah, im dumb. I didnt check the query at the bottom!
Any way to limit characters and have a "read more" button? A few of these news posts are lengthy...
Quarterbore
09-02-2006, 03:18 AM
I just installed this on 3.6 Gold and she is running great....
I have one question/request...
How hard would it be to allow some usergroups to create a page based on their membership to a "Contributor Group" and their page name would be based on their User Name (removal of noncompliant characters or spaces)?
I would like the page to only be visable as long as the owner is a member of the contributor group (IE, let their support expire - page goes away).
I assume that this could all be done via a CRON right?
I need to learn to use the basic code but I think this script could be used to allow members to have a page of their own paid for through a site donation and they would be able to edit and update their own page...
That would be really great to have!
Smoothie
09-02-2006, 03:26 AM
If you mean the preview button in admin cp create/edit webtemplate page, yes, I'm aware of that but there is no quick fix for this sorry. Actually the hack inherits that row "Search in Template - Find - Preview - Copy" from vb template administration and I kept it as it works fine for find feature. Previewing is not working in that screen, you need to save your webtemplate and visit it.Yes, that's exactly what I mean. Too bad you can't get the preview to work, would save the time it takes to save and view. But thanks anyway for the info. And thanks for all your hard work in creating and supporting WebTemplates.
Smoothie
09-02-2006, 03:28 AM
is there a version for 3.6?
Check Logician's sig. :D
indie
09-03-2006, 05:46 AM
With this, can you create a new page in a new directory? Like vbulletin.com/links/home.php
Logician
09-03-2006, 07:06 AM
With this, can you create a new page in a new directory? Like vbulletin.com/links/home.php
Nope it creates pages in the forum directory only.
ang2el
09-09-2006, 02:43 PM
Does it work with vb 3.6 or can I expect its newer version compatible to vb 3.6?
Kihon Kata
09-09-2006, 02:49 PM
Does it work with vb 3.6 or can I expect its newer version compatible to vb 3.6?
read Logician's descrption:
Note in 6.August. 2006 : I've tested Webtemplates with vbulletin 3.6.0 gold version and they are compatible. So this hack released here is both for vb 3.5.x AND 3.6.x
HTH :)
ang2el
09-10-2006, 04:36 AM
thanks kihon kata
arob42
09-15-2006, 01:11 AM
I'm just curious if I can use a 3rd party wysiwyg editor like Interspire DevEdit NX (http://www.interspire.com/devedit/) and how I might go about adding it. Thanks.
Regards,
--Robert
ubblite
09-15-2006, 08:35 AM
Nice mod, Logician.
Question:
Is it possible to change the underscore in view.php_filename.htm to a dash like this: view.php-filename.htm in all instances, so when creating new templates everything will be dashes instead of underscores?
Thanks
Logician
09-15-2006, 08:09 PM
Nice mod, Logician.
Question:
Is it possible to change the underscore in view.php_filename.htm to a dash like this: view.php-filename.htm in all instances, so when creating new templates everything will be dashes instead of underscores?
Thanks
You can do so by editing includes/wt_include.php (Search for option section "SEO FRIENDLY URL prefix") AND ALSO .htaccess file
ubblite
09-15-2006, 11:20 PM
Thanks for your help, Logician.
tunamix
09-17-2006, 12:54 AM
Looks great!
Does anyone have this running on 3.6.1 yet and if so are there any mods needed?
Kihon Kata
09-17-2006, 01:04 AM
YEP!
Does anyone have this running on 3.6.1 yet
orphan
09-17-2006, 12:15 PM
Looks great!
Does anyone have this running on 3.6.1 yet and if so are there any mods needed?
Working fine after upgrade!
OKIHost
09-18-2006, 04:44 PM
I am hoping someone can help me, I added a field in the users profile (field6) which users enter the total amount of weight they have lost. I am trying to add a query which will take all these numbers and add them up to a total I am use on some different pages.
I added the following to a normal webquerie named WQ_totallbs using the following:
SELECT sum( field6 ) AS total
FROM userfield
Then I created a new webtemplate page and tried adding the $WQ_totallbs to the page but nothing shows.
I did this testing in phpmyadmin and it seems to work correctly but it not showing in the webtemplates for some reason.
I am very new to this and just got the query from another user here at vb.org who is doing the same thing, he does it manually and I figured it would be great to add into a webtemplate people can look at for a real-time number instead of manually doing it once a week or whatever.
Any help would be greatly appreciated.
Logician
09-18-2006, 04:48 PM
I am hoping someone can help me, I added a field in the users profile (field6) which users enter the total amount of weight they have lost. I am trying to add a query which will take all these numbers and add them up to a total I am use on some different pages.
I added the following to a normal webquerie named WQ_totallbs using the following:
SELECT sum( field6 ) AS total
FROM userfield
Then I created a new webtemplate page and tried adding the $WQ_totallbs to the page but nothing shows.
I did this testing in phpmyadmin and it seems to work correctly but it not showing in the webtemplates for some reason.
I am very new to this and just got the query from another user here at vb.org who is doing the same thing, he does it manually and I figured it would be great to add into a webtemplate people can look at for a real-time number instead of manually doing it once a week or whatever.
Any help would be greatly appreciated.
Are you using $WQfield[total] in your Query Result Row section? Also make sure "Advanced Query?" is set to NO.
OKIHost
09-18-2006, 05:36 PM
Are you using $WQfield[total] in your Query Result Row section? Also make sure "Advanced Query?" is set to NO.
Thank you very much, that is what I was missing :)
triphp
09-19-2006, 05:19 AM
Just a question. Can this be used as an article system? We're trying to create a a section in vBulletin where there's a tutorials on HTML, CSS, etc.
Can the page created have a multiple number of page? Let's say view.php?pg=htmlintro&page=1 then view.php?pg=htmlintro&page=2? Trying to make a sort of pagination in the page created, is this possible?
ltaylor
09-20-2006, 11:53 PM
Thankyou! I'm going to have a blast with this hack. Just what I needed!
jw00dy
09-21-2006, 05:47 AM
WOW! What an incredible product!
THANK YOU!
*installed*
daloosaa
09-22-2006, 01:08 PM
very nice mod! works perfect with vb 3.6.1!
Greets,
Florian
evesve
09-25-2006, 05:16 PM
I have this mod with a lot of examples using TEXT and HTML.
Now I need some help with PHP. I don?t understand the manual.
If I take the phpTEST-example...
// This is a TEST PHP Code to demonstrate webtemplates hack PHP parsing feature:
echo "Time now is $today<br><br>";
echo "You registered this board at ".date('M-d-Y h:i:s',$vbulletin->userinfo[joindate]);
exit;
...how can I get this with my Default Basic Theme and default header and footer?
Can someone give me a screenshot, please?
Ohiosweetheart
09-27-2006, 11:36 AM
Question...........
I see that this hack has a feature to allow the administrators to read private messages.
I have a co-administrator who doesn't like this feature at ALL. But I have my own reasons for wanting to be able to read them if necessary. However if HE knew I could, he'd probably leave.
Is there ANY way that this one feature can be available only to ME, and he not even know that it's there?
Logician
09-27-2006, 08:02 PM
Question...........
I see that this hack has a feature to allow the administrators to read private messages.
I have a co-administrator who doesn't like this feature at ALL. But I have my own reasons for wanting to be able to read them if necessary. However if HE knew I could, he'd probably leave.
Is there ANY way that this one feature can be available only to ME, and he not even know that it's there?
Not possible.. Even if you removed his access to "Styles" (ie webtemplates), he can see you reading this private page in wol.
mikeclarke
10-01-2006, 12:33 AM
$user_useravatar and $ipaddress are not working for me. Can anyone help.
Everything else works great!
Logician
10-01-2006, 07:50 AM
$user_useravatar and $ipaddress are not working for me. Can anyone help.
Everything else works great!
Thanks for catching a bug. I released a new version in the first post. Please download it and overwrite /includes/wt_include.php and view.php files to fix the problem.
Kihon Kata
10-01-2006, 01:01 PM
Upgraded mine! Remember if you added more categories(like I did) under wt_include.php to make sure you re-add them in wt_include.php
Thanks Logician, one of more useful hacks ever.
redtailboa
10-06-2006, 02:46 AM
Is there a way for me to create a block in vbadvanced or a html page to list out the last 5 or whatever custom pages I created in webtemplates?
I would like it like http://www.theadminzone.com front page (recent articles block)
triphp
10-06-2006, 06:15 AM
Just a question. Can this be used as an article system? We're trying to create a a section in vBulletin where there's a tutorials on HTML, CSS, etc.
Can the page created have a multiple number of page? Let's say view.php?pg=htmlintro&page=1 then view.php?pg=htmlintro&page=2? Trying to make a sort of pagination in the page created, is this possible?
Any answers on this?
And also, does this provide a pagination of queries? For example, I want to query all the members that belong to UserGroupXXX. There's a possibility that there could be 10000 in that UserGroupXXX. So what I want is to display them by 100s and then a pagination that I can browse, just like the pagination when displaying threads.
GREAT HACK :)
oz_moses
10-11-2006, 07:03 AM
Awesome hack, I'm very happy with this as I'm quite happy with SQL but never learnt PHP - this hack now allows me to have my own queries in the default skin - beautiful!
I've written an advanced webquery.. is there an easy way to have alternating row colours in the resultset? I've been searching for hours for a way but no luck so far.
Thanks so much,
Moses.
Logician
10-11-2006, 07:12 AM
Awesome hack, I'm very happy with this as I'm quite happy with SQL but never learnt PHP - this hack now allows me to have my own queries in the default skin - beautiful!
I've written an advanced webquery.. is there an easy way to have alternating row colors in the resultset? I've been searching for hours for a way but no luck so far.
Thanks so much,
Moses.
Yes you can use
<td class="$alternate"
structure for this. Check sample webqueries for more information...
oz_moses
10-11-2006, 11:02 AM
very nice, I'll get stuck into the samples - loving this hack :)
OKIHost
10-11-2006, 07:52 PM
I setup a web querie which works on my web template pages, but I am trying to find a way to parse it to a new module on vbadvanced for my main homepage. Is there a way to do this or can web queries only be posts onto web templates pages?
Logician
10-11-2006, 08:15 PM
Is there a way to do this or can web queries only be posts onto web templates pages?
They are part of WT code so they are parsed in WT pages only. You can't drag it onto vbadvanced, sorry!
dartho
10-13-2006, 12:45 PM
Am I able to do conditionals in the "Query Result Row" section?
For example if $WQfield[x] is a certain value I can bold it or choose not to dispaly it?
When pulling a date out, it is in the format yyyy/mm/dd - how can I reverse that?
This is a very useful hack, would anyone know of another which can be used for taking data (say from a Form) a and writing to the DB?
Thanks
beduino
10-13-2006, 04:45 PM
it's not a problem :confused:
but i install and upgrade and the version appears....
3.5.0.05
it's right?
tks to share this wonderful work!
all the best
beduino
Stunner
10-18-2006, 08:54 PM
Absolutely love this add-on. 1 problem I have is how to add backgrounds. No matter what html code I use it does nothing:(
oz_moses
10-18-2006, 09:40 PM
Absolutely love this add-on. 1 problem I have is how to add backgrounds. No matter what html code I use it does nothing:(
Try adding backgrounds with CSS
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.