judyksp Posted July 12, 2008 Share Posted July 12, 2008 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 More sharing options...
rarebit Posted July 12, 2008 Share Posted July 12, 2008 what section of code GETs the variable indicating which tab is selected? This would inform your script which page was to be display and data to dump! Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588355 Share on other sites More sharing options...
judyksp Posted July 12, 2008 Author Share Posted July 12, 2008 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. Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588358 Share on other sites More sharing options...
rarebit Posted July 12, 2008 Share Posted July 12, 2008 I get a blog page when I click on the 'myblog' button. Is this site using Joomla CMS? In the other sections you echo a line like this: <?php echo $plugins['gallery']; ?> I'd assume thered be corresponding one for 'blog'? Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588359 Share on other sites More sharing options...
judyksp Posted July 12, 2008 Author Share Posted July 12, 2008 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. Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588379 Share on other sites More sharing options...
rarebit Posted July 12, 2008 Share Posted July 12, 2008 I don't see where you mean, but just realised where the bar is, I used to work in 'The Mix Pub' in Lamai back in 1993... Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588411 Share on other sites More sharing options...
judyksp Posted July 12, 2008 Author Share Posted July 12, 2008 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] Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588428 Share on other sites More sharing options...
rarebit Posted July 12, 2008 Share Posted July 12, 2008 *.doc, I take it your using microsoft windows... let me wash the pots and i'll install abiword! Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588429 Share on other sites More sharing options...
judyksp Posted July 12, 2008 Author Share Posted July 12, 2008 Oh yes, I am using Microsoft Word. If you have problem with the file, I will try and save it as a image file. Let me know. Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588431 Share on other sites More sharing options...
rarebit Posted July 12, 2008 Share Posted July 12, 2008 Well, I know why I don't see any of that (except an 'about' link) is because I have noscript running which blocks all JS... I always do since the advent of AJAX, sorry! Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588436 Share on other sites More sharing options...
judyksp Posted July 12, 2008 Author Share Posted July 12, 2008 No problem. Glad you understand my problem now. Hope you can help. Need to go to sleep now. Link to comment https://forums.phpfreaks.com/topic/114407-calling-a-url-in-a-tab/#findComment-588448 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.