[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

Q: html tags, online-status, captcha, statistics, Moderation of replies RSS feed
討論區首頁 » Developer Forum
發表人 內容
yoyogin


註冊時間: 2011/7/27
文章: 3
離線
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


註冊時間: 2011/6/30
文章: 250
離線
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.
 
討論區首頁 » Developer Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer