Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 27, 2012, 05:10:20 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
.
155555
Posts in
21715
Topics by
7737
Members
Latest Member:
gx-world
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
New Module - Tabbed Content
Pages:
1
[
2
]
3
4
...
6
Go Down
Author
Topic: New Module - Tabbed Content (Read 16057 times)
erpe
Offline
Posts: 2077
Re: New Module - Tabbed Content
«
Reply #25 on:
March 17, 2009, 08:50:58 AM »
Hi
tested it on another space and got
Quote
Warning: Invalid argument supplied for foreach() in /users/rvb/www/modules/tabber/include.php on line 27
with no output (php 5.2.8.).
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #26 on:
March 17, 2009, 03:44:28 PM »
Quote from: erpe on March 17, 2009, 08:50:58 AM
tested it on another space and got
Quote
Warning: Invalid argument supplied for foreach() in /users/rvb/www/modules/tabber/include.php on line 27
This warning will appear if the page list is empty or not an array.
Logged
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #27 on:
March 17, 2009, 03:49:51 PM »
Quote from: erpe on March 16, 2009, 01:18:25 PM
following notices appeared ( before and after your codechange), level E_ALL:
While I'm not responsible for this module
I can state that this is because the include.php has the following include:
Code:
include_once(WB_PATH.'/framework/class.frontend.php');
I can take over the maintenance of this module if the author wishes. In this case, I will do all I can to correct all the other faults there may be.
Logged
erpe
Offline
Posts: 2077
Re: New Module - Tabbed Content
«
Reply #28 on:
March 17, 2009, 03:51:23 PM »
For tomhung has retired from WebsiteBaker would be nice if you would do that.
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #29 on:
March 17, 2009, 03:55:05 PM »
Okay, if it's okay for the others.
Logged
maverik
Offline
Posts: 1568
Re: New Module - Tabbed Content
«
Reply #30 on:
March 17, 2009, 03:57:39 PM »
go go go, gibt auch ne choci
gruß vom niederrhein
Logged
Signatur wird geladen...
crnogorac081
AddOn Development
Offline
Posts: 1706
Re: New Module - Tabbed Content
«
Reply #31 on:
March 17, 2009, 04:05:50 PM »
Hi,
I dont see this module in my combo box where I can add sections...
Does anyone have this problem ?
Logged
Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Argos
Moderator
Offline
Posts: 2161
Re: New Module - Tabbed Content
«
Reply #32 on:
March 17, 2009, 04:07:49 PM »
Quote from: crnogorac081 on March 17, 2009, 04:05:50 PM
Hi,
I dont see this module in my combo box where I can add sections...
Does anyone have this problem ?
It's not a problem, it's the way it works. It uses a code section. Read the info!
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: New Module - Tabbed Content
«
Reply #33 on:
March 17, 2009, 04:34:58 PM »
Quote from: crnogorac081 on March 17, 2009, 04:05:50 PM
I dont see this module in my combo box where I can add sections...
WB distinguishes three types of modules:
* Page type modules
* Administration tools (admin module)
* Additional functions (code snippets)
This is a "Code Snippet" Module - Therefore you will have no dashboard for it.
For more info look here:
http://help.websitebaker.org/pages/en/advanced-docu/developer-guide/wb-module-types.php
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #34 on:
March 17, 2009, 04:55:35 PM »
You may want to try this out. (See attachment below.)
Changes:
* Included the fix I posted yesterday, which brought up this thread to the top
* Prevent recursion (if the page the tabber is included in appears in the page list)
* Suppress the NOTICEs (Quick and dirty at the moment; I didn't find a clean way in this short time)
* Renamed function get_page_content() to tabber_get_page_con
tent() to be more precise (avoid name clash)
* Renamed tabber.css to frontend.css
* Allows
Code:
tabber(array(1,2,3));
or
Code:
tabber('1,2,3');
to be used
* Corrected HTML to be valid XHTML
«
Last Edit: May 19, 2009, 10:53:21 AM by Argos
»
Logged
erpe
Offline
Posts: 2077
Re: New Module - Tabbed Content
«
Reply #35 on:
March 17, 2009, 05:06:20 PM »
http://www.rvb.bplaced.net/pages/tabber.php
Good work.
rgds
erpe
Logged
stories about
be part of the Tutorials-Project
visit the jQuery-Showroom
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: New Module - Tabbed Content
«
Reply #36 on:
March 17, 2009, 05:12:23 PM »
Hello Webbird.
Thanks for this refreshed version.
Could you please provide a little info (for noncoders) what this means:
Quote from: WebBird on March 17, 2009, 04:55:35 PM
* Allows
Code:
tabber(array(1,2,3));
or
Code:
tabber('1,2,3');
to be used
What can I do with the array stuff?
What is this good for?
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #37 on:
March 17, 2009, 05:30:34 PM »
Quote from: Argos on March 16, 2009, 05:26:35 PM
More wishes:
- use alternative tab titles AND/OR use <br> within tab titles (useful if page titles are very long)
This can't be done 'cause the JavaScript removes all non-alphanumeric characters from the heading.
I would have to rewrite the JS. (I don't like to.
)
Logged
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #38 on:
March 17, 2009, 05:32:55 PM »
Quote from: Stefek on March 17, 2009, 05:12:23 PM
What can I do with the array stuff?
What is this good for?
It's just a (more precise) way to give a list of page numbers. It means "this function has one parameter, and it's an array". An array defines a list in PHP.
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New Module - Tabbed Content
«
Reply #39 on:
March 17, 2009, 05:51:11 PM »
Quote from: WebBird on March 17, 2009, 05:30:34 PM
Quote from: Argos on March 16, 2009, 05:26:35 PM
More wishes:
- use alternative tab titles AND/OR use <br> within tab titles (useful if page titles are very long)
This can't be done 'cause the JavaScript removes all non-alphanumeric characters from the heading.
I would have to rewrite the JS. (I don't like to.
)
So the break can't be done. But what about alternative tab titles? Some pages have long descriptive titles, and for tabs you want short titles.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: New Module - Tabbed Content
«
Reply #40 on:
March 17, 2009, 06:03:42 PM »
Quote from: Argos on March 17, 2009, 05:51:11 PM
But what about alternative tab titles? Some pages have long descriptive titles, and for tabs you want short titles.
Why don't use the menu-title instead of the page-title?
They're shorter generally
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #41 on:
March 17, 2009, 06:40:52 PM »
Quote from: Argos on March 17, 2009, 05:51:11 PM
So the break can't be done. But what about alternative tab titles? Some pages have long descriptive titles, and for tabs you want short titles.
It can't be done by _me_.
So have a look at new version 0.3.
Code:
tabber_use_menu_title();
tabber('3,5');
...uses the menu title for the tabs.
Code:
tabber('3,5');
...behaves like v0.1 and v0.2.
Should be enough for today.
Edit:
Removed attachment. See below for current version.
«
Last Edit: March 19, 2009, 11:38:46 AM by WebBird
»
Logged
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: New Module - Tabbed Content
«
Reply #42 on:
March 17, 2009, 06:48:07 PM »
Cool.
Thanks WebBird.
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Argos
Moderator
Offline
Posts: 2161
Re: New Module - Tabbed Content
«
Reply #43 on:
March 17, 2009, 10:09:02 PM »
Nice work WebBird, thank you!
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #44 on:
March 18, 2009, 11:26:46 AM »
Thank you.
There are two things I'd like to mention, you should know if you use this snippet. It is just a wrapper around a JavaScript provided by
http://www.barelyfitz.com/projects/tabber/
1. It's all done by JavaScript. To see what this means, just view your Tabber enhanced page with JavaScript disabled in your browser. (The contents of all included pages are shown among one another.)
2. Keep in mind that all included pages are loaded at once. So, if you include a bunch of large pages with Tabber, the page loading time will exceed. So, use with care.
Logged
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #45 on:
March 18, 2009, 12:35:42 PM »
I can enable the section feature, but what would you like to use as tab title?
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New Module - Tabbed Content
«
Reply #46 on:
March 18, 2009, 12:43:55 PM »
Quote from: WebBird on March 18, 2009, 12:35:42 PM
I can enable the section feature, but what would you like to use as tab title?
You should be able to set custom titles for sections, I'm afraid...
Or be able to give sections titles themselves, but that's outside the module.
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
WebBird
Guest
Re: New Module - Tabbed Content
«
Reply #47 on:
March 18, 2009, 01:11:03 PM »
Hm. Could you live with it using like this?
Code:
tabber_sections(
array(
1 => "Title for Section 1",
2 => "Title for Section 2"
)
);
Logged
Argos
Moderator
Offline
Posts: 2161
Re: New Module - Tabbed Content
«
Reply #48 on:
March 18, 2009, 01:15:14 PM »
Quote from: WebBird on March 18, 2009, 01:11:03 PM
Hm. Could you live with it using like this?
Code:
tabber_sections(
array(
1 => "Title for Section 1",
2 => "Title for Section 2"
)
);
Yes, I could
Great!
Could you do the same with page titles? To overrule the default ones?
Logged
Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase:
http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Stefek
WebsiteBaker Org e.V.
Offline
Posts: 4884
Re: New Module - Tabbed Content
«
Reply #49 on:
March 18, 2009, 01:18:17 PM »
Yes. I could live with this.
It seems to be easy.
You have to set the numbers of the sections anyway - so why don't write the titles behind them.
Good Idea.
BTW.
If all this is working with "Tabber", is there any posibility to make it work with "Coda Slider"?
I mean after some adjustements to the snippet?
Regards,
Stefek
Logged
"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
Pages:
1
[
2
]
3
4
...
6
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...