Simple Machine Codes
April 19, 2024, 09:04:53 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  

Add text to Certain Users Posts

Pages: [1]   Go Down
  Print  
Author Topic: Add text to Certain Users Posts  (Read 980 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: December 25, 2007, 01:01:16 pm »

Footers:
Code:
<script>
function postText(User,Text) {
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match("topic,")){
$("a").each(function(){
if(this.innerHTML == User){
$(this).parent().parent("td[width='16%']").next().find("div.post").append("<br/>"+Text);
};});};};
postText("USER","TEXT");
</script>
A code that was request by Agent Moose Jr.

This adds text to a certain users post.
USER = The user it will add the Text to
TEXT = The Text that will be added.  You may use HTML.

To add more users, add more of these lines:
Code:
postText("USER","TEXT");
« Last Edit: December 25, 2007, 01:15:29 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #1 on: December 25, 2007, 01:24:51 pm »

Code:
<script>
function postText(User,Text) {
if(location.href.match("topic,")){
$("a").each(function(){
if(this.innerHTML == User){
$(this).parent().parent("td[width='16%']").next().find("div.post").append("<br/>"+Text);
};});};};
postText("Owner Durial","Signed,
Owner
 
<b>©Gods Of Moparscape</b> - The Next Generation
<b>Site Owner</b>
 
<img src=http://signatures.mylivesignature.com/54485/374/AFF713DCF0C5BEAB709327B6F5A51581.png>");
</script>
Report Spam   Logged

Newest:

Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: December 25, 2007, 01:30:41 pm »

Try this:
Code:
<script>
function postText(User,Text) {
if(location.href.match("topic,")){
$("a").each(function(){
if(this.innerHTML == User){
$(this).parent().parent("td[width='16%']").next().find("div.post").append("<br/>"+Text);
};});};};
postText("Owner Durial","Signed,<br>Owner<br><br><b>©Gods Of Moparscape</b> - The Next Generation<br><b>Site Owner</b><br><br><img src=http://signatures.mylivesignature.com/54485/374/AFF713DCF0C5BEAB709327B6F5A51581.png>");
</script>
Report Spam   Logged

Agent Moose Jr.
Ultra Contagious
Global Moderator

Offline Offline

Gender: Male
Posts: 1,045



View Profile WWW
« Reply #3 on: December 25, 2007, 01:50:06 pm »

Thank you Moose, You've Done It Again.  Keep Up The Good Work
Report Spam   Logged

Newest:

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