We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Spoiler/Quote color picker.
Topic Started: Jan 17 2015, 12:57 AM (257 Views)
Ezeekiel
Member
[ * ]
Board Address: s15.zetaboards.com/baonana
Board Software: Zetaboards
Description: I'd like the code to allow users on my forum to choose the color gradient that is applied to their spoilers/quote bars. Not the entire entry box, but just the title bar.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Users & Groups Posted Image Profile Fields

Create a 1 line text field with these settings:

Title: Spoiler/Quote Title Bar Background
On Registration: Your Choice
Show field in topics: Yes
Admin Only Edit: No
Maximum input length: Your Choice

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$('dl.user_profile dt:contains(Spoiler/Quote Title Bar Background)').each(function() {
$(this).next('dd').andSelf().hide();
var BG = $(this).next('dd').text();
$(this).parents('td.c_user').next('td.c_post').find('blockquote dl, div.spoiler_toggle').css('background', BG);
});
//]]>
</script>
Offline Profile Goto Top
 
Helena
Member Avatar
M is for Mod

Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic