Jump to content

Recommended Posts

I am not sure whether this is the right place to post this problem of mine but I certainly hope someone can help me.

 

I have created a form which has multiple tabs.  Some of the tabs,  when you click on it,  will show you some text information in the tab window.  I have no problem with that.  On one of my tabs,  I want to show my blog entries in the tab window.  How can I do that?

 

My development site is http://dev.jclickcity.com/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=5&sobi2Id=1&Itemid=5 . Hope this gives you a better understanding of what I want to achieve.

 

Below is a section of the code that I have.

 

 

    <!-- Tabs - Create Object -->

    <?php $myTabs = new sobiTabs( false ); ?>

    <!-- Tabs - Start Pane -->

    <?php $myTabs->startPane("pane1name"); ?>

 

    <!-- Tabs - Start Tab 1 - Description -->

    <?php $myTabs->startTab("  About  ","AboutLabelText"); ?>

 

  <div class="tpsobivc_doted">

    <?php $this->customFieldsData($itemData, 'field_description'); ?>

    <br />

    <?php

    $db =& $config->getDb();

    $user = new mosUser( $db );

    $user->load( $mySobi->owner );

    ?>

 

    <p>Visit Member Profile: <a href="<?php echo $mosConfig_live_site; ?>/index.php?option=com_comprofiler&task=userProfile&user=<?php echo $mySobi->owner ?>"><?php echo $user->username ?></a>

    </p>

   

  </div>

 

    <br />

    <?php $myTabs->endTab(); ?>

    <!-- Tabs - End Tab 1 -->

 

 

 

<div class="tpsobivc_doted">

 

<?php

        $cnt = 1;

        foreach ($fieldsObjects['field_options']->data as $name => $value) {

 

            switch (substr($name,0))  {

                 

              case "Blog": ?>

 

                    <?php $myTabs->startTab("  Blog  ","BlogLabelText"); ?>

                    <a href="http://dev.jclickcity.com/index.php?option=com_myblog&task=adminhome&Itemid=10" target="_self"></a>

                    <?php $myTabs->endTab();                 

                    break;

                         

              case "Forum": ?>

                    <?php $myTabs->startTab("  Forum  ","ForumLabelText"); ?>

                    <?php $myTabs->endTab();                 

                    break;

                   

              case "Gallery": ?>

                    <?php $myTabs->startTab("  Gallery  ","GalleryLabelText"); ?>             

                    <?php echo $plugins['gallery']; ?>

                    <?php $myTabs->endTab();                   

                    break;

                   

              case "Media": ?>

                    <?php $myTabs->startTab("  Media  ","MediaLabelText"); ?>             

                    <?php echo $plugins['media']; ?>

                    <?php $myTabs->endTab();                   

                    break;

             

            } ?>

           

            <?php $cnt += 1; ?>

           

      <?php } ?>

 

</div>

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/
Share on other sites

Hi Rarebit

 

I am very new to PHP actually.  This is my first serious code and I would really appreciate all the help possible.

 

The section that I would like the code in is in the section 'Case 'Blog'.  I actually put the code as follows:

 

case "Blog": ?>

 

                    <?php $myTabs->startTab("  Blog  ","BlogLabelText"); ?>

                    <a href="http://dev.jclickcity.com/index.php? option=com_myblog&task=adminhome&Itemid=10" target="_self"></a>

                   

                    <?php $myTabs->endTab();                 

                    break;

 

But nothing happens when I click on Blog.

 

 

Yes, I am using a Joomla CMS.

 

Sorry, perhaps I was not too clear about where to click for Blog.  It is actually the tabs in my Viking Bar card system.  You can see About | Forum | Media | Blog | Products | Review .  This is the section I was referring to.  I am actually using SOBI2 for that section.

Wow, that's a small world.  So,  do you still come back here for holidays?

 

I am attaching a file here to show you where I mean.  If you go to the url,  you will see that screen and if you click where I indicate by the arrow,  you will see that it is blank.  What I want is actually to show what you saw when you clicked MyBlog.

 

 

[attachment deleted by admin]

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.