WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

medlsc

medlsc
Registered Member
Registered Member
hello guys, i new here!


I have a little problem, i want to change the columns ''topics and replies'' at one column, like the following picture.

change the columns ''topics and replies'' at column ''stats'' Hjhjhj10

http://med-lab-scietists.free-forums.biz/

medlsc

medlsc
Registered Member
Registered Member
I have the phpbb3 version

http://med-lab-scietists.free-forums.biz/

ankillien

ankillien
Administrator
Administrator
Hi,

Try adding this javascript...

Code:
$(function(){

  $('.topiclist .header .topics').text('Stats');
  $('.forums .row .topics').each(function(){
    var topicsNo = $(this).text();
    var postsNo = $(this).next('.posts').text();
    $(this).html(topicsNo+'<br />'+postsNo);
  });

});

Add it from Admin CP > Modules > Javascript management

Also, add this code in Admin CP > Display > Colors > CSS...

Code:
.topiclist .header .posts ,
.forums .row .posts {
display:none;
}

Please avoid double posting. Use the EDIT button for updating your post.

4Solved ... Thu Mar 01, 2012 9:54 pm

medlsc

medlsc
Registered Member
Registered Member
ankiller the javascript an css code work correctly but because i use greek language i have a problem with the column ''posts''.

Look the picture
change the columns ''topics and replies'' at column ''stats'' Grdgdg10

What i can change in the javascript code to disappear the column ''ΔΗΜΟΣΙΕΥΣΕΙΣ'' ?



Last edited by medlsc on Thu Mar 01, 2012 10:12 pm; edited 1 time in total

http://med-lab-scietists.free-forums.biz/

ankillien

ankillien
Administrator
Administrator
Have you adde this code in your CSS?

Code:
.topiclist .header .posts , .forums .row .posts {
display:none !important;
}

This code will remove that column.

medlsc

medlsc
Registered Member
Registered Member
ok, this css code is the right Smile thanks Smile

but i want to make the position of the ''posts'' and ''topics' like this:

Posts : 2580
Topics : 106

not like this

2580
posts
106
topics



http://med-lab-scietists.free-forums.biz/

ankillien

ankillien
Administrator
Administrator
Please replace the javascript code with this one...

Code:
$(function(){

  $('.topiclist .header .topics').text('Stats');
  $('.forums .row .topics').each(function(){
    var topicsNo = $(this).text().split(" ")[0];
    var postsNo = $(this).next('.posts').text().split(" ")[0];
    $(this).html('Topics : '+topicsNo+'<br />Posts : '+postsNo);
  });

});

medlsc

medlsc
Registered Member
Registered Member
nice! thanks for the help ankillien Smile Smile

http://med-lab-scietists.free-forums.biz/

ankillien

ankillien
Administrator
Administrator
Glad I could help out Very Happy

Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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