Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • "Default Post Color"
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:

Username:   Password:
Locked Topic
"Default Post Color"
Tweet Topic Started: Jul 26 2008, 05:40 PM (327 Views)
Reid Jul 26 2008, 05:40 PM Post #1
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
I've made a script that allows a user to pick a default post color, but I'm still making sure that it works in all situations.

However, I may need some help picking out these situations.

*Please note, this code is for InvisionFree ONLY. I'm sure it could be adapted to ZB, but I'm not going to bother.

Current situations:
- Fast Reply
- Add reply
- New Topic
- New Poll
- Using the "Quote" button
- Quote tags present
- Code tags present
- PMs
- Cookies disabled (script doesn't work then, but at least it doesn't annoy them about it with alerts)
- Multiple browser support (assuming cookies are enabled)

Can anyone think of anything else? If you can, then please, list away!
Edited by Reid, Jul 26 2008, 05:41 PM.
The Resource Board
Offline Profile Goto Top
 
Viral Jul 26 2008, 05:54 PM Post #2


Posts:
342
Group:
Dedicated
Member
#48
Joined:
Jul 17, 2008
Coding language
PHP
Close color tags before quotes and re-open them after quotes.

Hide color tags when editing / quoting.

Posted Image
Offline Profile Goto Top
 
Reid Jul 26 2008, 10:53 PM Post #3
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
I've already got 1, but it doesn't hide them when editing, although it does still work if you edit a post. :P
The Resource Board
Offline Profile Goto Top
 
HolySavior Jul 27 2008, 12:23 AM Post #4
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
its pretty simple :P

store the data in the signature of the color the user wants.
than wrap their post in a span tag with the style they choose and bam!
Offline Profile Goto Top
 
Eureka DC Jul 27 2008, 03:19 PM Post #5
Member Avatar


Posts:
183
Group:
Member
Member
#40
Joined:
Jul 16, 2008
Yes; you should store the data somewhere for each user, but signature storage not recommended though.
DO NOT PM ME FOR HELP, SUPPORT OR REQUESTS!
Posted Image
-------------------------------------------------------------------
I'm a part of you, you're a part of me
And I know it's wrong but I can't get free
You're like my first bad habit
How am I gonna give you up?
~ Vanessa Hudgens
-------------------------------------------------------------------
Offline Profile Goto Top
 
Reid Jul 27 2008, 04:00 PM Post #6
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
I just used cookies. It's a simple alternative to more advanced means of storage, I know, but I'm too lazy to bother coding anything else. x]
The Resource Board
Offline Profile Goto Top
 
Khasck May 5 2009, 05:04 PM Post #7
Member Avatar


Posts:
40
Group:
Member
Member
#2,909
Joined:
May 2, 2009
Orlly.
I didn't know sucha code existed.
If only i could get my hands on this.
Posted Image
[ deviantArt ] [ Myspace ] [ Facebook ] [ Youtube ] [ Twloha ]
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 7:48 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy