Welcome, Guest. Please Login or Register.
November 30, 2024, 06:27:27 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [beta 1.5.4] Post based Restrictions « previous next »
Pages: 1 2 [3] Reply Ignore Print
Author Topic: [beta 1.5.4] Post based Restrictions  (Read 14981 times)
sensovision
Full Member
***
Posts: 100


WWW
Re:[beta 1.5.4] Post based Restrictions
« Reply #30 on: August 19, 2003, 03:03:44 PM »
Reply with quote

Metho, don't wish to bug you, but did you not forgot about fix for mod? ::)
as I keep getting more request from people who can't change their profiles :-\
« Last Edit: August 19, 2003, 03:04:57 PM by sensovision » Logged

Denis

Are you good with the graphic? check out our design logo contest!
Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[beta 1.5.4] Post based Restrictions
« Reply #31 on: August 19, 2003, 05:12:05 PM »
Reply with quote

Yeah, sorry. I've been swamped with work. I'll have it fixed asap, I promise.

Methonsi
Logged

sensovision
Full Member
***
Posts: 100


WWW
Re:[beta 1.5.4] Post based Restrictions
« Reply #32 on: August 19, 2003, 07:50:05 PM »
Reply with quote

thanks, I'll keep waiting for it ;)
Logged

Denis

Are you good with the graphic? check out our design logo contest!
Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[beta 1.5.4] Post based Restrictions
« Reply #33 on: August 20, 2003, 02:44:32 AM »
Reply with quote

Ok, updated the mod file. For those who have already installed, in Profile.php find:      if ($modSettings['enableUserSigRestrict'] == 1 && $modSettings['enableUserTxtRestrict'] == 0)
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', personalText='$member[usertext]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      elseif ($modSettings['enableUserTxtRestrict'] == 1 && $modSettings['enableUserSigRestrict'] == 0)
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', signature='$member[signature]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      elseif ($modSettings['enableUserTxtRestrict'] == 1 && $modSettings['enableUserSigRestrict'] == 1)
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      else
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', signature='$member[signature]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', personalText='$member[usertext]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }


Replace with the code in the next post. (Too long)
Logged

Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[beta 1.5.4] Post based Restrictions
« Reply #34 on: August 20, 2003, 02:45:35 AM »
Reply with quote

Replace above code with...      if ($modSettings['enableUserSigRestrict'] == 1 && $modSettings['enableUserTxtRestrict'] == 0 && $modSettings['SigMinPosts'] > $settings[6])
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', personalText='$member[usertext]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      elseif ($modSettings['enableUserTxtRestrict'] == 1 && $modSettings['enableUserSigRestrict'] == 0 && $modSettings['TxtMinPosts'] > $settings[6])
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', signature='$member[signature]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      elseif (($modSettings['enableUserTxtRestrict'] == 1 && $modSettings['TxtMinPosts'] > $settings[6]) && ($modSettings['enableUserSigRestrict'] == 1 && $modSettings['SigMinPosts'] > $settings[6]))
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      elseif (($modSettings['enableUserTxtRestrict'] == 1 && $modSettings['TxtMinPosts'] < $settings[6]) && ($modSettings['enableUserSigRestrict'] == 1 && $modSettings['SigMinPosts'] > $settings[6]))
      {

      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', personalText='$member[usertext]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      elseif (($modSettings['enableUserTxtRestrict'] == 1 && $modSettings['TxtMinPosts'] > $settings[6]) && ($modSettings['enableUserSigRestrict'] == 1 && $modSettings['SigMinPosts'] < $settings[6]))
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', signature='$member[signature]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }
      else
      {
      $customTitlePart = '';
      if ($modSettings['titlesEnable'] == 1 && ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') | ($modSettings['alltitleEnable'] == 1 && $username != 'Guest'))
         $customTitlePart = "usertitle='$member[usertitle]',";
      $memIP=$REMOTE_ADDR;
         $request = mysql_query("
         UPDATE {$db_prefix}members
         SET $queryPasswdPart $customTitlePart realName='$member[name]', emailAddress='$member[email]', websiteTitle='$member[websitetitle]', websiteUrl='$member[websiteurl]', signature='$member[signature]', posts=$member[settings6], memberGroup='$member[settings7]', ICQ='$member[icq]', MSN='$member[msn]', AIM='$member[aim]', YIM='$member[yim]', gender='$member[gender]', personalText='$member[usertext]', avatar='$member[userpic]', birthdate='$member[bday]', lngfile='$member[language]', " . ($username == $member['user'] ? "memberIP='$memIP', " : '') . "timeFormat='$member[usertimeformat]', timeOffset=$timeOffest, secretQuestion='$member[secretQuestion]', secretAnswer='$member[secretAnswer]', hideEmail=$hideEmail$karmaStr
         WHERE memberName='$user'") or database_error(__FILE__, __LINE__);
      updateStats('member');
      }

Ever so briefly tested, any problems, let me know.

Methonis
Logged

sensovision
Full Member
***
Posts: 100


WWW
Re:[beta 1.5.4] Post based Restrictions
« Reply #35 on: August 21, 2003, 11:55:04 AM »
Reply with quote

I've apply changes to profile and now it seems that everything work as it should. Thanks Metho!
Logged

Denis

Are you good with the graphic? check out our design logo contest!
Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[beta 1.5.4] Post based Restrictions
« Reply #36 on: August 21, 2003, 12:11:49 PM »
Reply with quote

Good stuff. :D Sorry for the trouble and the wait.

Methonis
Logged

sensovision
Full Member
***
Posts: 100


WWW
Re:[beta 1.5.4] Post based Restrictions
« Reply #37 on: August 21, 2003, 10:02:04 PM »
Reply with quote

no problem at all ;)
Logged

Denis

Are you good with the graphic? check out our design logo contest!
buster
Jr. Member
**
Posts: 74


Caught a lama YESSSSSSSSS

Re:[beta 1.5.4] Post based Restrictions
« Reply #38 on: September 21, 2003, 09:56:13 PM »
Reply with quote

After installing this mod i could not view my members profile anymore. What could be the problem?
Logged

If practice makes perfect and nobody is perfect why practice?
Metho
Sr. Member
****
Posts: 342


I'm a llama!

Re:[beta 1.5.4] Post based Restrictions
« Reply #39 on: September 21, 2003, 10:19:04 PM »
Reply with quote

Did you open and read the txt file that came in the zip and modify Profile.php accordingly? If not, do so. Otherwise, make sure that you didn't accidently delete/move/break apart anything while manually adding that last bit. If it still doesn't work, please email your Profile.php to [email protected]

Thanks,

Methonis
Logged

MICHICAUST
Noobie
*
Posts: 3


I'm a llama!

Re:[beta 1.5.4] Post based Restrictions
« Reply #40 on: December 31, 2003, 01:16:45 PM »
Reply with quote

Hoi Metho!

In the first posting you wrote:

QuoteFuture feature additions:
1. Post based poll voting disable feature (I know there is one out there, ...

Could you (or anybody..  ;D) tell me where to find that mod or how it's called?

I got a poll running out this day and, after looking at the log files, there seem to be a LOT of new board members coming on lately - just to vote for one of the candidates (and not doing anything else) in a photo contest and to win that prize, a food package...  
Ain't funny seeing months of work going down the drain resp. being misused like that by some creeps. >:(
(..sorry bothering u with that..)

Oh well. Anyway, I'd appreciate it if I could add some voting restriction based on the number of postings (for example) to my board.

--->  Many THX in advance!!!  :D  <---

Greetings,

- Michael
Logged
Pages: 1 2 [3] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [beta 1.5.4] Post based Restrictions « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.073 seconds with 21 queries.