christian8a
12-05-2007, 11:48 PM
Ok after alot of research, havent found anything so this time I am making it. Some people here helps alot :up: but some others :down:
If anybody wants to help on this, welcome and thanx :cool:
I have very poor knowledge on all this coding stuff, but little by little I will figure out.
So far I have done:
- Email after User note posted
- Text area in Profile
For Email after UserNote posted
- Create a plugin Hook Location: usernote_donotev
vbmail_start();
if ($vbulletin->GPC['usernoteid'])
{
// Note Edited.
$subject = 'Comment Edited!';
$message = 'Profile Comment has been edited or changed, To read it, visit http://www.yourdomain.com';
vbmail($vbulletin->userinfo['email'], $subject, $message);
}
else
{
// Note Added.
$subject = 'New Profile Comment!';
$message = 'New Comment! To read it, visit http://www.yourdomain.com';
vbmail($vbulletin->userinfo['email'], $subject, $message);
}
vbmail_end();
For Text area on profile:
<form action="usernote.php" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return validatePost(this, 0, $vboptions[postminchars], $vboptions[postmaxchars]);" onreset="vB_RESET(this);"</if>>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="u" value="$userinfo[userid]" />
<input type="hidden" name="usernoteid" value="$noteinfo[usernoteid]" />
<input type="hidden" name="do" value="donote" />
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<b>$vbphrase[title]:<b><br />
<input type="text" class="bginput" name="title" value="$noteinfo[title]" size="40" maxlength="85" tabindex="1" />
</div>
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<b>Message:<b><br />
<textarea name="message" rows="7" cols="40" wrap="virtual" tabindex="1"></textarea>
<!-- / message area -->
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" name="sbutton" value="Post Comment" accesskey="s" tabindex="1" />
</div>
</form>
Now the most important part, how to display them on the actual profile...
any toughts?
Chris___
--------------- Added 1196987812 at 1196987812 ---------------
Nevermind, vb 3.7 has the comment system already on the profiles. Might as well wait for it :D
If anybody wants to help on this, welcome and thanx :cool:
I have very poor knowledge on all this coding stuff, but little by little I will figure out.
So far I have done:
- Email after User note posted
- Text area in Profile
For Email after UserNote posted
- Create a plugin Hook Location: usernote_donotev
vbmail_start();
if ($vbulletin->GPC['usernoteid'])
{
// Note Edited.
$subject = 'Comment Edited!';
$message = 'Profile Comment has been edited or changed, To read it, visit http://www.yourdomain.com';
vbmail($vbulletin->userinfo['email'], $subject, $message);
}
else
{
// Note Added.
$subject = 'New Profile Comment!';
$message = 'New Comment! To read it, visit http://www.yourdomain.com';
vbmail($vbulletin->userinfo['email'], $subject, $message);
}
vbmail_end();
For Text area on profile:
<form action="usernote.php" method="post" name="vbform"<if condition="!is_browser('webtv')"> onsubmit="return validatePost(this, 0, $vboptions[postminchars], $vboptions[postmaxchars]);" onreset="vB_RESET(this);"</if>>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="u" value="$userinfo[userid]" />
<input type="hidden" name="usernoteid" value="$noteinfo[usernoteid]" />
<input type="hidden" name="do" value="donote" />
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<b>$vbphrase[title]:<b><br />
<input type="text" class="bginput" name="title" value="$noteinfo[title]" size="40" maxlength="85" tabindex="1" />
</div>
<div class="smallfont" style="margin-bottom:$stylevar[formspacer]px">
<b>Message:<b><br />
<textarea name="message" rows="7" cols="40" wrap="virtual" tabindex="1"></textarea>
<!-- / message area -->
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" name="sbutton" value="Post Comment" accesskey="s" tabindex="1" />
</div>
</form>
Now the most important part, how to display them on the actual profile...
any toughts?
Chris___
--------------- Added 1196987812 at 1196987812 ---------------
Nevermind, vb 3.7 has the comment system already on the profiles. Might as well wait for it :D