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
ankillier the javascript 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);
});

});

and the following css code is correctly only for the hompage.
.topiclist .header .posts , .forums .row .posts {
display:none !important;
}


I need also the column stat in the subforum and the topics with replies and views.

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

ankillien

ankillien
Administrator
Administrator
For that, add this in the CSS...

Code:
.topics .views {
display: none !important;
}

and this in the javascript...

Code:
$(function(){

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

});

Make sure you add the javascript 'for all pages'.

medlsc

medlsc
Registered Member
Registered Member
ankillier I see the stats column but without the header

i need a column ''stat'' for topics and subforums Gfgfg_10

I use two javascript codes. In the first i tick ''in the home page'' and in the second javascript code i tick ''in all the pages.

What i do wrong ?

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

ankillien

ankillien
Administrator
Administrator
Tick 'in all pages' for both javascripts.

5Solved ... Sat Mar 03, 2012 10:01 pm

medlsc

medlsc
Registered Member
Registered Member
ankilier something is going wrong. I tick in all pages for both javascripts but in the homepage i see the topics column and the stats column, side by side.

Where i put in css codes in the stylesheet ?

Can you make a tutorial for this ?



Concluding i want to make the header bar and the stat column of forums and topics like this picture

i need a column ''stat'' for topics and subforums Jkljl10

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

ankillien

ankillien
Administrator
Administrator
Give me link to your forum please.

7Solved .... Sat Mar 03, 2012 11:10 pm

medlsc

medlsc
Registered Member
Registered Member
medlabscietists.forumotion.com

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

ankillien

ankillien
Administrator
Administrator
Thanks.

This CSS code would remove those text...

Code:
.header dd.topics , .header  dd.posts , .header  dd.lastpost {
color: transparent !important;
}

medlsc

medlsc
Registered Member
Registered Member
Now i have two problems. First of all javascript code about column stats for sub-forums and , secondly the previously css code :
.header dd.topics , .header dd.posts , .header dd.lastpost {color: transparent !important;}

in not working at ''multi-forums in one''

if i finish with this i make a tutorial here Smile

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

ankillien

ankillien
Administrator
Administrator
This code will remove additional column from sub forum...

Code:
.topiclist dd.posts {
display:none !important;
}

And the code I gave you last should work. It will remove the header text, same as in the image you posted above.

medlsc

medlsc
Registered Member
Registered Member
what i wrote ? xaxax

the column stats not working at sub-forums

look this link medlabscietists.forumotion.com/f16-forum

and look my homepage for about multi-forum

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

ankillien

ankillien
Administrator
Administrator
I just tried the code again and it worked for me :? Make sure you have added both the javascripts correctly. It should be working.

13Solved .... Sun Mar 04, 2012 12:29 am

medlsc

medlsc
Registered Member
Registered Member
ok i fixed the column stats at sub-forum.

the one goes. Smile

thus far, in this javascript 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);
});

});

i noted ''in the home pages'' and ''in the sub-forum''

and the second javascript code

$(function(){

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

});

i noted ''in the sub-forums''
and i have column stats in all pages Smile)

but the header last post remains at category ''ΤΕΧΝΟΛΟΓΙΚΑ ΕΚΠΑΙΔΕΥΤΙΚΑ ΙΔΡΥΜΑΤΑ / TECHNOLOGICAL INSTITUTES'' which is mult forum.

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

ankillien

ankillien
Administrator
Administrator
Ok, this code will remove it...

Code:
.topiclist .header dd.lastpost{display:none;}

medlsc

medlsc
Registered Member
Registered Member
ok , thx for all ankillien, you are the best Smile)

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

ankillien

ankillien
Administrator
Administrator
Glad I could help 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