Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 01:12:24 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
155557
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Archive (posts up to 2007)
(Moderator:
Argos
)
New Template "Zen Like 1.0"
Pages: [
1
]
Go Down
Author
Topic: New Template "Zen Like 1.0" (Read 4249 times)
kweitzel
Forum administrator
Offline
Posts: 6977
New Template "Zen Like 1.0"
«
on:
October 19, 2006, 08:26:26 AM »
Hi Folks,
had a bit of time at my hands, so I took a template from NodeThirtyThree Design and converted it to a WB template.
The Template requires the add-on menu "
show_menu2
" installed at your WB installation. Menu wise it is splitted between manin naviagtion (top, horizontal) and sub navigation (right side, vertical).
Since it is originally made for blogging, there are lot's of styles included to modify your news posts. Therefor I included the original HTML index file for you, so you can read the required styles and incorporate them (if you want). Included is a little newsbox (right side) displaying the last 2 news entries. It also features an additional content block between the menu and the content area.
Like usually, the Template is available over at the
Add-On Repository
for preview and download.
Enjoy this template ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Amosnet
Offline
Posts: 7
Re: New Template "Zen Like 1.0"
«
Reply #1 on:
November 01, 2006, 01:39:30 PM »
Thank you for you good work!
I really love this template.
Logged
SaBRENT
Offline
Posts: 27
Re: New Template "Zen Like 1.0"
«
Reply #2 on:
November 01, 2006, 04:08:44 PM »
I am trying to find a way to hide "divider1" when "page_content(2)" is false but it doesnt seem to return false, just a blank return, can this be done some how?
«
Last Edit: November 01, 2006, 04:27:04 PM by SaBRENT
»
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: New Template "Zen Like 1.0"
«
Reply #3 on:
November 01, 2006, 06:51:08 PM »
you need to add some PHP to the templates index file which queries this condition and then echos an styledeclaration which sets this class to "display: hidden;" ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Amosnet
Offline
Posts: 7
Re: New Template "Zen Like 1.0"
«
Reply #4 on:
November 02, 2006, 07:53:34 PM »
Hi Klaus,
i use you template in:
www.gesundetipps.de
Is it possible to expand some of your good funktions?
I really need to change the "headerpic" in every Main Page, is this possible?
Is it possible chage the secondarycontent in every page? I need to show different banners
How can i show pictures like your "main index.html" Testpage?
Thanks for you good work, just want to improve it.
Amos
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: New Template "Zen Like 1.0"
«
Reply #5 on:
November 03, 2006, 08:55:58 AM »
OK ..
1) out this code into the imagtag, where the path begins:
Code:
<img src="
<?php
echo
WB_URL
.
'/media/backgrounds/'
.
'PAGE_NAME.'
.
gif
'; ?>
">
you need to name the image after the pagename (exact match)
2) Either again the same way as above (if you don't want to use blocks) if the picture is always the same each page or with the module "random Image" if it ahs to be a random image
... There is also a module (I think still in development) by rsmith called
Random section
which can achive this using sections (but you'd need to paly around with it and it might not work propperly ...)
3) Have a look into the sourcecode of the index-html file. There you find following code:
Code:
<img src="images/pic1.jpg" class="left" alt="A chinese lion statue" />
The class defined in there (left) is the one to choose (or uplicate in the css. file).
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
SaBRENT
Offline
Posts: 27
Re: New Template "Zen Like 1.0"
«
Reply #6 on:
November 03, 2006, 02:24:40 PM »
Quote from: kweitzel on November 01, 2006, 06:51:08 PM
you need to add some PHP to the templates index file which queries this condition and then echos an styledeclaration which sets this class to "display: hidden;" ...
cheers
Klaus
Well I got it working using an output buffer, I would like to use a mysql query but this seems to work for now,
Code:
<div id="normalcontent">
<?php
ob_start
();
echo
page_content
(
2
);
$content2
=
ob_get_contents
();
ob_end_clean
();
if (
$content2
<>
""
) {
echo
"
$content2
"
;
echo
"<div class=\"divider1\"></div>"
;
}
?>
<!-- Content Block 2 - Header Content -->
</div>
Any comments welcome.
«
Last Edit: November 03, 2006, 02:26:14 PM by SaBRENT
»
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: New Template "Zen Like 1.0"
«
Reply #7 on:
November 03, 2006, 03:23:31 PM »
to me that seems a fine solution ... why would you want an additional DB querry (requireing additional time and CPU power)?
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Pitti
Offline
Posts: 16
Re: New Template "Zen Like 1.0"
«
Reply #8 on:
August 16, 2007, 08:47:10 AM »
hi
i will use this template but i have (at the moment) one question:
where can i say in the css what style have the lists ?
look hat this:
Site with a list
the List Points are left of the content .... but i wont that the list is right of the content
how can i make this ?
PS: sorry for my bad english
jippi .... have found it
in #content insert this
list-style-position: inside;
cool
«
Last Edit: August 16, 2007, 09:07:12 AM by Pitti
»
Logged
Revive
Offline
Posts: 28
Re: New Template "Zen Like 1.0"
«
Reply #9 on:
November 14, 2007, 02:17:48 PM »
Hello Kweitzel,
Thank you again for such a simple, clean and cool template. I have a question regarding moving the Sub Navigation from the right sidebar to a place under the main links.. can this be done. Please take a look at the attached images and tell me what you think... I'm a super noob at php and DO NOT want to screw up this template. Thanks again!
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: New Template "Zen Like 1.0"
«
Reply #10 on:
November 15, 2007, 04:22:32 PM »
yes it can be done, styling is purly done via CSS. Have a look at css.maxdesign.com.a
u for formatting options. And, btw, the newsbox can be filled by creating min. 2 newsitems on a newspage.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Revive
Offline
Posts: 28
Re: New Template "Zen Like 1.0"
«
Reply #11 on:
November 28, 2007, 08:14:59 PM »
Excellent.. I was able to get the breadcrumbs where we wanted, and changed the way we want the child pages on the menu to display - have you implemented suckerfish styled menus in this template or others?? Would you be interested in doing so?? Thanks again, all of your help (on this article and others in the forum) have been very helpful..
Looking forward to your reply.
Logged
kweitzel
Forum administrator
Offline
Posts: 6977
Re: New Template "Zen Like 1.0"
«
Reply #12 on:
November 29, 2007, 06:46:52 PM »
nae, haven't implemented anything like that yet ... but not much time on my hands I have to admit ... work takes over my life ...
But have a look at the show_menu2 and the implementation of the UDM4 Menu ... maybe the other one is similar.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
powderbomber
Offline
Posts: 55
Re: New Template "Zen Like 1.0"
«
Reply #13 on:
November 30, 2007, 12:29:10 AM »
using showmenu2 and suckerfish is a piece of cake - call the showmenu script like this:
Code:
<?php show_menu2
(
0
,
SM2_ROOT
,
SM2_ALL
,
SM2_ALL
|
SM2_PRETTY
,
'<li>[ac][menu_title]</a>'
,
false
,
'<ul>'
,
false
,
false
,
'<ul id="nav">'
);
?>
Then put the css in exactly as it is in the tutorial at:
http://www.htmldog.com/articles/suckerfish/dropdowns/
Dont forget to add the fix to prevent "sticky" menus:
Code:
#nav li:hover {position: static;}
And youll be up and running. It wont look how you want it to, but youll have the menu working and you can style it from there.
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...