|
|
Buddy's Online Module (BoxMod) Difficulty: Intermediate |
| Category: FPSB > Scripting | Author(s): Cobalt |

How To Make A "Buddy's Online" Module
[Using ONLY BoxMod!]
(note: on all thumbnails: CLICK TO ENLARGE!)
here is a screenshot of what my profile will look like before anything is changed:

First go to your boxmod code:
http://www.fpsbanana.com/members/edit/boxmod/YOUR_USER_ID
now scroll down to where you see:
<module name="MEMBERS.BUDDY_BOX">...etc
just below that, we see:
<param name="title">...etc. you can change the buddy image if you want, but for now lets just change the text Buddies to Buddies Online
now a few more parameters down you see this:
<param name="perpage">20</param>
now, because it is only going to show the buddies online, we should change this to the highest number possible boxmod will allow, 50, otherwize it will simply show Page Numbers leading to blank pages.
now onto the main part. below that you should see:
<param name="top_message"><![CDATA[ <style type="text/css">.bbox {display:inline;white-space:nowrap;margin:2px} .b_on,.b_off { cursor: help; } .b_on { border-left: 7px solid #6EE16C } .b_off { border-left: 7px solid #8D8D8D; filter: alpha(Opacity=20); -moz-opacity:0.2 }</style> ]]></param>
now lets find .b_off and delete everything inside the { } and replace it with display:none;. your code should now look like this:
<param name="top_message"><![CDATA[ <style type="text/css">.bbox {display:inline;white-space:nowrap;margin:2px} .b_on,.b_off { cursor: help; } .b_on { border-left: 7px solid #6EE16C } .b_off { display:none; }</style> ]]></param>
and just in case, here is what your entire module code for MEMBERS.BUDDY_BOX should look like:
<module name="MEMBERS.BUDDY_BOX">
<param name="title"><![CDATA[ <img src="http://image.hazardstrip.com/ico/blist.gif"> ]]> Buddies Online</param>
<param name="title_class">ts tlarge coltitle_dark</param>
<param name="module_class">ts bump hazardrow</param>
<param name="perpage">50</param>
<param name="top_message"><![CDATA[ <style type="text/css">.bbox {display:inline;white-space:nowrap;margin:2px} .b_on,.b_off { cursor: help; } .b_on { border-left: 7px solid #6EE16C } .b_off { display:none; }</style> ]]></param>
</module>
thats it! your profile will now only show buddy's that are online!
screenshot:
 |
| Added: 1 year ago | Tags: buddy, online, ripe, boxmod, cobalt, script, css, style, code |
 Add Feedback Provide constructive feedback. What is "constructive"?You cannot post yet!Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login. |
 You cannot assess yet!Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login. This Tutorial in a nutshell... No stamps recordedYou cannot stamp yet!Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login. Ranked 1147th ( 1) with 1,458 points. 6 points behind .[+] DonateWant more? Find related tuts. |