Current time: 11-22-2024, 07:28 PM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[3.147.86.143], connected from
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUT] Topic Stats!
03-27-2010, 03:35 AM
Post: #1
[TUT] Topic Stats!
Hi

i have saw this code in a website and myself comlpleted it like this and i'm granting it to you.

Title:
TopicStats

Short Description:
Complete Statistics of every threads

Sample:

[Image: 1260834679.jpg]


Procedure:

1- First, Download “Users Browsing Thread” , install it and perform activation steps.

2- Then, go to this path:
Admin cp > Templates & Style > Templates > Your Templates > Show Thread Templates > showthread

find this variable:
    {$usersbrowsing}
replace it with these codes. (Note: before replacing, make a copy of them in note pad.)
<br />

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-top-width:1;">
    <tr>
        <td class="trow1" width="100%"><span class="smalltext"><strong>{$forum['name']}</strong> &nbsp; {$forum['description']}</span></td>
    </tr>
    <tr>
        <td class="trow2">
            <table border="0" width="100%">
                <tr class="smalltext topstats">
                    <td>
<div><a href="printthread.php?tid={$tid}"><img src="{$mybb->settings['bburl']}/images/printable.gif" class="topstateicon" border="0"> {$lang->view_printable}</a></div>
<div><a href="sendthread.php?tid={$tid}"><img src="{$mybb->settings['bburl']}/images/send.gif" class="topstateicon" border="0"> {$lang->send_thread}</a></div>
                    </td>
                    <td>
<div><a href="showthread.php?tid={$tid}&page=last"><img src="{$mybb->settings['bburl']}/images/mini_last.gif" class="topstateicon" border="0">viewing the last post of this topic</a></div>
<div><a href="./ratethread.php?tid={$thread['tid']}&amp;rating=5&amp;my_post_key={$mybb->post_code}" onClick = 'var parameterString = this.href.replace(/.*\?(.*)/, "$1");return Rating.add_rating(parameterString);return false;'><img src="{$mybb->settings['bburl']}/images/mini_add.gif" class="topstateicon" border="0">giving the highest rate to this topic</a></div>
                    </td>
                    <td>
<div><a href="usercp2.php?action={$add_remove_subscription}subscription&amp;tid={$tid}"><img src="{$mybb->settings['bburl']}/images/{$add_remove_subscription}subscription.gif" class="topstateicon" border="0"> {$add_remove_subscription_text}</a></div>
<div>
<div style="padding-top:3px; border-bottom: 1px #2A4956 solid; float: left;">
<a rel="nofollow" style="text-decoration:none;" href="http://www.mister-wong.com/" onclick="window.open('http://www.mister-wong.com/index.php?action=addurl&amp;bm_url='+encodeURIComponent(location.href)+'&amp;bm_notice=&amp;bm_description='+encodeURIComponent(document.title)+'&amp;bm_tags=');return false;" title="Add to: Mr. Wong"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/wong.gif" alt="افزودن به: Mr. Wong" name="wong" border="0" id="wong"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.linkarena.com/" onclick="window.open('http://linkarena.com/bookmarks/addlink/?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;desc=&amp;tags=');return false;" title="Add to: Linkarena"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/linkarena.gif" alt="افزودن به: Linkarena" name="Linkarena" border="0" id="Linkarena"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://digg.com/" onclick="window.open('http://digg.com/submit?phase=2&amp;url='+encodeURIComponent(location.href)+'&amp;bodytext=&amp;tags=&amp;title='+encodeURIComponent(document.title));return false;" title="Add to: Digg"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/digg.gif" alt="افزودن به: Digg" name="Digg" border="0" id="Digg"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://del.icio.us/" onclick="window.open('http://del.icio.us/post?v=2&amp;url='+encodeURIComponent(location.href)+'&amp;notes=&amp;tags=&amp;title='+encodeURIComponent(document.title));return false;" title="Add to: Del.icio.us"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/del.gif" alt="افزودن به: Del.icio.us" name="Delicious" border="0" id="Delicious"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.facebook.com/" onclick="window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURIComponent(document.title));return false;" title="Add to: Facebook"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/facebook.gif" alt="افزودن به: Facebook" name="Facebook" border="0" id="Facebook"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.furl.net/" onclick="window.open('http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(location.href)+'&amp;keywords=&amp;t='+encodeURIComponent(document.title));return false;" title="Add to: Furl"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/furl.gif" alt="افزودن به: Furl" name="Furl" border="0" id="Furl"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.yahoo.com/" onclick="window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&amp;d=&amp;tag=&amp;u='+encodeURIComponent(location.href));return false;" title="Add to: Yahoo"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/yahoo.gif" alt="افزودن به: Yahoo" name="Yahoo" border="0" id="Yahoo"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.spurl.net/" onclick="window.open('http://www.spurl.net/spurl.php?v=3&amp;tags=&amp;title='+encodeURIComponent(document.title)+'&amp;url='+encodeURIComponent(document.location.href));return false;" title="Add to: Spurl"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/spurl.gif" alt="افزودن به: Spurl" name="Spurl" border="0" id="Spurl"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.google.com/" onclick="window.open('http://www.google.com/bookmarks/mark?op=add&amp;hl=fa&amp;bkmk='+encodeURIComponent(location.href)+'&amp;annotation=&amp;labels=&amp;title='+encodeURIComponent(document.title));return false;" title="Add to: Google"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/google.gif" alt="افزودن به: Google" name="Google" border="0" id="Google"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.blinklist.com/" onclick="window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Tag=&amp;Url='+encodeURIComponent(location.href)+'&amp;Title='+encodeURIComponent(document.title));return false;" title="Add to: Blinklist"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/blinklist.gif" alt="افزودن به: Blinklist" name="Blinklist" border="0" id="Blinklist"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://blogmarks.net/" onclick="window.open('http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url='+encodeURIComponent(location.href)+'&amp;content=&amp;public-tags=&amp;title='+encodeURIComponent(document.title));return false;" title="Add to: Blogmarks"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/blogmarks.gif" alt="افزودن به: Blogmarks" name="Blogmarks" border="0" id="Blogmarks"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.diigo.com/" onclick="window.open('http://www.diigo.com/post?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)+'&amp;tag=&amp;comments='); return false;" title="Add to: Diigo"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/diigo.gif" alt="افزودن به: Diigo" name="Diigo" border="0" id="Diigo"> </a>
        <a rel="nofollow" style="text-decoration:none;" href="http://www.social-bookmark-script.com/social.bookmarking.htm" target="_Blank" title="Information"> <img style="padding-bottom:1px;" src="http://www.social-bookmark-script.com/img/bookmarks/what.gif" alt="Information" name="Information" border="0" id="Information"> </a>
</div>
</div>
                    </td>
                </tr>
            </table>
<table width="100%" style="line-height:20px">
<tr class="smalltext">

<td  width="70%"><fieldset style="line-height:21px"><legend>User browsing this thread:</legend> {$usersbrowsing}</fieldset> </td>
<td align="center" width="10%" style="line-height:31px"><fieldset><legend>Starter</legend>  <a href="member.php?action=profile&uid={$thread['uid']}">{$thread['username']}</a></fieldset></td>
<td align="center" width="10%" style="line-height:31px"><fieldset><legend>Posts</legend> {$postcount}</fieldset></td>
<td align="center" width="10%" style="line-height:31px"><fieldset><legend>Views</legend> {$thread['views']}</fieldset></td>
</tr>            </table>
        </td>
    </tr>
</table>          
<div style=\"text-align: left; font-size: 10px;\"> TopicStats by <a href=\"http://www.MyBBIran.com\" target=\"_blank\">MyBBIran.com</a></div>

<br />

3- Upload these images in images folder at your host.


.zip  images.zip (Size: 6.48 KB / Downloads: 2)
Downloaded by :Nadjia, bananoke

This package is formed by MyBBIran.com; other forms are available on the net.
For removing "TopicStats by MyBBIran.com", it is sufficient to clean this line:
<div style=\"text-align: left; font-size: 10px;\"> TopicStats by <a href=\"http://www.MyBBIran.com\" target=\"_blank\">MyBBIran.com</a></div>

Thanks

Resourece : MyBBIran

Kevin's signature THE BIGGEST COLLECTION OF PLUGINS THEMES AND MYCODES FOR MYBB
Visit this user's website Find all posts by this user
Quote this message in a reply
04-23-2010, 01:58 PM
Post: #2
RE: [TUT] Topic Stats!
where this show?
in the footer?

Bane95's signature http://www.yuforum.org
Visit this user's website Find all posts by this user
Quote this message in a reply
06-06-2010, 09:29 AM
Post: #3
RE: [TUT] Topic Stats!
thx a lot.
it's useful.

momo's signature
Visit this user's website Find all posts by this user
Quote this message in a reply
07-19-2010, 01:29 PM
Post: #4
RE: [TUT] Topic Stats!
Really Niice Smile
Find all posts by this user
Quote this message in a reply
1 member(s) viewed this thread in the last 365 days :
Yeke
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com