SMF For Free Support Forum
Signup For Free Forum
December 19, 2014, 10:26:52 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register Chat  

Pages: [1]
  Print  
Author Topic: Remove post count from display on user posts  (Read 3802 times)
0 Members and 1 Guest are viewing this topic.
Halius
SMF For Free Newbie
*
Offline Offline

Posts: 9


View Profile
Total Badges: 3
Badges: (View All)
Topic Starter Level 1 First Post
« on: July 26, 2011, 12:50:48 am »

Does anyone know where I can find a code to remove the post count from display on user posts? Thank you for any help. : )
Logged
Seldom Fail
Helpers
*
Offline Offline

Posts: 2082


Helping for 3 years! :)


View Profile WWW
Total Badges: 26
Badges: (View All)
Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
« Reply #1 on: July 27, 2011, 04:21:52 pm »

There isn't a code to do that here yet.

Though I don't see why you would want to hide post count?
Logged

<--- Donate to SMF For Free! Cheesy
Halius
SMF For Free Newbie
*
Offline Offline

Posts: 9


View Profile
Total Badges: 3
Badges: (View All)
Topic Starter Level 1 First Post
« Reply #2 on: July 27, 2011, 11:05:17 pm »

I have the money code set up, but I don't want to use the post count for money, I'd just like staff members to edit profiles to give people money, so, I have on the profile saying:

Post: 16

Points: 16

The posts part is inaccurate/redundant

I did find this: http://www.simplemachines.org/community/index.php?topic=265022.0 but I have nooo clue how to edit those kind of files, or even if we can on smf for free.
Logged
simply sibyl
Helpers
*
Offline Offline

Posts: 14347


On hiatus


View Profile WWW
Total Badges: 31
Badges: (View All)
Level 6 Poll Voter Webmaster Arcade Highscore Windows User
« Reply #3 on: July 28, 2011, 10:31:49 am »

There is no way you can edit those files nor use that Mod
Logged
Halius
SMF For Free Newbie
*
Offline Offline

Posts: 9


View Profile
Total Badges: 3
Badges: (View All)
Topic Starter Level 1 First Post
« Reply #4 on: July 28, 2011, 03:23:50 pm »

Is there a way to nix the money code and make the

Posts: #

say

Points: #

instead?
Logged
Agent Moose
Moderator
*****
Offline Offline

Posts: 836


Do not PM me for Code Support or Request


View Profile
Total Badges: 25
Badges: (View All)
Poll Voter Level 5 Seventh year Anniversary Sixth year Anniversary Arcade Highscore
« Reply #5 on: July 28, 2011, 09:54:22 pm »

Can you post the money code you are using?  That way I can just edit that code instead of making a whole new one.
Logged

Check out Revolution X's Brand new Code Index!
Halius
SMF For Free Newbie
*
Offline Offline

Posts: 9


View Profile
Total Badges: 3
Badges: (View All)
Topic Starter Level 1 First Post
« Reply #6 on: July 29, 2011, 12:14:02 am »

Code:
<script>
function smc_money_code(name,sign,amount){
//Created by Agent Moose at smcodes.smfforfree3.com
c = document.getElementsByTagName("div");
for(v=0;v<c.length;v++){
if(c[v].className=="smalltext" && c[v].innerHTML.match(/Posts: (\d+)/)){
var total = amount * RegExp.$1;
c[v].innerHTML+="<br />" + name+": " + sign + total;
};};}
smc_money_code("Points","","1")
</script>

Is there a way to edit this other code of yours and combine them to have a "reason for editing points" (or in this case, indirectly the points count)?

Code:
<script type="text/javascript">
var i = ""; var r = ""; var b = "";
//Created by Agent Moose (revolutionx.smfforfree3.com)
$("td[width='16%'] b a").each(function(){
if(this.href.match(/u=(.*)/i)){
i = RegExp.$1;
r = $(this).parent().next().find("a[href*='sa=applaud']").attr("href");
b = $(this).parent().next().find("a[href*='sa=smite']").attr("href");
$(this).parent().next().find("a[href*='sa=applaud']").each(function(){
this.href = "javascript:void(0);";
this.onclick = function(){ Red(); };
});
$(this).parent().next().find("a[href*='sa=smite']").each(function(){
this.href = "javascript:void(0);";
this.onclick = function(){ Blue(); };
});};});
function Red(){ var x = prompt("Reason:",""); if(x){ $.post(smf_scripturl + "?action=comment&sa=add2",{comment: "[b][color=green]Karma Added!  Reason:[/color][/b]\n" + x, userid: i}); alert("Reason Posted!"); window.location = r; }else if(!x){ alert("You must enter a reason!"); };};
function Blue(){ var v = prompt("Reason:",""); if(v){ $.post(smf_scripturl + "?action=comment&sa=add2",{comment: "[b][color=red]Karma Subtracted!  Reason:[/color][/b]\n" + v, userid: i}); alert("Reason Posted!"); window.location = b; }else if(!v){ alert("You must enter a reason!"); };};
</script>

Your codes are just amazing! And thank you for the help!
Logged


Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.20 | SMF © 2013, Simple Machines