- Posts: 12
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.
Question How to change a registed user to guest if a registered user post in a forum with the right "Everyone
16 years 8 months ago #27029
by bryan7
Please Log in or Create an account to join the conversation.
16 years 8 months ago #27033
by skillless
Replied by skillless on topic Re:How to change a registed user to guest if a registered user post in a forum with the right "Every
Hi!
I didn't try it, but it should be possible if you hack the message.php at line 168 after
until about line 320 like (pseudocode!)
I didn't try it, but it should be possible if you hack the message.php at line 168 after
Code:
<td class = "fb-msgview-left">
<div class = "fb-msgview-l-cover">
Code:
if (fmessage->forumtype == "Everyone") {
echo 'hidden registered User now as Guest';
}
Please Log in or Create an account to join the conversation.
16 years 8 months ago - 16 years 8 months ago #27077
by bryan7
Replied by bryan7 on topic Re:How to change a registed user to guest if a registered user post in a forum with the right "Everyone
Thanks!
I believe I have and idea for how to make this work. However, I would like to put the code like:
which I found out that the value in 0 is for "Everyone" and value -1 is for "Registered" inside the SQL table "fb_categories".
What should I add so I can get the "pub_access" value from the sql>fb_categories in my case?
Thank you very much in advance,
I believe I have and idea for how to make this work. However, I would like to put the code like:
Code:
if ($forum->pub_access == 0) {echo 'Guest';}
which I found out that the value in 0 is for "Everyone" and value -1 is for "Registered" inside the SQL table "fb_categories".
What should I add so I can get the "pub_access" value from the sql>fb_categories in my case?
Thank you very much in advance,
Last edit: 16 years 8 months ago by bryan7.
Please Log in or Create an account to join the conversation.
16 years 8 months ago #27164
by bryan7
Replied by bryan7 on topic Re:How to change a registed user to guest if a registered user post in a forum with the right "Everyone
Solved! Thanks all
Please Log in or Create an account to join the conversation.
16 years 8 months ago #27200
by skillless
Replied by skillless on topic Re:How to change a registed user to guest if a registered user post in a forum with the right "Every
Can you please post your solution?
Please Log in or Create an account to join the conversation.
16 years 8 months ago - 16 years 8 months ago #27302
by bryan7
Replied by bryan7 on topic Re:How to change a registed user to guest if a registered user post in a forum with the right "Everyone
To use this solution, your forum can not have any moderator as I use the user level to separate between Anonymous Forum and Normal Forum.
So it is not suitable for everyone base on how you use it as my forum will not have any Moderator.
To make the registered user to hide their user name and pic in the Anonymous forum, I have make every user to become Moderator in the Anonymous Forum. For the Anonymous Forum itself, I have make the Moderator right to "NO", so the users can not make any change even they are Moderator in the forum.Once the code check that the user is Moderator in the forum, it will hide the username and user pic.
Here is the code to hide the user name: (Original:)
\components\com_kunena\template\default\message.php (Line 74)
Modified:
To hide the user pic is very similar: (Modified)
So it is not suitable for everyone base on how you use it as my forum will not have any Moderator.
To make the registered user to hide their user name and pic in the Anonymous forum, I have make every user to become Moderator in the Anonymous Forum. For the Anonymous Forum itself, I have make the Moderator right to "NO", so the users can not make any change even they are Moderator in the forum.Once the code check that the user is Moderator in the forum, it will hide the username and user pic.
Here is the code to hide the user name: (Original:)
\components\com_kunena\template\default\message.php (Line 74)
Code:
<?php
if ($fmessage->userid > 0){
echo CKunenaLink::GetProfileLink($fbConfig, $fmessage->userid, $msg_username);
}
else{
echo $msg_username;
}
?>
Modified:
Code:
<?php
//Check the Moderator users
if ($msg_usertype != 'Moderator'){
if ($fmessage->userid > 0)
{
echo CKunenaLink::GetProfileLink($fbConfig, $fmessage->userid, $msg_username);
}
else{
echo $msg_username;
}
}
?>
To hide the user pic is very similar: (Modified)
Code:
<?php
if ($msg_usertype != 'Moderator'){
if ($fmessage->userid > 0)
{
echo CKunenaLink::GetProfileLink($fbConfig, $fmessage->userid, $msg_avatar);
}
else
{
echo $msg_avatar;
}
}
?>
Last edit: 16 years 8 months ago by bryan7.
Please Log in or Create an account to join the conversation.
Time to create page: 0.333 seconds