vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Cyb - PayPal Donate (https://vborg.vbsupport.ru/showthread.php?t=122997)

mfyvie 06-11-2007 09:00 AM

Hi Cybernetec, I think I've found something. Just to recap my two previously reported issues were:

Quote:

Originally Posted by mfyvie (Post 1265519)
If no amount as selected as suggested amount and options are set to "Suggest and Custom" then the drop down box appears with "custom" but no box appears for text input. This isn't such a big problem, since I then set "Custom Only" and the box appeared. (in the first case, if suggested amounts were entered, the custom box did appear).

However, when operating in the "Custom Only" mode, new payments are not entered. In other words if I go and press the donation button I get transferred to paypal correctly, but no entry gets put into the list of donators - I have to enter it manually. As soon as I switch back to ""Suggested and Custom" the entry is placed into the list of donators.

I've found that when using "Custom Only" I can work around the second issue by putting in a suggested amount (which is not displayed). The problem then disappears. This is an acceptable work around for me (since I now know it), but others may be confused. In other words - if using custom only, it is only natural to leave that field empty!

Valter 06-11-2007 10:03 AM

So it's ok as there is no good reason to have 'suggested amounts' field empty.

Also there is no reason to enable 'suggested and custom' when suggested is blank. :)

Thanks for the updates.







.

DJLy5y 06-11-2007 11:39 AM

Ok everything i done in navbar was wrong, theme called tren_z made by extrimepixels have the navbar in the header. This is the code and bold changes i had to make to make this mod work.

Code:

<!-- begin tren_z header-->
<div align="center">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
  <td align="left" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td width="40" height="137" align="right" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_ls.jpg" width="40" height="137" alt="" /></td>
    <td width="100%" height="137" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/tren_z_header_top_back.jpg)"><center><img src="$stylevar[imgdir_misc]/tren_z_header_top_back_logo.jpg" width="629" height="137" alt="" /><center></td>
    <td width="40" height="137" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_rs.jpg" width="40" height="137" alt="" /></td>
  </tr>
</table>       
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td width="100%" height="22" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/tren_z_header_bot_expand.gif)"><img src="$stylevar[imgdir_misc]/tren_z_header_bot_expand.gif" width="100%" height="22"  alt="" /></td>
    <td width="77" height="22" align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="$stylevar[imgdir_misc]/tren_z_header_home.gif" width="77" height="22" alt="" border="0" /></a></td>
        <td width="70" height="22" align="left" valign="top"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_cp.gif" width="70" height="22" alt="" border="0" /></a></td>
        <if condition="$show['registerbutton']">
        <td width="70" height="22" align="left" valign="top"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/tren_z_header_register.gif" width="70" height="22" alt="" border="0" /></a></td>
        <else />
                <td width="70" height="22" align="left" valign="top" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/tren_z_header_links.gif" width="70" height="22" alt="" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
 </if>


<!-- PayPal Donations -->
<td width="70" height="22" align="left" valign="top"><a href="http://www.unknowntrack.com/misc.php?do=donate"><img src="$stylevar[imgdir_misc]/tren_z_donate.gif" width="70" height="22" alt="" border="0" /></a>
<!-- /PayPal Donations -->


        <td width="71" height="22" align="left" valign="top"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_calendar.gif" width="71" height="22" alt="" border="0" /></a></td>
        <td width="70" height="22" align="left" valign="top"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/tren_z_header_members.gif" width="70" height="22" alt="" border="0" /></a></td>
        <td width="72" height="22" align="left" valign="top"><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/tren_z_header_faq.gif" width="72" height="22" alt="" border="0" /></a></td>
        <td width="74" height="22" align="left" valign="top"  id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/tren_z_header_search.gif" width="74" height="22" alt="" border="0" /></a><if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script><td class="vbmenu_control"></if></td>
        </tr>       
</table>
<!-- end tren_z header-->

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
       
        <if condition="$show['searchbuttons']">
        <!-- header quick search form -->
        <div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
                <form action="search.php?do=process" method="post">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead">$vbphrase[search_forums]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                                <input type="hidden" name="do" value="process" />
                                <input type="hidden" name="quicksearch" value="1" />
                                <input type="hidden" name="childforums" value="1" />
                <input type="hidden" name="exactname" value="1" />
                                <input type="hidden" name="s" value="$session[sessionhash]" />
                                <div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
                        </td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                                <label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
                                &nbsp;
                                <label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
                        </td>
                </tr>
                <tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]:</a></td>
</tr>       
                <tr>
                                <td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]:</a></td>
                </tr>               
                <tr>
                        <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
                </tr>
               
                </table>
                </form>
        </div>
        <!-- / header quick search form -->
        </if>

        <if condition="$show['member']">
        <!-- user cp tools menu -->
        <div class="vbmenu_popup" id="usercptools_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
               
                <tr><td class="thead">$vbphrase[quick_links]</td></tr>               
                <if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
                               
                <tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
                <if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
                <!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
               
                <tr><td class="thead">$vbphrase[miscellaneous]</td></tr>

<!-- PayPal Donations -->
<tr><td class="vbmenu_option"><a href="http://www.unknowntrack.com/misc.php?do=donlist">Donations</a></td></tr>
<!-- /PayPal Donations -->

                <if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
                <tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
                <if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
               
                </table>
        </div>
        <!-- / user cp tools menu -->
        </if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

        <div class="vbmenu_popup" id="pagenav_menu" style="display:none">
                <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                        <td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
                </tr>
                <tr>
                        <td class="vbmenu_option" title="nohilite">
                        <form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
                                <input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
                                <input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
                        </form>
                        </td>
                </tr>
                </table>
        </div>

<!-- / PAGENAV POPUP -->
</if>

<!-- begin main inner table area-->
<!-- content table -->
<table bgcolor="#232D35" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
  <td>



$spacer_open

$_phpinclude_output


mfyvie 06-11-2007 12:24 PM

Quote:

Originally Posted by Cybernetec (Post 1266121)
So it's ok as there is no good reason to have 'suggested amounts' field empty.

Actually there is a very good reason to leave the field empty - if using "Custom only", then it is logical to leave this field blank, and if so - payments won't be recorded. I only mentioned both cases, since they both seemed to be connected to this field, and wondered if the cause of the bug was related.

I guess you can duplicate this behaviour quite easily on your own system to see what I mean (I already duplicated it on a totally different forum to be sure)

jarosciak 06-11-2007 03:11 PM

Fantastic mod, thanks a lot for your work.

I've got it working at http://www.goldenretrieverforum.com/misc.php?do=donate if anyone wants to donate :) haha...

Anyhow, one question. I'd like to give all my donors some kind of a additional functionality. Lets say, showing their names in bold in their posts or show some nice 'donor' graphic next to their names.
Can someone provide me a code to do that?

Thanks once again for all your hard work.

Mecho 06-11-2007 04:55 PM

Thanks cyb for update ..

keep it up ur good job

raja811 06-11-2007 11:29 PM

some skin not display donate why?

mfyvie 06-13-2007 01:08 PM

Auto PM extension for version 3.9 of this mod.

Would you like to automatically send a PM to users after you've confirmed their donation? Just download and follow the instructions in the attached file.

I expect Cybernetec will roll this code into the next release (Cybernetec - please do!!), so it will not be possible to install this together with any later or earlier version other than 3.9. Please uninstall this if you upgrade to a later version than 3.9

Enjoy!

DeiseHost 06-13-2007 03:34 PM

The Donate link in Navbar is showing in Illuminous Green. - http://www.exstreamhost.com/forums/index.php
How do I fix that?

mfyvie 06-13-2007 03:43 PM

Quote:

Originally Posted by DeiseHost (Post 1267734)
The Donate link in Navbar is showing in Illuminous Green. - http://www.exstreamhost.com/forums/index.php
How do I fix that?

Answered 3 pages back on post #271

Cybernetec - probably not a bad idea to have that as a config item, rather than inside a phrase.


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01650 seconds
  • Memory Usage 1,809KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete