1
jansen
Show Online Member count in <title>
  • 2004/4/10 17:50

  • jansen

  • Just popping in

  • Posts: 71

  • Since: 2004/3/9 1


I've been looking around the forum but I could not find a solution to this problem.
Many are trying to put the total online members on a different place on their webpage.
Is there a posibility to show the total online members in lets say the tag? I know just pasting <{$block.online_members}> won't do the job. Maybe with some little modification I can use a tag like this one?<br><br>Help Please </div> <div style="position: relative; bottom:0px; right: 15px; padding-top: 15px; text-align: right; clear: both"> <a class="btn btn-success btn-xs" href="#top" title="Top"><i class="far fa-arrow-alt-circle-up"></i></a> </div> </div> <hr> </div> </div> <style> .kapla { background: #f6f7fb; padding: 10px; border-radius: 3px; border: 1px solid #e3ebf6; } </style> <div class="newbb-viewtopic-footer"> <div class="row mb10"> <div class="col-sm-6 col-md-6 hidden-xs"> <a href="https://xoops.org/modules/newbb/reply.php?topic_id=18674" title="Reply" class="btn btn-sm btn-primary">Reply</a> <a href="https://xoops.org/user.php" title="Register" class="btn btn-sm btn-success">Register</a> <a href="https://xoops.org/modules/newbb/polls.php?op=add&topic_id=18674" title="Add Poll" class="btn btn-sm btn-info">Add Poll</a> </div> </div> <div class="text-right generic-pagination"> </div> </div> <!-- .newbb-viewtopic-footer --> </div> <!-- .newbb-viewforum --> <!-- End content module --> </div> </div> <div class="col-xl-3 col-lg-12 col-md-12"> <!-- Start right blocks loop --> <div class="card"> <div class="card-header"> <h3 class="card-title">Login</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <div class="panel panel-default"> <form action="https://xoops.org/user.php" method="post" role="form"> <div class="panel-body"> <form class="form-horizontal" role="form"> <div class="form-group"> <label for="inputEmail3" class="col-sm-12 control-label"> Username</label> <div class="col-sm-9"> <input class="form-control login-block-form" style="margin-bottom: 5px;" type="text" name="uname" placeholder="Your Username"> </div> </div> <div class="form-group"> <label for="inputPassword3" class="col-sm-12 control-label"> Password</label> <div class="col-sm-9"> <input class="form-control login-block-form" type="password" name="pass" placeholder="Your Password"> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <div class="checkbox"> <label> <input type="checkbox" name="rememberme" value="On" class="formButton"> Remember me </label> </div> </div> </div> <input type="hidden" name="xoops_redirect" value="/modules/newbb/viewtopic.php?topic_id=18674"> <input type="hidden" name="op" value="login"> <div class="form-group last"> <div class="col-sm-offset-3 col-sm-9"> <input type="submit" class="btn btn-success btn-sm" value="User Login"> <button type="reset" class="btn btn-default btn-sm"> Reset </button> </div> </div> </form> </div> </form> <div class="panel-footer" style="text-align: center"> <a href="https://xoops.org/register.php" title="Register now!">Register now!</a>  |  <a href="https://xoops.org/user.php#lost" title="Lost Password?">Lost Password?</a> </div> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Search</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <form role="search" action="https://xoops.org/search.php" method="get"> <div class="input-group"> <input class="form-control" type="text" name="query" placeholder="Search here..."> <input type="hidden" name="action" value="results"> <span class="input-group-btn"> <button class="btn btn-primary" type="submit"> <span class="fas fa-search"></span> </button> </span> </div> </form> <p class="text-right"> <a href="https://xoops.org/search.php" title="Advanced Search"> Advanced Search </a> </p> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Recent Posts</h3> </div> <div class="card-body p-0"> <div class="job-box"> <div class="inbox-message"> <ul> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367333#forumpost367333"><i class="fas fa-angle-right"></i> XOOPS MyMenus 1.54.0 Beta 10</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/18 11:08 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367332#forumpost367332"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/18 11:06 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367330#forumpost367330"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/16 12:32 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367329#forumpost367329"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 18:06 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367328#forumpost367328"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 5:33 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367327#forumpost367327"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 5:29 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367326#forumpost367326"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 4:39 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367325#forumpost367325"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 3:50 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=133616" title="liomj">liomj</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367324#forumpost367324"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 3:31 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> <li> <div class="message-body1"> <div class="message-body-heading1"> <h5><a href="https://xoops.org/modules/newbb/viewtopic.php?post_id=367323#forumpost367323"><i class="fas fa-angle-right"></i> Re: XOOPS MyMenus 1.54.0 Beta 7</a></h5> </div> <div class="olc"><i class="far fa-calendar-alt"></i> 11/15 1:48 <i class="fas fa-user"></i> <a href="https://xoops.org/userinfo.php?uid=19563" title="Mamba">Mamba</a> </div> </div> </li> </ul> </div> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Who's Online</h3> </div> <div class="card-body p-0"> <div class="card-body pt-3 pb-3"> <p><strong>273</strong> user(s) are online (<strong>167</strong> user(s) are browsing <strong>Support Forums</strong>)</p> <hr> <p><i class="fas fa-user-plus"></i> Members: 0</p> <hr> <p><i class="fas fa-street-view"></i> Guests: 273</p> <hr> <p><i class="fas fa-users"></i> </p> <a class="btn btn-sm btn-info" href="javascript:openWithSelfMain('https://xoops.org/misc.php?action=showpopups&type=online','Online',420,350);" title="more...">more...</a> </div> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Donat-O-Meter</h3> </div> <div class="card-body p-0"> <table class="table table-bordered"> <tr> <td style="width: 100%; font-weight: bold; text-decoration: underline;" colspan="2">Stats</td> </tr> <tr> <td>Goal:</td> <td>$100.00</td> </tr> <tr> <td>Due Date:</td> <td>Nov 30</td> </tr> <tr> <td>Gross Amount:</td> <td>$0.00</td> </tr> <tr> <td>Net Balance:</td> <td>$0.00</td> </tr> <tr> <td style="font-weight: bold;">Left to go:</td> <td style="font-weight: bold;"><span style="color: #CC0000;">$100.00</span></td> </tr> <tr> <td style="width: 100%; text-align: center;" colspan="2"><a href="https://xoops.org/modules/xdonations/index.php"> <img src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" style="border-width; 0px;" alt="Make donations with PayPal!" width=110 height=23 /> </a></td> </tr> </table> </div> </div> <div class="card"> <div class="card-header"> <h3 class="card-title">Latest GitHub Commits</h3> </div> <div class="card-body p-0"> <div id="demo"> <div class="job-box"> <div class="inbox-message"> <ul> <li v-for="record in commits"> <div class="message-body1"> <div class="message-body-heading1"> <h5><a><i class="fas fa-angle-right"></i></a> <a :href="record.html_url" target="_blank" class="commit">{{ record.sha.slice(0, 7) }} - <span class="message">{{ record.commit.message | truncate }}</span></a></h5> </div> <div class="olc"><i class="fas fa-user"></i> <a :href="record.author.html_url" target="_blank">{{ record.commit.author.name }}</a> <i class="fas fa-folder-open"></i> {{ record.commit.author.date | formatDate }}</div> </div> </li> </ul> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.4/vue.min.js"></script> <script> var apiURL = 'https://api.github.com/repos/XOOPS/XoopsCore25/commits?per_page=3&sha=' /** * Actual demo */ var demo = new Vue({ el: '#demo', data: { branches: ['master'], currentBranch: 'master', commits: null }, created: function () { this.fetchData() }, watch: { currentBranch: 'fetchData' }, filters: { truncate: function (v) { var newline = v.indexOf('n') return newline > 0 ? v.slice(0, newline) : v }, formatDate: function (v) { return v.replace(/T|Z/g, ' ') } }, methods: { fetchData: function () { var xhr = new XMLHttpRequest() var self = this xhr.open('GET', apiURL + self.currentBranch) xhr.onload = function () { self.commits = JSON.parse(xhr.responseText) console.log(self.commits[0].html_url) } xhr.send() } } }) </script> </div> </div> <!-- End right blocks loop --> </div> </div> </div> </section> <!--Section--> <!--Footer Section--> <footer class="footer"> <div class="container bottom_border"> <div class="row"> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">About us</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/wfchannel/">About Xoops</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=24">Why XOOPS?</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=21">Board of Advisors</a></li> <li><a href="https://xoops.org/modules/wgtimelines/index.php?op=list&tl_id=1">Xoops Innovators</a></li> <li><a href="https://xoops.org/modules/wgtimelines/index.php?op=list&tl_id=2">XOOPSers</a></li> <li><a href="https://xoops.org/modules/wfchannel/index.php?cid=6">XOOPS Etiquette</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Learn</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/news/article.php?storyid=4534">Books</a></li> <li><a href="https://xoops.org/modules/smartfaq/">FAQ</a></li> <li><a href="https://www.gitbook.com/@xoops/">Core Guides</a></li> <li><a href="https://www.gitbook.com/@xoops/">Module Guides</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Use</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://github.com/XOOPS/XoopsCore25/releases">Download Xoops</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://xoops.org/modules/newbb/">Support Forums</a></li> <li><a href="https://xoops.org/modules/xoopspartners/">International Support</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Develop GitHub</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://github.com/XOOPS">Core @ GitHub</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://sourceforge.net/projects/xoops/">Legacy XOOPS @ SourceForge </a></li> <li><a href="https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md">Coding Standards PSR-2</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Contribute</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://xoops.org/modules/xdonations/">$$$ Donations</a></li> <li><a href="https://github.com/orgs/XOOPS/people">Join Team</a></li> <li><a href="https://github.com/XOOPS">Core @ GitHub</a></li> <li><a href="https://github.com/XoopsModules25x">Module @ GitHub</a></li> <li><a href="https://github.com/Xoopsthemes">Themes@ GitHub</a></li> <li><a href="https://github.com/XoopsLanguages">Languages @ GitHub</a></li> <li><a href="https://github.com/XOOPS/XoopsCore25/issues">Report Core Bug</a></li> </ul> <!--footer_ul_amrc ends here--> </div> <div class=" col-sm-4 col-md col-6 col"> <h5 class="headin5_amrc col_white_amrc pt2">Connect</h5> <!--headin5_amrc--> <ul class="footer_ul_amrc"> <li><a href="https://www.facebook.com/groups/xoops/">Facebook</a></li> <li><a href="http://www.linkedin.com/groups?gid=43552">LinkedIn</a></li> <li><a href="http://www.flickr.com/photos/tags/xoops/">Flickr</a></li> <li><a href="https://www.youtube.com/results?search_query=xoops">YouTube</a></li> <li><a href="https://www.openhub.net/p/xoops">Ohloh</a></li> <li><a href="https://twitter.com/xoopsgithub">Twitter</a></li> </ul> <!--footer_ul_amrc ends here--> </div> </div> </div> <div class="container"> <!--foote_bottom_ul_amrc ends here--> <br> <p class="text-center"><a rel="nofollow" href="https://xoops.org/modules/wfchannel/index.php?pagenum=3">Terms of Use</a> | <a rel="nofollow" href="https://xoops.org/modules/wfchannel/index.php?pagenum=4">Privacy Policy</a> | Hosted by <a rel="nofollow" href="http://www.arvixe.com/xoops_hosting?utm_campaign=xoops&utm_medium=banner&utm_source=xoops.org" title="Hosted by Arvixe">Arvixe Hosting</a> | <a rel="nofollow" href="https://xoops.org/backend.php" title="RSS2 Feed"><img src="https://xoops.org/uploads/rss.gif" alt="RSS 2.0 Button" /></a> <script type="module"> jQuery(document).ready(function () { jQuery("ul.sf-menu").superfish(); pathClass: "current" }); </script></p> </div> <center><a href="https://erenyumak.com/" target="_blank">Design: B.Heyula</a></center> </footer> <a href="#top" id="back-to-top" style="display: inline;"><i class="fa fa-long-arrow-up"></i></a> <!--Footer Section--> <!-- JS --> <script src="https://xoops.org/themes/xoops2020/js/jquery-3.5.1.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/bootstrap.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/bootstrap.bundle.min.js"></script> <script src="https://xoops.org/themes/xoops2020/js/newapplication.js" defer></script> <!-- JS --> </body> </html>