Author Topic: Big delete and new option for rate limiter  (Read 2999 times)

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1004
  • Karma: +56/-7
Re: Big delete and new option for rate limiter
« Reply #15 on: September 01, 2015, 08:59:19 AM »
Hornyflings,
I'm not always right. I came up with an Undefinded: User ID error in message_send.php.
So, I went back and moved the code directly under this, like the way you had it set up. :)
Code: [Select]
check_login_member($temp);
} elseif (!empty($_GET['to_id'])) {
$output['fk_user_id']=(int)$_GET['to_id'];
$output['_user_other']=get_user_by_userid($output['fk_user_id']);
check_login_member('message_send', 0);
check_login_member('message_write');

So far it's working.
I'll see how it goes though.
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.

Hornyflings

  • Prime Member
  • ****
  • Posts: 194
  • Karma: +3/-0
    • AsiasHeart
Re: Big delete and new option for rate limiter
« Reply #16 on: September 08, 2015, 03:05:31 AM »
Hi KHDev,
is it possible to add the code into wink add-on, only user with profile photo can send winks.

I've tried to add it into root/processors/send_wink.php
below
Code: [Select]
check_login_member('send_winks');
but results in error message when someone tried to send wink

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 505
  • Karma: +43/-2
  • Etano Contributor (Skins & Mods)
    • KH Web Development
Re: Big delete and new option for rate limiter
« Reply #17 on: September 08, 2015, 06:03:27 AM »
Hi KHDev,
is it possible to add the code into wink add-on, only user with profile photo can send winks.

I've tried to add it into root/processors/send_wink.php
below
Code: [Select]
check_login_member('send_winks');
but results in error message when someone tried to send wink

Whats the error you get?

Works for me when i place the check code under the check_login_member bit.

Hornyflings

  • Prime Member
  • ****
  • Posts: 194
  • Karma: +3/-0
    • AsiasHeart
Re: Big delete and new option for rate limiter
« Reply #18 on: September 08, 2015, 07:07:20 AM »
can't reproduce because deleted the error messages and removed code.
Will try again and add code again directly below

Code: [Select]
check_login_member('send_winks');

AF

  • Prime Member
  • ****
  • Posts: 117
  • Karma: +3/-2
Re: Big delete and new option for rate limiter
« Reply #19 on: September 22, 2015, 05:01:19 AM »
Works perfectly thankyou!

I would love to see something like this to force members to update profile fields, in case anyone makes changes to required fields like i have. Currently there are lots of members with incomplete profiles because of changes to required fields..

Would this be possible?

skipper

  • Active Member
  • ***
  • Posts: 93
  • Karma: +0/-0
    • ThePeepz.com
Re: Big delete and new option for rate limiter
« Reply #20 on: August 03, 2016, 05:02:32 PM »
 I wish someone could arrange the coding and make a listing in order for all of this, as i get lost due to so many changes that have been posted. This is a great idea and i really want to implement it on my site. If a member has no picture, i think they should be limited to certain privileges.
Thepeepz.com
Chat-Now.chatovod.com