The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Replace the old spoiler code?

+3
xdanielxsxe
Jalokim
dnasman
7 posters

Go down

Replace the old spoiler code? Empty Replace the old spoiler code?

Post by dnasman Sat 7 Nov - 12:32

I don't like the old spoiler code. so i want to change the old spoiler code with this one:
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
Replace the old spoiler code? 295tjk9

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
avatar
dnasman
Forumember

Male Posts : 32
Reputation : 1
Language : indonesian
Location : Bandung, West Java, ID

http://www.rpgmakerid.com/

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by Jalokim Sat 7 Nov - 13:35

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
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by xdanielxsxe Sat 7 Nov - 14:11

i have the same problem!
avatar
xdanielxsxe
New Member

Posts : 1
Reputation : 0
Language : american

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by dnasman Sat 7 Nov - 14:13

im using phpbb2
please let me know where i should put the code

thnx for attention Very Happy
avatar
dnasman
Forumember

Male Posts : 32
Reputation : 1
Language : indonesian
Location : Bandung, West Java, ID

http://www.rpgmakerid.com/

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by WhitePoint Sat 7 Nov - 15:20

With this css code you change the colors of your spoilers and codes


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
WhitePoint
WhitePoint
Active Poster

Male Posts : 1206
Reputation : 11
Language : Romanian, Spanish, English, Catalan and a little French
Location : Tarragona, Spain

http://www.our-time.biz/forum.htm

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by dnasman Sun 8 Nov - 1:31

^
^
thnx, but i'm just want to change the code of default spolier (not the colors of spoiler)

thnx for attention anyway Very Happy
avatar
dnasman
Forumember

Male Posts : 32
Reputation : 1
Language : indonesian
Location : Bandung, West Java, ID

http://www.rpgmakerid.com/

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by dnasman Mon 9 Nov - 7:41

bump ?
avatar
dnasman
Forumember

Male Posts : 32
Reputation : 1
Language : indonesian
Location : Bandung, West Java, ID

http://www.rpgmakerid.com/

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by Jalokim Mon 9 Nov - 11:24

in the posting tpl ...

admin panel -> posts and messages -> posting template
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by dnasman Mon 9 Nov - 22:11

^
^
which should i edit?

Replace the old spoiler code? 09720195500

thnx again
avatar
dnasman
Forumember

Male Posts : 32
Reputation : 1
Language : indonesian
Location : Bandung, West Java, ID

http://www.rpgmakerid.com/

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by kirk Mon 9 Nov - 22:58

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.


Last edited by kirk on Tue 10 Nov - 0:00; edited 1 time in total
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by dnasman Mon 9 Nov - 23:38

^
^
no, i mean, i want to change the default spoiler.

the default one:
Replace the old spoiler code? 28uk4k1

i want to change the spoiler like this:
Replace the old spoiler code? 295tjk9

is it possible?

thnx for attention
avatar
dnasman
Forumember

Male Posts : 32
Reputation : 1
Language : indonesian
Location : Bandung, West Java, ID

http://www.rpgmakerid.com/

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by kirk Mon 9 Nov - 23:51

dnasman wrote:^
^
no, i mean, i want to change the default spoiler.

the default one:
Replace the old spoiler code? 28uk4k1

i want to change the spoiler like this:
Replace the old spoiler code? 295tjk9

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
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by BLUElearnings Sat 6 Feb - 0:00

kirk wrote:
dnasman wrote:^
^
no, i mean, i want to change the default spoiler.

the default one:
Replace the old spoiler code? 28uk4k1

i want to change the spoiler like this:
Replace the old spoiler code? 295tjk9

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
BLUElearnings
Forumember

Posts : 206
Reputation : 0
Language : English

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by BLUElearnings Thu 11 Feb - 4:37

should i open a new topic for these?
BLUElearnings
BLUElearnings
Forumember

Posts : 206
Reputation : 0
Language : English

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by ankillien Fri 12 Feb - 12:26

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.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Replace the old spoiler code? Empty Re: Replace the old spoiler code?

Post by BLUElearnings Fri 12 Feb - 13:03

OMG. but ok... Very Happy
BLUElearnings
BLUElearnings
Forumember

Posts : 206
Reputation : 0
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum