PDA

View Full Version : User Comment Hack v1.0


g-force2k2
07-05-2002, 04:31 AM
+++++++++++++++++++++++++++++++++++++++++++++++++
// +++++++ Queries to Run (9) +++++++
// +++++++ File Modifiactions (9) +++++++
// +++++++ Template Modifications (1) +++++++
// +++++++ Templates To Add (14) +++++++
// +++++++ New php Files (1) +++++++
// +++++++ New Images (3) +++++++
+++++++++++++++++++++++++++++++++++++++++++++++++

What Does this Hack Do?

Allows Users to Add Comments to other users.

Features?

Admin Cp Controlled.
Admin restricts who can add comments by usergroup
Admin restricts who can view comments by usergroup
Admin restricts who can modify comments by usergroup
Admin can globally turn off all commenting activities
Admin defines the max amount of characters that a comment can be
Admin defines the prefix of the comment (ex. By: or Commented By:)
Admin defines whether usernames are included in the comment or if they're unknown to all users

Other then that its pretty self explanatory.
Zip Includes button set (thanks to rape)
Zip Also includes an installer for installing the template and running the queries!
Zip includes readme comment.readme.php file for modifactions.
Zip Also includes new comment.php file

Enjoy This Hack :) [ g-force2k2 ]

Sorry but once again i don't have any screenshots ;\ and these would've been some really nice ones... so if anyone can supply ss i would greatly appreciate it.

Any questions comments suggestions im always open :)

g-force2k2

Neo
07-05-2002, 04:46 AM
Very nicely done. Would you have any pictures to show us this in action?

Xelation
07-05-2002, 04:55 AM
will probably use this if I see some screen shots first

SaintDog
07-05-2002, 06:28 AM
I would almost install it but I would rather see some screenshots before I install anything, reverting back to a backup DB if it is not like I want is not fun :).

- SaintDog

g-force2k2
07-05-2002, 06:48 AM
Shot of main admin cp main settings...

g-force2k2

g-force2k2
07-05-2002, 06:49 AM
Shot of usergroup admin for applying permissions to each user group...

g-force2k2

Velocd
07-05-2002, 06:50 AM
You're releasing hacks by the minute g-force! ;)
But this one looks very promising. I'll install it right now, and try to provide some screens in a second.

edit:
looks like you're beating me to it :)

g-force2k2
07-05-2002, 06:51 AM
Shot of postbit while usergroup has all permissions... also i noticed i added   And i forgot to take them out :( so if you don't want the spacing just remove it from the only template edit in the postbit :)

g-force2k2

g-force2k2
07-05-2002, 06:52 AM
shot of the postbit without any commenting permissions...

g-force2k2

Velocd
07-05-2002, 06:54 AM
So, this allows you to add a comment to the users post?

g-force2k2
07-05-2002, 06:54 AM
meh i just installed it myself ;\ hate when i do that ;\ anyways carry on to the add comment screenshot.

g-force2k2

g-force2k2
07-05-2002, 06:56 AM
well adding a comment to there post is kinda just like posting so instead this is adding a comment about a user... not normally do you have ppl talking about one another this is kinda like a shout but each user has his/her own...

anyways a shot of the view comment.

g-force2k2

Velocd
07-05-2002, 06:58 AM
Makes sense, but it would make even more sense to have the add-comment option in the userprofile. ;)

(I just noticed that person in post #2 is Neo...freaky! O.o)

g-force2k2
07-05-2002, 06:58 AM
a picture of the comment modifying... please notice that when a user has the option to modify another user that you can see at the bottom where the links are for viewing and adding... if you don't have permission to modify you won't get the modify link ;) as you'll see in the next shot...

g-force2k2

g-force2k2
07-05-2002, 07:02 AM
Last but not least this screenshot shows another viewing comment except the user can't modify other users links so they don't get the modify link...

Also the thread comment has the user comments username option off so all comments are anynonmous(sp)

Fourth comment shows the change when a different prefix is added...

Also you can limit the max characters also in admin settings but i didn't want to include screenshots too much...

g-force2k2

g-force2k2
07-05-2002, 07:04 AM
I will currently start working on a version 2.0 if ppl like this alot probably have to make some changes of course... wasn't too sure of what exactly to add and what not... i thought this made for a good release... but offer opinions... suggestions... etc... ;)

Edit: Just so you know Saint Dog the installer included automatically runs all templates into all styles and also runs all quieries... the uninstaller does the exact opposite... took me maybe not even ten minutes to install :)

g-force2k2

Chris M
07-05-2002, 07:13 AM
Yet again another great hack!

Maybe a tiny suggestion...

Maybe a sort of "Top Commenter" page would be good, and "Who has been commented most?" page too...

That way we can see the most popular members, and the most *annoying*, I mean commenty type person:p:D

Satan

afterlab
07-05-2002, 07:32 AM
Holy crap, I made this hack for my forums a few days ago. What a coinky-dink. Oh well.

Chris M
07-05-2002, 07:42 AM
Problem with the install_comment.php file :

I get this error when I try and run step 2 :

Invalid SQL: INSERT INTO settinggroup VALUES (32,'Commenting Setting Options', 32)
mysql error: Duplicate entry '32' for key 1

Satan

Brad
07-05-2002, 11:32 AM
i like the idea but it adds alot to the postbit template O_O, i think it would look and work alot better if you did something like a shoutbox or quick reply on the viewing coments page.


nice hack tho :) :bunny:

Chris M
07-05-2002, 11:47 AM
God damn it Anime-loo!:)

I was thinking you had a solution:(

Satan

g-force2k2
07-05-2002, 02:18 PM
hey i just decided to start on a roll as of late... didn't have my own forums to work on at the moment so why not do some requests and all aight ;)

Hellsatan here's an attach fixed to fix your installer... because you already have a settings option of 32 ;)

Anime-loo actually the only thing it adds to the postbit is three buttons :p the rest of the screenshots are on a sperate template :D

g-force2k2

Brad
07-05-2002, 02:23 PM
Originally posted by g-force2k2
hey i just decided to start on a roll as of late... didn't have my own forums to work on at the moment so why not do some requests and all aight ;)

Hellsatan here's an attach fixed to fix your installer... because you already have a settings option of 32 ;)

Anime-loo actually the only thing it adds to the postbit is three buttons :p the rest of the screenshots are on a sperate template :D

g-force2k2


i was talking about the 3 buttons :confused:

g-force2k2
07-05-2002, 02:45 PM
oh okay sorry :p but like i stated you can remove the   and it'll make a little more room... you can play around with it ;)

g-force2k2

Brad
07-05-2002, 03:05 PM
check your pm's :)

Chris M
07-05-2002, 07:10 PM
Thanks...

I'll try that...

Satan

Chris M
07-05-2002, 08:56 PM
But I realised that I hadnt enabled Modifying in the usergroups options...

Just a bit of advice : Can you at least tell us we have to enable it, cos I didnt think to!:)

Satan

DrkFusion
07-05-2002, 09:16 PM
Nice hack, screen shots don't seem to work for me, I will install it, when I restart my computer :)

g-force2k2
07-05-2002, 11:07 PM
Originally posted by hellsatan
Just a bit of advice : Can you at least tell us we have to enable it, cos I didnt think to!:)

:p sorry hellsatan just thought that if i enabled modifying comments then all usergroups would be able to modify any comments so i disabled it :p sorry about that... besides its easier to modify one usergroup then all except one ;)

g-force2k2

Chris M
07-06-2002, 12:14 PM
Yeh...

I just didnt think to lol...

NOTICE TO THOSE WHO ARE FINDING THE MODIFY LINK ISNT APPEARING : CHECK IF YOUR ADMIN USERGROUP HAS BEEN GIVEN ACCESS TO DO SO!!!

Satan

The Ghost
07-06-2002, 08:30 PM
nice hack! thx!

BigJohnson
07-07-2002, 12:59 AM
How do you make it so that you can't give your self comments and also to only be able to give one commment per user. That would be better I think. Can some one please tell me how to do that. Thanks.

g-force2k2
07-07-2002, 02:19 AM
heh my bad bigjohnson didn't think of the adding comments to oneself ;\ try this coding...

open comment.php

find:

if($action=="add_comment") {

after it add:

if($bbuserinfo[userid]=="$userid") {
eval("standarderror(\"".gettemplate("comment_error_userself")."\");");
exit;
}

Then make a new template called:

comment_error_userself

Add this to the template:

Sorry but you can not add a comment to yourself.

That should fix that problem... as for your second concern its more indepth because i only run one query for the user so it'd be a more interesting task to find if you've commented the user before ;\

g-force2k2

BigJohnson
07-07-2002, 02:32 AM
That worked great another little addon if possible is for the button to not show up in the postbit for your name if you cannot add a comment to yourself. That would be kool. Also that other request i asked about up top about only one comment. Is it impossible or is it just hard to do or something.

g-force2k2
07-07-2002, 02:57 AM
heh jsut hard to do ;\ im new at php so there's many things that i don't know nor understand but i will work on something :) As for your other suggestion i'll take a look now ;)

g-force2k2

g-force2k2
07-07-2002, 03:03 AM
open functions.php

find:

if($perms[canaddcomments]) {
eval("\$addcom = \"".gettemplate("comment_addbutton")."\";");
} else {
$addcom="";
}

replace it with:

if($perms[canaddcomments]) {
if($bbuserinfo[userid]=="$post[userid]") {
$addcom="";
} else {
eval("\$addcom = \"".gettemplate("comment_addbutton")."\";");
}
} else {
$addcom="";
}

That should do the trick but i am not positive :)

g-force2k2

BigJohnson
07-07-2002, 03:36 AM
Oh i see. Both your addons work great man. You are doing a great job. Thanks so much. What a great feature for my memebrs. Thanks so much.

g-force2k2
07-07-2002, 03:52 AM
;) thanks bigjohnson :D if you can think of anything else to addon let me know... i'll have to update a new file soon containing the changes that you've requested so far :)

g-force2k2

ExcErr
07-07-2002, 12:15 PM
sorry, but can you make the ability to comment anonymous???

Lilac
07-07-2002, 12:31 PM
G force, I'm a new bie to installing hacks. Inside the directions, you don't state where these files are supposed to be uploaded into. Where are these files supposed to be uploaded into?

comment.php
com_view
com_add
com_mod
install_comment

Lilac
07-07-2002, 12:53 PM
Also, G force, what's the code link for the comment hack? I need it to create a link like the example below in "bold"? Here's an example of the code <a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="http://www.*****/forum/images/edit.gif" border="0" alt="Edit/Delete Message"></a>

g-force2k2
07-07-2002, 04:12 PM
Originally posted by ExcErr
sorry, but can you make the ability to comment anonymous???

ExcErr there's already an option for that in the Admin settings if you didn't notice :p

Originally posted by Lilac
G force, I'm a new bie to installing hacks. Inside the directions, you don't state where these files are supposed to be uploaded into. Where are these files supposed to be uploaded into?

comment.php
com_view
com_add
com_mod
install_comment

the images go in the imagefolder :p (com_view, com_add, com_mod) the comment.php goes in the main folder... and the install_comment you have to place in the admin folder and then run it in the browser

Originally posted by Lilac
Also, G force, what's the code link for the comment hack? I need it to create a link like the example below in "bold"? Here's an example of the code <a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]"><img src="http://www.*****/forum/images/edit.gif" border="0" alt="Edit/Delete Message"></a>

If you want the links to appear in bold then you can't use images :p

g-force2k2

BigJohnson
07-07-2002, 04:17 PM
Originally posted by Lilac
G force, I'm a new bie to installing hacks. Inside the directions, you don't state where these files are supposed to be uploaded into. Where are these files supposed to be uploaded into?

comment.php
com_view
com_add
com_mod
install_comment

Well the Install_comment goes into the admin folder and the images go in the images folder and the comment.php goes in the root folder.


Also for the post after that you made. I am not sure what you are talking about. please explain a little more thanks.


And Gforce i am trying my hardest to think of more addons hehe. O think i have one.

This ability for the comments to be viewed in the persons profile. It should show all the comments because then that would be to much. It should show this person has 100 comments. Maybe in the profile it will just show 5 and then it will say if you want to see the other comments click HERE and that would be the link to the comments.php for that user. I think that would be pretty cool.

I also think that the add comments and mod comments buttons should be in the profile as well. That would also be pretty kool. But if you have a better layout than what i am thinking go ahead hehe. ;)

g-force2k2
07-07-2002, 04:31 PM
Yeah bigjohnson but the only problem about limiting comments is that the comments are based soley on one query so it would be quite interesting when trying to limit the comments... but i will see if i can make anything happen... if you think of any solutions let me know :)

g-force2k2

Lilac
07-07-2002, 08:31 PM
Thanks, G Force and BigJohnson. :D



The button I wanted to create are included with the hacks. Thanks, G Force. :D



I have a problem when I click the "add comment" button, I get this message page cannot be found. I uploaded the "comment.php" into the "root" directory. What could be the problem?


Another problem. I installed the hack, so why isn't it showing up in my AdminCP?

BigJohnson
07-07-2002, 10:44 PM
In the admin cp you fo you no you have to go to USERGROUP and edit it so it does show you the otpions to add comment to some users. Then you need to go to Vbuletin options and look for comments and do the options there too.

Lilac
07-07-2002, 11:51 PM
Thanks, BigJohnson. It's working now. :)





Hey, G Force, Can the users delete or edit comments made in their Comment log? Do the comments continue on another page when the comments reach a certain number on a single page? Say if a user has 60 comments in their comment log, will all of them appear on a single page? I hope I didn't confuse you. :)

DestyNova
07-07-2002, 11:55 PM
O_O wow good hack indeed!

I m going to give it a shot to see how it is.

Lilac
07-08-2002, 12:18 AM
I see something that's not a good idea. Users are allowed to edit other users comment log/book. I thought that when you set "yes" on the modifying setting it allows users to edit their own comment log/book, not other users comment log/book.

G Force is there a way for you to change it so that users would be allowed to modify their own comment log/book but not other's comment log/book.

g-force2k2
07-08-2002, 01:26 AM
yeah Lilac i can do that for you :p only reason i didn't was because then there's alot a user can frame another user for by modifying their own comments if you follow my lead ;) so thats why i made modifying comments really only meant to be for moderators and Administrators :) Also Lilac to delete the comments you just modify them :p

g-force2k2

VeRT3X
07-08-2002, 02:40 AM
probably my favourite hack, when the time comes i will vote for this as the hack of the month = ]

DestyNova
07-08-2002, 02:53 AM
Originally posted by Lilac
I see something that's not a good idea. Users are allowed to edit other users comment log/book. I thought that when you set "yes" on the modifying setting it allows users to edit their own comment log/book, not other users comment log/book.

G Force is there a way for you to change it so that users would be allowed to modify their own comment log/book but not other's comment log/book.

ditto, I notice that too,

g-force, I d like to add that to mine too to "prevent" that kind of abuse ;)

g-force2k2
07-08-2002, 03:21 AM
Okay Desty Nova i'll work on a modification very shortly and then i'll keep you updated :)

g-force2k2

doodio
07-30-2002, 06:30 PM
Hi,

What happen when this user has about 200-300 entries.. is multiple-page supported?

also, i'd like to see:
list 5 or so most recent comments on the profile page.

DestyNova
07-30-2002, 07:02 PM
g-force2k2

Any news on this hack? =)

Reflex
07-31-2002, 01:14 PM
Er, this hack sounds perfect for me, but where is it? :D

Reflex
08-01-2002, 10:14 AM
Bump :)

Mr_P
08-02-2002, 02:25 PM
who stole the hack from the first post ???????????

shovel
08-03-2002, 08:58 PM
Originally posted by Mr_P
who stole the hack from the first post ???????????

&nbsp;&nbsp;&nbsp;&nbsp;Agreed.

zootsuit
08-07-2002, 08:41 PM
:cry:

Mobile
08-15-2002, 09:20 AM
Can someone that has already downloaded the hack please upload it so us other users can get it.

Thanks Mobile

Attrox
08-15-2002, 11:59 PM
You should be able to download it here:
http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=472

DestyNova
08-16-2002, 12:02 AM
Originally posted by Attrox
Why can't you get it? If you have a license you should be able to download it...

Did you check first post? there is no attachment..

Guys/Gals, it was took down for good reason, there is nothing you guys can do about it.

Attrox
08-16-2002, 12:03 AM
Ah, now that I re-read it I understand...Sorry about that. ;)

g-force2k2
08-16-2002, 01:46 AM
im currently working on a better version... so i will re attach when i complete it ;) and DestyNova thanks for the support :)

g-force2k2

ExcErr
08-25-2002, 07:01 PM
litle request, thx:
1. i'd like to have the number of comments in the postbit, for example: "user have # +comments & # -comments"
2. what are +&-. if it's possible, can you make +&- option by comment, like in karma hack: for example if i like user i give him +&my comment...
3. the user recieve e-mail, when he become comment
thx..
sorry for my bad english, i didn't have any good practice for 6 years:)

g-force2k2
08-25-2002, 09:46 PM
1. imo if its private then why have a count for each member?
2. well for that isn't that just similiar to a ratings hack then?
3. i could do such an addon but if i were to i would make it an user selectable option :)

np for the english... regards...

g-force2k2

ExcErr
08-26-2002, 04:01 PM
1. ok, may be it's easy to make it not private
2. no, my users want to have this feature, 1200 user want......
3. ok

g-force2k2
08-26-2002, 04:39 PM
Originally posted by ExcErr
1. ok, may be it's easy to make it not private
2. no, my users want to have this feature, 1200 user want......
3. ok

my bad i wasn't thinking when i posted my last three answers O_o i don't know what i was doing when i made my last post...

here's better answers (i hope)

1. i willd o that np ;)
2. will do...
3. will make selectable...

regards... and sorry for my previous post... i must've lost my head :p

g-force2k2

ExcErr
08-27-2002, 08:26 AM
ok, thank you very much
i will be waiting...
thx..

PS: It IS VERY important:)
little math :chinese:
if user have 5 +comments and he become one -comments, than in postbit he will have "comments:4"
second example: if user have 0 comments and he become one -comment, in postbit he will have "comments: -1"
why so? because i want that my users post more +posts, than -posts:) and with this feature they will want to post more good posts, than bad posts...
do you understand me?
and when other users will see the comments of, for example, John, plz add new table, for example, "+/-"(near the comment, if the comment is "like", then + and if "unlike" than -)
thx

ExcErr
08-27-2002, 11:15 AM
it is not in english, but it is dream-screen ;)

g-force2k2
08-27-2002, 02:23 PM
okay i see so you want a log included as well?

regards... and thanks for the screenshot...

g-force2k2

ExcErr
08-27-2002, 02:43 PM
yeah, it will be cool to have log...
but on the screen it's not log, it is comment window for the user Crimson
he has 955 comments:) and this is the window with the comments, that were given to him by other users.
and it will be good to choose in admin panel, how many time one user must wait to give one more time the comment to dentical user.
for example: John must wait 5 days to give one more time comment to George...

on the screen there are 5 tables
1. +/-
2. comment
3. the user, that gave this comment
4. where he gave this comment, in profile or in thread(there is link to the thread) or in comment window
5. the date

g-force2k2
08-27-2002, 02:46 PM
eh... thats getting a little tougher :p but i will see what i can do... its very possible but its something that will take time... if you've seen my first comments hack... this one will be a different style... i doubt much anything from my first release will be even similiar... regards...

g-force2k2

ExcErr
08-27-2002, 02:53 PM
i edited my last post...there were some mistaken
thx for you future work:)

-=dm=-
09-08-2002, 06:58 PM
Hi g-force2k2
I want to install this hack but I cant find :(

where is it?

thanx :)

zefman
10-10-2002, 02:45 PM
hello all ! thanks for the Work g-force2k2
I am also very interested by this hack:)
thank you very much to put back it to disposition of all, I cannot find it nowhere: (

Dean C
10-10-2002, 03:43 PM
yea where is it... i was going to install this :(?

- miSt

Dean C
10-11-2002, 03:47 PM
g-force???

- miSt

Dean C
10-20-2002, 08:48 AM
any news on where this hack lies yet :(?

- miSt

groovesalad
10-20-2002, 02:35 PM
Is there any way to incorporate this with a point system hack? I'd like for the user to be able to click Positive, Neutral or Negative, give them a comment and hit enter. Then, they would receive a point on their postbit if it was positive, receive none if neutral and deduct a point if negative. Any ideas? I'd bet money that G-Force could whip up something like that in mins. :) (because he's THAT damn good)

Goldknight
10-20-2002, 03:14 PM
Mist, he will be not here for while. He have social commitment that which he need to do something.

Everyone, he have to took his hack down cuz of security problem.. any members can edit member's comment to add or modify any member's comment. Also he need to recode comment hack to get his comment hack work right, so pls wait and be patience.

Dean C
10-20-2002, 04:16 PM
oh i see... thanks for the info Goldknight :D

- miSt

lalo landa
11-19-2002, 06:05 AM
i'm sorry.. where can i download this hack?

Xyphen
03-10-2003, 11:33 PM
lalo landa, about 10 ppl asked the same question and its been answered already.

g-force is away and when/if he comes back then we will find out. He removed the attachment, so you cannot download this hACk..

The attachment is removed, so you cannot download this hack

Xelation
04-12-2003, 07:21 PM
anyword on this hack yet? I really want to install this!

sabret00the
04-12-2003, 08:30 PM
didn't know this was here sounds cool

gcallman
09-16-2005, 09:46 PM
Hi

I ?m working on a site for an international non-profit organization. The online community will be key, and so we?re looking at various ways to incorporate member to member feedback into the site. Before beginning this research, we planned a hack that we thought might do the trick. It?s outlined below. However, we would like to ask if you all think that other, existing hacks-like this one- might be equally/more functional. Anyway here was our idea:

First, one would create a forum exclusively for positive feedback.
The hack would then:

1) Create a new thread for each user upon registration. The thread could be named after the user in some standard format. (amykhar already did this, it seems: https://vborg.vbsupport.ru/showthread.php?t=91887&highlight=feedback Would her hack work as part of this scheme?)
2) Paste the URL for that user?s feedback thread directly into his/her signature, perhaps just after ?Feedback at:?

We thought this might be a very elegant way to incorporate feedback into VB, as the forum?s features would very functional. For example:

It would be easy to click from a users post to his/her feedback thread, because the link would be in the signature. Likewise, it would be easy to jump to or from their profile, which would facilitate making contact.
Because the forum is only for positive feedback, ranking by post would have meaning.
Similarly, hot threads would point to people who have done a lot of good work recently.
The report bad post feature could be used to report the presence of negative feedback.
We?re assuming that everyone would subscribe to their own feedback thread and so would be automatically notified.

Thanks

FuZzLe
05-19-2007, 09:57 AM
where is the file:S

Shawn Yue
03-12-2008, 09:48 AM
This Have Been Removed Due To CopyRight ......

You Can Run 3.7.0 It Have This Version

Even Blog And Social group

For Blog I Purchase

Marco van Herwaarden
03-12-2008, 09:51 AM
Please stop bumping 5 year old threads. Closing.