class for quote,spoiler,code??
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1 • Share •
class for quote,spoiler,code??
hello i want to ask 
where i can find class for "quote,spoiler,code ??? "
i need add some class for quote.
i try find in viewtopic body template but nothing
please help me, maybe someone know where class for quote,spoiler,code..
my version phpBB2.
thanks a lot

where i can find class for "quote,spoiler,code ??? "
i need add some class for quote.
i try find in viewtopic body template but nothing

please help me, maybe someone know where class for quote,spoiler,code..
my version phpBB2.
thanks a lot

sasukekun- Forumember
- Posts : 253
Reputation : 6
Language : English
Re: class for quote,spoiler,code??
Hello sasukekun,
You're talking about the CSS Selectors correct? See the code boxes below for them.
Code:

You're talking about the CSS Selectors correct? See the code boxes below for them.
Code:
- Code:
.code
div.cont_code
- Code:
.spoiler_closed
.spoiler_content
- Code:
.quote

Re: class for quote,spoiler,code??
Hi, 
The default classes for phpBB2 are only:
1. .code - the class of the code itself (here you can change the border, background, text color, size and others);
2. .quote - the class of the quote itself (here you can change the border, background, text color, size and others);
3. .spoiler - the class of the whole spoiler (including the "head" of it; by default - there aren't any changes in the code, but you can customize it if you want to);
4. .spoiler_content - (here you can change the border, background, text color, size and others).

The default classes for phpBB2 are only:
1. .code - the class of the code itself (here you can change the border, background, text color, size and others);
2. .quote - the class of the quote itself (here you can change the border, background, text color, size and others);
3. .spoiler - the class of the whole spoiler (including the "head" of it; by default - there aren't any changes in the code, but you can customize it if you want to);
4. .spoiler_content - (here you can change the border, background, text color, size and others).
Re: class for quote,spoiler,code??
ohh yeahh, btw where i can find that class for my template?SethC1995 wrote:Hello sasukekun,
You're talking about the CSS Selectors correct? See the code boxes below for them.
Code:Spoiler:
- Code:
.code
div.cont_codeQuote:
- Code:
.spoiler_closed
.spoiler_contentIf you need any help on how to use them please ask.
- Code:
.quote
you know, maybe in viewtopic_body, index body or other?
coz i find on my template nothing found XD
thanks a lot

where i can find on my template?cassius wrote:
The default classes for phpBB2 are only:
1. .code - the class of the code itself (here you can change the border, background, text color, size and others);
2. .quote - the class of the quote itself (here you can change the border, background, text color, size and others);
3. .spoiler - the class of the whole spoiler (including the "head" of it; by default - there aren't any changes in the code, but you can customize it if you want to);
4. .spoiler_content - (here you can change the border, background, text color, size and others).

thanks a lot xD
sasukekun- Forumember
- Posts : 253
Reputation : 6
Language : English
Re: class for quote,spoiler,code??
You don't need to find them. If you want to customize the codes, quotes and spoilers via these codes posted above you have to go to "Administration Panel ~> Display ~> Pictures and colors ~> Colors ~> CSS Stylesheet" and add the CSS codes you want. If you don't know how to edit codes, maybe these tutorials'll help you:
http://help.forumotion.com/t42099-learning-the-basic-css
http://help.forumotion.com/t5580-using-css-to-full-potential
http://help.forumotion.com/t22327-css-tutorial-for-your-forums
http://help.forumotion.com/t42099-learning-the-basic-css
http://help.forumotion.com/t5580-using-css-to-full-potential
http://help.forumotion.com/t22327-css-tutorial-for-your-forums
Re: class for quote,spoiler,code??
lol, you misunderstand 
now im understand about html+css and little about JS/jquery
actually my problem is want to add a class. and change the class name of the quote,
therefore I ask where is the class for quote in the template.
yeah no problem for that, thanks for reply,
im very apreciate

now im understand about html+css and little about JS/jquery
actually my problem is want to add a class. and change the class name of the quote,
therefore I ask where is the class for quote in the template.
yeah no problem for that, thanks for reply,

im very apreciate

sasukekun- Forumember
- Posts : 253
Reputation : 6
Language : English
Re: class for quote,spoiler,code??
Are you sure you want to change .quote class? Changing it, all the CSS proprietes from it will disappear (background color, border, font size, color and so on).
If you want to do this, go to "Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management", creat a new code and add:
Note: Write your new class name without dot in front of it.
If you want a new class for the whole quote, code (as the .spoiler one have), add a new JavaScript code:
If you want to do this, go to "Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management", creat a new code and add:
- Code:
$(document).ready(function(){
$('.quote').attr('class','New class');
});
Note: Write your new class name without dot in front of it.
If you want a new class for the whole quote, code (as the .spoiler one have), add a new JavaScript code:
- Code:
$(document).ready(function(){
$('.post .postbody td.quote').parent().parent().parent().addClass('fg_quote');
$('.post .postbody td.code').parent().parent().parent().addClass('fg_code');
});
Re: class for quote,spoiler,code??
ohh yeahh, amazing tutor@Cassius Dio wrote:Are you sure you want to change .quote class? Changing it, all the CSS proprietes from it will disappear (background color, border, font size, color and so on).
If you want to do this, go to "Administration Panel ~> Modules ~> HTML & JAVASCRIPT ~> JavaScript codes management", creat a new code and add:Replace "New class" with the name of the new class you want instead of .quote.
- Code:
$(document).ready(function(){
$('.quote').attr('class','New class');
});
Note: Write your new class name without dot in front of it.
If you want a new class for the whole quote, code (as the .spoiler one have), add a new JavaScript code:
- Code:
$(document).ready(function(){
$('.post .postbody td.quote').parent().parent().parent().addClass('fg_quote');
$('.post .postbody td.code').parent().parent().parent().addClass('fg_code');
});

now im understand without change class by template.
This is I mean.

work now

thanks cassius for help me

sasukekun- Forumember
- Posts : 253
Reputation : 6
Language : English
Re: class for quote,spoiler,code??
Is this solved?

Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

Re: class for quote,spoiler,code??
Yeah this solved 

sasukekun- Forumember
- Posts : 253
Reputation : 6
Language : English
Re: class for quote,spoiler,code??
Topic Solved & Locked

Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum