News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Slashout Banned Members

Started by vbgamer45, April 11, 2011, 12:13:09 PM

Previous topic - Next topic

Arantor

Can I suggest a faster method of getting the banned status for a user, which should also require fewer query edits (which carry a performance penalty)?

Instead of making a join to the bans table, why not instead just pull the is_activated column for the user and see if it's >= 10.

In addition, if you've passed through loadMemberContext at any point, there is an is_banned boolean entry in the $memberContext array.

(Oh, and this would solve the issue mentioned above. This is the method I used in my own slash through banned usernames mod, so I know it works.)

ascaland

#21
Great, I will try the above soon, thanks for the suggestion. I will apply the above to my next update. :)

I cant believe how many operations I was able to get rid of in the mod! Great! Next version is coming soon and might have support for SMF 2.0.

ascaland

Version 1.2 is here! I have applied the above suggestions and have made some edits to SSI.php.
Support for SMF 2 will most likely be in the next version.

ColaZero

Ehm, I have 1.1.13 but why 3/5 tests fail?

1.    Execute Modification    ./Sources/BoardIndex.php    Test failed
2.    Execute Modification    ./Sources/Display.php    Test successful
3.    Execute Modification    ./Sources/MessageIndex.php    Test failed
4.    Execute Modification    ./Sources/Load.php    Test failed
5.    Execute Modification    ./SSI.php    Test successful

ascaland

Quote from: ColaZero on June 12, 2011, 04:08:58 PM
Ehm, I have 1.1.13 but why 3/5 tests fail?

1.    Execute Modification    ./Sources/BoardIndex.php    Test failed
2.    Execute Modification    ./Sources/Display.php    Test successful
3.    Execute Modification    ./Sources/MessageIndex.php    Test failed
4.    Execute Modification    ./Sources/Load.php    Test failed
5.    Execute Modification    ./SSI.php    Test successful

Do you have any other mods installed?

ColaZero

Yes, I have the following mods installed:

1.    Create a topic when a post is reported
2.    Member Color Link
3.    Version Emulate Dropdown
4.    MCLegendII.2
5.    Simple Award System
6.    Users Online Today Mod
7.    Welcome Topic Mod
8.    SMF Staff Page
9.    AJAX Instant Quick Reply
10.    SMFPacks Shoutbox

ascaland

Quote from: ColaZero on June 13, 2011, 06:24:22 AM
Yes, I have the following mods installed:

1.    Create a topic when a post is reported
2.    Member Color Link
3.    Version Emulate Dropdown
4.    MCLegendII.2
5.    Simple Award System
6.    Users Online Today Mod
7.    Welcome Topic Mod
8.    SMF Staff Page
9.    AJAX Instant Quick Reply
10.    SMFPacks Shoutbox

The errors you were receiving before were definitely from mod interferences. To complete installation your going to have to manually install the parts where the errors occured.

Tanith0709

Just out of curiosity how far along is the next version?

Hoping for 2.0 support soon :)

ascaland

Quote from: Tanith0709 on July 31, 2011, 06:24:59 PM
Just out of curiosity how far along is the next version?

Hoping for 2.0 support soon :)

Not sure yet, im on and off mod development right now.

SSimple Team

Quote from: Tanith0709 on July 31, 2011, 06:24:59 PM
Just out of curiosity how far along is the next version?

Hoping for 2.0 support soon :)

2.0 Supports
Please report any error
Regards!




Mi Web: SMFSimple.com -

SSimple Team





Mi Web: SMFSimple.com -

Jessica.

Do only members with a PERMANENT ban get a strike-through? Because the test account I'm testing this mod on (member "Test") is banned for one day but there's no slash
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

The Silver Monkey

Quote from: Jessica. on October 01, 2011, 08:31:58 PM
Do only members with a PERMANENT ban get a strike-through? Because the test account I'm testing this mod on (member "Test") is banned for one day but there's no slash

I'm having a similar problem. I banned a user for a week, but the user's name didn't get a slash through it.

Gà Mái

Quote from: Jessica. on October 01, 2011, 08:31:58 PM
Do only members with a PERMANENT ban get a strike-through? Because the test account I'm testing this mod on (member "Test") is banned for one day but there's no slash
Me too!
-- I love SMF --

Jessica.

then in that case temp banned members should also get one, but it will be gone after the ban expires
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

Ashelia

Is it possible to make this work for profiles too? Everything else works perfectly on my forum, but there are no strikethroughs on profile pages.


satinof

Quote from: Ashelia on June 16, 2012, 09:33:38 AM
Is it possible to make this work for profiles too? Everything else works perfectly on my forum, but there are no strikethroughs on profile pages.
me too need it

Ashelia



Advertisement: