The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
WebTemplates 4.x: VB Integrated CMS (Content Management System) Details »» | ||||||||||||||||||||||||||||||||||||||||
WebTemplates 4.x: VB Integrated CMS (Content Management System)
Developer Last Online: Nov 2023
(This hack is for vb version 4.x and above. For vb 3.x, version see my profile for relevant threads.)
"WebTemplates" is a vBulletin integrated Content Management System which allows you to create vb integrated "HTML" pages in your vb admin cp very easily. The pages can inherit your vbulletin skin/style, can recognize logged-in user, can be applied permissions per user or usergroup basis, can keep visit logs, hit counts and do many more. WEBTEMPLATES 4.x BASIC FEATURES:
(Most are from 3.x versions but WebTemplate look and feel didn't change much so all will give you the idea.) http://www.worldwideknights.com/view_mission.htm http://www.theadminzone.com/forums/view.php?pg=aboutus http://www.hystersisters.com/vb2/view_guidelines.htm http://www.worldwideknights.com/view_info.htm http://www.hystersisters.com/vb2/view_books.htm http://www.worldwideknights.com/view_spread.htm http://www.makeuptalk.com/forums/view.php?pg=makeuptalk-newsletter http://www.bklab.com (entire site is designed with Webtemplates only) (Actually this hack is one of the most popular vb hacks so it is used by hundreds -if not thousands- of vbulletin sites and you can easily find them if you go to google and search "Logician's WebTemplates" WITH quotation marks) If you use the hack, clicking here will make sure you'll know about updates&bug fixes. It will also help me understand how many people is using the hack so please click the install button if you use it. Thank you.. Quote:
12.October.2013 - > Version 4.0.2 * Minor fixes for PHP 5.4.x (Fixes "Deprecated: Assigning the return value of new by reference is deprecated" errors in new PHP versions. 14.July.2012 - > Version 4.0.1 * Vbulletin changed WYSIWYG editor parsing in vb4.2.x so hack's editor.php is updated accordingly. 9.September.2010 - > Version 4.0.00 * Hack 4.00.00 is released. Download Now
Screenshots
Show Your Support
|
2 благодарности(ей) от: | ||
Muhammad Rahman, ryancooper |
Comments |
#272
|
|||
|
|||
Thank you. This is very useful.
|
#273
|
|||
|
|||
thank you so much !
|
#274
|
||||
|
||||
I've just installed WebTemplates on a new forum. I used it very successfully on a forum I sold a few years ago and, IMHO, it remains far and away the best CMS mod available for vBulletin.
One slight problem I'm experiencing is with table styling. It's possible I solved this when I used it before, but I can't get it to work now. The rendered HTML table looks like this: Code:
<table cellspacing="5" cellpadding="5" border="1"> <thead> <tr> <th>Username</th> <th>No. of referrals</th> </tr> </thead> <tbody><tr> <td>Prof Pat Pending</td> <td>3</td> </tr><tr> <td>Raven</td> <td>1</td> </tr><tr> <td>Water Cooled</td> <td>1</td> </tr></tbody> </table> a) the TH attribute does not render as bold; b) the cellpadding is ignored; c) the cellspacing is ignored. Whilst I appreciate that the general consensus is to avoid TABLE tags and replace with DIVs, this is tabular data so perfectly suited to a TABLE. Are there vBulletin CSS table classes that I've overlooked which might help me to render my tables in a suitably vBulletinesque way? Thanks in advance! |
#275
|
||||
|
||||
Ok.
I hadn't considered checking the WebTemplate themes. If anybody is looking to apply custom styling to elements within WebTemplates pages, add a new CSS block before </head> in your selected theme and set customisation there. |
#276
|
||||
|
||||
Quote:
Eg. <th style="font-weight:bold; color:#000099">Username</th> Webtemplates does not "touch" your styling actually. Its vb's style sheet that applies to any webtemplate content. |
#277
|
|||
|
|||
I love this mod. It would be great if each page template could pass a unique 'THIS_SCRIPT' variable though. I have several WebTemplate pages that each have their own navigation tab. Due to the fact that the same script generates all of them, only one of these tabs can be the 'Selected tab'' when it is clicked, allowing it to have a different color title text and to show a submenu. I worked around this by hacking the functions_navigation.php file, but it would be great to have this addressed within the mod.
Thanks for a great system. Even with a v4.2.1 CMS install, there is still a real need for the abilities this mod provides. |
#278
|
|||
|
|||
Quote:
The answer was a simple one. I put a conditional statement above the line where the 'THIS_SCRIPT' constant was defined. It takes the pg= value and assigns it as the THIS_SCRIPT constant. Drawing from something Logician did, I took it a step further and looked for an underscore in the pg= value. If one was found, the text to the left of the underscore and the underscore itself becomes the THIS_SCRIPT value. This way, if there are a large number of submenu items for a WebTemplates-generated page, all of the sub-pages can highlight the correct navigation tab if the same prefix is used in their template names, without having to list each of their THIS_SCRIPT values in the navigation tabs admin area. That variable only allows 30 characters of data, so that capacity could quickly become exhausted. In the canned templates installed with this mod, every template that used the Site Information Pages Template theme has a template name that starts with 'info_'. With this naming schema, every Webtemplates-generated page that used that prefix would highlight the same navigation tab using my mod to this mod, if the value 'info_' was added as the Tab Script(s) value for that tab. Anyway, I am a little embarrassed to share the code I used. I am a PERL programmer that is new to PHP and I couldn't get the Regex conditionals to function for me cleanly in PHP, so the code is a little sloppy. It works great though. In the view.php file, replace the PHP Code:
PHP Code:
I hope this info helps. If you find this helpful and can clean up my See-Spot-Run Regex's in my code, I'd appreciate it if you could post the cleaned up code here, so I can see what I was doing wrong. I had to use the two preg_split commands because I couldn't pull the relevant data out of the string in the conditional matches. This is really easy in PERL. I suspect it is in PHP as well. I just got tired of trying to make it work. Thanks and thanks again to Logician, for a wonderful mod. |
#279
|
|||
|
|||
Is there a way to create a web query that would list the last x number of threads for a forum for a specific date?
Thanks, Brandon |
#280
|
||||
|
||||
Quote:
Eg. Code:
SELECT t.threadid, t.title, t.firstpostid, t.lastpost, t.replycount, t.postusername, t.postuserid, t.lastposter, t.dateline, t.views, p.pagetext FROM " . TABLE_PREFIX . "thread t LEFT JOIN " . TABLE_PREFIX . "post p ON p.postid = t.firstpostid WHERE t.forumid = '2' AND t.open = '1' AND t.visible = '1' ORDER BY t.dateline DESC LIMIT 0 , 5 Code:
SELECT t.threadid, t.title, t.firstpostid, t.lastpost, t.replycount, t.postusername, t.postuserid, t.lastposter, t.dateline, t.views, p.pagetext FROM " . TABLE_PREFIX . "thread t LEFT JOIN " . TABLE_PREFIX . "post p ON p.postid = t.firstpostid WHERE t.forumid = '2' AND t.dateline < UNIX_TIMESTAMP('2010-03-27 03:00:00') AND t.open = '1' AND t.visible = '1' ORDER BY t.dateline DESC LIMIT 0 , 5 Code:
SELECT t.threadid, t.title, t.firstpostid, t.lastpost, t.replycount, t.postusername, t.postuserid, t.lastposter, t.dateline, t.views, p.pagetext FROM " . TABLE_PREFIX . "thread t LEFT JOIN " . TABLE_PREFIX . "post p ON p.postid = t.firstpostid WHERE t.forumid = '2' AND t.dateline < UNIX_TIMESTAMP('2010-03-27 03:00:00') AND t.dateline > UNIX_TIMESTAMP('2010-01-01 03:00:00') AND t.open = '1' AND t.visible = '1' ORDER BY t.dateline DESC LIMIT 0 , 5 |
#281
|
|||
|
|||
try install in vB 4.2.1 ,,
but give error . HTML Code:
Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\diskus\view.php on line 787 Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\diskus\view.php on line 916 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|