The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Okay, for a new site I'm going to have articles and at the bottom of each article I want a user comment system. Now, I can use a content managment system from ASP.net or I can buy a whole management system from http://www.pmachine.com, but I was wondering if it was possible to allow the users to only post comments on articles if they were registered at our forums (which are vbulletin of course). If not, I would like someone to try to work on a mod because if I have a user comments system where people still register then they can register under different names from their forum names and everything could get confusing. Either that or I don't use a comments system...
|
#2
|
||||
|
||||
![]()
Just off the top.
You will need to create a table for the comments, probably with 3 fields : - cid ( comment_id ) set to auto_increment. - cuser ( comment_by_which_user_id ) - aid ( article_id_in_which_comment_was_made_in ) - ctext ( comment_text ) With this created, before inserting rows ( ie. comments ), just check Code:
if($bbuserinfo['userid']) And when they do post a comment, use the value of Code:
$bbuserinfo['userid'] There would probably be a hidden tag in the form to be submitted when making a comment with the article id. That's how I would do it ![]() |
#3
|
|||
|
|||
![]()
So I don't need an actual content management system to work with comments? Or are you saying using the comments table from a content management system and tweak it?
|
#4
|
|||
|
|||
![]()
Also, it looks like I'll be using the content management system ExpressionEngine for my site. They offer user comments, so do you think I would be able to integrate this with vBulletin? You know, tweak EE so you have to be registered for my vBulletin forums to post comments? That's all I want.
|
#5
|
||||
|
||||
![]()
I am sure it can be done, but I am not familiar with those CMSs you mentioned.
|
#6
|
|||
|
|||
![]()
well, I don't know if it'll be of much help.. but try what I do:
First of all, install the comment script you like the most, it doesn't matter which one you choose. After you've got it up and running, you'll have to set permissions to the key file.. the key file is the one that'll allow people to post a comment. It can be either the html (or php) that you call to print the comment form on your page or the php file that processes the information entered at the form. This depends on the script you're using (which I recommend that it DO NOT require registration, since you'll need to hack it a little more...). Now that you have located the file, you'll now need to include the global file to that page. Code:
<?php include ('../foro/global.php'); ?> Code:
//change xx with the Guest Group ID. if($bbuserinfo['usergroupid']==xx){ echo "Please log-in or register!"; } else { //the rest of the code goes here Code:
<?php include ('../foro/global.php'); //change xx with the Guest Group ID. if($bbuserinfo['usergroupid']==xx){ echo "Please log-in or register!"; } else { //the rest of the code goes here //code //code //code //lol } ?> ![]() NOTE Remember that if you have HTML between the Code:
} else { ![]() EDIT Damn. I forgot one thing... before including global.php you must modify it a bit... every url the file has is like this: Code:
admin/functions.php Code:
/home/user/public_html/forum/admin/functions.php |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|