We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
  • Pages:
  • 1
[ C ] bbcode
Topic Started: Aug 9 2010, 05:25 PM (496 Views)
johnnyoldiges
Member Avatar
Member
[ * ]
Board Address: My Board
Board Software: ZetaBoards
Description: i would like the bbcode to have this but i don't know how to make it a bbcode for zeta boards

[admin][/admin]

html replacment:
<div style="border-style: dotted; border-color: rgb(204, 204, 204); border-width: 1px 1px 1px 3px; background: rgb(225, 225, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<div style="border-style: dotted; border-color: rgb(204, 204, 204); border-width: 1px 1px 1px 3px; padding: 0pt 5px; background: rgb(66, 161, 222) red repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
<font color="#e8f3ff">
<b>
<em><span class="highlight">Administrator Comment<span></em>
</b>
</font>
</div>
<table border="0" width="100%">
<tbody>
<tr>
<td width="5%"> </td>
<td width="90%">
{TEXT}
</td>
<td width="5%">
<img alt="" src="http://img844.imageshack.us/img844/5963/admintag.gif">
</td>
</tr>
</tbody>
</table>
</div>
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Below the Board
Code:
 
<script type='text/javascript'>
/* <![CDATA[ */
if (location.href.indexOf('topic/') !==-1) {
(function() {
var adminbb = /\[admin\](.+?)\[\/admin\]/gi;
$('td.c_post').each(function() {
if (this.innerHTML.match(adminbb)) {
this.innerHTML = this.innerHTML.replace(adminbb,'<div style="border-style: dotted; border-color: rgb(204, 204, 204); border-width: 1px 1px 1px 3px; background: rgb(225, 225, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><div style="border-style: dotted; border-color: rgb(204, 204, 204); border-width: 1px 1px 1px 3px; padding: 0pt 5px; background: rgb(66, 161, 222) red repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><b><em><span class="highlight" style="color: #e8f3ff">Administrator Comment</span></em></b></div><table border="0" width="100%"><tbody><tr><td width="5%"></td><td width="90%">$1</td><td width="5%"><img alt="" src="http://img844.imageshack.us/img844/5963/admintag.gif" /></td></tr></tbody></table></div>');
}
});
})();
}
/* ]]> */
</script>
Offline Profile Goto Top
 
johnnyoldiges
Member Avatar
Member
[ * ]
it doesn't work
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
What about it isn't working? Is it not showing up at all, is there something wrong with way it's displayed? If it is a display problem, a screenshot would be very helpful.
Offline Profile Goto Top
 
johnnyoldiges
Member Avatar
Member
[ * ]
when i put it below the board then go and to make a post and it don't show up with the rest of the buttons, so then i try [admin][/admin] and that does not work ethier
screenshot:
Posted Image
Edited by johnnyoldiges, Aug 11 2010, 01:08 AM.
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
You didn't ask for it to appear among the other post buttons :P Can you post what the posts with [admin][/admin] look like with the code running?
Offline Profile Goto Top
 
johnnyoldiges
Member Avatar
Member
[ * ]
yeah on my old forum http://stargateprojects.involveboards.com/index.php it looked like this http://stargateprojects.involveboards.com/viewtopic.php?f=7&t=10
only without the words the words
what you type appear in the gray area
and could i have it to where it only shows the button to admins.
Edited by johnnyoldiges, Aug 13 2010, 02:28 PM.
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Are you saying that the HTML doesn't look the way you want it to (but the code technically works)?
And yes I can add that into the request.
Offline Profile Goto Top
 
johnnyoldiges
Member Avatar
Member
[ * ]
no like when i type in [admin][/admin] it won't show up
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Could you link me to a post that contains [admin][/admin] with the code running?
Offline Profile Goto Top
 
johnnyoldiges
Member Avatar
Member
[ * ]
yes this is a link to my old forum before zetaboards http://stargateprojects.involveboards.com/viewtopic.php?f=7&t=10
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
I mean to a post on the board you're using this code on (a ZetaBoard). Also, that link brings me to a notice saying the board has moved.
Offline Profile Goto Top
 
johnnyoldiges
Member Avatar
Member
[ * ]
oh. i linked you there because it won't run on my board.
i type in [admin][/admin] but it doesn't work
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
I know :P I need to see if it's a browser issue or perhaps something else because the code worked for me on your board in firebug.
Offline Profile Goto Top
 
johnnyoldiges
Member Avatar
Member
[ * ]
nevery mind it just won't show up in preview :P could you make the white spaces red pleasePosted Image
Edited by johnnyoldiges, Aug 15 2010, 11:43 AM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1