Welcome, Guest. Please Login or Register.
April 25, 2024, 07:42:51 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  |  [Done 1.4.1-1.5.1] Allowed User v1.2 « previous next »
Pages: 1 2 [3] 4 5 ... 10 Reply Ignore Print
Author Topic: [Done 1.4.1-1.5.1] Allowed User v1.2  (Read 28241 times)
Sauron
Jr. Member
**
Posts: 57


ICQ - 22683560 WWW
Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #30 on: June 14, 2002, 10:16:37 AM »
Reply with quote

Dataforce, feel free, but I think it makes no sense to pak the beta.

Trushna, you are right, the settings are stored better in the settings-table. but the allowed user list can become to large. so an extra table usefully.

Crimson, thanks.
Logged

The Dark Lord
Scratch
Noobie
*
Posts: 2


I'm a llama!

Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #31 on: June 18, 2002, 04:34:11 PM »
Reply with quote

For some reason I can't get the passwords to work on my 1.4 boards. I select the forum I want passworded, then I select password protected forum then I type in the pass. I hit save then I login as a user without admin status and type in the same password at the forum and it says the password is incorrect. I've tried this many times so I'm sure it isn't a typo I also tried deleting all my cookies and the thing still tells me that my password is incorrect, can someone help?
Logged
MedMan
Noobie
*
Posts: 40


Trust me I'm a doctor...;-)

Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #32 on: June 30, 2002, 04:38:09 PM »
Reply with quote

Quote from: Scratch on June 18, 2002, 04:34:11 PMFor some reason I can't get the passwords to work on my 1.4 boards. I select the forum I want passworded, then I select password protected forum then I type in the pass. I hit save then I login as a user without admin status and type in the same password at the forum and it says the password is incorrect. I've tried this many times so I'm sure it isn't a typo I also tried deleting all my cookies and the thing still tells me that my password is incorrect, can someone help?

I encounter exactly the opposite phenomenon on my 1.4.0 board:

when I try to protect forums with passwords it does ask me for a password before showing the messages inside the protected forum, however, I can type in ANYTHING as password and I always get logged in that protected part, so that does not function as a PASSword at all for me  ;D I never get the message: this password is incorrect.

The other features (member/selection) appear to work fine for me.

Please re-check the password-part of this mod...thnx
Logged
MedMan
Noobie
*
Posts: 40


Trust me I'm a doctor...;-)

Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #33 on: June 30, 2002, 07:09:50 PM »
Reply with quote

The one bypass of protected forums I discovered was still (it has been reported already in this thread) that as an unauthorised user you can see the full messages of a hidden forum (protected part) when you click on the "show last 10 messages" link in the Stats section at the bottom of the BoardIndex.

Clicking on the "last message" link, or on the hidden forumname(s) inside the statspage does result in a "you are not aloowed..." message as expected.

So I decided to remove the "last 10 messages" link in the BoardIndex Stats part. That'll do for the moment.

Apart from the above mentioned password-option bugs a very usefull mod, thanks !
« Last Edit: June 30, 2002, 07:12:52 PM by MedMan » Logged
Behr
Noobie
*
Posts: 43


Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #34 on: July 03, 2002, 01:16:03 AM »
Reply with quote

the db update went fine

 ??? the following error on boardindex.php

2: Supplied argument is not a valid MySQL result resource

Boardindex.php

-----------------------------------


   $result_boards = mysql_query ("SELECT c.name as catName, c.ID_CAT, b.ID_BOARD, b.name as boardName, b.description, b.moderators, b.numPosts, b.numTopics FROM {$db_prefix}categories as c LEFT JOIN {$db_prefix}boards as b ON (b.ID_CAT=c.ID_CAT) WHERE ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',c.memberGroups)!=0 || c.memberGroups='') ORDER BY c.catOrder, b.boardOrder");

      // Added by Allowed User MOD - Begin
      $AU_Board_result = mysql_query("SELECT ID_BOARD, ID_CAT FROM {$db_prefix}boards");
      while ($AU_row_Board = mysql_fetch_array($AU_Board_result)) {
         if (!isset($AU_Show_Cat[$AU_row_Board[1]])) $AU_Show_Cat[$AU_row_Board[1]] = 0;
         $AU_Show_Cat[$AU_row_Board[1]]++;
         $AU_Show_Board[$AU_row_Board[0]] = true;

         if (($settings[7] != 'Administrator') && ($settings[7] != 'Global Moderator')) {
             $AUO_result = mysql_query("SELECT AU_option FROM {$db_prefix}allowedusersoptions WHERE boardid = $AU_row_Board[0]");
            if ($row_AUO = mysql_fetch_row($AUO_result)) {
               if ($row_AUO[0] == '2') {
                 if ($username == 'Guest') {
                  $AU_Show_Cat[$AU_row_Board[1]]--;
                  $AU_Show_Board[$AU_row_Board[0]] = false;
                 }
               } else if ($row_AUO[0] == '4') {
                                      $AU_result = mysql_query("SELECT membername FROM {$db_prefix}allowedusers WHERE membername = '$username' AND boardid = $AU_row_Board[0]");
                  if (mysql_fetch_row($AU_result) == 0) {
                     $AU_Show_Cat[$AU_row_Board[1]]--;
                     $AU_Show_Board[$AU_row_Board[0]] = false;
                  }
               }
            }
         }
      }

      // Added by Allowed User MOD - End
   $curcat = -1;
   while ($row_board = mysql_fetch_array($result_boards))
   {
 if ($AU_Show_Cat[$row_board['ID_CAT']] != 0) // Added by Allowed User MOD
 // if this is a new category
      if ($row_board['ID_CAT'] != $curcat)
      {
                        $curcat=$row_board['ID_CAT'];
      print <<<EOT
  <tr>
    <td colspan="6" class="catbg" height="18"><a name="$row_board[ID_CAT]"><b>$row_board[catName]</b></a></td>
  </tr>
EOT;
      }
   if ($AU_Show_Board[$row_board['ID_BOARD']]) // Added by Allowed User MOD

      if ($row_board['ID_BOARD'] != '')

-------------------------------------

where am i going wrong?
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #35 on: July 03, 2002, 05:09:44 PM »
Reply with quote

Any update on protecting Recent.php?
Logged
Floyds
Noobie
*
Posts: 48


I'm a llama!

Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #36 on: July 07, 2002, 12:41:17 AM »
Reply with quote

why does it not display any question on login ??

EG: Please enter password

It only displays a input field and a button there is no question that ask'ts what a user must do.

Logged
puntingzone
Noobie
*
Posts: 19


WWW
Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #37 on: July 10, 2002, 07:50:43 PM »
Reply with quote

Any update on the mod.

Allowed users is working fine & dandly, except its useless with others users being able to click the allowed users profile to read their last 10 messages.

If this update is going to take forever can Medman or some else tell me what to edit to remove the last 10 messages from peoples profile.

Cheers puntingzone

http://www.puntingzone.com
Logged

When I'm right I'm right, but when I'm wrong, I really goof up
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #38 on: July 12, 2002, 04:40:38 AM »
Reply with quote

Nice mod.. would be great if dealt with Last 10 Posts too though  :)
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #39 on: July 12, 2002, 04:46:38 AM »
Reply with quote

Quote from: PioneeR on July 12, 2002, 04:40:38 AMNice mod.. would be great if dealt with Last 10 Posts too though  :)
What do you mean?
Logged

PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #40 on: July 12, 2002, 05:14:52 AM »
Reply with quote

If I set some of my sections to Member Only (Hidden), a guest can log on.. Click on Last 10 Posts and see posts from those hidden sections.

Also could go to a member and click on last x posts.. and gain access that way.

Was thinking about just hiding Most Recent Posts from guests?!
Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #41 on: July 12, 2002, 06:00:15 PM »
Reply with quote

Anyone know how to just allow members to view Most Recent (on boardindex and on users profile)?? Would do just to hide the option?
Logged
Telex4
Noobie
*
Posts: 22


Viva Free Software!

Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #42 on: July 12, 2002, 09:11:44 PM »
Reply with quote

I'm having problems with this mod... it's the first one I've installed manually, going through each file adding the code, and running the db update script. I've had no errors on any other pages, so that should all be ok, but when I go to /index.php?action=selallowedusers all I get is a blank page (and yes, I have uploaded selectallowedusers.php to Sources). How can I solve this?
Logged
Swat
Noobie
*
Posts: 29


need some help with mods :P

Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #43 on: July 13, 2002, 07:06:33 PM »
Reply with quote

help the link is down can you send me the mode for version 1.4 ???
Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[BETA] Allowed User (1.3.1 / 1.4)
« Reply #44 on: July 13, 2002, 09:47:26 PM »
Reply with quote

I have set a few of my boards as hidden member only.

If I logout when viewing an everyone board.. its fine.

But if I am viewing a hiddem member only one.. then try to logout.. I get "An Error Has Occurred!
You are not allowed to access this section"

http://mydomain.com/yabbse/index.php?board=1;action=logout

That was the url

Anyway to stop this??
Logged
Pages: 1 2 [3] 4 5 ... 10 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1-1.5.1] Allowed User v1.2 « 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.028 seconds with 20 queries.