compatibility of infusions and mods of PHP-Fusion 7
slaughter
Posted on 04-01-2010 15:38
Offline
Head Developer
Super Admin
Posts: 1091
Joined: 28.12.09
Gender: male
Warnings:
The infusions of PHP-Fusion 7.00/7.01 aren't 100% compatible with Pimped-Fusion since the inner core code isn't the same anymore.
There could be any issues with the User Levels, SEO Url-Rewrite or multi-language support.
User Levels:
This are the User Levels in PHP-Fusion:
Super-Admin: 103
Admin: 102
Member: 101
Guest: 0
In Pimped-Fusion we have a new order of user levels:
Super-Admin: 104
Admin: 103
Global Moderator: 102
Member: 101
Guest: 0
So you need to update those user levels in your Mods/Infusions.
We are using constants for the User Levels:
Code define("nONLYGUEST", '-1');
define("nGUEST", '0');
define("nMEMBER", '101');
define("nMODERATOR", '102');
define("nADMIN", '103');
define("nSUPERADMIN", '104');
I suggest, that you use those definitions instead of the old numbers.
Outdated Functions:
The following functions should not be used anymore: opensidex(), closesidex() and
tablebreak().
If you have any problems with an existing infusion, just open a thread.
Edited by slaughter on 22-05-2010 00:11
x 3 x 1
jebajseti
Posted on 09-06-2010 09:54
Offline
Junior Member
Posts: 25
Joined: 19.04.10
Warnings:
how can i add user level lets say 101.1 so there will not be any need to edit infusions etc. in php-fusion 7.0?
slaughter
Posted on 12-06-2010 14:36
Offline
Head Developer
Super Admin
Posts: 1091
Joined: 28.12.09
Gender: male
Warnings:
jebajseti wrote:
how can i add user level lets say 101.1 so there will not be any need to edit infusions etc. in php-fusion 7.0?
No, this will cause some errors, because the dot is used as delimiter.
jebajseti
Posted on 08-10-2010 22:47
Offline
Junior Member
Posts: 25
Joined: 19.04.10
Warnings:
hi, because that is not possible can i make level 102 and 103 clan members and vip? Also then ill need to add 105 and 106 coz of that so admin and super admin will be at that levels then.
Regards
Edited by jebajseti on 08-10-2010 22:48
Advertising Bot Posted on 23-05-2012 19:59
Bot Agent Posts: n^xJoined: Always
slaughter
Posted on 11-10-2010 16:47
Offline
Head Developer
Super Admin
Posts: 1091
Joined: 28.12.09
Gender: male
Warnings:
yes, you can
You need to change the user levels in database and in includes/user_levels_include.php
jebajseti
Posted on 19-10-2010 20:27
Offline
Junior Member
Posts: 25
Joined: 19.04.10
Warnings:
only that 2? database and includes?
BassT
Posted on 19-10-2010 23:10
Offline
Admin
Posts: 67
Joined: 16.08.10
Age: 25
Warnings:
Why don't you use groups for that?
Better keep that default user levels and create VIP and clan member groups ;-)
So you don't have to edit infusions or so, if you need to check if a user is in a specific group, you can use the checkgroup(GROUP_ID) function :-)
jebajseti
Posted on 20-10-2010 15:44
Offline
Junior Member
Posts: 25
Joined: 19.04.10
Warnings:
so how do i do like this example
if iADMIN {
code
} else {
code
}
with group id? maybe like this?
if checkgroup(1) {code} else {} ?
slaughter
Posted on 20-10-2010 16:34
Offline
Head Developer
Super Admin
Posts: 1091
Joined: 28.12.09
Gender: male
Warnings:
Code if(iADMIN) {
code
} else {
code
}
Code if (checkgroup(1)) {code} else {}
jebajseti
Posted on 20-10-2010 21:38
Offline
Junior Member
Posts: 25
Joined: 19.04.10
Warnings:
thank you very much
BassT
Posted on 20-10-2010 22:09
Offline
Admin
Posts: 67
Joined: 16.08.10
Age: 25
Warnings:
I used this function to show members of the sponsor-group a thank-you - image in the header ;-)
jebajseti
Posted on 14-11-2010 13:13
Offline
Junior Member
Posts: 25
Joined: 19.04.10
Warnings:
what about maincore.php and locale/global.php there is something also defined about levels?
i want to add level 105 to be higher and above nsuperadmin, isuperadmin and have all rights and super admin should not have all rights same as administrator what i set to them. So they wouldnt have access to whole forum etc.
Edited by jebajseti on 14-11-2010 13:25