Welcome, Guest. Please Login or Register.
November 26, 2024, 10:31:45 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  |  [Beta 1.5.2] Locked/Redirection Boards 1.0 « previous next »
Pages: 1 [2] 3 Reply Ignore Print
Author Topic: [Beta 1.5.2] Locked/Redirection Boards 1.0  (Read 29763 times)
FaSan
Jr. Member
**
Posts: 67


Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #15 on: August 13, 2003, 10:11:38 AM »
Reply with quote

Hi !

on 1.5.4 release i can't find this on "ModifyMessage.php" :

Quote
<search for>
   // Validate the attachment if there is one
</search for>

<replace>
   if ($boardIsLocked && $settings[7] != 'Administrator')
      fatal_error($txt['redirect_locked']);

   // Validate the attachment if there is one
</replace>
« Last Edit: August 13, 2003, 10:13:21 AM by FaSan » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #16 on: August 13, 2003, 06:49:41 PM »
Reply with quote

Just put it at the top of Post2().... it's not important that it goes after that.

-[Unknown]
Logged
FaSan
Jr. Member
**
Posts: 67


Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #17 on: August 14, 2003, 08:17:00 AM »
Reply with quote

Thanks !!  ;D
Logged
EliteRides
Jr. Member
**
Posts: 83


EliteRides.com

WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #18 on: November 10, 2003, 02:01:18 AM »
Reply with quote

When you set up a board to be redirected, those boards still show up as an option to tick when you go into the Search page.  Any way to fix that?
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #19 on: November 10, 2003, 02:38:47 AM »
Reply with quote

Search.php, find:
      $request = mysql_query("SELECT b.ID_BOARD, b.name FROM {$db_prefix}boards AS b, {$db_prefix}categories AS c WHERE (b.ID_CAT=c.ID_CAT && (FIND_IN_SET('$settings[7]',c.memberGroups) != 0 || '$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || c.memberGroups=''));") or database_error(__FILE__, __LINE__);
      $counter = 1;
      while ($row = mysql_fetch_row($request))
      {


Replace:
      $request = mysql_query("SELECT b.ID_BOARD, b.name, b.redirect FROM {$db_prefix}boards AS b, {$db_prefix}categories AS c WHERE (b.ID_CAT=c.ID_CAT && (FIND_IN_SET('$settings[7]',c.memberGroups) != 0 || '$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || c.memberGroups=''));") or database_error(__FILE__, __LINE__);
      $counter = 1;
      while ($row = mysql_fetch_row($request))
      {
         if (!empty($row['redirect']))
            continue;


(adds b.redirect to the query and skips redirection boards.)

-[Unknown]
Logged
EliteRides
Jr. Member
**
Posts: 83


EliteRides.com

WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #20 on: November 14, 2003, 01:47:09 AM »
Reply with quote

No luck  :-\

Allowed Users code was in there, but I think I got around it ok.

Search.php, find:

      // Replaced by Allowed User MOD - Begin
      $request = mysql_query("SELECT b.ID_BOARD, b.name FROM {$db_prefix}boards AS b, {$db_prefix}categories AS c WHERE (b.ID_CAT=c.ID_CAT && (FIND_IN_SET('$settings[7]',c.memberGroups) != 0 || '$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || c.memberGroups='')) ".AU_GetWhereClause('AND', 'b.', false).";") or database_error(__FILE__, __LINE__);
      // Replaced by Allowed User MOD - End
      $counter = 1;
      while ($row = mysql_fetch_row($request))
      {



Replace:
      // Replaced by Allowed User MOD - Begin
           $request = mysql_query("SELECT b.ID_BOARD, b.name FROM {$db_prefix}boards AS b, {$db_prefix}categories AS c WHERE (b.ID_CAT=c.ID_CAT && (FIND_IN_SET('$settings[7]',c.memberGroups) != 0 || '$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || c.memberGroups='')) ".AU_GetWhereClause('AND', 'b.', false).";") or database_error(__FILE__, __LINE__);

      // Replaced by Allowed User MOD - End
           $counter = 1;
           while ($row = mysql_fetch_row($request))
           {
              if (!empty($row['redirect']))
                 continue;

No?
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #21 on: November 14, 2003, 05:40:39 AM »
Reply with quote

You forgot to add ", b.redirect" to the query.

-[Unknown]
Logged
EliteRides
Jr. Member
**
Posts: 83


EliteRides.com

WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #22 on: December 21, 2003, 07:09:46 PM »
Reply with quote

Sorry.  I did have it in there, but it still isn't working.
Logged

Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #23 on: January 01, 2004, 06:56:42 AM »
Reply with quote

http://anguz.net/yabbse/mods/redirectboards.zip
http://laakademia.com/mods/
« Last Edit: January 10, 2004, 09:29:17 PM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Crackwar
Jr. Member
**
Posts: 92


Ich liebe Lamas !!^^ I love lamas !!^^

WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #24 on: January 01, 2004, 04:41:35 PM »
Reply with quote

Ich möchte an dieser Stelle nochmal ganz gerne auf meine Frage hinweisen !!

http://www.yabbse.org/community/index.php?thread=26836
Logged

Nicht denken, dass ich n mieser Zeitgenosse bin. Ich bin nur Lamasüchtig ^^

Don´t think i´m a bad boy. I only like lamas ^^
Floyds
Noobie
*
Posts: 48


I'm a llama!

Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #25 on: January 19, 2004, 11:00:00 AM »
Reply with quote

O've got it working, but where can I set the boards to be locked or redirect them (i'm looking for the setting, to set) !!
« Last Edit: January 19, 2004, 01:31:38 PM by Floyds » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #26 on: January 19, 2004, 09:59:19 PM »
Reply with quote

go to the board management page in admin
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Floyds
Noobie
*
Posts: 48


I'm a llama!

Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #27 on: January 20, 2004, 07:44:28 AM »
Reply with quote

yes, after a 10min or so, it was shown...

Thx
Logged
Spug
Noobie
*
Posts: 19


I'm a llama!

Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #28 on: February 12, 2004, 09:08:41 AM »
Reply with quote

Quote from: [Unknown] on August 13, 2003, 06:49:41 PM
Just put it at the top of Post2().... it's not important that it goes after that.

-[Unknown]
The installation works fine in 1.5.5, with the exception of the same error FaSan had. However, I can't find any Post2() functions in ModifyMessage.php. Where do I put the code in a 1.5.5 file?
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[Beta 1.5.2] Locked/Redirection Boards 1.0
« Reply #29 on: February 12, 2004, 03:22:25 PM »
Reply with quote

Quote from: Spug on February 12, 2004, 09:08:41 AM
The installation works fine in 1.5.5, with the exception of the same error FaSan had. However, I can't find any Post2() functions in ModifyMessage.php. Where do I put the code in a 1.5.5 file?

The mod doesn't ask you to touch anything called Post2() in ModifyMessage.php.  But it does ask you to change ModifyMessage2 in ModifyMessage.php...

If you are getting the same error that Fasan described, then you'll probably just have to put that piece of code in manually.  Search for "function ModifyMessage2()" and then just put this code after all the globals:


   if ($boardIsLocked && $settings[7] != 'Administrator')
      fatal_error($txt['redirect_locked']);


Hopefully that should work for you.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Pages: 1 [2] 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.2] Locked/Redirection Boards 1.0 « 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.054 seconds with 20 queries.