Change post color - Posted (1916 Views)
Junior Member
s80ts0465
Posts: 290
290
Is there any mod that allows to change the color of some post. For example a user before to save the new post, check an option to change the color of the post in the topic.asp page.
Bye
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
Carefree
Posts: 4224
4224
The capability has always existed to change the color(s). Do you want a prompt asking the user if the post should be a different color?
Posted
Junior Member
s80ts0465
Posts: 290
290
Probably i didn't explain well. I'd like to change the entire row color of the post, not only the text. Normally in this forum there is a bi-alternate-color, white and grey, and i'd like to offer the possibility to change the color of the entire row including the author name column. Bye Ste
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Originally posted by Carefree
The capability has always existed to change the color(s). Do you want a prompt asking the user if the post should be a different color?

color or colour? Or have I just grown up with too much British literature? tongue
If you're talking about changing just the text colour, then Carefree is right - there are a number of colour tags available for changing the text. If you're talking about the background, or just about anything else, then the short answer is that there is nothing readily avilable.
Is there any particular reason for this request? Sometimes understanding the "why" behind a question saves us all some time in coming to a solution.
Posted
Junior Member
s80ts0465
Posts: 290
290
Some users can have the possibility to underline the post chaging the background colour.
Posted
Advanced Member
Carefree
Posts: 4224
4224
OK - I know what you're wanting now. It's called the "Alternating Topic Colors Mod". I put it up on SnitzBitz.
Posted
Junior Member
s80ts0465
Posts: 290
290
Thanks for the mod, but I think it simply alternates the two colour, instead i'm looking for a mod that allows the user to change the background colour of the post in topic.asp
Something like the Tag, but that colour the post row.
Posted
Advanced Member
Carefree
Posts: 4224
4224
Nothing like that has been written. Wouldn't be too difficult, but I can easily imagine some very awful color combinations.
Posted
Junior Member
s80ts0465
Posts: 290
290
I may try to make it, but could you just suggest me from where to start. Which files should i change? Which are the variables to identify?
Ste
Posted
Advanced Member
Carefree
Posts: 4224
4224
Probably the easiest way to handle it would be to add another field to the database to record the desired topic color. In the default table "FORUM_TOPICS", I'd add a "T_COLOR" field. You wouldn't need to define it in "config.asp" since it won't be static.
Then in "forum.asp", you'd have to add it after the line
Code:
	tLAST_POST_AUTHOR_NAME = 14
tT_COLOR = 15
and again after the line
Code:
		Topic_LastPostAuthorName = arrTopicData(tLAST_POST_AUTHOR_NAME, iTopic)
Topic_Color = arrTopicData(tT_COLOR, iTopic)

Remember those "CColor" variable locations from the alternating color mod? You'd replace them with "Topic_Color".
In "post.asp" and in "post_info.asp", you'd have to include the new field in forms and in SQL calls/updates to the database.

That'll get you started. If you run aground, ask for help and we'll give you a hand.
Posted
Junior Member
s80ts0465
Posts: 290
290
Ok tahnks a lot. I'll do that and than let you know.
Bye Ste
You Must enter a message