Author Topic: Remove post count from display on user posts  (Read 5431 times)

0 Members and 1 Guest are viewing this topic.

Offline Halius

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 3
    Badges: (View All)
    Topic Starter Level 1 First Post
Remove post count from display on user posts
« on: July 25, 2011, 11:50:48 pm »
Does anyone know where I can find a code to remove the post count from display on user posts? Thank you for any help. : )

Offline Seldom Fail

  • Helpers
  • *
  • Posts: 2082
  • Helping for 3 years! :)
    • View Profile
    • My Site!

  • Total Badges: 26
    Badges: (View All)
    Sixth year Anniversary Fifth year Anniversary Apple User Search Poll Voter
Re: Remove post count from display on user posts
« Reply #1 on: July 27, 2011, 03: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?
<--- Donate to SMF For Free! :D

Offline Halius

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 3
    Badges: (View All)
    Topic Starter Level 1 First Post
Re: Remove post count from display on user posts
« Reply #2 on: July 27, 2011, 10: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.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: Remove post count from display on user posts
« Reply #3 on: July 28, 2011, 09:31:49 am »
There is no way you can edit those files nor use that Mod

Offline Halius

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 3
    Badges: (View All)
    Topic Starter Level 1 First Post
Re: Remove post count from display on user posts
« Reply #4 on: July 28, 2011, 02:23:50 pm »
Is there a way to nix the money code and make the

Posts: #

say

Points: #

instead?

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 27
    Badges: (View All)
    Linux User Mobile User Poll Voter Level 5 Seventh year Anniversary
Re: Remove post count from display on user posts
« Reply #5 on: July 28, 2011, 08: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.
Check out Revolution X's Brand new Code Index!

Offline Halius

  • SMF For Free Newbie
  • *
  • Posts: 9
    • View Profile

  • Total Badges: 3
    Badges: (View All)
    Topic Starter Level 1 First Post
Re: Remove post count from display on user posts
« Reply #6 on: July 28, 2011, 11:14:02 pm »
Code: [Select]
<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: [Select]
<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!

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
953 Views
Last post August 22, 2007, 07:25:26 am
by Kimmie
1 Replies
547 Views
Last post September 20, 2007, 06:10:13 am
by [SAP]Francis
3 Replies
690 Views
Last post January 19, 2008, 10:54:30 pm
by †Mother May I?†
3 Replies
1248 Views
Last post January 16, 2009, 05:04:49 pm
by Andrew
2 Replies
1527 Views
Last post May 27, 2010, 06:21:31 pm
by [Vital Suit]GTF-11 Drio