October 14, 2024, 06:35:31 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Revolution X, where Coding meets Graphics.
 
  Home Help Search Arcade Affiliates Staff List Calendar Members Login Register  

Quick Comment V2

Pages: [1]   Go Down
  Print  
Author Topic: Quick Comment V2  (Read 511 times)
Agent Moose
Administrator
Adminitrator
Offline Offline

Gender: Male
Posts: 1,470



View Profile WWW
Badges: (View All)
« on: December 01, 2008, 03:02:48 pm »

Put this at the top of your headers if you don't have it already:
Code:
<script src="/jquery.js"></script>

Footers:
Code:
<script>
//Created by Agent Moose (revolutionx.smfforfree3.com)
if(location.href.match(/topic,/i)){
$("td b a").each(function(){
if(this.href.match(/profile;u=(.*)/i)){
$(this).after("<br><form method='POST' name='cprofile' id='cprofile' action='/?action=comment&sa=add2' id='quick-comment'><texta" + "rea rows='2' name='comment' cols='12'></text" + "area><br><input type='hidden' name='userid' value='" + RegExp.$1 + "'></input><input type='submit' value='Add Comment' name='submit'></input></form>");
};});};
</script>
Code Updated: 12/1/2008

This code will add textareas under each member, which if you type text into, it will leave that member a comment on their profile Smiley

Enjoy Smiley
Report Spam   Logged


Share on Facebook Share on Twitter

Henry
Exclusive
Exclusive
Offline Offline

Gender: Male
Posts: 170


PM me if you need any help!


View Profile
Badges: (View All)
« Reply #1 on: December 02, 2008, 01:39:02 am »

Nice! Good job Agent Moose.  Cheesy
Report Spam   Logged

Proud member of Revolution X!

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy