Welcome, Guest. Please Login or Register.
May 04, 2024, 12:56:12 PM
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 ... 6 7 [8] 9 10 Reply Ignore Print
Author Topic: [Done 1.4.1-1.5.1] Allowed User v1.2  (Read 28328 times)
Porter
Noobie
*
Posts: 9


beporter@earthlink.net WWW
Re:[Done 1.4.1-1.5.1RC1] Allowed User v1.2
« Reply #105 on: April 03, 2003, 04:00:22 PM »
Reply with quote

 ;D Thanks Sauron. Faublous work so far!
Logged

Brian [Wumpa] Porter
Sauron
Jr. Member
**
Posts: 57


ICQ - 22683560 WWW
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #106 on: April 05, 2003, 06:09:04 PM »
Reply with quote

I have released a version for YaBB SE 1.5.1 final.

You  can download it here:
Allowed User MOD 1.2 for YaBB SE 1.5.1 (final)
Logged

The Dark Lord
goldpicks
Noobie
*
Posts: 14


I'm a llama!

Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #107 on: April 06, 2003, 06:53:58 AM »
Reply with quote

Step 9 looks for the following

if ($threadid == '')
      fatal_error($txt[472]);

This does not exist in my Display.php file.  In fact the only time "fatal_error($txt[472]);" is found is in the following statement

if (mysql_num_rows($request) == 0)
      fatal_error($txt[472]);

Logged
Sauron
Jr. Member
**
Posts: 57


ICQ - 22683560 WWW
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #108 on: April 06, 2003, 01:32:03 PM »
Reply with quote

It's alter the global - section:

global $sourcedir, $sc, $prev_next;

if ($currentboard == '')
   fatal_error($txt[1]);
if ($threadid == '')
   fatal_error($txt[472]);

If the last two lines doesn't exists, just add the code from the mod after

if ($currentboard == '')
   fatal_error($txt[1]);
Logged

The Dark Lord
don_miguel
Guest
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #109 on: April 07, 2003, 09:29:24 AM »
Reply with quote

Version 1.5.1 FINAL

Everything worked fine, but I got an error in the stats center ... any ideas?


You have an error in your SQL syntax near 'ORDER BY `numPosts` DESC LIMIT 10' at line 6
Datei: /domain/Sources/Stats.php
Zeile: 152


Thanks for your help!
Miguel
Logged
Sauron
Jr. Member
**
Posts: 57


ICQ - 22683560 WWW
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #110 on: April 07, 2003, 09:50:17 AM »
Reply with quote

This was a little error in the mod. I've updated the zip-file. Just download the new one and install it. If you install manually: Look in you Stats.php, some lines above the error occurs:

// Replaced by Allowed User MOD - Begin
$condition .= AU_GetWhereClause(' AND', '', true);
// Replaced by Allowed User MOD - End

and replace this with

// Replaced by Allowed User MOD - Begin
$condition .= AU_GetWhereClause(' AND', 'b.', true);
// Replaced by Allowed User MOD - End
Logged

The Dark Lord
don_miguel
Guest
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #111 on: April 07, 2003, 10:05:19 AM »
Reply with quote

I've made the change on Stats.php - but it doesnt work ...  :-\

The error is the same as above ...
Logged
Sauron
Jr. Member
**
Posts: 57


ICQ - 22683560 WWW
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #112 on: April 07, 2003, 10:21:43 AM »
Reply with quote

Oh, sorry. I forgot something:

the condition-string should not be replaced, it should be added.

your Stats.php should now look like this:

   // Board top 10
   $condition = ($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator' ? '1' : "(FIND_IN_SET('$settings[7]', c.memberGroups) != 0 || c.memberGroups='')");
   // Added by Allowed User MOD - Begin
   $condition .= AU_GetWhereClause(' AND', 'b.', true);
   // Added by Allowed User MOD - End

   $boards_result = mysql_query("
      SELECT DISTINCT b.ID_BOARD, b.name, b.numPosts
      FROM {$db_prefix}categories AS c
         LEFT JOIN {$db_prefix}boards AS b ON (b.ID_CAT=c.ID_CAT)
      WHERE $condition
      ORDER BY b.numPosts DESC LIMIT 10") or database_error(__FILE__, __LINE__);
Logged

The Dark Lord
don_miguel
Guest
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #113 on: April 07, 2003, 10:36:11 AM »
Reply with quote

 ;D

Thanks for your quick reply and for your mod!
It works!

Miguel
Logged
Vampy
Noobie
*
Posts: 17


I'm a llama!

Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #114 on: April 11, 2003, 09:28:04 AM »
Reply with quote

Hi! I was wondering if the problem of the Recent 10 posts was solved. Okay what I am getting at is that even when I restrict the board to only members, when a guest clicks on "Recent 10 posts" he can view the posts in the restricted board.

Can anyone help? I'm using YabbSE 1.51.

Thanks.
« Last Edit: April 11, 2003, 09:48:57 AM by Vampy » Logged
Sauron
Jr. Member
**
Posts: 57


ICQ - 22683560 WWW
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #115 on: April 11, 2003, 01:03:21 PM »
Reply with quote

Oh, I still forget some things:

- Recent 10 Post
- Top 10 Topics (Replys, Views)
- Forum History

I'll fix this the next days.
« Last Edit: April 11, 2003, 01:04:21 PM by Sauron » Logged

The Dark Lord
Vampy
Noobie
*
Posts: 17


I'm a llama!

Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #116 on: April 11, 2003, 02:10:36 PM »
Reply with quote

Hi! Thanks a lot for all your effort. Well, thank goodness you said that you forgot about about some parts. For the past couple of day I was staring at the codes trying to figure out whether I did something wrong. ;D

I'm new to php and trying to learn.  By the way, could you explain one part of the code to me. I was trying to figure out how that would select for which posts to display for the most recent 10 post.


if ($AU_WhereClause != '') $AU_WhereClause .= ' AND'; else $AU_WhereClause = $strsuffix;
            $AU_WhereClause .= " {$prfx}ID_BOARD <> $row_AUO[1] ";


I was reading some MySQL text and it tells me that the <> sign is used to mean "is not equal". But if that is the case, wouldn't that mean that boardis is not equal to the ID_BOARD? How would that still display the 10 most recent post? Sorry if this was a dumb question.
Logged
Sauron
Jr. Member
**
Posts: 57


ICQ - 22683560 WWW
Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #117 on: April 11, 2003, 02:36:00 PM »
Reply with quote

The MOD reads the board-access-configuration from the database. Now, if there is a board configured "members only" and you are a registered member nothing happens and the content i.e. the recent 10 posts of the board is displayed. But if you are a guest the mod adds "where ID_BOARD <> [the id of the board]" to the mysql query; which means mysql won't select this board, because you don't have the permission to view it.

If you are interested in some more details just mail me. I won't spread this topic so much.
« Last Edit: April 11, 2003, 02:37:06 PM by Sauron » Logged

The Dark Lord
Vampy
Noobie
*
Posts: 17


I'm a llama!

Re:[Done 1.4.1-1.5.1] Allowed User v1.2
« Reply #118 on: April 12, 2003, 06:51:16 AM »
Reply with quote

Thanks for the enlightenment. I'll be looking forward to the Recent 10 posts fixed.
Logged
jenigma
Noobie
*
Posts: 33


crazy is as crazy does

WWW
Re:[beta 1.4.1-1.5.1RC1] Allowed User v1.2
« Reply #119 on: April 12, 2003, 05:45:40 PM »
Reply with quote

Quote from: Sauron on April 03, 2003, 12:21:50 PM
The next version will include the following features:
- Membergroups
- More access option
- Options for moderators
- Other little things that will come to my mind

Hi Sauron. Is V1.2 the new version that includes features above, or the old version? If old, how close is the new version to completion? I've been awaiting, more or less patiently  ;), the enhanced version of your mod.
Logged
Pages: 1 ... 6 7 [8] 9 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.027 seconds with 19 queries.