Replace the old spoiler code?
+3
xdanielxsxe
Jalokim
dnasman
7 posters
Page 1 of 1
Replace the old spoiler code?
I don't like the old spoiler code. so i want to change the old spoiler code with this one:
the spoiler must be like this
the question is:
is it possible? if so, where should i put the code to replace the old one?
thnx for attention
- Code:
<style type="text/css">
body,input
{
}
.spoiler
{
border:1px solid #ddd;
padding:3px;
}
.spoiler .inner
{
border:1px solid #eee;
padding:3px;margin:3px;
}
</style>
<script type="text/javascript">
function showSpoiler(obj)
{var inner = obj.parentNode.getElementsByTagName("div")[0];
if (inner.style.display == "none")
inner.style.display = "";
else
inner.style.display = "none";
}
</script>
<body>
<div class="spoiler">
<input type="button" onclick="showSpoiler(this);" value="Show/Hide" />
<div class="inner" style="display:none;">
</div>
</div>
</body>
the spoiler must be like this
the question is:
is it possible? if so, where should i put the code to replace the old one?
thnx for attention
Last edited by dnasman on Sat 7 Nov - 15:28; edited 1 time in total
Re: Replace the old spoiler code?
you can try the template editing module:
if you use phpbb2 or punBB you can try adn load this script via tempalte editing.
I think you'll have to make a few alterations to make it work ...
If you don't have tempalte editing you have to stick with the default spolier
if you use phpbb2 or punBB you can try adn load this script via tempalte editing.
I think you'll have to make a few alterations to make it work ...
If you don't have tempalte editing you have to stick with the default spolier
Jalokim- Energetic
- Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland
Re: Replace the old spoiler code?
i have the same problem!
xdanielxsxe- New Member
- Posts : 1
Reputation : 0
Language : american
Re: Replace the old spoiler code?
im using phpbb2
please let me know where i should put the code
thnx for attention
please let me know where i should put the code
thnx for attention
Re: Replace the old spoiler code?
With this css code you change the colors of your spoilers and codes
CSS to customize code and spoiler sites:
Information:
CSS to customize code and spoiler sites:
- Code:
dl.codebox {
padding: 3px;
background-color: lightyellow;
border: 1px solid #C9D2D8;
font-size: 1em;
}
dl.codebox dt {color: purple;}
.codebox dd {color: brown;}
dl.codebox code {color: darkgrey;}
Information:
dl.codebox
padding = Title code space / spoiler's
background-color = background color code / spoiler's
border = outline code / spoiler site and its color
font-size: Text size code / spoiler's
dl.codebox dt
Title color = color code / spoiler's
. codebox dd
color = text color spoiler's
dl.codebox code
color = text color code
Re: Replace the old spoiler code?
^
^
thnx, but i'm just want to change the code of default spolier (not the colors of spoiler)
thnx for attention anyway
^
thnx, but i'm just want to change the code of default spolier (not the colors of spoiler)
thnx for attention anyway
Re: Replace the old spoiler code?
in the posting tpl ...
admin panel -> posts and messages -> posting template
admin panel -> posts and messages -> posting template
Jalokim- Energetic
- Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland
Re: Replace the old spoiler code?
it would be the first one..
but it's not doing what it's supposed to be doing.
i am going to have to fiddle with more. when you hit show hide what is it supposed to do?
open with what ever is in it right?
i am confused ware you want this. do you want it to appear in the post. or do you want it as an option when composing a message.
check this out. publish this template in the posting body and tell me if thats what you mean.. you can always go back and add the default template until i get it working right if i am able too.
i just need to be sure this is ware you want it. shit i cant even post the code here it's too big.. hahaha
let me see if i can fit it on a html page... lol brb
i removed the link.
there's something wrong. when you go to the html page where i put the code up for you.
the whole page freezes then crashes when you try to copy the code. so idk what thats all about.
but it's not doing what it's supposed to be doing.
i am going to have to fiddle with more. when you hit show hide what is it supposed to do?
open with what ever is in it right?
i am confused ware you want this. do you want it to appear in the post. or do you want it as an option when composing a message.
check this out. publish this template in the posting body and tell me if thats what you mean.. you can always go back and add the default template until i get it working right if i am able too.
i just need to be sure this is ware you want it. shit i cant even post the code here it's too big.. hahaha
let me see if i can fit it on a html page... lol brb
i removed the link.
there's something wrong. when you go to the html page where i put the code up for you.
the whole page freezes then crashes when you try to copy the code. so idk what thats all about.
Last edited by kirk on Tue 10 Nov - 0:00; edited 1 time in total
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Replace the old spoiler code?
^
^
no, i mean, i want to change the default spoiler.
the default one:
i want to change the spoiler like this:
is it possible?
thnx for attention
^
no, i mean, i want to change the default spoiler.
the default one:
i want to change the spoiler like this:
is it possible?
thnx for attention
Re: Replace the old spoiler code?
dnasman wrote:^
^
no, i mean, i want to change the default spoiler.
the default one:
i want to change the spoiler like this:
is it possible?
thnx for attention
yes i understand that. try the code in the link above. i was able to get it in there but not working correctly. i can most likely get it to work for you but i need to know thats where you are going to want it. you have to publish the code to know what i mean so you can see what it looks like.
then if thats where you want it. i am going to have to try to get the thing working properly..
this is a Lil more difficult doing something like this then most of the normal template editing. i mean i am takeing the default out and replaceing and trying to get yours to work.
plus i need to be sure your code is correct.. something seems wrong with it. but i can not be sure until i run a few more test.
hahah run a few more test.. hehe sounding like a doctor. until i test a few more things that sounds better.
info added
Ok there is no way i can post the template here for you. it's large for the post here.
so i tried to put it on an html sheet and had the link up to where you can go over there copy the template then try it on your forum.
but there's something wrong because when you try to copy the code. you get all the way to the last part of it and the whole pages freezes up.. so i dont know why it's doing that but it's not good so i cant give you the code that way.
i will have to put it in a text file and upload to a file host.
or you can attempt editing the template your self. but it can be a lil confusing.
unless you know about template editing. i actually have it. but i dont think the code you have is right. it's not working like it should be. so i have to try it a few more times. if i get it working correctly then i will just add to a text file and upload it then you can dl it,add to your template and thats it.
More info added
OK this is a lil difficult to explain. Basically your code is just how it will appear on the forum in the post.
the problem is. finding and knowing exactly where it has to be placed along with the bbc tags to enable it to appear that way.Is it possible.. i believe it is.but exactly how to get to appear this way is another story.
so i did end up getting it but not where it's supposed to be.
So first i want to see if there's a way to get it in as a css code. that would make things so much easier.. but if thats not possible then i will have to try a few more things.. if there's a way I'm determined to get the lil bastard now... hahah
but i am not going to beat myself up over it either.. so let me ask one of my colleagues if it's possible to do with css first befor driving my self crazy in that chinese meanie of a template..
i mean I'm close but it's a matter of if i can crack it to figure out how they have it appear as the default. once i know how that is then it's a piece of cake.. or at least i think and hope.
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Replace the old spoiler code?
kirk wrote:dnasman wrote:^
^
no, i mean, i want to change the default spoiler.
the default one:
i want to change the spoiler like this:
is it possible?
thnx for attention
yes i understand that. try the code in the link above. i was able to get it in there but not working correctly. i can most likely get it to work for you but i need to know thats where you are going to want it. you have to publish the code to know what i mean so you can see what it looks like.
then if thats where you want it. i am going to have to try to get the thing working properly..
this is a Lil more difficult doing something like this then most of the normal template editing. i mean i am takeing the default out and replaceing and trying to get yours to work.
plus i need to be sure your code is correct.. something seems wrong with it. but i can not be sure until i run a few more test.
hahah run a few more test.. hehe sounding like a doctor. until i test a few more things that sounds better.
info added
Ok there is no way i can post the template here for you. it's large for the post here.
so i tried to put it on an html sheet and had the link up to where you can go over there copy the template then try it on your forum.
but there's something wrong because when you try to copy the code. you get all the way to the last part of it and the whole pages freezes up.. so i dont know why it's doing that but it's not good so i cant give you the code that way.
i will have to put it in a text file and upload to a file host.
or you can attempt editing the template your self. but it can be a lil confusing.
unless you know about template editing. i actually have it. but i dont think the code you have is right. it's not working like it should be. so i have to try it a few more times. if i get it working correctly then i will just add to a text file and upload it then you can dl it,add to your template and thats it.
More info added
OK this is a lil difficult to explain. Basically your code is just how it will appear on the forum in the post.
the problem is. finding and knowing exactly where it has to be placed along with the bbc tags to enable it to appear that way.Is it possible.. i believe it is.but exactly how to get to appear this way is another story.
so i did end up getting it but not where it's supposed to be.
So first i want to see if there's a way to get it in as a css code. that would make things so much easier.. but if thats not possible then i will have to try a few more things.. if there's a way I'm determined to get the lil bastard now... hahah
but i am not going to beat myself up over it either.. so let me ask one of my colleagues if it's possible to do with css first befor driving my self crazy in that chinese meanie of a template..
i mean I'm close but it's a matter of if i can crack it to figure out how they have it appear as the default. once i know how that is then it's a piece of cake.. or at least i think and hope.
Helooo there, ive search all spoiler threads and i want something like that changing of spoiler button,
Have you cracked the case ms. kirk?
BLUElearnings- Forumember
- Posts : 206
Reputation : 0
Language : English
Re: Replace the old spoiler code?
should i open a new topic for these?
BLUElearnings- Forumember
- Posts : 206
Reputation : 0
Language : English
Re: Replace the old spoiler code?
Hello,
I don't think it is possible to change the default spoiler.
When you use [*spoiler] tag, a PHP program generates codes for it and It is programmed in a way that it will generate <dl><dd> tags instead of a click able button.
So, in my opinion, to change the default spoiler, we need to edit a PHP file which handles working of BBCodes and we don't have access to PHP files so we can't do it.
------------------------------
You can make some CSS modification which makes the spoiler header look like a button. Thats all you can do.
I don't think it is possible to change the default spoiler.
When you use [*spoiler] tag, a PHP program generates codes for it and It is programmed in a way that it will generate <dl><dd> tags instead of a click able button.
So, in my opinion, to change the default spoiler, we need to edit a PHP file which handles working of BBCodes and we don't have access to PHP files so we can't do it.
------------------------------
You can make some CSS modification which makes the spoiler header look like a button. Thats all you can do.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Replace the old spoiler code?
OMG. but ok...
BLUElearnings- Forumember
- Posts : 206
Reputation : 0
Language : English
Similar topics
» Replace The Old Spoiler Code?
» How to change format of [code][/code] and [spoiler][/spoiler], etc.
» how can i replace the the word spoiler
» i suggest to replace the verification emai with a code
» Spoiler code
» How to change format of [code][/code] and [spoiler][/spoiler], etc.
» how can i replace the the word spoiler
» i suggest to replace the verification emai with a code
» Spoiler code
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum