Welcome, Guest. Please Login or Register.
May 04, 2025, 05:37:31 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Extra function for GM's « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Extra function for GM's  (Read 491 times)
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Extra function for GM's
« on: July 16, 2002, 07:01:33 PM »
Reply with quote

WHERE do I have to put WHAT to make it possible for my GM's to change the users profiles ?

I can't seem to find the right place(s) in Profile.php

Anybody ?
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Extra function for GM's
« Reply #1 on: July 16, 2002, 07:47:09 PM »
Reply with quote

I think:

just find all of these "if($username != $user && $settings[7] != 'Administrator')" and these "if($settings[7] != 'Administrator')" and put && $settings[7] != GM

you change it to match the actual GM position.

I am just stopping in while cleaning the basement so I am not sure :(
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Extra function for GM's
« Reply #2 on: July 16, 2002, 07:51:36 PM »
Reply with quote

Well, I guess not at ALL places, but that's just what I tried.....

Should it be &&, or !=, or == ??

Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Extra function for GM's
« Reply #3 on: July 16, 2002, 07:55:00 PM »
Reply with quote

It should be something like this:

if($settings[7] != 'Administrator' || $settings[7] != 'Global Moderator') {
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Extra function for GM's
« Reply #4 on: July 16, 2002, 08:01:32 PM »
Reply with quote

it used && between $user and the is admin thingy so I would use && :)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Extra function for GM's
« Reply #5 on: July 16, 2002, 08:01:33 PM »
Reply with quote

I replaced them all (just to be sure), but that didn't help.......
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Extra function for GM's
« Reply #6 on: July 16, 2002, 08:26:18 PM »
Reply with quote

Quote from: groundup on July 16, 2002, 08:01:32 PMit used && between $user and the is admin thingy so I would use && :)
If he uses && it won't work. Read it more closely it has a != in it. So if you are not an admin OR not a global moderator it gives off an error. That is how it works. My code is correct.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Extra function for GM's
« Reply #7 on: July 16, 2002, 08:46:57 PM »
Reply with quote

I believe you, Chris, but.......I can't seem to get it to work :(
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Extra function for GM's
« Reply #8 on: July 16, 2002, 09:52:35 PM »
Reply with quote

I am a bit further :

I get the ability to MODIFY the profile, it even opens the profile-page without errors.

When I want to submit the changes (if there are any), it gives me the error "This username already exists".....it points to .......forum/index.php?board=;action=profile2

But I can't find a relation between the error and the action......

Help ;) ?
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
sylvester
YaBB God
*****
Posts: 525


Re:Extra function for GM's
« Reply #9 on: July 16, 2002, 10:37:45 PM »
Reply with quote

there are a few if-statements, like if($settings[7] == 'Administrator') { blablabala

you have to replace that with if($settings[7] == 'Administrator' || $settings[7] == 'Global Moderator') { blablabal
Logged

I'm back
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Extra function for GM's
« Reply #10 on: July 16, 2002, 10:52:01 PM »
Reply with quote

That is the first thing I tried, but WHERE !?
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
sylvester
YaBB God
*****
Posts: 525


Re:Extra function for GM's
« Reply #11 on: July 17, 2002, 12:15:03 AM »
Reply with quote

Quote from: Webby on July 16, 2002, 10:52:01 PMThat is the first thing I tried, but WHERE !?
You have to replace more than 10 if-statements  :-\
AND you have to ADD if-statements :-\
« Last Edit: July 17, 2002, 12:15:57 AM by sylvester » Logged

I'm back
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Extra function for GM's
« Reply #12 on: July 17, 2002, 02:36:03 AM »
Reply with quote

ah.. ty chris.  Didn't really look at it.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Extra function for GM's
« Reply #13 on: July 17, 2002, 08:05:50 AM »
Reply with quote

Quote from: sylvester on July 17, 2002, 12:15:03 AM
Quote from: Webby on July 16, 2002, 10:52:01 PMThat is the first thing I tried, but WHERE !?
You have to replace more than 10 if-statements  :-\
AND you have to ADD if-statements :-\

........ :-\ ...........
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:Extra function for GM's
« Reply #14 on: July 17, 2002, 09:29:01 AM »
Reply with quote

Well, I figured it out.

It wasn't that much replacements : just 4 or 5

Now it works for my GM's ;) !
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Extra function for GM's « 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.062 seconds with 20 queries.