The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Issue about creating new style of widget

View previous topic View next topic Go down

Solved Issue about creating new style of widget

Post by Royal Bengal on August 2nd 2016, 11:38 am

Hello,

See this image below:

Can anyone tell me how to create this type of widget for Top posters. I want number count rather than a bar.
I think @Luffy or @APE knows it because i saw it in their forums
Thanks in advince


Last edited by Royal Bengal on August 2nd 2016, 9:35 pm; edited 1 time in total

Royal Bengal
Forumember

Male Posts : 492
Reputation : 4
Language : English
Location : Bangladesh

http://Avacs.sforum.biz

Back to top Go down

Solved Re: Issue about creating new style of widget

Post by APE on August 2nd 2016, 3:04 pm

yes set up your top posters widget and then place it where you want it

Now add this to your JavaScript

Name it "top posters widget post count"
In all pages.

Code:
//****** Widget post number********//
$(function(){
for (var i=0,t=$('table[title*="Posts - "]')
,j=t.length; i<j; i++) t[i].innerHTML =
'<tr><td>'+t[i].title.match(/^(\d+)\s/)[1]+'</
td></tr>';
});

Save.

It should work for all forums but not 100% sure thou




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Issue about creating new style of widget

Post by Royal Bengal on August 2nd 2016, 3:31 pm

How to set up top posters please@APE

Royal Bengal
Forumember

Male Posts : 492
Reputation : 4
Language : English
Location : Bangladesh

http://Avacs.sforum.biz

Back to top Go down

Solved Re: Issue about creating new style of widget

Post by APE on August 2nd 2016, 3:37 pm

ACP >> Modules Tab >> Portal & Widgets >> Forum widgets management >>
Fond the top posters widget in the blue boxes and drag them in to place on your widgets settings then save




APE
Manager
Manager

Male Posts : 8615
Reputation : 748
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Issue about creating new style of widget

Post by Royal Bengal on August 2nd 2016, 10:02 pm

Ok thanks

Royal Bengal
Forumember

Male Posts : 492
Reputation : 4
Language : English
Location : Bangladesh

http://Avacs.sforum.biz

Back to top Go down

Solved Re: Issue about creating new style of widget

Post by Luffy on August 2nd 2016, 10:31 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules






Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

View previous topic View next topic Back to top


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