We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 6
Profile Comments System
Topic Started: May 23 2013, 04:30 PM (8,929 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code Name: Profile Comments System

What the code does: This code integrates a comment system in every users profile: Preview

How to use the code: Create a new forum for the data to be deposited to:

Admin CP Posted Image Forum Sections Posted Image Create Section Posted Image Normal Forum

Give all permissions to moderators and administrators, Upload isn't necessary however. Give Read, Start and Reply permissions to regular members.

In the code, change FORUM_ID to the ID of the forum you just created. MAX_CHARACTERS can be changed to the maximum amount of characters you wish to allow per-comment.

How to install the code:

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
var PCForumID = 'FORUM_ID';
var maxLen = 'MAX_CHARACTERS';
</script>
<script type="text/javascript" src="http://z3.ifrm.com/63/1/0/p477008/Profile_Comments.js"></script>
Edited by Cory, Dec 4 2017, 11:12 PM.
Offline Profile Quote Post Goto Top
 
Replies:
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
This code has been updated to utilize the search engine, in which by doing so the code no longer has the 10,000 comments per-board restriction and it no longer has the restriction of appearing on only up to 100 profiles.

If you're a board that already uses this code you may need to simply clear your cache in order for the changes to take effect.
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

That's a nice update, Cory! :)
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Thanks, DPM! I just updated the code to fix a crucial flaw that I just realized: Originally, the code would only grab the comments from the first topic page, now I updated the code to detect for pagination to grab the comments from the last topic page. So instead of the oldest comments showing, it will show the newest comments.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply
  • Pages:
  • 1
  • 6