Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Add New BB Code Tags v.1.5
Topic Started: Jan 29 2008, 05:08 AM (6,042 Views)
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Thanks carastir.

So, Smokey does it work?

I don't think the buttons are working right now, which I will have to try and fix a bit later, but the actual tags will work.
Edited by Viral, Jan 31 2008, 12:20 PM.
Offline Profile Quote Post Goto Top
 
..SMOKEY..
Member
[ *  * ]
yup but it totally f'd me when everything got erased...it was probably my own stupidity, but in case it wasn't i figured i would mention it, so it doesn't happen to anyone else

could you add more buttons to it?

what would be a good example of additional buttons? the only one that comes to my small mind (lol) would be a bb button to make the highlighted text glow ( if it's even possibile )

either way good job on the code
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Every single thing to do with HTML tags will be able to be put up. Just follow the instructions that I might have posted, otherwise they will be in the v.1 topic (same instructions will do).

Glow can easily be done as well, in fact, I may add it as a default one.
Offline Profile Quote Post Goto Top
 
..SMOKEY..
Member
[ *  * ]
could you?!?!?! and if you do let me know because i'd LOVE to have it

thanks!!!
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Code: HTML
 
<span style='filter: glow(color=#00ff00, strength=10)'>


Stick that in for opening HTML Tag.

Code: HTML
 
</span>


Closing HTML Tag, tell me whether it works or not.
Edited by Viral, Feb 1 2008, 06:01 PM.
Offline Profile Quote Post Goto Top
 
..SMOKEY..
Member
[ *  * ]
you might not want to use me as a basis of comparison...meaning i can be a little slow sometimes and my feedback may not be the best lol...i'm going to go attempt it ( probably incorrectly lo ) right now...in the meantime could you show me what it would look like with it installed

thanks again
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
Code: HTML
 
<script>

/****************************************************
Add new BBCode Tags by Viral of http://www.zetaresources.com
Not to be redistributed or re-hosted without Viral's permission
****************************************************/

extraTags=[];n=0
extraTags[n++]=["Marquee","yes","[marquee]","[/marquee]","<marquee onmouseover='this.stop()' onmouseout='this.start()'>","</marquee>"]
extraTags[n++]=["Marquee Right","Yes","[marquee=right]","[/marquee]","<marquee onmouseover='this.stop()' onmouseout='this.start()' direction='right'>","</marquee>"]
extraTags[n++]=["Glow","","[glow]","[/glow]","<span style='filter: glow(color=#00ff00, strength=10)'>","</span>"];
extraTags[n++]=["P","","[p]","[/p]","<p>","</p>"]
extraTags[n++]=["Reverse","yes","[reverse]","[/reverse]","<bdo dir='rtl'>","</bdo>"]
extraTags[n++]=["Block Quote","","[blockquote]","[/blockquote]","<blockquote>","</blockquote>"]

if(location.href.match('topic') || location.href.match('single')){
td=document.getElementsByTagName('td');
for(i=0;i<td.length;i++){
if(td[i].className=="c_post"){
thepost=td[i].innerHTML;
for(j=0;j<extraTags.length;j++){
thepost=thepost.split(extraTags[j][2]).join(extraTags[j][4]).split(extraTags[j][3]).join(extraTags[j][5]);
}
td[i].innerHTML=thepost;
}}}

if(location.href.match('post')){
td=document.getElementsByTagName('td');
for(k=0;k<td.length;k++){
lots=td[k].innerHTML;
for(u=0;u<extraTags.length;u++){
lots=lots.split(extraTags[u][2]).join(extraTags[u][4]).split(extraTags[u][3]).join(extraTags[u][5]);
td[k].innerHTML=lots;
}}}

function addExtraTag(open,close){
texty=document.getElementsByTagName('textarea')[0];
texty.innerHTML+=open+close+" ";
}

if(location.href.match('post')){
bbc=document.getElementById('c_bbcode');
for(f=0;f<extraTags.length;f++){
if(extraTags[f][1]=="yes" || extraTags[f][1]=="Yes"){
bbc.innerHTML="<button type=\"button\" name=\""+extraTags[f][0]+"\" onmouseover=\"ZetaHelp('"+extraTags[f][0]+"')\" onclick=\"addExtraTag('"+extraTags[f][2]+"','"+extraTags[f][3]+"')\">"+extraTags[f][0]+"</button> "+bbc.innerHTML;
}}}

if(location.href.match('post')){
texty=document.getElementsByTagName('textarea');
for(y=0;y<texty.length;y++){
post=texty[y].value;
for(r=0;r<extraTags.length;r++){
post=post.split(extraTags[r][4]).join(extraTags[r][2]).split(extraTags[r][5]).join(extraTags[r][3]);
texty[y].value=post;
}}}

</script>


That should work, use [glow][/glow] tags.

Glow only works in IE.
Offline Profile Quote Post Goto Top
 
..SMOKEY..
Member
[ *  * ]
OMFG!!! that was fast!!!! thanks a lot!!!!

*edit* it doesn't appear to be working :(
Edited by ..SMOKEY.., Feb 1 2008, 07:40 PM.
Offline Profile Quote Post Goto Top
 
Viral
Member Avatar
i'm stanley nao
[ *  *  *  *  * ]
You sure you are using IE?

Also, remember that you will need the [glow][/glow] tags to be typed, buttons are not working currently.
Offline Profile Quote Post Goto Top
 
..SMOKEY..
Member
[ *  * ]
lmao yes i'm sure and yes i used the tags, i even tried <glow>TEXT</glow> with no change

i can pm you the link if you want
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply