Welcome, Guest. Please Login or Register.
May 10, 2025, 05:36:30 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  only for members? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: only for members?  (Read 595 times)
Zas
Noobie
*
Posts: 38


I'm a llama?

zasnemo@hotmail.com
only for members?
« on: March 06, 2003, 05:41:42 PM »
Reply with quote

for yabb sp 1.1 they made a mod where you could insert [mem]only registered emmebrs can see this.[/mem]. How could i do it for yabbse?

here's the code for the other mod:
<edit file>
Sources/Subs.pl
</edit file>

<search for>
   $message =~ s~\[fixed\](.+?)\[/fixed\]~<font face="Courier New">$1</font>~isg;
</search for>

<add after>
### mem mod
      ### mem mod
      if($username eq "Guest")
      {
      
      $message =~ s/\[mem\](.+?)\[\/mem\]/\[members only\]/g;

      }
      ### mem mod
### mem mod
</add after>
Logged
klumy
Sr. Member
****
Posts: 432


Re:only for members?
« Reply #1 on: March 06, 2003, 07:21:49 PM »
Reply with quote

This sounds pretty cool. If someone could etend this mod, so this mod would work for all membergroups.
Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:only for members?
« Reply #2 on: March 07, 2003, 04:14:02 AM »
Reply with quote

Already done, it's called Allowed User and it's in the Completed Mods board.

cheers,,,,,,,,,,,
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:only for members?
« Reply #3 on: March 07, 2003, 04:19:59 AM »
Reply with quote

I'd really like to see this too. In fact, maybe a really ambitious modder could even include a tag to specify which members and/or membergroups should be able to see the text. For instance:

Here is my post![mem] You members are cool.[/mem][admin] But the admin is the coolest of all![/admin] Bye.

Guests would see "Here is my post! Bye."
Registered members would see "Here is my post! You members are cool. Bye."
Admins would see "Here is my post! You members are cool. But the admin is the coolest of all! Bye."
Logged

Imparting great wisdom daily to those who will mistake my words as such.
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:only for members?
« Reply #4 on: March 07, 2003, 05:01:38 AM »
Reply with quote

I suppose thats what we get for not searching Completed Mods first.  ::)
Logged

Imparting great wisdom daily to those who will mistake my words as such.
Zas
Noobie
*
Posts: 38


I'm a llama?

zasnemo@hotmail.com
Re:only for members?
« Reply #5 on: March 08, 2003, 11:45:26 AM »
Reply with quote

Quote from: John R on March 07, 2003, 04:14:02 AM
Already done, it's called Allowed User and it's in the Completed Mods board.

cheers,,,,,,,,,,,
sure, but that hides the hole board to not registered users for example. I would like to only hide specific text: [mem]hello only registered members can see this[/mem]
Logged
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:only for members?
« Reply #6 on: March 08, 2003, 10:42:31 PM »
Reply with quote

Quote from: Zas on March 08, 2003, 11:45:26 AM
Quote from: John R on March 07, 2003, 04:14:02 AM
Already done, it's called Allowed User and it's in the Completed Mods board.

cheers,,,,,,,,,,,
sure, but that hides the hole board to not registered users for example. I would like to only hide specific text: [mem]hello only registered members can see this[/mem]

Sorry, guess I misunderstood what you meant.  However, there is good news, what you are looking for is called the Hide Mod and it's also available in the Completed Mods board.

cheers............
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
Zas
Noobie
*
Posts: 38


I'm a llama?

zasnemo@hotmail.com
Re:only for members?
« Reply #7 on: March 09, 2003, 12:40:53 PM »
Reply with quote

can't find it  :-[
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:only for members?
« Reply #8 on: March 09, 2003, 06:13:44 PM »
Reply with quote

I'ts called the Hide Hack, by Big P.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  only for members? « 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.048 seconds with 20 queries.