Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: small problem with sNews MU (Multi Users)  (Read 2952 times)

edsil

  • Jr. Member
  • **
  • Karma: 5
  • Posts: 97
small problem with sNews MU (Multi Users)
« on: September 09, 2007, 04:15:25 pm »

Hi,
I dont know if it is the place to post this problem...

I have a little problem with sNews MU (Multi Users) MOD by Bob Baker (bakercad)...
When I uncheck the "show/hide added by" it doesnt work... it is always displaying "added by"

Any idea?

Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
Re: small problem with sNews MU (Multi Users)
« Reply #1 on: September 10, 2007, 03:46:03 pm »

Also, Site Owner setting reverts to 'no' if site owner edits their own profile.
Logged
Of all the things I have lost, it is my mind that I miss the most.

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
Re: small problem with sNews MU (Multi Users)
« Reply #2 on: September 11, 2007, 05:00:34 am »

Hi Esdil, Phil and Bob,
To fix the "added by" bug, please, change (in the line number 2366) :
This 'display_added_by' => $added_by to 'added_by' => $display_added_by

And, for the "Site Owner" fix, replace (start at line number 1113 to 1117):
Quote
if ($level == '2' || $level == '3'){
echo html_input('checkbox', 'edit_comments', 'edcom', 'YES', l('mu_edit_comments'), '', '', '', '', $edit_comments, '', '', '', '', '', '');
echo html_input('checkbox', 'permit_upload', 'pfiles', 'YES', l('mu_permit_upload'), '', '', '', '', $permit_upload, '', '', '', '', '');
echo html_input('checkbox', 'site_owner', 'sowner', 'YES', l('mu_site_owner'), '', '', '', '', $site_owner, '', '', '', '', '');
}
to
Quote
echo html_input('checkbox', 'site_owner', 'sowner', 'YES', l('mu_site_owner'), '', '', '', '', $site_owner, '', '', '', '', '');
if ($level == '2' || $level == '3'){
echo html_input('checkbox', 'edit_comments', 'edcom', 'YES', l('mu_edit_comments'), '', '', '', '', $edit_comments, '', '', '', '', '', '');
echo html_input('checkbox', 'permit_upload', 'pfiles', 'YES', l('mu_permit_upload'), '', '', '', '', $permit_upload, '', '', '', '', '');   
}

Sorry about that!  ;)
« Last Edit: September 11, 2007, 05:36:36 am by bramsyuur »
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol