SocialAcademy • Forum

Social Academy Community Support Forum & Free Tutorial's & Skins



SocialAcademy • Forum » Support Section » Ask Question 's & Problems  →   [Solved] Change statistics text - Page 2

[Solved] Change statistics text


    Go to page : Previous  1, 2, 3, 4  Next

  • Please log in to Reply

View previous topic View next topic Go down  Message [Page 2 of 4]

#11

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Fri Aug 05, 2016 3:19 pm

 
[tag]LilJur[/tag] oops. im sorry i forgot the CSS
Code:
.statHide{display:none !important;}
.statsPers li span a {
text-decoration: none !important;
}
.statsPers li > span {
display: inline-block;
background: #E2E2E2;
color: #4A4A4A;
padding: 2px 6px;
font-weight: bold;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
margin-right: 3px;
}
.statsPers li {
float: left;
color:#666;
margin: 2px 10px;
}
.statsPers {
list-style: none;
display: block;
margin: 0px auto;
width: 100%;
}

https://socialacademy.forumotion.com
#12

OfflineLilJur

LilJur
 
Member
Member

Posted Fri Aug 05, 2016 3:25 pm

 
It works. Was typing that I'd probably needed to set display to none in the CSS while you posted the CSS ;p
But could you change the "lastUser" to show how the most amount of users ever online?
My JavaScript isn't that good...

#13

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Fri Aug 05, 2016 3:34 pm

 

*
POPULAR

okay. sure [tag]LilJur[/tag]
find this
Code:
<li class="statHide lastUser">Newest Member: {NEWEST_USER}</li>
and change to this
Code:
<li class="statHide rdtOn">Most users Online: {RECORD_USERS}</li>
find this
Code:
var lastUser = $('.lastUser strong').html();
and change to this
Code:
var rdtOn = $('.rdtOn strong').html();
find this
Code:
'<li><span>' + lastUser + '</span> Newest Members</li>';
and change to this
Code:
'<li><span>' + rdtOn + '</span> Most Users Online</li>';

https://socialacademy.forumotion.com
#14

OfflineLilJur

LilJur
 
Member
Member

Posted Fri Aug 05, 2016 4:13 pm

 
Almost there... It's looking pretty good so far. Did some styling and I almost got what I want.
Only one problem... No matter what I try, I can't center it?
I tried auto margin and text-align in both the div, the ul and the li.
Nothing seems to center it...
[Solved] Change statistics text - Page 2 Center10

#15

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Fri Aug 05, 2016 4:20 pm

 
[tag]LilJur[/tag] add this to you CSS
Code:
ul.onlineStats {
margin-left: 280px;
}
and it should look like this.
Preview:
[Solved] Change statistics text - Page 2 Stats10

https://socialacademy.forumotion.com
#16

OfflineLilJur

LilJur
 
Member
Member

Posted Fri Aug 05, 2016 4:40 pm

 
It should but it doesn't...
It seems something is overriding it.

This is the CSS is use for everything that is in the dark grey area
Code:
#stats {
  background-color: #191919;
  height: 100px;
}
  
ul.onlineStats {
  display: block;
  list-style: none;
  width: 90%;
  margin-left: 280px;
}

.groupLegend {
  width: 100%;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #EAEAEA;
  text-transform: uppercase;
}

.statHide{
  display:none !important;
}

.onlineStats li > span {
  display: inline-block;
  color: #29ABE2;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.onlineStats li {
  float: left;
  margin-left: 40px;
  margin-right: 40px;
  text-align: center;
  color: #EAEAEA;
}

#17

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Fri Aug 05, 2016 4:44 pm

 
i saw your forum and it works fine. [tag]LilJur[/tag]

https://socialacademy.forumotion.com
#18

OfflineLilJur

LilJur
 
Member
Member

Posted Fri Aug 05, 2016 5:24 pm

 
Red™ wrote:[link="/t823p10-change-statistics-text#8959"]i saw your forum and it works fine. [tag]LilJur[/tag]
What screen resolution and browser do you use?

#19

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Sat Aug 06, 2016 12:42 am

 
give me your template. ill edit the code [tag]LilJur[/tag]

https://socialacademy.forumotion.com
#20

OfflineLilJur

LilJur
 
Member
Member

Posted Sat Aug 06, 2016 12:40 pm

 
I sended you a PM

#21

OfflineSponsored content


 

Posted

 

Message (Page 2 of 4)


    Go to page : Previous  1, 2, 3, 4  Next


Share Topics Url

Url
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum

 
  • Make a forum | ©phpBB | Free forum support | Report an abuse | Forumotion.com


Social Academy Forum
© Social Academy 2013-2022