The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

24.05.13 at 19:02:41, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 ... 5 6 7 8 9 ... 12
[DONE] User's More Membergroups! (Read 27168 times)
madmike12345
Hacker Wannabe
**
Offline

Posts: 89



Reply #90 - 05.08.02 at 17:01:58  

BHRA - Can I clarify this? I look for the first section of code and replace it with the second to fix this problem?

Thanks

.:: Mike ::.

BHRA Webmaster wrote on 09.07.02 at 21:24:05:
Look in Profile.pl for this Code:

           fopen( FILE, ">$memberdir/$member{'username'}.kri", 1);
           print FILE "$FORM{'title1'}\n";
           print FILE "$FORM{'title2'}\n";
           print FILE "$FORM{'title3'}\n";
           print FILE "$FORM{'title4'}\n";
           print FILE "$FORM{'title5'}\n";
           fclose(FILE);


What this says is "take the membergroup settings from the form and save them to the username.kri file". But if anyone other than the administrator edits the profile, there will be no membergroup settings in the form, and it will overwrite all the settings with null values.

What you need to do, is ONLY save the .kri file if the profile is modified by an administrator, by using the following Code:

           if($settings[7] eq "Administrator") {
                 fopen( FILE, ">$memberdir/$member{'username'}.kri", 1);
                 print FILE "$FORM{'title1'}\n";
                 print FILE "$FORM{'title2'}\n";
                 print FILE "$FORM{'title3'}\n";
                 print FILE "$FORM{'title4'}\n";
                 print FILE "$FORM{'title5'}\n";
                 fclose(FILE);
           }




 
IP Logged
 
BHRA Webmaster
Mod Author of the Year 2002
*****
Offline

BHRA Headquarters, United Kingdom
Posts: 5238



Reply #91 - 05.08.02 at 23:37:41  
Yes.
 
IP Logged
 

...
World Domination, one smiley at a time!
EliteRides
Hacker God
*****
Offline

Salt Lake City, Utah, USA
Posts: 692



Reply #92 - 06.08.02 at 02:15:08  
[wonders_to_self]
I wonder if there will be anymore bugs?
[/wonders_to_self]

[takes_deep_breath]
Hey guys, so is it declared final and safe to install?
[/takes_deep_breath]

Is the attached mod that guest andyl56 attached a final?
 
IP Logged
 

ElietRides.com

Nice cars and just a bunch of hotties...  Grin
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #93 - 15.08.02 at 12:51:38  
Well ! This mod certainly needs more attention than its getting! Cry
I finally feel I have it working(I hope), after using andy56's post, bhra's fix, one other "fix", um some other fix..., a fix I had to add to make Chat1.95 accessible by more than the default group, a fix I had to make for SearchNew mod, a fix in the profile.pl(had to add a "chomp" statement), and so on.
This Mod really is good and deserves to be consolidated with all the "fixes" posted, integrated into it.
I hope the auth isn't abandoning it, I certainly appreciate what he has done so far(and others).

Dummy

P.S. If anybody else is having a problem where the groups are being written to the .kri files with extra returns(or LF's or whatever they are!) let me know and I'll post what fixed it for me. But until I hear others are having the same problem, I feel I would just be contributing to the muddle.
 
IP Logged
 

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
SchOX
Hacker Wannabe
**
Offline

Valnesfjord, Norway
Posts: 98



Reply #94 - 15.08.02 at 13:02:51  
If I insert something in slot #3 it gets stored in #4, and if I edit the profile once more it is inserted in #5 and then lost.

I believe this is the same error as you desribe!

How to fix it?

Someone to make a komplete .mod of this mod with all issues fixed?
 
IP Logged
 
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #95 - 15.08.02 at 13:33:13  
Yup thats it...

In the Profile.pl
Search for this Code:

fopen(FILE, "$memberdir/$INFO{'username'}.kri");
@krimodsettings=<FILE>;
fclose(FILE);


After it add this Code:
foreach $value (@krimodsettings) { chomp $value; }


So you end up with this Code:
	 fopen(FILE, "$memberdir/$INFO{'username'}.kri");
@krimodsettings=<FILE>;
fclose(FILE);
foreach $value (@krimodsettings) { chomp $value; }


But be warned ! TEST IT FIRST! I am pretty sure it will solve the prob, but until I hear from the auth or someone like BHRA, it's just a guess. But it did seem to work for me.

Dummy
 
IP Logged
 

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #96 - 15.08.02 at 13:33:35  
ScOX: Ditt problem er fikset Wink (or something to that extent)

To all others: ScOX' problem is fixed, I forgot a chomp Embarrassed

(chomps is my weak point within Perl)

Attached is a new version Cheesy

EDIT: Hey Dummy, you posted the solution while I worked it in a mod Wink
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
SchOX
Hacker Wannabe
**
Offline

Valnesfjord, Norway
Posts: 98



Reply #97 - 15.08.02 at 13:45:03  
Does this also include the other fixes? (security check pos-2,3... etc on enter a private forum)?

Anyways THANKS!

------------
Tusen takk Christer, det er en flott .mod!!!   Smiley
 
IP Logged
 
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #98 - 15.08.02 at 13:46:28  
Jepp. Det gjør den. Så langt husker jeg Wink
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #99 - 15.08.02 at 13:50:54  
Christer I'm just glad to see ya supporting this mod, I feel it truly is useful, and I for one appreciate the work!

Thanks again!

Dummy
 
IP Logged
 

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #100 - 15.08.02 at 14:03:28  
Why thank you. Now I just have to get Announcement mod 2.0 going Wink
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
goatroper
Bloody Novice
*
Offline

Posts: 5



Reply #101 - 15.08.02 at 14:59:58  
First off, my thanks to everybody who has contributed fixes to this mod.  I have been unwilling to deploy it to my active boards while following this discussion and applying fixes.  Grin

Secondly, a HUGE thanks to Christer for first developing this mod, and then taking the time and effort to incorporate the fixes into a clean version.  This is probably the most useful mod I have found, and the one my members have been clamoring for.  I just had not been able to make it work with the add more membergroups they also wanted.  Had to offer one or the other.

Thanks, Christer!  I truly appreciate your work, and I look forward to anything else you come up with.  Cheesy
 
IP Logged
 
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #102 - 15.08.02 at 15:43:27  
Can somebody confirm if the search is working right?
I added a new category, called it Restricted, then I only gave rights to the Restricted category to the new group I called Restricted, so basically only those belonging to the new group Restricted could see the board. That part works, however when I go to do a search, the Restricted board is not in the list of searchable categories. Obviously the user who can see the board but can not search it is not an admin or global mod. Technically the user should be able to search the category if it can see it right?

Dummy
 
IP Logged
 

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Christer Alexander
Moderator
*****
Offline

Lethbridge, Alberta, Canada
Posts: 3443



Reply #103 - 15.08.02 at 16:06:06  
Weird; It works for me...

Attach your Search.pl so I can have a look
 
IP Logged
 

Code:
 
unless(0) { stab("LoonyPandora"); next; }
Dummy Proof
Hacker God
*****
Offline

Outside L.A., California, USA
Posts: 991



Reply #104 - 15.08.02 at 16:34:37  
Thanks for taking a peek.

Dummy
 
IP Logged
 

Searchpl.txt (17 KB | 71 )

Ya can Idiot proof it...
Ya can Dummy proof it...
But ya can never...
...Blonde proof it!
Pages: 1 ... 5 6 7 8 9 ... 12
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum