Results 1 to 2 of 2

Thread: DD Tab content

  1. #1
    Join Date
    Sep 2008
    Location
    Philippines
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DD Tab content

    1) Script Title:
    Tab Content Script (v 2.2)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem:
    I'm dying to use this script using a PHP content management system called CuteNews. So, I inserted the codes, did everything as instructed. When I am using regular divs, the tab contents work. However, when I tried inserting my PHP code to show my CuteNews, it does not show my PHP script even though I did not forget to use a file extension of .php on the file. How do I make PHP's work with the Tab Content Scripts?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Are you generating the entire HTML markup of the script dynamically using PHP, or just the individual contents within each tab (with the rest already manually defined on the page)? If the former, it really depends on how CuteNews allows you to output its contents and using what template syntax. If the later, since each content DIV simply shows arbitrary HTML within it, you'd replace that HTML with the appropriate PHP code instead, such as:

    Code:
    <div style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
    
    <div id="country1" class="tabcontent">
    <? echo $content1;?>
    </div>
    
    <div id="country2" class="tabcontent">
    <? echo $content2;?>
    </div>
    
    <div id="country3" class="tabcontent">
    <? echo $content3;?>
    </div>
    
    </div>
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •