Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Change post color
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

s80ts0465
Junior Member

Italy
290 Posts

Posted - 26 July 2011 :  14:28:26  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
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

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 26 July 2011 :  15:25:43  Show Profile  Reply with Quote
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?
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 26 July 2011 :  15:47:58  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
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
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 26 July 2011 :  15:49:30  Show Profile  Visit AnonJr's Homepage  Reply with Quote
quote:
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?

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.
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 26 July 2011 :  16:16:24  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
Some users can have the possibility to underline the post chaging the background colour.
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 26 July 2011 :  21:19:10  Show Profile  Reply with Quote
OK - I know what you're wanting now. It's called the "Alternating Topic Colors Mod". I put it up on SnitzBitz.
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 27 July 2011 :  03:08:40  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
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.

Edited by - s80ts0465 on 27 July 2011 03:33:36
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 27 July 2011 :  07:57:51  Show Profile  Reply with Quote
Nothing like that has been written. Wouldn't be too difficult, but I can easily imagine some very awful color combinations.
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 27 July 2011 :  15:48:16  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
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
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 27 July 2011 :  20:02:56  Show Profile  Reply with Quote
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
	tLAST_POST_AUTHOR_NAME = 14
	tT_COLOR = 15

and again after the line
		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.
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 28 July 2011 :  06:54:23  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
Ok tahnks a lot.
I'll do that and than let you know.

Bye Ste
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 04 August 2011 :  06:01:08  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
I did it, and works great.
Thanks.

Another question....how can i bypass the waiting time after a new topic or post is saved. I'd like to eliminated the screen with
"New Reply Posted!
Thank you for your contribution!
Back to Category"
and directly go ahead to the topic.asp page.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 04 August 2011 :  11:30:41  Show Profile  Visit HuwR's Homepage  Reply with Quote
in post_info.asp look for the following code

		Response.write	"</font></p>" & vbNewLine & _
				"      <meta http-equiv=""Refresh"" content=""2; URL=" & strReturnURL & """>" & vbNewLine & _
				"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>"
		select case MethodType
			case "Category"
				Response.Write("Remember to create at least one new forum in this category.")
			case "Forum"
				Response.Write("The new forum is ready for users to begin posting!")
			case "EditForum", "EditCategory"
				Response.Write("Thank you for your contribution!")
			case "URL"
				Response.Write("The new URL is in place!")
			case "EditURL"
				Response.Write("Cheers! Have a nice day!")
			case "Topic", "TopicQuote", "EditTopic", "Reply", "ReplyQuote", "Edit" 
				Response.Write("Thank you for your contribution!")
			case else
				Response.Write("Have a nice day!")
		end select
		Response.write	"</font></p>" & vbNewLine & _
				"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""" & strReturnURL & """>" & strReturnTxt & "</a></font></p>" & vbNewLine

it should be near the end, just above the
sub newForumMembers(fForumID) function
Replace all the code above with

Response.write "</font></p>" & vbNewLine
Response.Redirect(strReturnURL)

disclaimer I haven't tested this so make sure you take a copy of post_info first so you can roll it back

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 04 August 2011 :  15:00:20  Show Profile  Send s80ts0465 an ICQ Message  Reply with Quote
Yes, it works.

Thanks Ste
Go to Top of Page

golfmann
Junior Member

United States
450 Posts

Posted - 05 August 2011 :  10:38:07  Show Profile  Visit golfmann's Homepage  Reply with Quote
You know what would be a nice mod?
A link preview kind of thing like they have on facebook.

It takes your link and both checks it and puts in the picture and a small blurb plus the link.

Waaaaaay over my head to do, but it IS nice, I think.
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 08 August 2011 :  12:29:04  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Golfmann, There have been some discussions about that in the past. Opinions vary as to how "nice" that would be.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07