News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ajax Profile Comments

Started by The Craw, March 06, 2012, 02:22:44 PM

Previous topic - Next topic

The Craw

Link to Mod

Current Version: 1.0

As the title suggests, Ajax Profile Comments makes it possible for users to leave comments on their profiles. It uses a nice sliding interface that doesn't require page loads for things like posting new comments, modifying, or deleting.

This mod uses a few icons from the LED icon set.

License:
I release this mod and all the code in it to anyone who wants to use it in hopes that it may be found useful. Attribution is not necessary, nor do you need to provide a link back to my website. You are free to use this mod for any purpose, including commercial works, redistribution and derivative works. The only contingency is that the link back to the LED icon set must remain, as this mod uses two icons from that set. Namely comment_delete.png and comment_edit.png. Both images are found in the root directory of the package. All other images are made by myself and can be used freely. Lastly, this mod comes with no guarantees that it will work well on all servers and configurations, and I will not be held responsible for damages, expenses or problems that may have been caused by the mod's use.


This mod is now updated and stored on GitHub. All updates and releases will be committed there, where you can download a zipped package with the latest code.


OCJ

Installed with no errors but on viewing a members profile it failed to load the page ... with this error:

Unknown column 'comment_id' in 'field list'
File: /.../.../public_html/Sources/Profile-View.php
Line: 256


SMF 2.0.2, Simple Portal 2.3.4


Matthew K.

Then make sure the install was run successfully.

The Craw

Looks like the database table didn't get applied. Try uninstalling the mod and reinstalling it again.

Matthew K.

Or he can just upload your db install file via FTP, and run it in his browser :)

Jessica.

Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

The Craw


OCJ

After a second install it worked ...thanks.

The Craw

Quote from: igirisjin on March 06, 2012, 09:27:13 PM
After a second install it worked ...thanks.

Oh good. I'm glad it works for you now. :)

Bugo

Permissions on Manage Permissions area (in the Simple View mode) are the same. Error?

The Craw

I probably goofed something up with this being the first time I attempted permissions. Thanks for the report, Bugo

Matthew K.

It's most likely just a text-string issue...

Bugo

What about hardcode text in profile_comments.js? For example:

var okay = confirm('Delete comment?');

Matthew K.

There is no text-string loader for JavaScript built-in to SMF.

The Craw

Quote from: Bugo on March 08, 2012, 10:28:44 PM
What about hardcode text in profile_comments.js? For example:

var okay = confirm('Delete comment?');


Good catch. I'll make sure to fix that, too. You da man, Bugo.  ::)

Jessica.

when you get a comment, is there a notification? if not, there should be one...though I would like it if it's not by PM or email but instead there's a message in the top of the forum like

1 New Comments
Testing Zone - SMF 2.0.7, default Curve
School & Chat - phpBB3, over 170 mods installed, official live forum

I use the latest version of Chrome

phpBB: Forum = a section; Board = whole site
SMF: Forum = whole site; Board = a section

The Craw

Quote from: Jessica. on March 16, 2012, 04:16:50 PM
when you get a comment, is there a notification? if not, there should be one...though I would like it if it's not by PM or email but instead there's a message in the top of the forum like

1 New Comments

That's a good suggestion, Jessica. Shouldn't be hard to implement, so I might put that in the next release. Thanks for the feedback.

The Craw

Just so everyone knows, I'm aware that when you first install the mod and go to view a profile, the comments section doesn't look... good. For some reason after installing the mod, the css file doesn't like to load right away. The solution is to leave the profile page and return to it. Or if that doens't work, try closing the browser and opening the profile page again. The problem should not return after that.

Matthew K.


live627

Quote from: The Craw on April 19, 2012, 12:00:02 AM
Just so everyone knows, I'm aware that when you first install the mod and go to view a profile, the comments section doesn't look... good. For some reason after installing the mod, the css file doesn't like to load right away. The solution is to leave the profile page and return to it. Or if that doens't work, try closing the browser and opening the profile page again. The problem should not return after that.
Why not put the extra styles in a separate file? That''ll beat the cache for sure :)

Advertisement: