vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbBux / vbPlaza (https://vborg.vbsupport.ru/forumdisplay.php?f=171)
-   -   Can donate to yourself? (https://vborg.vbsupport.ru/showthread.php?t=139485)

Nathan2006 02-15-2007 10:46 AM

Can donate to yourself?
 
Hi,

Is there anyway to stop a member from clicking their own donate link in their profile?

And giving them a no permission message?

Thanks for any help :)

Acers 02-15-2007 11:23 AM

In action.donate.php
find
PHP Code:

    // verify the user has enough points to donate
    
if ($vbulletin->userinfo[$vbulletin->options['vbbux_pointsfield']] < $action['finalcost'])
    {
        
// display error, not enough points
        
eval(standard_error(fetch_error('vbplaza_not_enough_points')));
    } 

below it add
PHP Code:

                if($vbulletin->userinfo['userid'] == $touser['userid'])
                             
print_no_permission(); 


Nathan2006 02-15-2007 02:02 PM

Hi,

Thank you for your reply.

I tried it but its still working once you click on donate on your own profile :(

Acers 02-15-2007 03:23 PM

are you sure,
this will stop the donation at the next stage. eg once you set the donation amount and click give, it will give you a no permission.

Nathan2006 02-15-2007 03:31 PM

Quote:

Originally Posted by Acers (Post 1183268)
are you sure,
this will stop the donation at the next stage. eg once you set the donation amount and click give, it will give you a no permission.

Oh yeah :D

Sorry I thought it would come up with the message before that.

Its much better your way I have tested it now and fully working :)

Thank you for your time :)


All times are GMT. The time now is 01:12 AM.

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.01030 seconds
  • Memory Usage 1,723KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete