The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
User notes as a Guestbook!
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 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 [DATE]1196987812[/DATE] at [TIME]1196987812[/TIME] --------------- Nevermind, vb 3.7 has the comment system already on the profiles. Might as well wait for it |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|