Simple Machine Codes
April 15, 2024, 11:02:32 pm
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Quick Comment V2

Pages: [1]   Go Down
  Print  
Author Topic: Quick Comment V2  (Read 342 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: June 01, 2007, 01:59:58 pm »

Put this at the top of your headers if you don't have it already:
Code:
<script language="JavaScript" type="text/javascript" src="http://209.85.48.12/9581/134/upload/p4217340.ibf">//Jquery code</script>

Footers:
Code:
<script version="1.5">
function quick_comment(user,id){
//Created by Agent Moose at smcodes.smfforfree3.com
$(function() {
$("td b a").contains(user).after("<br><form method='POST' name='cprofile' id='cprofile' action='http://XXXXXXX.smfforfreeX.com/index.php?action=comment&sa=add2' id='quick-comment'><texta"+"rea rows='3' name='comment' cols='10'></text"+"area><br><input type='hidden' name='userid' value='"+id+"'></input><input type='submit' value='Add Comment' name='submit'></input></form>")
});}
quick_comment("USER","ID")
</script>

This is V1.5 of the quick comment.  Version 1 just was a link that brought you to the commenting page.  This accually adds the textbox and the buttom so you don't have to load anything.

USER = The user you want the quick comment to be added to.
ID = The Number the person is when he joined.  If you go into there profile, you will see at the top this:
Quote
http://smfffhacks.smfforfree2.com/index.php?action=profile;u=1
The Red number will be the number you put in to the "ID" Section.

I hope you like it!

EDIT:
You will need to change the X's so that it will go to your URL thingy...
« Last Edit: September 15, 2007, 11:13:18 am by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

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