Thread: Major Additions - Modification System
View Single Post
  #224  
Old 09-29-2008, 10:08 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for those that are not using the TM hack.
there are two more template edits that wasn't in the original read me files and this is needed to have the ajax feature to work without the redirect message for the install and uninstall feature ,and also the paypal feature too to enter the amount.
================================================== ======================
showthread template:

find: <head>

Underneath add:

<!-- Hack System -->
<script type="text/javascript">
<!--
var bottomdiv_installed = '$vbphrase[modsystem_mark_installed]';
var bottomdiv_uninstalled = '$vbphrase[modsystem_mark_uninstalled]';
var bottomdiv_to_receive = '$vbphrase[modsystem_mod_to_reveive]';
var nombottomDiv_nominate_a = '$vbphrase[modsystem_nom_nominate_a]';
var nombottomDiv_nominate_b = '$vbphrase[modsystem_nom_nominate_b]';
var nombottomDiv_unnominate_a = '$vbphrase[modsystem_nom_unnominate_a]';
var nombottomDiv_unnominate_b = '$vbphrase[modsystem_nom_unnominate_b]';
var nomsideDiv_nominate = '$vbphrase[modsystem_nominate_motm]';
var nomsideDiv_nominate_clear = '$vbphrase[modsystem_nominate_motm_clear]';
var threadInstalled_installed = '$vbphrase[modsystem_thread_installed]';
var threadInstalled_uninstalled = '$vbphrase[modsystem_thread_uninstalled]';

script = "showthread";
userid = "$developer";
forumid = "$thread[forumid]";
threadid = "$thread[threadid]";
authorid = "$developer";
// -->
</script>
<script type="text/javascript" src="clientscript/modsystem_miscactions.js?v=$vboptions[simpleversion]"></script>
<!-- /Hack System -->

Find: <!-- / popup menu contents -->

add above:

<!-- donate menu -->
<div class="vbmenu_popup" id="moddonate_menu" style="display:none">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="$paypal_email" />
<input type="hidden" name="page_style" value="$paypal_style" />
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="shipping" value="0.00" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="return" value="$vboptions[bburl]/showthread.php?t=$thread[threadid]" />
<input type="hidden" name="cancel_return" value="$vboptions[bburl]/showthread.php?t=$thread[threadid]" />
<input type="hidden" name="tax" value="0" />
<input type="hidden" name="item_name" value="$paypal_title" />
<input type="hidden" name="on0" value="From" />
<input type="hidden" name="os0" value="$developer ($threadid) / Postid: $paypal_postid / $vboptions[bburl]/" />
<input type="hidden" name="on1" value="Message" />
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[modsystem_donate_via_paypal]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">$vbphrase[modsystem_amount]:
<input id="amount" size="10" maxlength="16" name="amount" value="$paypal_amount" type="text" title="$vbphrase[modsystem_amount]" style="width:40px" class="button" /><select name="currency_code" title="$vbphrase[modsystem_usercp_donate_currency]">
<option value="USD"$pp_sel[0]>$vbphrase[modsystem_usercp_donate_currency_USD]</option>
<option value="AUD"$pp_sel[1]>$vbphrase[modsystem_usercp_donate_currency_AUD]</option>
<option value="CAD"$pp_sel[2]>$vbphrase[modsystem_usercp_donate_currency_CAD]</option>
<option value="EUR"$pp_sel[3]>$vbphrase[modsystem_usercp_donate_currency_EUR]</option>
<option value="GBP"$pp_sel[4]>$vbphrase[modsystem_usercp_donate_currency_GBP]</option>
<option value="JPY"$pp_sel[5]>$vbphrase[modsystem_usercp_donate_currency_JPY]</option></select></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="left">$vbphrase[modsystem_short_message]:<br /><textarea class="button" name="os1" maxlength="200" rows="2" cols="15" style="width: 98%; overflow: auto" title="$vbphrase[modsystem_short_message]"></textarea>
<div align="center"><input class="button" name="submit" value="$vbphrase[modsystem_donate_now]" type="submit" /></div></td>
</tr>
</table>
</form>
</div>
<!-- / donate menu -->

hope this helps the screen shot works fine on my board and the cache issue i resolved my own way, good luck!!!!!!!!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01091 seconds
  • Memory Usage 1,791KB
  • 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)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