Welcome, Guest. Please Login or Register.
October 31, 2014, 06:13:02 AM
Home Help Search Login 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  |  Completed mods  |  Topic: [Done 1.4.1] Guests can view memberlist « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.4.1] Guests can view memberlist  (Read 28256 times)
Beertje
Noobie
*
Posts: 12



[Done 1.4.1] Guests can view memberlist
« on: October 14, 2002, 03:57:52 AM »
Reply with quote

With this mod you will give guests the right to view the memberlist.

Email addresses that are set as hidden in the members profile will not be visible for guest.

You can download this one at: http://www.acherentals.com/YaBB_SE/attachments/guest_can_view_memberlist.zip

REMARK: The package contains also a version to mod your memberlist in case you installed the Online Time Mod v0.3a by Vorapoap.
« Last Edit: October 23, 2002, 05:31:52 AM by Beertje » Logged
Beertje
Noobie
*
Posts: 12



Re:[Done 1.4.1] Guests can view memberlist
« Reply #1 on: October 23, 2002, 05:31:22 AM »
Reply with quote

No comments on this, so it's DONE now.
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935



Re:[Done 1.4.1] Guests can view memberlist
« Reply #2 on: October 23, 2002, 01:30:01 PM »
Reply with quote

Nice ! Thx.
Logged

sensovision
Full Member
***
Posts: 100



WWW
Re:[Done 1.4.1] Guests can view memberlist
« Reply #3 on: June 22, 2003, 02:35:32 PM »
Reply with quote

Hi Beertje, nice mod! BTW will you make it compatible with 1.5.4?
Logged

Denis

Are you good with the graphic? check out our design logo contest!
sharkey
Jr. Member
**
Posts: 51



WWW
Re:[Done 1.4.1] Guests can view memberlist
« Reply #4 on: March 26, 2004, 12:20:32 PM »
Reply with quote

just tried this on 1.5.5 with no luck, any chance of it being updated ? :)
Logged


Visit the Movie Compound![/url]
sharkey
Jr. Member
**
Posts: 51



WWW
Re:[Done 1.4.1] Guests can view memberlist
« Reply #5 on: March 26, 2004, 01:51:10 PM »
Reply with quote

Just had a go at updating the code myself and it seems to be working ok on my board, guests can now view the member list and if email is hidden it is not shown to guests (as per the previous code).

Not sure what the procedure is for updating code, so I do apologise if this is breaking any rules but hopefully someone will find the below useful.  

Note this is not my mod, but simply updated code based on Beertje's original mod. The below is how my mod file now looks.


Code: [Select]
<id>
Guests can view memberlist
</id>

<version>
1.0
</version>

<author>
Beertje
</author>

<homepage>
http://www.acherentals.be/
http://www.acherentals.com/YaBB_SE
</homepage>

<mod info>
This mod will show the memberlist to guests also.
Email addresses that are set hidden in members profile are not shown in the memberlist.
</mod info>

<edit file>
Sources/Memberlist.php
</edit file>

<search for>
if ($username == "Guest")
   fatal_error($txt[223]);
</search for>

<replace>
// if ($username == "Guest")
//   fatal_error($txt[223]);
</replace>


<search for>
   if ($user == 'Guest')
      fatal_error($txt[223]);
</search for>

<replace>
//    if ($user == 'Guest')
//      fatal_error($txt[223]);
</replace>


<search for>
      $row['emailAddress'] = (($row['hideEmail'] && $settings[7] != "Administrator" && $allow_hide_email) ? "" : "<a href=\"mailto:$row[emailAddress]\"><img src=\"$imagesdir/email_sm.gif\" alt=\"$txt[69]\" title=\"$txt[69] $row[realName]\" border=\"0\" /></a>");
</search for>

<replace>
      $row['emailAddress'] = (($row['hideEmail'] && ($settings[7] != "Administrator" || $user == "Guest") && $allow_hide_email) ? "" : "<a href=\"mailto:$row[emailAddress]\"><img src=\"$imagesdir/email_sm.gif\" alt=\"$txt[69]\" title=\"$txt[69] $row[realName]\" border=\"0\" /></a>");
</replace>


<search for>
    if ($user == "Guest")
      fatal_error($txt[223]);
</search for>

<replace>
//    if ($user == "Guest")
//      fatal_error($txt[223]);
</replace>

<search for>
   if ($user == 'Guest')
      fatal_error($txt[223]);
</search for>

<replace>
//   if ($user == 'Guest')
//      fatal_error($txt[223]);
</replace>
Logged


Visit the Movie Compound![/url]
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Topic: [Done 1.4.1] Guests can view memberlist « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
2001-2003, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!
Page created in 0.112 seconds with 16 queries.