Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:10:09 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 ... 6   Go Down
Print
Author Topic: New Module - Tabbed Content  (Read 16057 times)
tomhung

Offline Offline

Posts: 353


« on: December 04, 2007, 01:15:02 AM »

ok so this is really a snippet right now.. but will soon be an actual module.

step 1 install the module

step 2 make a code page
Code:
tabber(array(3,19));
where the array is the page_id's to include in your tabs

This will include the page's.

There are some in inherent problems with including pages that link back to themselves.  This is best for WYSIWYG and Gallerys.  I"m sure there are others that are OK. 

Greg

module based on http://www.barelyfitz.com/projects/tabber/

[Look for the most recent tabber script at http://www.websitebakers.com/pages/code-snippets/listings/tabber.php]
« Last Edit: May 19, 2009, 10:52:31 AM by Argos » Logged
marathoner

Offline Offline

Posts: 495


« Reply #1 on: December 04, 2007, 01:54:57 AM »

I haven't tested it yet but if it works like the barelyfitz.com example then this will be very useful!
Logged
doc
Guest
« Reply #2 on: December 04, 2007, 05:04:21 AM »

Hi Greg,

wow thats a cool snippet. Already had in mind to code one, but yours already seems to include all the features I need. Will do some more testing during this week. Thanks for all your recent contribution to websitebaker. They are highly appreciated.

Regards Christian
Logged
Vincent

Offline Offline

Posts: 360


WWW
« Reply #3 on: December 04, 2007, 03:17:02 PM »

I haven't tested it but it sounds very interesting indeed. Thanks, Greg.

Vincent
Logged
macsmet

Offline Offline

Posts: 234


« Reply #4 on: December 04, 2007, 04:11:30 PM »

It works and it looks nice.
Like Tomhung said it is only usefull for wysiwyg and Gallerys. It does work with other pages but when you go to another page like 'sign guestbook'  you lose the tabbed content.

Thanks!
Logged
tomhung

Offline Offline

Posts: 353


« Reply #5 on: December 04, 2007, 04:15:00 PM »

this can be accomplished thourgh using a couple wrapping "code" sections... but it is more of a hack
Logged
WebBird
Guest
« Reply #6 on: March 16, 2009, 12:56:26 PM »

I found a bug in this module that causes page blocks to disappear in some cases.

The reason is that function get_page_content($get_id){ (file include.php) tries to store the ID of the current page by using
Code:
global $page_id;
which is not set! So, the ID of the current page cannot be restored after including the tabbed content. All blocks that would appear _after_ the tabbed code block will disappear, because $wb->page_id is now empty.

To fix this, change the function like this:

Code:
function get_page_content($get_id){
        global $wb;
$me_id = $wb->page_id;
        $wb -> page_id = $get_id;
        $wb -> get_page_details();
        page_content();
$wb->page_id = $me_id;
        $wb -> get_page_details();
}

(The lines not indented are the important ones.)
« Last Edit: March 16, 2009, 12:58:20 PM by WebBird » Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #7 on: March 16, 2009, 01:18:25 PM »

Hi Webbird,

following notices appeared ( before and after your codechange), level  E_ALL:
Quote
Notice: Constant PAGE_ID already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 156

Notice: Constant PAGE_TITLE already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 158

Notice: Constant MENU_TITLE already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 163

Notice: Constant PARENT already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 169

Notice: Constant ROOT_PARENT already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 172

Notice: Constant LEVEL already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 175

Notice: Constant VISIBILITY already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 178

Notice: Constant PAGE_DESCRIPTION already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 189

Notice: Constant TEMPLATE_DIR already defined in /var/kunden/webs/test3/framework/class.frontend.php on line 212

rgds

erpe
Logged

saiborg

Offline Offline

Posts: 101


WWW
« Reply #8 on: March 16, 2009, 02:30:16 PM »

Hi,

i tested the modul...great, but...
if one of the pages does have big galleries the module crashes...
does someone have an idea why that happens??

Dirk
Logged

schaut doch mal vorbei

http://www.microott.de
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #9 on: March 16, 2009, 04:17:41 PM »

Wow, this module is from 2007??? I can't believe I missed it!!! Super cool stuff, and soooo easy to implement. 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!
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #10 on: March 16, 2009, 04:37:35 PM »

following notices appeared
I installed on a default WB2.7 test site and I had no errors.
« Last Edit: May 07, 2009, 11:24:05 AM by Argos » 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 #11 on: March 16, 2009, 05:07:23 PM »

Hello Jurgen.

I saw your demo. Nice. Is the Form working in it correctly?

BTW: "This module lets you create a tabbed interface for WB sections."
It is not for "pages" insteand of "sections"?

Would be great if someone could give possibility for both: sections and pages.

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 #12 on: March 16, 2009, 05:26:35 PM »

You're right Stefek, it was "pages"  rolleyes
Would be nice to be able to put sections as well, though!

More wishes:
- use alternative tab titles AND/OR use <br> within tab titles (useful if page titles are very long)
- (CSS) styling within admin

BTW The form works fine within the tab!
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 #13 on: March 16, 2009, 05:37:52 PM »

You're right Stefek, it was "pages"  rolleyes
Would be nice to be able to put sections as well, though!

More wishes:
- use alternative tab titles AND/OR use <br> within tab titles (useful if page titles are very long)
- (CSS) styling within admin

BTW The form works fine within the tab!
Ahh.now I see. The Tab-Name will be generated from the pagetitle - so no (or less) chance to meke it work with sections.


The styling of CSS should work with the "Addon File Editor" ;.)

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 #14 on: March 16, 2009, 05:42:33 PM »

You're right Stefek, it was "pages"  rolleyes
Would be nice to be able to put sections as well, though!

More wishes:
- use alternative tab titles AND/OR use <br> within tab titles (useful if page titles are very long)
- (CSS) styling within admin

BTW The form works fine within the tab!
Ahh.now I see. The Tab-Name will be generated from the pagetitle - so no (or less) chance to meke it work with sections.
If there would be an option to overrule the default page titles with custom titles, it should work with sections as well.
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 #15 on: March 16, 2009, 05:51:18 PM »

Oh yess..

For that case we will need someone who is able to create a kind of dashboard for this.
I mean, than you won't need to use a "code" section but will be able to use this as a page-Module with additional adjustments. Also the Frontend CSS

But I don't know if someone is interested in it.
I mean, it's working good with Pages without any additional adjustments.
So what.. smiley

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 #16 on: March 16, 2009, 05:55:02 PM »

Would also be nice to have a droplet version of it!

LOL We just "discovered" this little gem, and already we're asking for enhancements  grin
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!
snark
Guest
« Reply #17 on: March 16, 2009, 08:24:14 PM »

I do not know if it comes in handy for someone but this is someting that looks a lot like the tabber...


http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm


Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #18 on: March 16, 2009, 09:11:41 PM »

Hallo,

vielleicht dasvon Yahoo! UI Library: TabView

Gruss
Dietmar
Logged

We are human beings - and nobody is perfect at all.
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #19 on: March 16, 2009, 09:20:47 PM »

What's wrong with the one used? Why mention the alternatives? Are they better somehow? I don't get it... There are hundreds of scripts like that, there is no point in telling us other scripts exist. But they are not WB modules like this one...
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!
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #20 on: March 16, 2009, 09:29:54 PM »

hi,

i think we need a standard. My meaning is jquery. What do you think about it. Your Tabview looks fine.
All module, that will come from me and work with java the jquery is standard.

For all jquery fans, here the link for the tabview.

http://jqueryui.com/demos/tabs/

greetings
Dietmar

Logged

We are human beings - and nobody is perfect at all.
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #21 on: March 16, 2009, 09:33:39 PM »

It's not my module or script  grin
But I like it a lot. I use jQuery myself sometimes, and it's cool. But we are discussing WB modules here, not scripts per se. So discussing development tools or coding languages and whatnot should be discussed in the developers forum or something, not in this topic or forum. If you create a JQuery based tab module, please let us know.
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!
snark
Guest
« Reply #22 on: March 16, 2009, 11:31:56 PM »

What's wrong with the one used? Why mention the alternatives? Are they better somehow? I don't get it... There are hundreds of scripts like that, there is no point in telling us other scripts exist. But they are not WB modules like this one...

Hold your horses man.. I was just trying to help here hah....

sorry if it offended you in any way, I looked into the used script and thought that the one I mentioned was maybe more suitable to be used in a module that can make it possible to create new items like f.i. a newsmodule can and make them become the tabs & content which to me looks much more handy to use.
Logged
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #23 on: March 16, 2009, 11:37:39 PM »

Did I sound offended? I wasn't! I just did not understand the meaning of posting links to other scripts, without telling us why. Now you told us. Thanks  grin
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!
snark
Guest
« Reply #24 on: March 16, 2009, 11:43:26 PM »

okay, sometimes I have to be more clear, you're right. I will try to make my ideas come to life later this week, for now I have a zillion spoedklussen ...
Logged
Pages: [1] 2 3 ... 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!