Jump to content
vBWarez - Rest In Peace

Add a Commands list button to vBShout 6x for vB5.1.x

Recommended Posts

I am always forgetting the command line commands and annoyed with users always asking, so I make this button for help.
Sorry it will not read list from SQL database, but not too difficult to add/remove from list manually.

Simply hover pointer over questionmark and box appears with command list.

This defines colour and shape of popup box and the CLASS can be used elsewhere.
This uses [COLOR="#000000"]black[/COLOR] text on [COLOR="#FFFF00"]yellow background[/COLOR] with [COLOR="#DAA520"]dark yellow[/COLOR] border.

In css_additional.css add this code anywhere-


/* Start Popup Tooltips */
<style type="text/css">
span.dropt {border-bottom: thin dotted; background: #[COLOR="#FFFF00"]cccc00[/COLOR];}
span.dropt:hover {text-decoration: none; background: #[COLOR="#FFFF00"]cccc00[/COLOR]; color:#[COLOR="#000000"]000000[/COLOR]; z-index: 6; }
span.dropt span {position: absolute; left: -9999px;
margin: 20px 0 0 0px; padding: 3px 3px 3px 3px;
border-style:solid; border-color:#[COLOR="#DAA520"]666600[/COLOR]; border-width:3px; z-index: 6;}
span.dropt:hover span {left: 2%; background: #[COLOR="#FFFF00"]cccc00[/COLOR];}
span.dropt span {position: absolute; left: -9999px;
margin: 4px 0 0 0px; padding: 3px 3px 3px 3px;
border-style:solid; border-color:#[COLOR="#DAA520"]666600[/COLOR]; border-width:3px;}
span.dropt:hover span {margin: 20px 0 0 170px; background: #[COLOR="#FFFF00"]cccc00[/COLOR]; z-index:6;}
/* End Popup Tooltips */

The CSS popup box allows for HTML code and even images (which most CSS pop ups do not).

Locate this line of code around line 90 in dbtech_vbshout_editor.

<vb:if condition="!($instance['options']['editors'] & 1) AND !($user['dbtech_vbshout_settings'] & 1)">

Immediately after it add this code-
Here is where the [COLOR="#00FFFF"]button image[/COLOR] is added to the vBShout buttons and the [COLOR="#DDA0DD"]list of commands[/COLOR] is created.
Use the [COLOR="#00FF00"]image HEIGHT and WIDTH[/COLOR] to match your themes settings. Default is 32x32.


<span class="dropt" title="">
<[COLOR="#00FFFF"]img src="/images/questionmark.png"[/COLOR] [COLOR="#00FF00"]width="32" height="32"[/COLOR] border="0" alt="Help" />
<span style="width:400px;">
<font size = "-2">
[COLOR="#DDA0DD"]<u>/pm Username; Text</u>     Sends a PM to Username, saying Text<br />
<u>/me Text</u>     Shows *Username Text*<br />
<u>/ignore Username</u>     Ignores a specified user<br />
<u>/unignore Username</u>     Removes ignore from a specified user<br />
<u>/invite username</u>     Invites a user to the chat room you are currently viewing<br /><br />
[COLOR="#DDA0DD"]<u>/prune</u>     Removes all shouts in the Shoutbox<br />
<u>/editsticky</u>     Allows you to edit the Sticky Note<br />
<u>/removesticky</u>     Deletes the Sticky Note<br />
<u>/setsticky Text</u>     Sets the Sticky Note to Text<br />
<u>/ban Username</u>     Bans a specified user<br />
<u>/unban Username</u>     Unbans a specified user<br />


Use this image or find your own.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...