View Single Post
  #1  
Old 04-16-2015, 05:44 AM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help With Ajax Tabs from Dynamic Drive

I have a client that wants to have the Ajax Tabs installed on his site. I'm having difficulty with masking the tabs to work with just the content and not the header, navbar & footer. Lynne has the same thing on her site and that is exactly what I'm trying to accomplish on this site but I have not been able to eliminate the header, navbar etc. I have tried placing the URL as the link for the tab and then have the page come up in the iFrame. It works except as mentioned I need to eliminate the info other than just the table or the page content.

Here is my code I'm working with:

Code:
<link rel="stylesheet" type="text/css" href="ajaxtabs/ajaxtabs.css" />

<script type="text/javascript" src="ajaxtabs/ajaxtabs.js">

/***********************************************
* Ajax Tabs Content script v2.2- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>
<div id="torrenttabs" class="indentmenu">
<ul>
<li><a href="torrents.php?tor=list" rel="#iframe" class="selected">Audio &amp; Video Torrents</a></li>
<li><a href="forumdisplay.php?11-Audio" rel="#iframe">Audio Torrents</a></li>
<li><a href="forumdisplay.php?12-Video" rel="#iframe">Video Torrents</a></li>
<li><a href="torrents.php?&mode=orphan" rel="#iframe">Orphaned Torrents</a></li>
<li><a href="reviews.php" rel="#iframe">Reviews</a></li>
<li><a href="group.php" rel="#iframe">Social Groups</a></li>
</ul>
<br style="clear: left" />
</div>

<div id="torrentdivcontainer" style="width:100%; height:400px;">
</div>


<script type="text/javascript">

var ttabs=new ddajaxtabs("torrenttabs", "torrentdivcontainer")
ttabs.setpersist(false)
ttabs.setselectedClassTarget("link")
ttabs.init()

</script>
As mentioned this code works in the tab in the place I want it but it has the header, navbar & footer which I do not want. Any ideas on getting rid of those or Lynne if you see this can you point me in a direction? I also tried creating a new file and a new template and still did not have the proper code for it to look right or grab the data.

We are running vBulletin 4.2.2. & vBitty 4 XBT 2.0.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01731 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete