Replace the old spoiler code?
Page 1 of 1 • Share •
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 - 8:28; edited 1 time in total
dnasman- Forumotion Member
- Posts: 6
Language: indonesian
Country:
Join date: 2009-08-08
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
Re: Replace the old spoiler code?
i have the same problem!
xdanielxsxe- Forumotion Member
- Posts: 1
Language: american
Country:
Join date: 2009-11-07
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
dnasman- Forumotion Member
- Posts: 6
Language: indonesian
Country:
Join date: 2009-08-08
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
dnasman- Forumotion Member
- Posts: 6
Language: indonesian
Country:
Join date: 2009-08-08
dnasman- Forumotion Member
- Posts: 6
Language: indonesian
Country:
Join date: 2009-08-08
Re: Replace the old spoiler code?
in the posting tpl ...
admin panel -> posts and messages -> posting template
admin panel -> posts and messages -> posting template
Re: Replace the old spoiler code?
^
^
which should i edit?

thnx again
^
which should i edit?

thnx again
dnasman- Forumotion Member
- Posts: 6
Language: indonesian
Country:
Join date: 2009-08-08
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 Mon 9 Nov - 17:00; edited 1 time in total
_________________
She thinks about me :)lol
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
dnasman- Forumotion Member
- Posts: 6
Language: indonesian
Country:
Join date: 2009-08-08
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.
_________________
She thinks about me :)lol
Permissions of this forum:
You cannot reply to topics in this forum
Home




by dnasman on Sat 7 Nov - 5:32










» Green Navigation Bar
» [ Only Topic ] Graphics Gallery
» F50 Skins
» Background
» Chatbox sound
» Half-Life rank/group icons
» Gallery Problem
» 3 topics I need help with