forum

Why do some folks use Class#method instead of Class.method in correspondence?

老子叫甜甜 提交于 2019-11-30 10:52:25
When writing about methods in Java (i.e. in forums, mailing lists, issue trackers, etc.) many people separate the method name from the class name using the '#' symbol instead of Java's native . operator; for example, folks refer to Object#toString instead of Object.toString . Where does this syntax come from? It's the notation used in javadoc comments when linking to another class' method. EDIT To gather the additional information provided in comments: @Hugo notes that the # notation in turn comes from HTML anchors @maksimov points out that Object.method is the Java syntax to call static

Open-Source Forum with API

╄→гoц情女王★ 提交于 2019-11-30 09:26:39
Does anyone have suggestions for a PHP, Python, or J2EE-based web forum that has a good API for programmatically creating users and forum topics? phpBB would be the first that comes to mind as open-source, simply because it's free. In reality almost all forum platforms have some sort of 'api' in that you can do whatever you need programatically, it just may not be as simple as 'add_user(bob)'. A few lines of code and a SQL query or two and you can usually achieve everything you need. Out of personal preference I would recommend vBulletin, however it does have a fee. The benefit of this is that

PHP forums - how to cope with unread discussions / topics / posts

你。 提交于 2019-11-30 05:54:14
问题 I know this question has been asked here a couple of times, but none of the answers had pleased me. This is because almost all of them involve a huge read / write process related with the database, which I'd like to avoid at all cost. About unread discussions / topics / posts, there's a lot to think of. I don't know how do forum systems like MyBB, vBulletin, Invision Power Board, Vanilla, phpBB, etc., cope with that issue, so I'd like to read from you guys your experience with that. I know

Determining unread items in a forum

我是研究僧i 提交于 2019-11-30 05:29:42
Using PHP and MySQL, I have a forum system I'm trying to build. What I want to know is, how can I set it so that when a user reads a forum entry, it shows as read JUST for that user, no matter what forum they are in, until someone else posts on it. Currently, for each thread, I have a table with a PostID, and has the UserID that posted it, the ThreadID to link it to, the actual Post (as Text), then the date/time it was posted. For the thread list in each forum, there is the threadID (Primary Key), the ThreadName, ForumID it belongs to, NumPosts, NumViews, LastPostDateTime, and CreateDateTime.

How do I protect my forum against spam?

 ̄綄美尐妖づ 提交于 2019-11-30 04:04:30
I have a forum on a website I master, which gets a daily dose of pron spam. Currently I delete the spam and block the IP. But this does not work very well. The list of blocked IP's is growing quickly, but so is the number of spam posts in the forum. The forum is entirely my own code. It is built in PHP and MySQL. What are some concrete ways of stopping the spam? Edit The thing I forgot to mention is that the forum needs to be open for unregistered users to post. Kinda like a blog comment. In a guestbook app I wrote, I implemented two features which prevent most of the spam: Don't allow POST as

Why do some folks use Class#method instead of Class.method in correspondence?

雨燕双飞 提交于 2019-11-29 16:15:23
问题 When writing about methods in Java (i.e. in forums, mailing lists, issue trackers, etc.) many people separate the method name from the class name using the '#' symbol instead of Java's native . operator; for example, folks refer to Object#toString instead of Object.toString . Where does this syntax come from? 回答1: It's the notation used in javadoc comments when linking to another class' method. EDIT To gather the additional information provided in comments: @Hugo notes that the # notation in

Open-Source Forum with API

折月煮酒 提交于 2019-11-29 14:38:16
问题 Does anyone have suggestions for a PHP, Python, or J2EE-based web forum that has a good API for programmatically creating users and forum topics? 回答1: phpBB would be the first that comes to mind as open-source, simply because it's free. In reality almost all forum platforms have some sort of 'api' in that you can do whatever you need programatically, it just may not be as simple as 'add_user(bob)'. A few lines of code and a SQL query or two and you can usually achieve everything you need. Out

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/folder/public_html/folder/folder/login.php on line 18 [duplicate]

跟風遠走 提交于 2019-11-28 14:51:38
This question already has an answer here: Warning: mysql_fetch_* expects parameter 1 to be resource, boolean given error [duplicate] I'm trying to set up my database however I ran into some issues sadly. I've seen that many people asked either the same or similar question but no matter how I look at my code, and modify it. I get confused more, and add more errors. So if someone could explain to me how I can attempt to fix it I'd appreciate it. Here is the error message: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/folder/public_html/folder/folder/login

PHP forums - how to cope with unread discussions / topics / posts

China☆狼群 提交于 2019-11-28 03:41:54
I know this question has been asked here a couple of times, but none of the answers had pleased me. This is because almost all of them involve a huge read / write process related with the database, which I'd like to avoid at all cost. About unread discussions / topics / posts, there's a lot to think of. I don't know how do forum systems like MyBB , vBulletin , Invision Power Board , Vanilla , phpBB , etc., cope with that issue, so I'd like to read from you guys your experience with that. I know that using a database table just for that is the simplest way, but that would involve a huge read /

How to set Cookies at Http Get method using Java

廉价感情. 提交于 2019-11-27 22:09:55
I want to do a manual GET with cookies in order to download and parse a web page. I need to extract the security token, in order to make a post at the forum. I have completed the login, have read the response and extracted the cookies (3 pairs of (name,value) ). I then wrote the String containing the cookies like this: CookieString="name1=value1; name2=value2; name3=value3" I then do the following HttpURLConnection connection connection = (HttpURLConnection)(new URL(Link).openConnection()); connection.setRequestMethod("GET"); connection.setRequestProperty("Connection", "Keep-Alive");