View Single Post
  #215  
Old 05-16-2008, 02:00 AM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah...you guys are ALL going to love me!!!

Found out the issue.

The following instructions will achieve the following:
  • Compatible with the latest version of vBulletin. (3.7 Gold)
  • Add a link to the bottom of the module, on the right side, allowing you to go to the full page of your vBIspy.
  • Includes corrected issues for Opera.
  • Includes Corrected code to get rid of double boxes, by keyhunters. NOW, also corrected for Opera.

STEP ONE:
Open va_spy.js and find:
Code:
var vburl = '';
Replace it with this: (replacing what's in red with the directory of your forums)
Code:
var vburl = '/forum/';


STEP TWO:

1. Login to your vb-cp
2. Under vba cmps click "add module"
3. Select "Template"
4. Fill in module title, can be anything
5. Fill in template to include: adv_portal_vBiSpy
6. Select style you want to install.
7. Paste the following in template content, replacing what's in RED (4 Instances) with your information:

Code:
<tr>
<td class="$bgclass">
<if condition="is_browser('opera')">

<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<thead>
<a href="ENTER FULL URL/vaispy.php"></a>
<tr align="center"><td class="thead" width="20">&nbsp;</td><td class="thead" width="190">By</td><td class="thead">Thread/Post</td><td class="thead" width="190">Forum</td></tr>

</thead>
<tr><td colspan="4" class="alt1">
<div id="row1" style="display:none;"></div>
<div id="row2" style="display:none;"></div>
<div id="row3" style="display:none;"></div>
<div id="row4" style="display:none;"></div>
<div id="row5" style="display:none;"></div>
<div id="row6" style="display:none;"></div>
<div id="row7" style="display:none;"></div>
<div id="row8" style="display:none;"></div>
<div id="row9" style="display:none;"></div>
<div id="row10" style="display:none;"></div>
</td></tr>
<td class="thead" colspan="2" align="left"><input type="checkbox" id="subscribe" value="1" /> &nbsp; Click for subscribed threads only!</td><td class="thead" colspan="2" align="right"><a href="ENTER FULL URL/vaispy.php">Click here to view Full Page</a></td>

</table>

<else />
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center" id="spy_table">
<thead>
<a href="ENTER FULL URL/vaispy.php"></a>
<tr align="center"><td class="thead" width="20">&nbsp;</td><td class="thead" width="190">By</td><td class="thead">Thread/Post</td><td class="thead" width="190">Forum</td></tr>

</thead>
<tbody class="alt1">
<tr id="row1"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row2"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row3"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row4"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row5"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row6"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row7"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row8"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row9"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
<tr id="row10" class="spyfade4"><td align="center">&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">&nbsp;</td></tr>
</tbody>

<td class="thead" colspan="2" align="left"><input type="checkbox" id="subscribe" value="1" /> &nbsp; Click for subscribed threads only!</td><td class="thead" colspan="2" align="right"><a href="ENTER FULL URL/vaispy.php">Click here to view Full Page</a></td>
</table>

</if>


</td>
</tr>


STEP THREE:

Open adv_portal template and find this:
Code:
$headinclude
add below: (Replacing what's in red with your information)
Code:
<script language="javascript" src="ENTER FULL URL/clientscript/va_prototype.js"></script>
<script language="javascript" src="ENTER FULL URL/clientscript/va_effects.js"></script>
<script language="javascript" src="ENTER FULL URL/clientscript/va_spy.js"></script>
<script language="javascript">
    spymax = 10;
    highestid = 0;
</script>
Find:
Code:
$footer
Add Below:
Code:
<script language="javascript">
    spyinit();
</script>
Almost every time I have an issue with something not working on a vbadvanced script I have to enter the full url. I tried it on this, and voila!!

I am using vBAdvanced 3.0.1 and vBulletin 3.7.0 Gold
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01294 seconds
  • Memory Usage 1,801KB
  • 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
  • (7)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