vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User Comment System (https://vborg.vbsupport.ru/showthread.php?t=51570)

filburt1 04-12-2003 10:00 PM

User Comment System
 
This hack allows users to leave comments about users. It is integrated into the admin CP options and is configurable via the normal permissions system (by default, mods/smods/admins can delete user comments).

filburt1 04-13-2003 04:48 PM

Admin CP options:

filburt1 04-13-2003 04:48 PM

New setting in permissions:

filburt1 04-13-2003 04:50 PM

getinfo:

Dan 04-13-2003 04:50 PM

Filburt as I said you are a god!

/me clicks install and goes to install it

filburt1 04-13-2003 04:51 PM

Comments page:

filburt1 04-13-2003 04:52 PM

And finally, leaving a comment:

filburt1 04-13-2003 04:55 PM

Quote:

Today at 01:44 PM Oricon said this in Post #5
Filburt as I said you are a god!

* Oricon clicks install and goes to install it


Redo step 3, I forgot to add a link to post comments if the user already has one comment.

Xelation 04-13-2003 05:14 PM

YES! Thank so much! :D Gonna install it in a few minutes.. I'll let you know how it goes.

Xelation 04-13-2003 05:18 PM

when I ran install_usercomment.php I got this error when it tried to run the 3rd query.. what could be wrong?

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: ALTER TABLE "usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEFAULT 0 NOT NULL
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEF

mysql error number: 1064

Date: Sunday 13th of April 2003 02:11:37 PM
Script: http://www.texeo.com/web/web/admin/i...es=1&styleid=1
Referer: http://www.texeo.com/web/admin/install_usercomment.php

Black Vivi 04-13-2003 05:23 PM

[high]* Black Vivi clicks install, but not gonna install it later.
[/high]
I'll prob redesign it alot aswell, but looks k00l;):D

Craigr 04-13-2003 05:25 PM

Thanks, looks great.

Craig

filburt1 04-13-2003 05:29 PM

Quote:

Today at 02:12 PM Xelation said this in Post #10
when I ran install_usercomment.php I got this error when it tried to run the 3rd query.. what could be wrong?

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: ALTER TABLE "usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEFAULT 0 NOT NULL
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEF

mysql error number: 1064

Date: Sunday 13th of April 2003 02:11:37 PM
Script: http://www.texeo.com/web/web/admin/i...es=1&styleid=1
Referer: http://www.texeo.com/web/admin/install_usercomment.php

Anybody else getting this?

Either way I updated the script with a query straight from PMA. Run this query:
[sql]
DROP TABLE usercomment;
[/sql]
Then re-run the install script.

Zelda-King 04-13-2003 05:30 PM

This doesn't like me. I'm stumped on step one of running the installation script. :/
Quote:

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: ALTER TABLE "usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEFAULT 0 NOT NULL
mysql error: You have an error in your SQL syntax near '"usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEFAULT 0 NOT NULL' at line 1

mysql error number: 1064

Date: Sunday 13th of April 2003 12:22:56 PM
Script: http://www.gamercrossfire.net/bb/bb/...es=1&styleid=4
Referer: http://www.gamercrossfire.net/bb/adm...sercomment.php

filburt1 04-13-2003 05:30 PM

See my post above.

Xelation 04-13-2003 05:31 PM

I ran that query and now I get this error
----------------------------------------------------------
Database texeoco_web running on localhost
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unclosed quote @ 22
STR: '
SQL: DROP TABLE usercomment'
Error

SQL-query :

DROP TABLE usercomment'

MySQL said:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1
Back

filburt1 04-13-2003 05:31 PM

I edited my post one second after you copied that query :p, look again.

Xelation 04-13-2003 05:33 PM

ok, I dropped it and reinstalled it.. same error

bharvey42 04-13-2003 05:34 PM

Hey filburt,

Would it be possible to allow groups the ability to only comment on users in the same group?

Would it be possible to enable the user of having there comments be viewed by only themselves and admins?

Zelda-King 04-13-2003 05:35 PM

Gah! I HAD seen that post. I just didn't recognise it was the same error (and I downloaded just after seeing that. I assumed I had the updated version)! :-[

Craigr 04-13-2003 05:40 PM

Quote:

Today at 07:27 PM Xelation said this in Post #18
ok, I dropped it and reinstalled it.. same error
Same here. I get this error:

Quote:

Code:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: ALTER TABLE "usergroup" ADD "candeleteusercomments"
        SMALLINT(6) DEFAULT 0 NOT NULL
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '"usergroup" ADD "candeleteusercomments"
        SMALLINT(6) DEF

mysql error number: 1064

Date: Sunday 13th of April 2003 02:32:24 PM
Script: http://www.steven-seagal.net/forum/f...es=1&styleid=1
Referer: http://www.steven-seagal.net/forum/a...sercomment.php


Craig

filburt1 04-13-2003 05:54 PM

Try again.

Xelation 04-13-2003 05:59 PM

Quote:

Running extra queries...
Running extra query 1 of 3...

query: CREATE TABLE usercomment (
usercommentid int(10) unsigned NOT NULL auto_increment,
byuserid int(10) unsigned NOT NULL default '0',
aboutuserid int(10) unsigned NOT NULL default '0',
comment text NOT NULL,
PRIMARY KEY (usercommentid)
) TYPE=MyISAM
Running extra query 2 of 3...

query: ALTER TABLE "usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEFAULT 0 NOT NULL


There seems to have been a slight problem with the Death Raiders database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: ALTER TABLE "usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEFAULT 0 NOT NULL
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"usergroup" ADD "candeleteusercomments"
SMALLINT(6) DEF

mysql error number: 1064

Date: Sunday 13th of April 2003 02:53:03 PM
Script: http://www.texeo.com/web/web/admin/i...es=1&styleid=1
Referer: http://www.texeo.com/web/admin/install_usercomment.php

Craigr 04-13-2003 06:00 PM

Works great now.

Thanks
Craig

Xelation 04-13-2003 06:00 PM

craigr.. what did you do?

Zelda-King 04-13-2003 06:02 PM

It works better now. Just clear out your cache and redownload, etc.

Xelation 04-13-2003 06:05 PM

thx zelda... worked :)

Zelda-King 04-13-2003 06:16 PM

I've installed. Works great so far! :)

Craigr 04-13-2003 06:16 PM

To leave comments about yourself remove this from commentaboutuser.php

Code:

if ($aboutuserid == $bbuserinfo['userid'])
{
    eval("standarderror(\"" . gettemplate("error_cantcommentaboutself") .
        "\");");
}

You can also remove the template.

Works for me.

Craig

Xelation 04-13-2003 06:18 PM

Not saying you have to create all these features but they would be nice to have....[list=1][*]Let yourself comment on yourself (incase people may want to ask questions and such then you can reply).[*]Time posted[*]give me a code to put their avatar somewhere in comment.[*]Other buttons like on the postbit (email, profile, etc).[*]Show most recent comment on the profile page (such as a simple value like $recentcomment). Have an extra template for this so we can customize the look of it[*]Have a reply button on the actual comment page[/list=1]

Craigr 04-13-2003 06:21 PM

Quote:

Today at 08:12 PM Xelation said this in Post #30
Not saying you have to create all these features but they would be nice to have....
[list=1][*]Let yourself comment on yourself (incase people may want to ask questions and such then you can reply).
[*]Time posted
[*]give me a code to put their avatar somewhere in comment.
[*]Other buttons like on the postbit (email, profile, etc).
[*]Show most recent comment on the profile page (such as a simple value like $recentcomment).
[*]Have a reply button on the actual comment page[/list=1]

Most of these will probably be quite easy to do. I will have a tinker around with it myself.

You can leave a comment on yourself by doing what i stated above.

Craig

Xelation 04-13-2003 06:41 PM

Kool, I hope you can do it :)

DRR 04-13-2003 06:45 PM

thx :D this is realy usefull :D
we got a kinda "coment the persone who posted b4 you" forum game and this wi'll be nice :D

iggy123 04-13-2003 06:58 PM

I have installled this hack and everything appears to be fine apart from i don't see the links on the getinfo panel - i have double checked the info in installed correctly but when i click on the username there is no link there.
I have deleted my cashe etc but still can't see anything - any ideas?

Ok figured it out - thnx excellent hack - now they can call me names all they want....

Xelation 04-13-2003 07:02 PM

well if you have a customized profile... it might not allow you to see it if you put it in the wrong part of the html code.. just find $header and put this below it..

<center><br><a href="viewusercomments.php?s=$session[sessionhash]&aboutuserid=$userid">View</a>/<a href="commentaboutuser.php?s=$session[sessionhash]&aboutuserid=$userid">Post</a> Comments</center>

and it should be centered right at the top of the profile page. then you can see if it works from their and customize it later

Dan 04-13-2003 07:07 PM

Works perfect guys on a 2.3.0 install...... anyone know a way so it can put like the last 3 or so comments in the getinfo?

Xelation 04-13-2003 07:14 PM

im wondering the same oricon... I was it so you can set the options in the admin cp.. put

$recentcomments somewhere in the getinfo template and have it link to a template where you can customize the look of the comments....

then in vbulletinoptions you can set how many recent comments you want to show up in the getinfo... if I knew php I would do this but I dont... so oh well


I also would like a quick reply if possible... I know im asking for a lot here but its only to make a kick ass hack! :D

Xelation 04-13-2003 07:53 PM

Here's another option I would like to see...

after x comments show next page

Intex 04-13-2003 07:54 PM

Nice1 filburt1. Yet another cool hack.

[high]* Intex added to install list :cool:.[/high]

Kurayami 04-13-2003 08:01 PM

*Whaps Install* Thank you! I've been waiting quite a while for something like this. :)


All times are GMT. The time now is 04:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01311 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete