vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - VSa - PayPal Donate (https://vborg.vbsupport.ru/showthread.php?t=236480)

anushkumarb 04-23-2011 08:59 PM

Installed, nominated, rated 5.:up::up::up:

victorvu 04-23-2011 09:36 PM

Quote:

Originally Posted by masterross (Post 1988336)
Go to your style chose "Add New Template", Title "vsa_donate_navbar_link".
Template:
Code:

<vb:if condition="$vboptions['selectednavtab'] == 'donate'">
<li class="selected">
    <a class="navtab" href="misc.php?do=donate{vb:raw session.sessionurl_q}">{vb:rawphrase cybpaypal_donate}</a>
</li>
<vb:else />
    <li><a class="navtab" href="misc.php?do=donate{vb:raw session.sessionurl_q}">{vb:rawphrase cybpaypal_donate}</a></li>
</vb:if>

Save.

After this go to "Plugins & Products/Add New Plugin"
In Product select "VSa - PayPal Donate"
In Hook Location "process_templates_complete"
In Title "VSa - PayPal Donate - NAVBAR"
In Execution Order: 5
In Plugin PHP Code:
PHP Code:

if ($vbulletin->options['vsapaypal_show_link'])
{
    if (
$_REQUEST['do'] == 'donate')
    {
        
$vbulletin->options['selectednavtab'] = 'donate';
    }
    
$template_hook['navtab_middle'] .= vB_Template::create('vsa_donate_navbar_link')->render();


Plugin is Active : Yes
Save


Enjoy!

I could follow the above but the Donate button is placed right after the Forum, right in the middle of the navbar, instead of at the end. Is there anyway that I can move the "donate" button at the end?

Cheers,

Victor

basilrath 04-24-2011 08:49 AM

Simply change the codeline to "end"

PHP Code:

 $template_hook['navbar_end'


JohnGR 04-24-2011 01:28 PM

hello,

is there a Moneybookers donate mod like that ?

Thx

Welshy2008 04-24-2011 02:11 PM

Valter,

I have installed this mod (along with several others) on my forum.

Could you tell if this mod changes anything on my forums database please?

The reason that I ask is that I have tried to set up "Paid Subcriptions" on my forum and the Paypal option has disapppeared.

I backed my forum up, and installed a fresh install on there - the Pyapl option was then showing.


AdminCP -> Paid Subscriptions -> Payment API Manager.

I have tried re-uploading all files and folders, with no images - I have even deleted the non essential XML files from my includes/xml folder. I made a new style with no parent style - cleared my cache, fored a refresh etc. But still the Paypal doesn't show. :(

I even uninstalled this mod to check, but it still didn't appear. (don'ty know if this mod has made changes to my database though).

I am not saying it is this mod, but merely asking you if it is?

I would appreciate your input, before I have to uninstalling each mod, one by one to try and find it. :(


Many Thanks.


PS. If this mod is the reason, could you tell me how I could do it so that I could do both side by side please?

I love this mod and want to continue using it and use the vB's Paid Subcritions too. :)

Valter 04-25-2011 01:28 PM

This mod uses it's own database table to log user activities.

It has no any connections with vB's built in payment manager.

david fernandez 04-25-2011 08:26 PM

When someone donates it shows up on paypal as a transaction as if they are buying an item... Does anyone else have this problem?

How do we make it not only say donation on the website which it does, thats not the problem

but when someone donates on paypal it shows up as quantity ANY HELP WOULD BE APPRECIATED.

WWW.HIGHCLASSMODS.COM INCASE ANYONE WANTS TO SEE THE WORKING MOD. MUST SIGN UP TO VIEW ITS FREE

XiTCLUB 04-25-2011 09:13 PM

Thanks...

josephu 04-25-2011 10:55 PM

Im getting "XML Error: not well-formed (invalid token) at Line 1" anyone no why?

rajubd 04-26-2011 05:46 PM

why there is no alertpay system? please add it...


All times are GMT. The time now is 06:34 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.02431 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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