Welcome Guest [Log In] [Register]
Support Staff Recommendation
All communities remaining on zIFBoards/InvisionFree should check their conversion opt-in selection in their Admin CP (menu item Tapatalk Conversion)
(Read More)
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:
Multiquote (on) Multiquote (off)
Add Reply
Profile Comments System
Topic Started: May 23 2013, 04:30 PM (8,619 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
 
BlueWolf22
Member
[ * ]
Thank you, Cory. Works like a charm!
Offline Profile Quote Post Goto Top
 
manga_service
Member
[ * ]
Hi cory

can you make it so members can see notifications when someone comments on their profile ?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Did you envision these notifications being available on every page like my Mention Notifications code, or would they only be listed on the Preferences homepage?
Offline Profile Quote Post Goto Top
 
sycotherejekt
Member
[ *  * ]
For some reason this isn't working, I think it might be conflicting with one or more additions I have. It worked at one point, but now when I enter a comment by hitting Enter, it sends the comment to the end of my URL. Hitting the submit button says the comment was submitted, but it doesn't add to the comment list, and nothing is added to the forum it's based off.

EDIT: Chrome issue. Works fine in FF (which is what I tested on). Hitting Enter instead of clicking Submit does the same thing in FF however.
Edited by sycotherejekt, Jun 12 2013, 05:39 AM.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It should work in Chrome now and the enter key should make the code function properly. You might have to clear your cache in order for the updates to take affect.
Offline Profile Quote Post Goto Top
 
sycotherejekt
Member
[ *  * ]
Sweet! Thank you sir! Super nifty. :D
Offline Profile Quote Post Goto Top
 
Twinkle And Kessie
Member Avatar
Also Known As Carol And Nella
[ *  * ]
It doesn't notify me when I get a new comment, and I tried placing it in the Below the Board and Above the Copyright sections, but otherwise works fine. Am I missing something? I would really appreciate any advice, even though I don't need a notify function. (it would be so cooool though.)
Offline Profile Quote Post Goto Top
 
Ferby
Member Avatar
Coder
[ *  *  *  *  * ]
Twinkle And Kessie
Jul 3 2013, 05:58 AM
It doesn't notify me when I get a new comment, and I tried placing it in the Below the Board and Above the Copyright sections, but otherwise works fine. Am I missing something? I would really appreciate any advice, even though I don't need a notify function. (it would be so cooool though.)
I don't actually think it's suppose to notify you. Are you sure?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It's not, but I'll probably add it as an additional feature soon.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code updated with notifications.
Offline Profile Quote Post Goto Top
 
Zinnoh
Member Avatar
Perfume Mist Pirates ♥..♪
[ *  * ]
Could you make it so that an icon of the User's Avatar appears next to the users name?
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It should now be a feature upon clearing your cache.
Offline Profile Quote Post Goto Top
 
i2pm
Member
[ *  * ]
I was just wondering would this code affect your board in any ways? Make it laggy or something. Because you know how you store all these infos into a section in the forum, having up to 10,000 topics there worries me, don't know if it will affect board.

So if there is over 10,000 comments (10,000 topics in the FORUM ID), would it maybe prevent me from creating topics because there are too many topics, or if I created a new topic in a different section it will delete each comment, for each new topic.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
On every page, the code uses 1 AJAX request. On the profile page it uses 3 AJAX requests. When you submit a comment, it uses 3 AJAX requests.

The amount of topics or posts the forum contains has no affect on the state of the board, it's just like an average forum.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply