Customizing SMF > SMF Coding Discussion
"Home is online" function -need help quick-
♦PulsiveForums♦:
okay so the only information i have about it is:
To use this on your own website, simply copy and paste this piece of HTML onto your page:
--- Code: ---<script src='http://alphazone4.com/api/status.js'></script>
<div id='home_status'></div>
--- End code ---
If you know what you’re doing, you can instead choose to include the status.js line in your website footer, to increase your website’s rendering time slightly.
Note: your website needs to be using jQuery for this to work. Most websites like WordPress sites already have this installed. If not, use this line just before the status.js one:
--- Code: ---<script src='http://code.jquery.com/jquery-latest.min.js'></script>
--- End code ---
any idea where to put one of those /those codes to install te "Home is: {green dot} online function? i really need this added to my site :L
♦PulsiveForums♦:
will people stop viewing it if your not gonna assist -.-
Dzonny:
Hello there.
You should add your code in Themes/your_theme/Index.template.php file, if you need it to be included at every page load, or in some other template file depends of where you want that output to be shown.
Let us know if you need any further help with this.
Regards.
♦PulsiveForums♦:
i want it to be on the main menu bar that says:
"July 23, 2012, 04:23:17 AM Hello Lava333 | Show unread posts | Show new replies"
on every page
theres a'lot of space between the RSS icon and the "Hello Lava333"
Dzonny:
You'll have to attach Index.template.php file if you would like from us to help more, and a link to your forum. :)
Navigation
[0] Message Index
[#] Next page
Go to full version