May 23 2012 19:59:49
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 4

· Members Online: 0

· Total Members: 495
· Newest Member: chronsk
Last Seen Users
· Leonardo_master02:19:54
· chronsk 1 day
· budisantoso 2 days
· lidaer 2 days
· Yodix 2 days
· mr-casino 3 days
· dos5 5 days
· Machello93 5 days
· ezgi 5 days
· xxyy 6 days

Login
 Username  Password  
View Thread: compatibility of infusions and mods of PHP-Fusion 7
Who is here? 2 Guests
 Print Thread
compatibility of infusions and mods of PHP-Fusion 7
slaughter
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:

Download source  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
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
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
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^x
Joined: Always

  
slaughter
yes, you can Wink
You need to change the user levels in database and in includes/user_levels_include.php
 
jebajseti
only that 2? database and includes?
 
BassT
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
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
Download source  Code
if(iADMIN) {
code
} else {
code
}






Download source  Code
if (checkgroup(1)) {code} else {}


 
jebajseti
thank you very much
 
BassT
I used this function to show members of the sponsor-group a thank-you - image in the header ;-)
 
jebajseti
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
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
What you what to see in next versions of Pimped-Fusion? Feature Requests 113 13-03-2012 03:59
script php fusion Feature Requests 5 12-03-2012 04:18
Infusions install error Suspected Bugs and Errors 4 05-03-2012 03:52
What should I do to opptattere to pimped fusion General Questions 2 29-02-2012 04:04
How to Move Pimped Fusion General Questions 2 27-02-2012 05:25
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.25 seconds - 111 Queries 996,677 unique visits