Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
- Pages:
- 1
- 2
| [Completed] [ZB] Code to override another | |
|---|---|
| Tweet Topic Started: Oct 30 2009, 04:33 AM (488 Views) | |
| Lout | Oct 30 2009, 04:33 AM Post #1 |
![]() ![]()
|
Been a while since I requested a code but here's a challenge for you guys. I'm currently using Reid's Default Post Options code, but one of the staff uses a theme that nobody else does. The problem is that some colours of text don't show up very well on this one particular theme, so what I would like is a code that will work by either username or user ID, which will override the Default Post Options code and make all text a specified colour for whichever member is specified. Let me know if you need any more info
|
| |
![]() |
|
| RedBldSandman | Oct 30 2009, 10:14 AM Post #2 |
![]()
ZIPPY!
![]()
|
All text? So even text inside the color BBCodes or just the normal text? And do you want the user themselves to be able to set the colour or the administrator?
Edited by RedBldSandman, Oct 30 2009, 10:19 AM.
|
![]() "To iterate is human, to recurse divine." | |
![]() |
|
| Lout | Oct 30 2009, 10:56 AM Post #3 |
![]() ![]()
|
All text in the text area I guess, and it's only one user that needs it so just as a user ID in the code itself will be fine. As long as I can specify which user, and also choose the hex colour then that will be fine, but I'm guessing that it will have to run after the code I'm already using? |
| |
![]() |
|
| RedBldSandman | Oct 30 2009, 01:20 PM Post #4 |
![]()
ZIPPY!
![]()
|
Try this:Just place it underneath Reid's Default Post Option code and change cancel_default_user to the username and cancel_default_color to the color (in whichever form you wish). It should change all text, even text affected by the [color] BBcode to the chosen colour
|
![]() "To iterate is human, to recurse divine." | |
![]() |
|
| Lout | Oct 30 2009, 02:45 PM Post #5 |
![]() ![]()
|
I'll let you know how it works as soon as the guy comes online. EDIT: just tested it using my username instead but it didn't change anything. Edited by Lout, Oct 30 2009, 02:53 PM.
|
| |
![]() |
|
| Gorgor | Oct 30 2009, 02:53 PM Post #6 |
|
Hello
![]()
|
Can't you try it yourself by specifying your name in the code and viewing the theme that he uses?
|
![]() |
|
| Lout | Oct 30 2009, 03:11 PM Post #7 |
![]() ![]()
|
I did, check the edit
|
| |
![]() |
|
| Gorgor | Oct 30 2009, 04:18 PM Post #8 |
|
Hello
![]()
|
Add this below the default post color script.
|
![]() |
|
| RedBldSandman | Oct 30 2009, 05:09 PM Post #9 |
![]()
ZIPPY!
![]()
|
You're going about it in a much better way than I did Gorgor It won't actually work unless you put the $(function() { around it since that's how the Default Post Option code is called. So use this:Collaborative Effot
|
![]() "To iterate is human, to recurse divine." | |
![]() |
|
| Gorgor | Oct 30 2009, 05:38 PM Post #10 |
|
Hello
![]()
|
I still need to get used to using Thanks
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Completed Requests · Next Topic » |
- Pages:
- 1
- 2



















It won't actually work unless you put the $(function() { around it since that's how the Default Post Option code is called. So use this:
2:27 PM Jul 11