Log in

View Full Version : Profile Enhancements - Profile Commenting System


eXtremeTim
04-22-2007, 10:00 PM
What does this hack do?

It gives you a commenting system on the users profile page similiar to the myspace system.

Allows smilies and bbcodes but not html.

Demo: http://www.extremewebtech.com/forums/members/tim.html


Whats coming in the next release?
Ajax and wysiwyg

This is the newest release with the updates form the thread. Next up AJAX!!!

eXtremeTim
04-23-2007, 05:55 AM
There was a bug in the system that I just fixed so if you already downloaded please redownload.

Abomonation
04-23-2007, 06:14 AM
Very nice, Thanks.

Tralala
04-23-2007, 07:02 AM
Awesome!

eXtremeTim
04-23-2007, 07:19 AM
Please remember to click install.

Allan
04-23-2007, 08:42 AM
Screens please because we must register for see your demo ^^

Suggestion: Add the query in the product, and add the unistall query.

eXtremeTim
04-23-2007, 08:43 AM
Demo test account info is test2323 for user and password.

Yea i ment to add the query in and forgot at the time of exporting it and will add it into the next version.

dizzy100
04-23-2007, 09:56 AM
That demo account doesn't work ?

Much better to provide screenshots mate. Easier for all concerned.

EnIgMa1234
04-23-2007, 10:52 AM
nice hack. gj

AMG021
04-23-2007, 11:56 AM
Here is a screen Shot I took from the demo!

https://vborg.vbsupport.ru/external/2007/04/2.png

TheMilkCarton
04-23-2007, 12:01 PM
Fatal error: Cannot instantiate non-existent class: vb_bbcodeparser in /*snip*/public_html/forums/misc.php(96) : eval()'d code on line 11

I get that when clicking "View All Comments" on my boards.

Other than that, keep up the great work! I'll be looking forward to future releases of this, although I hope I find a way to fix this All Comments error. :( I've upped the amount of comments that show in the profile for now.

elmati
04-23-2007, 12:35 PM
Hi, nice mod!

let me test it out :)

ill come back later

Ultimative
04-23-2007, 12:39 PM
Anyway to display to current amount of Comments the user has? Similar to what you see on MySpace. If not that would be an extremely good addition for an update.

TheMilkCarton
04-23-2007, 01:12 PM
@Ultimative

Add to bottom of Member Commenting System plugin$comment_total=$vbulletin->db->num_rows($commentsquery);

if($vbulletin->db->num_rows($commentsquery)<5)
{$comment_shown=$vbulletin->db->num_rows($commentsquery);
}
else
{$comment_shown=5;
}
The "5" of course is the default amount of comments to be shown. If you haven't already changed the amount of comments shown, you don't need to worry about changing this.
-------
Add the red to MEMBERINFO template:
<td valign="top" class="alt1">
&nbsp;Viewing $comment_shown of $comment_total Comments
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" class="tborder">
$commentbits

If eXtremeTim finds this code suitable, he's free to copy it into a future update. :)

Edit: I'm not worried about it, but this will show up as "1 of 1 Comments" which may bother some, since it should say "Comment". If this bothers you, it's very easy to fix. :)
------------------
@ eXtremeTim:

I fixed my "View All Comments" problem. For whatever reason I had to add require_once('./includes/class_bbcode.php'); and require_once('./includes/functions_user.php'); to the plugin that was at "misc_start". I think I have a modified misc.php file, so that may be the problem?

elmati
04-23-2007, 01:47 PM
works like a charm!

thx a lot for this, i love it! :)

Abomonation
04-23-2007, 01:59 PM
View all comments, when clicked it comes up with this error

Fatal error: Cannot instantiate non-existent class: vb_bbcodeparser in /home/mybobba/public_html/profiles/misc.php(96) : eval()'d code on line 71

TheMilkCarton
04-23-2007, 02:06 PM
@ eXtremeTim:

I fixed my "View All Comments" problem. For whatever reason I had to add require_once('./includes/class_bbcode.php'); and require_once('./includes/functions_user.php'); to the plugin that was at "misc_start". I think I have a modified misc.php file, so that may be the problem?

Abomonation, do what I said in my last post.

Put the first above if(!$bbcode_parser)
Put the second above $avatar_url

See if that helps you.

dj_melayu
04-23-2007, 02:09 PM
Do I have to uninstall this hack? https://vborg.vbsupport.ru/showthread.php?t=103881
Is it the same? :)

EnIgMa1234
04-23-2007, 02:12 PM
Do I have to install this hack? https://vborg.vbsupport.ru/showthread.php?t=103881
Is it the same? :)

i doubt you do

Abomonation
04-23-2007, 02:19 PM
Thanks Dude!

eXtremeTim
04-23-2007, 03:20 PM
yea i broke the view all comments when I moved it from members.php to misc.php. Sorry about that. I moved it becuase vbseo was breaking the comment system.

elmati
04-23-2007, 03:22 PM
eXtremeTim point to post #15 i make an update used for me...
take a look :)

eXtremeTim
04-23-2007, 03:35 PM
I will release version 1.0.3 in a bit.

eXtremeTim
04-23-2007, 03:39 PM
Version 1.0.3 has been released.

Tralala
04-23-2007, 06:07 PM
Looking forward to the AJAX/wysiwyg update!!

elmati
04-23-2007, 07:28 PM
Ok, the 1.0.3 got some issues...

is callin to misc.php?u=UID, that page dont exist must be: member.php?u=UID (fixed)
View more comments dont work... (fixed)

i added a installcode and uninstallcode, so no need to run the query manually.
also i added the template to the template system, so just need put $guestbook somewhere in MEMBERINFO Template
and also i move every text into phrases :)

I made some changes in the product.xml to correct the issues...
take a look into the zip i upload :)

i hope this help...

dj_melayu
04-23-2007, 07:37 PM
Bump https://vborg.vbsupport.ru/showpost.php?p=1234042&postcount=18 :)

elmati
04-23-2007, 07:52 PM
Bump https://vborg.vbsupport.ru/showpost.php?p=1234042&postcount=18 :)
sorry i cant access:S
i dont know why...

tellme the hack name to search...


Otherwise, if you say that its the same thing i think you need choose one.
I recommend this one its simple nice coded :)

dj_melayu
04-23-2007, 08:03 PM
It's the same I guess. Which one is better? :)

elmati
04-23-2007, 08:16 PM
@dj_melayu:

im using this one.
And when eXtremeTim add the ajax feature will be great! :)

im using this without problems and just add 1 query to memberinfo.


best regards!

Kyderoy
04-23-2007, 08:55 PM
I am confused on which file to download.... Elmati or eXtreme Tim.

elmati
04-23-2007, 09:16 PM
i recommend you download twice

in mine i add everything you can read in my latest post with attachment.

Best regards.

Kyderoy
04-23-2007, 09:19 PM
Why twice?

elmati
04-23-2007, 09:24 PM
to test, and experiment with both...

read about my changes, there are just for facility new users that dont knows how to run a query, etc...

:)

Kyderoy
04-23-2007, 09:38 PM
Thanks.. I used yours because i didn't know how to run the queries.

Any chance you guys can do a hack that give members a webpage where they can use html?

elmati
04-23-2007, 09:54 PM
there was an addon that make that...
something like webpage & profile comments...
but it was not well done as i remember...

try searchin on the forums :)

eXtremeTim
04-23-2007, 11:03 PM
Mine is updated and has the view all comments fix that I made for my site plus a few other fixes so I recommend you download mine.

eXtremeTim
04-23-2007, 11:03 PM
if you installed his just overwrite his plugin with my newest one and you will have all my updates.

Trana
04-23-2007, 11:19 PM
When clicking on the user's avatar (in their comment), I am directed to the smiley selection box.

TheMilkCarton
04-24-2007, 02:03 AM
Change the "misc.php" to "member.php" in the comment template. I caught this issue too.

eXtremeTim.. what was actually changed in the new update? Was it just the View All Comments fix?

eXtremeTim
04-24-2007, 02:20 AM
it was a problem with the deletion system as well. I will fix the misc.php in the comment template in the next version. Sorry about that. Most all of these problems were caused by me moving it from member.php to misc.php to avoid vbseo breaking it.

elmati
04-24-2007, 12:22 PM
yeah, as eXtremeTim says its recommended download his hack, cause his the owner and his support the hack :)

Otherwise, as i said mine (on post #26 (https://vborg.vbsupport.ru/showpost.php?p=1234224&postcount=26)) have install/uninstall code, all text turn onto phrases, easy to translation, all templated and added the "Viewing 5 of 10 messages" addon by TheMilkCarton. fix for member.php and try to make it XHTML compatible.
but, i dont provide any support cuz its no my hack :)
I just repair for me, and share with yall :)

Best regards :)

eXtremeTim
04-24-2007, 12:23 PM
I will add some of the stuff from your product into the next release. :)

Trana
04-24-2007, 12:27 PM
Change the "misc.php" to "member.php" in the comment template. I caught this issue too.

eXtremeTim.. what was actually changed in the new update? Was it just the View All Comments fix?

Do you mean make this change within the memberinfo template or within the plugin code?

perju
04-24-2007, 12:30 PM
Great Hack, Thank you.

I'm trying to get a flashing arrow next to the term Comments in my navbar to reflect new comments since last activity (akin to New Private Messages). I can't seem to get it to work.

Where would you recommend I run the query? (i.e. if comment[dateline] > lastactivity) and how would i condition it in the template? (i.e. if condition="newcomment")

Thanks again for this hack.

elmati
04-24-2007, 12:31 PM
@Trana: Login onto your admincp, goto styles and edit your style.
in: ewt_memberprofile_commentbits
find misc.php and replace with member.php.

Done.

Trana
04-24-2007, 12:35 PM
It would be great if it sent a PM to the member when someone left a comment.

Veer
04-24-2007, 01:07 PM
It will be great if it install without running query, i don't like to run query :(

elmati
04-24-2007, 02:01 PM
It will be great if it install without running query, i don't like to run query :(
@pehchaan: wait for the next release o download the file i upload... with the query inside the product.xml :)

@Trana: im workin on that, but without pm, just an advice on the navbar o header...

TheMilkCarton
04-24-2007, 02:28 PM
I've been trying to add the WYSIWYG editor. I have it showing up and "working" but when I post the comment there is only a <br />. I have gotten it to post the words a few times but the BBcode doesn't parse anymore.

I made a custom template with a customized editor_toolbar, and in the "<textarea />" I tried changing the name="message" to name="comment" but it's still not working. UGH.

Gizmo5h1t3
04-24-2007, 02:44 PM
real weird this, ive got it displayin in some members profiles, but not others???

why would this be??

when either myself, or other members go viewing ppls profiles to add comments, some have the comments box, and some dont....

and its not like its usergroup specific either.....

eXtremeTim
04-24-2007, 02:58 PM
Interesting.

Make sure you didnt paste the template edit anywhere where its inside a template conditional.

Gizmo5h1t3
04-24-2007, 03:15 PM
Interesting.

Make sure you didnt paste the template edit anywhere where its inside a template conditional.

you hit the nail on the head tim...thats the reason.
problem is, on a clean install, itll work fine in that template...
but, with hacks added, as u know, where u tell ppl to put the code in the MEMBERINFO template, i had an <if> conditional blanketing it...so some would show, some wouldnt.....

sorted now....

nice 1 m8.


for further reference for others, if they get the same thing happening on theirs...

i put mine BELOW THIS CODE.

<!-- / User Home Page Table -->
</if>

clicked install....

rabbits slayer
04-24-2007, 04:46 PM
I get this error when viewing the member's profile. Help Pls.

Database error in vBulletin 3.6.5:

Invalid SQL:

SELECT a.*, u.username
FROM vb3_ewt_memberprofile_comments a
LEFT JOIN vb3_user u
ON u.userid = a.userid
WHERE a.profileid = 4 AND a.valid=1
ORDER BY a.dateline desc;

MySQL Error : Table 'tsoth_atv.vb3_ewt_memberprofile_comments' doesn't exist

ewt_memberprofile_comments' already exists

elmati
04-24-2007, 05:04 PM
Goto admincp -> maintenance -> repair optimize tables and search for: "ewt_memberprofile_comments" must be bellow of event table...

if mysql cant find the table the isnt created...
if exists then unisntall and reinstall the plugin...

rabbits slayer
04-24-2007, 06:54 PM
The table is there, except its above vb3_event table

Damian
04-24-2007, 08:24 PM
When clicking on the user's avatar (in their comment), I am directed to the smiley selection box.

Same for me. Is this a know bug or something I need to figure out?

Other than that, works perfect for me. Great hack.

perju
04-24-2007, 08:40 PM
Same for me. Is this a know bug or something I need to figure out?

Other than that, works perfect for me. Great hack.


You need to modify your "ewt_memberprofile_commentbits" template:

change "misc.php?u=$commentposteruserid" to "member.php?u=$commentposteruserid" in a couple of places.

Damian
04-24-2007, 09:26 PM
You need to modify your "ewt_memberprofile_commentbits" template:

change "misc.php?u=$commentposteruserid" to "member.php?u=$commentposteruserid" in a couple of places.

Thanks for the info perju. Problem resolved. :)

rabbits slayer
04-24-2007, 11:52 PM
Goto admincp -> maintenance -> repair optimize tables and search for: "ewt_memberprofile_comments" must be bellow of event table...

if mysql cant find the table the isnt created...
if exists then unisntall and reinstall the plugin...

Thanks buddy. Got it fixed. :)

Slave
04-25-2007, 05:22 AM
Looking good, but I think I will wait for the AJAX version. Nice one Tim :)

Shazz
04-25-2007, 05:38 AM
Not bad tim..

mrmike
04-25-2007, 06:12 AM
Hi!

This hack is just great. Is it possible to get it work with 3.5.4?

TIA

/Mike

Snake
04-25-2007, 02:52 PM
Thanks, I have been waiting for this.

ABeautifulBrown
04-26-2007, 02:30 AM
works great! thanks so much!!!

PoetJA-1975
04-26-2007, 03:02 AM
subscribing for ajax update.
Looks very nice - Thanx for sharing!

Jacquii.

ZomgStuff
04-26-2007, 03:14 AM
Please make it so it PM's the user once they have been left a comment ;)

eXtremeTim
04-26-2007, 03:33 AM
Please make it so it PM's the user once they have been left a comment ;)
That feature can be added into the que of what needs done. :)

mrmike
04-26-2007, 09:40 AM
Works great on 3.5.4

Thanx alot!

Hi!

This hack is just great. Is it possible to get it work with 3.5.4?

TIA

/Mike

katilkuzu
04-26-2007, 10:01 AM
Database error in vBulletin 3.6.5:

Invalid SQL:

SELECT a.*, u.username
FROM ewt_memberprofile_comments a
LEFT JOIN user u
ON u.userid = a.userid
WHERE a.profileid = 467 AND a.valid=1
ORDER BY a.dateline desc;

MySQL Error : Table 'samittas_forum.ewt_memberprofile_comments' doesn't exist
Error Number : 1146
Date : Thursday, April 26th 2007 @ 04:59:34 AM
Script : http://www.newportuni.net/forum/member.php?u=9467
Referrer : http://www.newportuni.net/forum/index.php
IP Address : xxxxxxxxxx
Username : 10.0.0.2
Classname : vb_database



i got this eror :S when i imported the xml file...

ZomgStuff
04-26-2007, 11:24 AM
Did you run the SQL query first?

EnIgMa1234
04-26-2007, 01:52 PM
^^ you dont have to run it anymore i think

mrmike
04-26-2007, 01:56 PM
post in wrong thread... Sorry!

deleted...

travisjerome
04-26-2007, 02:23 PM
I am new to the Vbulletin thing, how do I go about doing the first part of the installation?

"Run the following query

CREATE TABLE `ewt_memberprofile_comments` (
`entryid` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`profileid` INT( 10 ) NOT NULL ,
`userid` INT( 10 ) NOT NULL ,
`commenttext` TINYBLOB NOT NULL ,
`dateline` VARCHAR( 20 ) NOT NULL ,
`valid` TINYINT( 3 ) NOT NULL
)
"

elmati
04-26-2007, 02:50 PM
I am new to the Vbulletin thing, how do I go about doing the first part of the installation?

"Run the following query

CREATE TABLE `ewt_memberprofile_comments` (
`entryid` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`profileid` INT( 10 ) NOT NULL ,
`userid` INT( 10 ) NOT NULL ,
`commenttext` TINYBLOB NOT NULL ,
`dateline` VARCHAR( 20 ) NOT NULL ,
`valid` TINYINT( 3 ) NOT NULL
)
"
Travis, if dont want o dont know how run the query use the product i upload here (https://vborg.vbsupport.ru/showpost.php?p=1234224&postcount=26)

Just import the product and its done :)

I hope this help you :)

SATC
04-27-2007, 03:16 PM
Ok, the 1.0.3 got some issues...

is callin to misc.php?u=UID, that page dont exist must be: member.php?u=UID (fixed)
View more comments dont work... (fixed)

i added a installcode and uninstallcode, so no need to run the query manually.
also i added the template to the template system, so just need put $guestbook somewhere in MEMBERINFO Template
and also i move every text into phrases :)

I made some changes in the product.xml to correct the issues...
take a look into the zip i upload :)

i hope this help...

Perfect, elmati. Perfect! :)

:up:

eXtremeTim
04-28-2007, 01:31 AM
I will spend some time on this using the stuff everybody helped out with to produce a much better ajax version with corrections to all the problems that have been reported.

eXtremeTim
04-28-2007, 01:38 AM
elmati's updated release is being adopted as the framework for the ajax version since it containt all my fixes plus a bit extra. :)

Thanks elmati. :)

eXtremeTim
04-28-2007, 01:58 AM
I have updated the first post with the modified product file that was provided thanks to elmati. :)

TheMilkCarton
04-28-2007, 03:08 AM
eXtremeTim --

I recommend changing the amount of comments shown in the profile (5 by default in your plugin) to a variable and adding it into the vB Options for an admin to change more easily than going into the plugin and editing all the 5's.

Also, did you ever incorporate the "add-on" I released (https://vborg.vbsupport.ru/showpost.php?p=1234001&postcount=14) on the first page of this thread? A user requested a "Viewing X of X Comments" in the user's profile. I thought it was a nice addition, but you obviously don't have to add it if it's not your thing :)

Edit: I also forgot to mention I've added WYSIWYG to this if you hadn't worked on this yet. However, I think I may have to add something into a vBullletin JS or PHP file.. Currently the "id="{$editorid}_textarea"" in the "editor_toolbar" template breaks the comment system.

eXtremeTim
04-28-2007, 07:21 AM
good idea

TheMilkCarton
04-28-2007, 08:46 AM
I've got the Standard editor implemented into this now. For some reason when you switch into WYSIWYG comments won't post, though. The standard editor is at least good enough for me. I've stripped it down and it's using it's own template so it takes up very little room.

63728

It's at least easier than typing out all the BBcode by hand. You'll notice I got rid of the Font Size box and I'm not allowing images in comment posts. I'll allow images once I have a decent method of keeping all the images small enough to not stretch out the page.

If anyone at least wants to know how to get the standard editor implemented just reply to this and I'll type up the code. I don't really want to take the time to make this into a product because I have a lot of custom code in my templates I'd need to get rid of first. :down:

Also, if anyone wants to help figure out why WYSIWYG comments show up blank, then that'd be great, too. :)

bazzup
04-28-2007, 08:57 AM
got this working nice little touch

where in the templates would i put it so it shows up like yours tim?? on the right hand side of profile

eXtremeTim
04-28-2007, 09:13 AM
I've got the Standard editor implemented into this now. For some reason when you switch into WYSIWYG comments won't post, though. The standard editor is at least good enough for me. I've stripped it down and it's using it's own template so it takes up very little room.

63728

It's at least easier than typing out all the BBcode by hand. You'll notice I got rid of the Font Size box and I'm not allowing images in comment posts. I'll allow images once I have a decent method of keeping all the images small enough to not stretch out the page.

If anyone at least wants to know how to get the standard editor implemented just reply to this and I'll type up the code. I don't really want to take the time to make this into a product because I have a lot of custom code in my templates I'd need to get rid of first. :down:

Also, if anyone wants to help figure out why WYSIWYG comments show up blank, then that'd be great, too. :)
Could you hook me up with the code to save me some time from having to make it myself for the ajax version of the hack?

eXtremeTim
04-28-2007, 09:15 AM
got this working nice little touch

where in the templates would i put it so it shows up like yours tim?? on the right hand side of profile
My templates are custom made by me. So I doubt you have the same template that I do. ;) You will just have to play around with your style till you get it where you want.

TheMilkCarton
04-28-2007, 10:22 AM
Could you hook me up with the code to save me some time from having to make it myself for the ajax version of the hack?

I got it all from this Article (https://vborg.vbsupport.ru/showthread.php?t=135708)

-------------------
Adding Standard text editor to comments system

Manual method -- Skip below for an updated product

Add Plugin under your product: Comment Editor Toolbar @ editor_toolbar_start
if (THIS_SCRIPT == 'member')
{
global $setting;
$setting['allow_bbcode'] = '1';
$show['img_bbcode'] = $setting['allow_imgcode'];
$toolbartype = $setting['allow_bbcode'] ? is_wysiwyg_compatible(1, $editor_type) : 0;
$show['wysiwyg_compatible'] = (is_wysiwyg_compatible(1, $editor_type) == 0);
$show['editor_toolbar'] = ($toolbartype > 0);
$editor_template_name = ($toolbartype ? 'comment_editor_toolbar_on' : 'editor_toolbar_off');
}Add to Member Commenting System plugin: require_once(DIR . '/includes/functions_editor.php');
$show['wysiwyg'] = ($setting['allow_bbcode'] ? is_wysiwyg_compatible() : 0);
$istyles_js = construct_editor_styles_js();
$show['qr_require_click'] = 0;
$editorid = construct_edit_toolbar('', 0, '', ($setting['allow_smilies'] ? 1 : 0), 1, false, 'fe');
$messagearea = "
<script type=\"text/javascript\">
<!--
var require_click = false;
var threaded_mode = 1;
var is_last_page = false;
// -->
</script>
$messagearea
";
require_once('./includes/functions_wysiwyg.php');
$message= convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message']);
$message = $vbulletin->db->escape_string($message);Create template: comment_editor_toolbar_on (if you want a different name you must change $vBeditTemplate[clientscript]

<div id="$editorid" class="vBulletin_editor">

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="{$editorid}_controls" class="controlbar" colspan="2">

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<if condition="$show['font_bbcode'] OR $show['size_bbcode']">
</if>
<if condition="$show['font_bbcode']">
<td><div class="imagebutton" id="{$editorid}_popup_fontname" title="$vbphrase[fonts]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="popup_feedback"><div id="{$editorid}_font_out" style="width:91px">&nbsp;</div></td>
<td class="popup_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['color_bbcode']">
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><div class="imagebutton" id="{$editorid}_popup_forecolor" title="$vbphrase[colors]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td id="{$editorid}_color_out"><img src="$stylevar[imgdir_editor]/color.gif" width="21" height="16" alt="" /><br /><img src="$vboptions[cleargifurl]" id="{$editorid}_color_bar" alt="" style="background-color:black" width="21" height="4" /></td>
<td class="alt_pickbutton"><img src="$stylevar[imgdir_editor]/menupop.gif" width="11" height="16" alt="" /></td>
</tr>
</table>
</div></td>
</if>
<if condition="$show['basic_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_bold"><img src="$stylevar[imgdir_editor]/bold.gif" width="21" height="20" alt="$vbphrase" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_italic"><img src="$stylevar[imgdir_editor]/italic.gif" width="21" height="20" alt="$vbphrase[italic]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_underline"><img src="$stylevar[imgdir_editor]/underline.gif" width="21" height="20" alt="$vbphrase[underline]" /></div></td></if>
<if condition="$show['align_bbcode']">
<if condition="$stylevar['textdirection'] == 'ltr'">
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<else />
<td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
</if>
<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
</if>

<if condition="$show['url_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_createlink"><img src="$stylevar[imgdir_editor]/createlink.gif" width="21" height="20" alt="$vbphrase[insert_link]" /></div></td>
<td><div class="imagebutton" id="{$editorid}_cmd_unlink"><img src="$stylevar[imgdir_editor]/unlink.gif" width="21" height="20" alt="$vbphrase[remove_link]" /></div></td>
</if>
<if condition="$show['img_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
</if>
<td><div class="imagebutton">
<a href="#" onclick="vB_Editor['$editorid'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false"><img src="./images/editor/smilie.gif" alt="Smilies" border="0" target="_blank" ></a></div>
</td>
<td align="right">
<div class="imagebutton" id="{$editorid}_cmd_resize_0_100"><img src="$stylevar[imgdir_editor]/resize_0.gif" width="21" height="9" alt="$vbphrase[decrease_size]" /></div>
<div class="imagebutton" id="{$editorid}_cmd_resize_1_100"><img src="$stylevar[imgdir_editor]/resize_1.gif" width="21" height="9" alt="$vbphrase[increase_size]" /></div>
</td>
<if condition="$show['wysiwyg_compatible']">
<td><div class="imagebutton" id="{$editorid}_cmd_switchmode"><img src="$stylevar[imgdir_editor]/switchmode.gif" width="21" height="20" alt="$vbphrase[switch_editor_mode]" /></div></td>
</if>
</tr>
</table>

</td>
</tr>
<tr valign="top">
<td class="controlbar">

<textarea name="comment" id="{$editorid}_textarea" rows="10" cols="60" style="width:415px; height:{$editor_height}px;" tabindex="1">$newpost[message]</textarea></td>
</tr>

</tr>
</table>

</div>

<input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editortype" />

<script type="text/javascript">
<!--
vB_Editor['$editorid'] = new vB_Text_Editor('$editorid', $editortype, '$forumid', '$parsesmilie');
//-->
</script> Some of the image sizes may be wrong, I had made bigger editor buttons and changed the sizes, so I'm not sure I changed all of them back for this code. Also, if the editor needs to be in a thinner column, "415px" will need to be changed, and the buttons will have to make another row.

Find:<textarea class="bginput" name="comment" rows="4" cols="40" tabindex="1" /></textarea> and
Replace with: $messagearea--------------------------
[B]Updated product with all the above edits included (I can't guarantee this will work for everyone, but it installed fine on a clean install test board)
63736
If anyone can get WYSIWYG WORKING, please do and SHARE.

The newest version of this product is changed from the one I'm using, so I'm not guaranteeing this will work 100%. Also, looking at the new XML file, I can see my "Viewing X of X Comments" did make it into the product, so can I be made a contributor or whatever it is called? ;)

Edit: Note that this version doesn't have any IMG buttons, but that's because I'm using this in a column that's very thin so I'm not allowing images (IMG bbcode can technically still be typed out though). It shouldn't be that hard to add it back in, but good luck anyway. :)

tamborinegal
04-30-2007, 04:28 AM
Please make it so it PM's the user once they have been left a comment ;)

That feature can be added into the que of what needs done. :)

Great hack Tim. I love it! Thank you. Just wondering, did the PM on comment feature make it into the latest release?

Also can moderators delete comments or is it only the member and the admin that have permission to do that?

Cheers

Clancy

Terminatoronly
04-30-2007, 06:24 AM
Is it done with Ajax?

TheMilkCarton
04-30-2007, 12:15 PM
Can someone explain the interest in AJAX? MySpace doesn't use AJAX to post comments.. and I think Facebook just started using AJAX.

I don't think AJAX adds anything to this mod because it's quite easy to add a comment already. You click "Post Comment" and then it simply reloads the page. Wouldn't AJAX be more server intensive than this anyway? I always hear everyone hating on the Shoutbox, which would essentially be what this Profile Comment System is if it were to include AJAX.

eXtremeTim
04-30-2007, 12:42 PM
I will have an ajax version out soon enough.

elmati
04-30-2007, 01:37 PM
eXtremeTim --
Also, did you ever incorporate the "add-on" I released (https://vborg.vbsupport.ru/showpost.php?p=1234001&postcount=14) on the first page of this thread? A user requested a "Viewing X of X Comments" in the user's profile. I thought it was a nice addition, but you obviously don't have to add it if it's not your thing :)


i incorporate your addon on my xml as soon as you posted :)
i think its on the new xml updated by extremTim

vspro
04-30-2007, 02:03 PM
I think have a count for total comments of a user in posbit or navbar ...

rabbits slayer
04-30-2007, 02:30 PM
Great hack Tim. I love it! Thank you. Just wondering, did the PM on comment feature make it into the latest release?


I'd like to know that as well. Thanks. :)

tamborinegal
05-01-2007, 06:10 AM
I'd like to know that as well. Thanks. :)

I just installed the latest release and it doesn't look like the PM on comment did make it in.

Also Tim, I don't know if you're aware of it or not, but when you don't type anything into the comment field and click submit, it shows this error - Could not find phrase 'error_requiredfields'.

Is there any way you could add in a "are you sure you want to delete this comment" page. I can easily imagine accidentally deleting a comment the way it is.

Thanks again for releasing this.

Clancy

eXtremeTim
05-01-2007, 06:37 AM
I will fix the required fields problem in the ajax release.

Confirm delete page will hopefully make it into the next version depends on what I get done in what order.

tamborinegal
05-01-2007, 06:42 AM
I will fix the required fields problem in the ajax release.

Confirm delete page will hopefully make it into the next version depends on what I get done in what order.

Thanks Tim. Are you planning on adding the the PM on comment in the next release too or or is that a while away.

Clancy

ZomgStuff
05-04-2007, 12:50 AM
Thanks Tim. Are you planning on adding the the PM on comment in the next release too or or is that a while away.

Clancy

Ah, I think this would be one of the most important things.

ZomgStuff
05-04-2007, 01:15 AM
This is one way to add the PM thing. I haven't done php in forever, but I know this wouldn't be too hard.

Some material to reference off,
https://vborg.vbsupport.ru/showthread.php?t=120186

There was also another thread about it, but I can't find it right now.

eXtremeTim
05-04-2007, 01:29 AM
I will add that into the next release.

Terminatoronly
05-04-2007, 09:39 AM
is this version with ajax or still?

eXtremeTim
05-04-2007, 10:18 AM
no ajax yet.

PinkDaisy
05-04-2007, 03:34 PM
Sweet! Gonna install today.. this would be even better if it sent you an auto PM when you got a comment!! :D

romanticyao
05-04-2007, 06:54 PM
how come it adds 1 querie to memberprofile for each comment given??? if i have 10, it will add 10 queries....

Chicago_VLNU_4s
05-04-2007, 08:49 PM
Interesting... too bad I already bought stangstas version :/

eXtremeTim
05-05-2007, 07:52 AM
Sweet! Gonna install today.. this would be even better if it sent you an auto PM when you got a comment!! :D
Will be added into next version.

Romanticyao: ill take a look at that.

deezelpope
05-05-2007, 09:45 AM
Oh sweet...that ROCKS!!!:up:

PinkDaisy
05-05-2007, 10:54 AM
Will be added into next version.

Romanticyao: ill take a look at that.

Woohoo!! Thanks.. :D

Zweeper
05-05-2007, 02:28 PM
is there a way to install it on 3.5.4?

I get this error when i trie to import the product.
It will be nice when somebode could help me! =)

Datenbankfehler in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'User Commenting Cache', 'cache_templates', 'if (THIS_SCRIPT == \'member\')\r\n{\r\n $globaltemplates = array_merge($globaltemplates, array(\'ewt_memberprofile_commentbits\', \'ewt_memberprofile_morecommentbits\', \'ewt_memberprofile_nocommentbits\', \'ewt_memberprofile_guestbook\'));\r\n}', 'ewt_profilecomments');

MySQL-Fehler : Unknown column 'executionorder' in 'field list'
Fehler-Nr. : 1054

Zweeper
05-06-2007, 01:46 PM
*push* :(

rossco_2005
05-06-2007, 01:54 PM
To install it on 3.5 you need to remove the part that goes
executionorder="5"

Zweeper
05-06-2007, 04:10 PM
you mean this code?

<plugin active="1" executionorder="5">
<title>User Commenting Cache</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[if (THIS_SCRIPT == 'member')

eXtremeTim
05-06-2007, 04:32 PM
yep thats the code remove executionorder="5"

mrmike
05-06-2007, 04:35 PM
Great hack, thanx!

A nice feature would be a forumhome "Latest post in guestbook" :up:

rabbits slayer
05-09-2007, 05:21 PM
Anyway users or mods can delete their own comments posted on other members page?

Mrdby
05-12-2007, 02:57 AM
3.6.6?

rabbits slayer
05-12-2007, 03:42 AM
Mine works fine on 3.6.6

Mrdby
05-12-2007, 12:17 PM
can i edit options for this under the vbull options section? If so where is it found?

EWGF
05-21-2007, 06:50 PM
Not yet.

Installed, nice and easy.

BozzaJos
05-22-2007, 03:28 PM
It's been a while since a last update. How's everything going with this hack Tim? How's the AJAX part going and do you already have an ETA for the next release?

Living in music
05-24-2007, 07:53 AM
Don't have update since 28. Apr 2007 ...

Drix
05-29-2007, 05:01 AM
Does this work on 3.6.7 PL1?

I would love to try it out.

sonichero
05-29-2007, 08:19 AM
i see no reason why it wouldnt....

chuchukuttie
05-29-2007, 02:10 PM
No update since 28th of April :'(

BozzaJos
05-29-2007, 02:55 PM
Indeed.. I am still watching for the AJAX feature before installing it... hope it will come soon!

MP1
05-30-2007, 12:51 AM
Perfect!!!

MSheraz86
05-30-2007, 10:00 AM
Clicked Installed

Wonderful mod :)

Thanks

txsbmw
06-06-2007, 06:08 PM
Anyone know how to change the max allowed characters in the comments. I have had some users leave comments and their words are getting cut off.

Living in music
06-07-2007, 06:13 PM
Waiting ................................................ AJAX

rokked
06-07-2007, 07:13 PM
If you can tell me how to grab the profileowners username, I can get this to send a PM whenever a new comment is made.

Currently all I can find is: the commenting person's UserId, the commenting person's username, the profile owners profileID and the comment. Any help on getting the profile owner's name and I can set this up.

Trana
06-08-2007, 11:06 PM
I received notification that a message was posted with this:

"i hacked it up so this mod will now send PMs when someone comments on your profile..."

Was it removed?

rokked
06-09-2007, 12:35 AM
I received notification that a message was posted with this:

"i hacked it up so this mod will now send PMs when someone comments on your profile..."

Was it removed?

it was posting PMs to the person leaving the comment, so I removed it, my post above you states what I need to get in order for the code to work.

DJ-Snoop
06-09-2007, 06:03 PM
Very Nice I like it! And im using it.

aztecboi2003
06-09-2007, 08:09 PM
Any idea of when the Ajax version is coming? I don't know what Ajax is or does but since everyone wants it I will wait until it's added.

Propozime
06-09-2007, 09:46 PM
hi guys i'm new at this can some one please take me step by step how to install this

Kungfu
06-10-2007, 01:39 AM
Any idea of when the Ajax version is coming? I don't know what Ajax is or does but since everyone wants it I will wait until it's added.

its so clients can talk to php without having to refresh.

On the forum if you are an admin any easy way to show this would be if you double click next to a thread title it will allow you edit the thread title. With ajax you can do stuff like this so you wouldnt have to go to another or "refresh" the page.

So basically in this mod you would be able to add a comment and it would update right away without refreshing.

Not a huge deal, just saves a little bit a bandwidth and looks nicer and clean.

Carlos2
06-10-2007, 06:42 PM
Hi friends, how can i increase the number of characters of these? The things the users can write are too short.

aztecboi2003
06-11-2007, 01:02 AM
Thanks for the very simple explanation. Seems like a great feature I hope it comes soon.

txsbmw
06-11-2007, 04:11 PM
Hi friends, how can i increase the number of characters of these? The things the users can write are too short.

I have asked the same thing. My members messages are getting cut off. Still have no solution though.

deezelpope
06-11-2007, 08:37 PM
Tell them to keep it short and sweet!:D

Carlos2
06-12-2007, 02:32 AM
I have asked the same thing. My members messages are getting cut off. Still have no solution though.

Thanks friend, still waiting.

rokked
06-12-2007, 09:59 PM
I think I fixed max message length on comments.

I went into mysql and into the ewt_memberprofile_comments table and edited commenttext from tinyblog to mediumtext.

seems to work. i dont suggest anyone else try it

Carlos2
06-14-2007, 01:04 AM
Anybody prove it?

Rokked any problem with that?

rokked
06-14-2007, 05:22 AM
you can see it in full effect here:
http://forums.rokked.com/rokked%20rss

Braders
06-14-2007, 12:14 PM
extremeTim, thanks for the mod, installed and works for nearly all my members.

Out of 600 members, I have a handful that don't have the 'comments box' in their profile. Any idea's ?

Could it depend on the browser they are using? A option these members have turned on in theri profile?

Any feedback appreciated.

Cheers,

Lee

deezelpope
06-14-2007, 01:08 PM
<i>Could it be a different skin you may have forgotten to do the template edit on?</i>

Braders
06-15-2007, 12:45 AM
Could it be a different skin you may have forgotten to do the template edit on?

Fixed it. I added the code above the ending signature tags <br /> and </if>, anyone who didn't have a signature didn't have this option. Always the simple things that evade us.

Carlos2
06-15-2007, 01:46 AM
you can see it in full effect here:
http://forums.rokked.com/rokked%20rss
Hii:eek:that too largeee. I only want to have over 50 characters more, that is a lot, it will desconfigured the profiles.

rokked
06-15-2007, 04:34 AM
Hii:eek:that too largeee. I only want to have over 50 characters more, that is a lot, it will desconfigured the profiles.

well then figure it out on your own...

cfitzarl
06-17-2007, 11:10 PM
Very nice and easy to install :D !

Trana
06-18-2007, 05:37 AM
Anyone figure out how to send users PMs when they receive a new comment?

deezelpope
06-18-2007, 09:42 AM
<i>Manually.</i>

ABeautifulBrown
06-22-2007, 08:51 PM
Anyone figure out how to send users PMs when they receive a new comment?

Yea, I'm looking for it to do that or just say it up at the top that they have new comments.

jasculs
06-30-2007, 08:50 PM
'm looking forward to the automatic PM with comment post also. That would really make this one of the best mods ever.

Carlos2
07-02-2007, 06:09 AM
How can i put to see more than five comments in the profile?

Carlos2
07-05-2007, 08:10 AM
Anybody knows??

Ipuck
07-09-2007, 08:55 PM
Anyone figure out how to send users PMs when they receive a new comment? and get a PM when is added as a buddy.

Any coder interesting on taking the job?

TheMilkCarton
07-10-2007, 09:39 AM
and get a PM when is added as a buddy.

Any coder interesting on taking the job?
Why not just install vS-Interactive Profiles (https://vborg.vbsupport.ru/showthread.php?t=150028)?? It even goes as far as letting users choose to be emailed when they get a new comment or friend request. Not to mention a million other features.

This mod is obviously not being updated anymore. Hell, the last updates to this mod were ones that *I* created myself. But once I found out that vS-Iprof was free, there wasn't much hope in this hack anymore.

Detomah
07-10-2007, 09:53 AM
This mod is obviously not being updated anymore. Hell, the last updates to this mod were ones that *I* created myself. But once I found out that vS-Iprof was free, there wasn't much hope in this hack anymore.

Not everyone wants to use an all in one hack like that, I for one have a system i'm perfectly happy with in place that I've designed for my own purpose and this individual hack far better suits my own personal needs, so i'll continue to use this one, ta very much.

Although of course you are right, updates aint exactly forthcoming for this hack right now, but it does work for my setup and that's what matters for me.

TheMilkCarton
07-10-2007, 11:00 AM
Not everyone wants to use an all in one hack like that, I for one have a system i'm perfectly happy with in place that I've designed for my own purpose and this individual hack far better suits my own personal needs, so i'll continue to use this one, ta very much.
Not that I disagree with what you're saying.... But what is stopping you or anybody else from only installing the parts of vS-IP that you want? Just don't perform the template edits you don't need, and disable the plugins for everything but the comments/whatever else you want to keep.

Detomah
07-10-2007, 12:45 PM
Not that I disagree with what you're saying.... But what is stopping you or anybody else from only installing the parts of vS-IP that you want? Just don't perform the template edits you don't need, and disable the plugins for everything but the comments/whatever else you want to keep.

Two reasons for me mainly. vS-IP has official stopped in it's development now according to the hack release thread and further development that suit my needs for this particular add-on would be a lot easier for me to do myself, as it is a single add-on so less script for me to muck up.

Of course, if someone was to release a fully AJAX'd version of this individual hack, with all the bells and whistles already in place, such as PMing and the likes, i'd be very tempted to swap. But I can't be dealing with disabled plugins and the likes, as you have suggested, it gets too messy for me.

That's what makes vb.org and the community so great in my opinion though, we have choices thanks to those that do the hard work and do the initial code for these things, saving people like me weeks and months having to do it all the hard way. :)

SEYTAN_NL
07-11-2007, 12:11 AM
can moderators delete comments also or is it only the member and the admin that have permission to do that?

AcolyteZero
07-12-2007, 02:44 AM
I'm new to this, I put $guestbook in my MEMBERINFO template but nothing happened, even with the hack installed.

Kaleem
07-17-2007, 04:28 PM
Avatars are not showing up any clue?

http://www.friendskorner.com/forum/members/kaleem/

steven1091
07-24-2007, 05:12 PM
Nice, maybe implant a report feature ;)

aztecboi2003
08-04-2007, 11:04 PM
I'm new to this, I put $guestbook in my MEMBERINFO template but nothing happened, even with the hack installed.

Yeah any help by anyone else who has installed this? Where do we put it at to get this to work. Thanks.

aztecboi2003
08-05-2007, 01:16 PM
can i edit options for this under the vbull options section? If so where is it found?

I have installed it but I'd like to find any options for it.

Brew
08-08-2007, 03:56 PM
I installed this with no problems in 3.6.8 :)

Good job!

A couple requests though.

I rarely ever go to my own public profile page. So there will be no way to know if someone has left a comment for me.

Some kind of notification should be added. A PM and/or email would be able to notify me that someone has left a comment.

It would also be cool to have the comments displayed in the private UserCP. You wouldn't need, or want, the input box but a listing of comments would be great. It would make it easier to see and delete comments when it's in the UserCP main screen.

Thanks!

Konstantinos
08-16-2007, 01:14 PM
any chance u make it usergroup specific ?

christian8a
08-18-2007, 04:25 AM
Seems that is almost perfect! :up:

For this hack there is not need for too many things though, the way it is now works great but because of the damn spams and users leaving bad material there is only few things to add IMO:

- Notification PM
- Approve or Unaprove comment (before posting msg) Excremelly Necessary for spammers.
- Delete comment warning page or popup
- And the Text editor or at least smilies

That I think will make it perfect, I downloaded and marked as installed but will wait for that before letting my users use it yet.

Cant wait for this to be completed Great hack man :up::up:

Wheezy
08-24-2007, 06:58 AM
This is a great hack, and it works perfectly on my forum. However Im wondering if there are any additional settings available through the vBOptions menu as I cant see the hack listed there anywhere. It would be nice to be able to set 'allowed to comment' per usergroups or a 'banned from commenting' for rude members ... Something Im missing maybe?

EDIT: And what about a report button for rude comments or comments which break site rules?

y2krazy
08-26-2007, 04:15 AM
Installed and working on 3.6.8!

Any timeframe on an update with some new features, eXtremeTim? Thanks! :)

Free-D
08-31-2007, 03:18 PM
I'd like suppose some features configurable in AdminCP :)

1. Users can delete comments about themselves YES/NO
2. Users can delete own comments YES/NO
3. Users can write comments about themselves YES/NO