Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:10:20 AM

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
* Home Help Search Login Register
Pages: 1 [2] 3 4 ... 6   Go Down
Print
Author Topic: New Module - Tabbed Content  (Read 16057 times)
erpe

Offline Offline

Posts: 2077


WWW
« 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

WebBird
Guest
« Reply #26 on: March 17, 2009, 03:44:28 PM »

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. Wink
Logged
WebBird
Guest
« Reply #27 on: March 17, 2009, 03:49:51 PM »

following notices appeared ( before and after your codechange), level  E_ALL:

While I'm not responsible for this module grin 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. wink
Logged
erpe

Offline Offline

Posts: 2077


WWW
« 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

WebBird
Guest
« Reply #29 on: March 17, 2009, 03:55:05 PM »

Okay, if it's okay for the others. wink
Logged
maverik

Offline Offline

Posts: 1568



WWW
« Reply #30 on: March 17, 2009, 03:57:39 PM »

go go go, gibt auch ne choci  grin

gruß vom niederrhein
Logged

Signatur wird geladen...
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« 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... Huh Does anyone have this problem ?
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #32 on: March 17, 2009, 04:07:49 PM »

Hi,

I dont see this module in my combo box where I can add sections... Huh 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 Offline

Posts: 4884



« Reply #33 on: March 17, 2009, 04:34:58 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.
wink

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
« 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 Wink
* 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 Offline

Posts: 2077


WWW
« Reply #35 on: March 17, 2009, 05:06:20 PM »

 smiley
http://www.rvb.bplaced.net/pages/tabber.php

Good work.

rgds

erpe
Logged

Stefek
WebsiteBaker Org e.V.

Offline Offline

Posts: 4884



« 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:


* 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?
 afro

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
WebBird
Guest
« Reply #37 on: March 17, 2009, 05:30:34 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. angry I would have to rewrite the JS. (I don't like to. grin)
Logged
WebBird
Guest
« Reply #38 on: March 17, 2009, 05:32:55 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 Offline

Posts: 2161


WWW
« Reply #39 on: March 17, 2009, 05:51:11 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. angry I would have to rewrite the JS. (I don't like to. grin)
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 Offline

Posts: 4884



« Reply #40 on: March 17, 2009, 06:03:42 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  huh

Regards,
Stefek
Logged

"In a time of universal deceit, telling the truth becomes a revolutionary act."
- George Orwell, Nineteen eighty-four (1984)
WebBird
Guest
« Reply #41 on: March 17, 2009, 06:40:52 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_. grin

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. grin

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 Offline

Posts: 4884



« 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 Offline

Posts: 2161


WWW
« 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
« Reply #44 on: March 18, 2009, 11:26:46 AM »

Thank you. grin

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
« 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? huh
Logged
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #46 on: March 18, 2009, 12:43:55 PM »

I can enable the section feature, but what would you like to use as tab title? huh
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
« 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 Offline

Posts: 2161


WWW
« Reply #48 on: March 18, 2009, 01:15:14 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  grin
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 Offline

Posts: 4884



« 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
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!