Print Topic - Archive
E-Blah Community / Mod Requests and Support / ShoutBox v4.0 Support
Posted by: Apollo, October 26, 2005, 7:58pm
Flushed with success in Chat, I thought I'd go back and try the Shoutbox. Failed at this a while back, but with pathing sorted now, all I had to do was remember to use the correct binary and ascii settings for the ftp.
It's in and working as far as I can see, with the following notes:
In admin.php I found I had to edit:
|
Code
if ($username != "Admin") { to if ($username != "admin") { |
|
Because, although I login as Admin to the forum, Shoutbox posts my shouts as admin, (and non-Admin Apollo as apollo) and refuses me access to the Shout Admin functions.
So, it seems to be converting any upper-case letters in the user names from upper to lower-case.
Also, although I have to be Admin to gain access to the Shout Admin functions (Apollo is correctly refused), the password settings in config,pl has no effect, and is not asked for after I hit the Admin button. It appears to be redundant although setting it is included in the Install instructions.
Posted by: Martin, October 27, 2005, 2:05am; Reply: 1
The upper-case letters are stripped so the profanity filter can work without having to have a huge database of every combination of every bad word.
You can access the Admin of the shoutbox as apollo if you change:
|
Code
if ($username != "admin") {
to
if ($username != "apollo") { |
|
Posted by: Nilboglin, October 27, 2005, 12:21pm; Reply: 2
Greetings
I want to upgrade to version 4.
I tried a test uninstal of 3 and got lots of red text "Code not in source"
Isn't it possible for me to just ftp the new files over to the chat folder to upgrade?
Posted by: Martin, October 27, 2005, 12:33pm; Reply: 3
Should be OK as long as to run through and set the variables in config.php as per the old one.
Posted by: Nilboglin, October 27, 2005, 1:42pm; Reply: 4
Ok did that and the shout looks fine, appears to be upgraded. Although the new one does not recognize me as admin.
|
Code
<? if ($username != "Admin") { ?>
|
|
This is the command as it is in admin.php
Does it need to be lower case?
=admin
Or am I way off here?
Posted by: Martin, October 27, 2005, 1:43pm; Reply: 5
it needs to be admin, it's a typo. You can set it to Nilboglin if you want access as you rather than admin.
Posted by: Ryan, October 27, 2005, 3:13pm; Reply: 6
If you want it for all Administrators, I think this will work:
|
Code
if($members{'Administrator',$username}) |
|
I'm not sure though coz the shoutbox is php :-/
Posted by: Nilboglin, October 28, 2005, 7:01am; Reply: 7
I tried using my user name Nilboglin wiith no luck.
I used admin and it worked.
if($members{'Administrator',$username})
how will that effect this string if I try it?
Posted by: Martin, October 28, 2005, 8:33am; Reply: 8
Quoted Text
if($members{'Administrator',$username})
This won't work, it reads the info from the eblah cookie not $members
However, there is no reason why this shouldn't work:
if ($username != "nilboglin") {
Posted by: Nilboglin, October 28, 2005, 9:34am; Reply: 9
ok lemme try it I did use uppercase N.
Posted by: Nilboglin, October 28, 2005, 1:51pm; Reply: 10
Unfortunately neither work upper or lower only lower case admin works.
This is fine, I am not picky.
Posted by: Martin, October 28, 2005, 2:04pm; Reply: 11
Is admin the login name and Nilgoblin the screenname?
Works for me, just changed 'admin' to 'tester' and got full access to the admin when logged in as tester.
Read the eblah cookie if it is Nilgoblin (capital N) then set it to that.
Posted by: Apollo, October 28, 2005, 5:09pm; Reply: 12
Are you sure about the captial N?
Recall that the shoutbox deals with everything in lower case, hence my problem above with Admin, needing the user name in the admin.php check to be carried out in all lower case.
Posted by: Nilboglin, November 1, 2005, 10:44am; Reply: 13
I log in with Nilboglin, but this is the original admin account setup with eblah.
I just changed the screen name.
I have just gone through and changed admin.php in all these ways/
Admin
Nilboglin
nilboglin
admin
The latter admin lower case is the only one that works. I am fine with this.
keep in mind I didn't un-install V3 and reinstall V4 as usual. I have other mods that interfere somehow with the code so all I did was overwrite the version 4 stuff into my phpshout folder. Maybe thats got something to do with it??
Posted by: Martin, November 1, 2005, 12:26pm; Reply: 14
When you are logged in, what does the eblah cookie say is your username?
Posted by: Nilboglin, November 2, 2005, 12:34pm; Reply: 15
Posted by: Nilboglin, November 8, 2005, 9:12am; Reply: 16
Greetings again
Man I can't seem to get the "hover over" date and time right.
Anyone know how I can get it fixed to the right date and time?
Posted by: Martin, November 8, 2005, 9:56am; Reply: 17
I see nothing wrong, I logged in and posted a shout at 17:54 and that's the time I have on my PC. What problem are you getting?
Posted by: Nilboglin, November 8, 2005, 10:35am; Reply: 18
Posted by: Nilboglin, November 8, 2005, 10:39am; Reply: 19
Ok, the format is wierd.
day/month/year - military time.
It is right.
Posted by: Martin, November 8, 2005, 1:01pm; Reply: 20
Done now, format is month/day/year hours:minutes am(pm)
Posted by: Nilboglin, November 9, 2005, 2:21pm; Reply: 21
Looks great!
Thanks for your help!
Print page generated: March 12, 2010, 3:27pm