會員註冊 / 登入  |  電腦版  |  Jump to bottom of page

Developer Forum » Q: html tags, online-status, captcha, statistics, Moderation of replies

發表人: yoyogin
10 年 前
1. are html tags really supported? i can't get the html tags work. when i write some thing like
<a href="www.google.com">google</a>

for some reason is translated to something like
<a >google</a>

(the href attribute is trimmed, i think in client side)
+ i've tried to add the <div> tag. with no success.
when i update the configuration file, where my update is saved? ( in which file/db table)

2. online-status in user profile there is a "show online status" attribute, which is not working (?) - every time i set it to no it is set back to yes.

3. captcha - is too damn hard for humans!

4. lucene statistics - is there any way to update automatically? just to be sure, only pages that were indexed (by lucene) are shown in search result, right?

5. moderation of replies - is an attribute in group permission control (is there any individual permission control?) which is not working...

thanks!

發表人: andowson
10 年 前
1.HTML tags:
Allowed HTML tags is defined in the properties file SystemGlobals.properties or redefined by jforum-custom.conf with this key:
html.tags.welcome
And for tag name a and img, you should include the "http://" at the beginning of the URL.
For examples:
google


2.Hide Online-Status: This is a TODO feature. You can modify GenericUserDAO.java by removing this line to get the data displayed correctly:
[code=java; first-line:202] protected void fillUserFromResultSet(User user, ResultSet rs) throws SQLException
{
user.setAim(rs.getString("user_aim"));
user.setAvatar(rs.getString("user_avatar"));
user.setGender(rs.getString("gender"));
user.setRankId(rs.getInt("rank_id"));
user.setThemeId(rs.getInt("themes_id"));
user.setPrivateMessagesEnabled(rs.getInt("user_allow_pm") == 1);
user.setNotifyOnMessagesEnabled(rs.getInt("user_notify") == 1);
user.setViewOnlineEnabled(rs.getInt("user_viewonline") == 1); // this is what we need
user.setPassword(rs.getString("user_password"));
user.setViewEmailEnabled(rs.getInt("user_viewemail") == 1);
//user.setViewOnlineEnabled(rs.getInt("user_allow_viewonline") == 1); // remove this line
...
}[/code]
However, currently there is no implementation for hiding online status in JForum smilie .

3.Captcha: Just keep trying with generating a new one until you can recognize it. smilie

4.Lucene Statistics: Lucene is automatically updated when you add/remove/modify posts. Yes, you're right. You can only search back indexed pages by Lucene.

5.Moderation of Replies: Forum moderation is a little complicated. Moderation of a forum needs to be enabled first.
First, you have to enable moderation setting on the Forum Management. After that, go back to Group Management and modify the moderation of replies setting.
JForum's permission control is reverse. You highlight a forum in the lists means that forum is out of control(Don't need moderation on replies, but first post is still need to be moderated). And the other unselected forums are still need moderation when reply to an existing post.




會員註冊 / 登入  |  電腦版  |  Jump to top of page