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.

Most Online,Newest Member,Total Members ,Total Posts Like This

View previous topic View next topic Go down

Solved Most Online,Newest Member,Total Members ,Total Posts Like This

Post by MasterSly on December 18th 2012, 12:03 pm

How CAN I add the Most Online,Newest Member,Total Members ,Total Posts Like This?

I use:phpBB2

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by akbarmaulana on December 20th 2012, 1:09 pm

i want to know about this too Very Happy
but my forum is punbb

akbarmaulana
Forumember

Posts : 140
Reputation : 1
Language : Indonesian

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by !_NICK_! on December 20th 2012, 1:53 pm

Can I have the forum url of that screenshot?

!_NICK_!
Active Poster

Male Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by MasterSly on December 20th 2012, 7:46 pm

yes Smile
Code:
http://elfsworld.2morpg.com/

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by MasterSly on December 22nd 2012, 1:39 pm

Bump

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by MasterSly on December 25th 2012, 9:31 pm

Bump

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by KingOfSpades on December 25th 2012, 9:48 pm

ACP > Modules > Portal and Widget > forum widget management > Display forumwidget = yes > type 180 in the box below that > scroll down > select and drag a widget to where you want it to be > save > done.

KingOfSpades
Forumember

Male Posts : 215
Reputation : 8
Language : EN

http://roleplaymachugas.forumotion.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by SLGray on December 26th 2012, 1:27 am

KingOfSpades:
If you look at the first post screenshot, you should see that it is not widgets.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36659
Reputation : 2444
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by KingOfSpades on December 26th 2012, 1:28 am

slg wrote:KingOfSpades:
If you look at the first post screenshot, you should see that it is not widgets.
If i`m not mistaken, that`s a WhoAmungUs widget. I have the same thing on my blog.

KingOfSpades
Forumember

Male Posts : 215
Reputation : 8
Language : EN

http://roleplaymachugas.forumotion.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by nextlevelgaming on December 26th 2012, 1:47 am

Though that is not a WhoAmungUs widget nor is this a blog. Those are parsed through the php placeholders already on your page.

since your profile says phpbb2 these are the placeholders

{TOTAL_USERS}
{NEWEST_USER}
{TOTAL_POSTS}
{TOTAL_TOPICS}


and these can be found in the index_body

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by MasterSly on December 26th 2012, 8:20 am

nextlevelgaming I know it must look for the following in index_body
{TOTAL_USERS}
{NEWEST_USER}
{TOTAL_POSTS}
{TOTAL_TOPICS}

But I don`t know how to do them like this

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by Kaizer Lee on December 26th 2012, 8:51 am

Put those four in a table code and make sure the border's 0. Also, in terms of editing, make those in the center format and then use th instead of td so it'll be bigger.

Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by nextlevelgaming on December 26th 2012, 12:37 pm

Oh OK OP that can be done with JavaScript. Ill get you a code today

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by Kaizer Lee on December 26th 2012, 5:17 pm

@nextlevelgaming wrote:Oh OK OP that can be done with JavaScript. Ill get you a code today

Oh, can you share them with us too? I thought it was just a table code since when I put a table around the one with the new topic, locked, no new topic etc it worked and put everything in the table and just rearranged them. If there's another way, I also want to find out and thanks for sharing in advance Smile.

Kaizer Lee
Active Poster

Female Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines

http://www.medievalchaos.net/forum

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by nextlevelgaming on December 26th 2012, 6:36 pm

Because the OP is not just trying to rearrange these, they are trying to get the box around the numbers and new user. So you have to use javascript. As much as I hate tables since they are such an ignorant way of coding and so outdated I am probably updating the scripting and so forth.


UPDATE::

CSS add this to your Stylesheet.


Code:
.boxed{
border: 1px solid white;
padding: 3px 7px;
background: black;
color: white;
box-shadow: inset 0 0 5px blue;
border-radius: 2px;
}

.nlgcode{
padding:12px 0px;
text-align:center;}

.newspan{
padding:0 10px;
}

Then go and add this to your javascript management::

Code:
$(document).ready(function(){
var a = $('.new1 strong').text();
var b = $('.new2 strong').text();
var c = $('.new3 strong').text();
var d = $('.new4 strong').text();
$('.new1').html('<span class="boxed">'+a + '</span>  Users Online');
$('.new2').html('<span class="boxed">'+ b +'</span> Total Users');
$('.new3').html('<span class="boxed">'+ c + '</span> Recent Member');
$('.new4').html('<span class="boxed">'+ d + '</span> Total Messages');
});


Now to get it to work, go to ACP>DISPLAY>TEMPLATES>GENERAL>INDEX_BODY

FIND THIS::

Code:
<tr>
      <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
      <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
      {TOTAL_USERS}<br />
      {NEWEST_USER}</span></td>
   </tr>
   <tr>
      <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
      {RECORD_USERS}<br />
      <br />
      {LOGGED_IN_USER_LIST}</span></td>
   </tr>
   {L_CONNECTED_MEMBERS}
   {L_WHOSBIRTHDAY_TODAY}
   {L_WHOSBIRTHDAY_WEEK}
REPLACE WITH THIS::

Code:
<tr>
          <td class="gensmall nlgcode">
            <span class="new1 newspan">{TOTAL_USERS_ONLINE}</span>
          <span class="new2 newspan">{TOTAL_USERS}</span>
          <span class="new3 newspan">{NEWEST_USER}</span>
          <span class="new4 newspan">{TOTAL_POSTS}</span>
          </td>
          </tr>

And that should be it my friend. In the javascript you can edit the parts that are in red below


var a = $('.new1 strong').text();
var b = $('.new2 strong').text();
var c = $('.new3 strong').text();
var d = $('.new4 strong').text();
$('.new1').html('<span class="boxed">'+a + '</span>  Users Online');
$('.new2').html('<span class="boxed">'+ b +'</span> Total Users');
$('.new3').html('<span class="boxed">'+ c + '</span> Recent Member');
$('.new4').html('<span class="boxed">'+ d + '</span> Total Messages');


Sorry for the delay on the code, I've been very busy today thanks everyone!


nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by mmägi on December 27th 2012, 2:43 pm

can some 1 make it the temple part for punBB to?

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by nextlevelgaming on December 27th 2012, 9:21 pm

mmagi it is basically the same.

Go to the Templates index_body and find {TOTAL_USERS}

Once you have found that replace the surrounding with the code I post above, then add the javascript and add the css.

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by MasterSly on December 28th 2012, 5:25 pm

nextlevelgaming i change and i want for punbb Smile

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by mmägi on December 28th 2012, 6:00 pm

well it worked now:D but how to make the all thing to center?

mmägi
Forumember

Male Posts : 402
Reputation : 3
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by The Lone Ranger on December 28th 2012, 7:06 pm

Try adding <center></center> tags

The Lone Ranger
Forumember

Male Posts : 438
Reputation : 37
Language : English
Location : Scotland

http://www.tenerifesforumoffun.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by Proxy*64* on December 28th 2012, 7:57 pm

erikhacker wrote:nextlevelgaming i change and i want for punbb Smile

it is the same Smile

Proxy*64*
Forumember

Male Posts : 113
Reputation : 6
Language : English,Greek|HTML/CSS/jQuery

http://fataola.forumgreek.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by levy on December 28th 2012, 8:07 pm

Theme is made by me and the install of the addon is on my forum .

http://icefrog.forumr.net/t18-phpbb3-statistics-ipb#41

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by nextlevelgaming on December 28th 2012, 9:42 pm

Try not using center tags since they are deprecated and you can use CSS to create centers. I will look at this for you RicYiu

Nevermind RicYiu I will not, this is not my script so I will not provide support on this. My script does the same thing just as easy and code looks cleaner. If people are having a problem with this please let me know. My script will not work with phpbb3 nor invision. Only phpbb2 and punbb since that is what I am a geek of.

Editing the templates is not hard just follow what I say and do as follows and everything should be a okay. I know this works since I made this on a testing site. IF it is not working for you please let me know , because you may have another script that is interfering with this.

One more thing sorry for the constant edits lol. You can edit the main js code to do more than just what it does...like add spans around the outer text so you can style it even more.

('<span class="boxer">'+a+'</span> Users Online');
('<span class="boxer">'+a+'</span> <span class="boxer2">Users</span> Online');

something like that if you wanted.

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by MasterSly on December 28th 2012, 10:44 pm

Locked Smile

MasterSly
Forumember

Male Posts : 114
Reputation : 5

http://greekfmsupport.forumgreek.com/

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by The Lone Ranger on December 28th 2012, 10:49 pm

You need to edit your first post and click on the solved or complete icon.

The Lone Ranger
Forumember

Male Posts : 438
Reputation : 37
Language : English
Location : Scotland

http://www.tenerifesforumoffun.com

Back to top Go down

Solved Re: Most Online,Newest Member,Total Members ,Total Posts Like This

Post by Base on December 28th 2012, 11:02 pm

Topic Solved & Locked

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

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