|
- Readme First! - Read and follow the rules, otherwise your posts will be closed |
|
|
|
|
|
There are currently, 393 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here |
|
|
|
|
|
|
Laffer writes "Hello Nuke Cops,
Please be aware of the existence of $user_prefix and $prefix. More and more people do not pay attention to this very important difference. There are many users out there sharing the USER Table through different installations. Whenever you refer to the user-table, please USE $user_prefix!
In the Forum you should use as Prefix $user_prefix and NOT $prefix, because we want to share the FORUM on all our Nuke Sites. For all users who do not want to share, they just set $user_prefix at the same value as $prefix!!!
In private Messages and everywhere where you access to userinformation please be aware! There are many blocks ignoring the existence of $user_prefix!!!"
|
|
Posted on Wednesday, August 20 @ 10:20:00 CEST by Zhen-Xjell |
|
|
|
|
| |
|
|
| | The comments are owned by the poster. We aren't responsible for their content. |
| | | | |
| No Comments Allowed for Anonymous, please register | | | | |
Re: $user_prefix and $prefix (Score: 1) by Mighty_Y on Wednesday, August 20 @ 10:30:54 CEST (User Info | Send a Message) http://www.code-area51.com | You can say what you want, but I never had problems with them. And I DON'T want to share my forums, cause I don't see any use in it why you would have two different sites with the same forum
I only agree on the part of the blocks where lots of blocks ignore the use of $user_prefix. When you applied one of the secfixes in the right way then the user table gets also shared through the forums.
Just my little opinion |
Re: $user_prefix and $prefix (Score: 1) by Laffer on Thursday, August 21 @ 08:16:11 CEST (User Info | Send a Message) http://www.comicfan.de | And I DON'T want to share my forums, cause I don't see any use in it why you would have two different sites with the same forum
The reason is very easy, if you have different sites you can keep your visitors on your sites, because you show them other interests. E.g. I have a big manga Site (www.manga.de) and a lot of Manga Fans coming over there, but I also have a site for classic Comicbooks. Because both sites refer to the same forum, people will take notice of each other and start discussions.
A typical bug with $user_prefix was found in the Whois Block and Private Messages Block. Also there are bugs spread all over, because even Francesco Burzi does not always pay attention... And the worst thing, every upgrade I have to correct the same bugs, because there is no way of reporting the bugs to FB (his site has thousands of News propositions each day, so he does not read a lot of them).
|
]
| | | | |
Re: $user_prefix and $prefix (Score: 1) by Jeruvy on Thursday, August 21 @ 13:29:10 CEST (User Info | Send a Message) | Maybe someone could actually explain this (lack of) logic, because I'm not getting it.
I understand this much, there are two variables, and neither get used effectively as they could, ok.
Why would you share forums on all sites? You want my forums on your site? Why have two variables if you (typically) only use one? Considering they are globals (I hope I'm right on this =) less is definately better!!!
Thanks,
J.
|
Re: $user_prefix and $prefix (Score: 1) by Laffer on Monday, August 25 @ 05:42:04 CEST (User Info | Send a Message) http://www.comicfan.de | OK, let's explain. In PHPNuke (like PostNUKE) the need for sharing some parts of a website have arised. A typical example (since PHPNuke is a WEB PORTAL System) is User Information.
Imagine you are running a Website talking about cars and another one talking about Computers. Users register to one site, and some to the other. There are some who register to both sites. Two logins, etc...
Now, if you like to have users registering only ONCE there must be another global table Prefix variable, since Nuke Installations user $prefix to identify the good tables for their config. That's why $user_prefix has been defined. So If you set $user_prefix to the same value as $prefix, without modifying Programm Code everything is as before, but if you set $user_prefix to another value than $prefix, then you can use a shared user_table.
Now instant-messaging, if you are using this function wouldn't it be great if the user on the cars site will see the messages the user from the computer site has written to him?
And why not discuss in a common forum, where the users do not need to register twice? |
]
| | | | | |