boostdacr
  •  boostdacr
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-08-11T05:26:38Z
Version: 1.9.5.5

I am trying to change the color for the user for each rank but i am not sure what to put in the style box.

Whatever i put in there i end up getting this error:


Server Error in '/' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
YAF.Controls.RoleRankStyles.Render(HtmlTextWriter writer) +624
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
YAF.Controls.AdminMenu.Render(HtmlTextWriter writer) +381
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
YAF.Core.ForumPage.Render(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
YAF.Forum.Render(HtmlTextWriter writer) +246
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Page.Render(HtmlTextWriter writer) +38
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240
Sponsor
tha_watcha
2011-08-11T13:40:34Z
You can only put css style attributes to modify the font color, size and other properties to format the text.
UserPostedImage
boostdacr
  •  boostdacr
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-08-11T22:12:31Z
Originally Posted by: tha_watcha 

You can only put css style attributes to modify the font color, size and other properties to format the text.


what would be the code to put to change the color?
tha_watcha
2011-08-11T23:23:09Z
Originally Posted by: boostdacr 

Originally Posted by: tha_watcha 

You can only put css style attributes to modify the font color, size and other properties to format the text.


what would be the code to put to change the color?



just a simple...


color: #000000


More info about that property
http://www.w3schools.com/cssref/pr_text_color.asp 
UserPostedImage
bbobb
  •  bbobb
  • 100% (Exalted)
  • YAF Developer
2011-08-12T02:45:43Z
In Groups for Administartor there's a sample to to set it even for each skin.
boostdacr
  •  boostdacr
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-08-12T03:22:38Z
Originally Posted by: tha_watcha 

Originally Posted by: boostdacr 

Originally Posted by: tha_watcha 

You can only put css style attributes to modify the font color, size and other properties to format the text.


what would be the code to put to change the color?



just a simple...


color: #000000


More info about that property
http://www.w3schools.com/cssref/pr_text_color.asp 


Still using the css that your provided I get the error.


Also is there display issues with IE (especially IE9)?
boostdacr
  •  boostdacr
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-08-12T03:51:26Z

Originally Posted by: bbobb 

In Groups for Administartor there's a sample to to set it even for each skin.


Not sure there that is that you are talking about.
tha_watcha
2011-08-12T10:30:33Z
Quote:

Still using the css that your provided I get the error.



You need to restart yaf, otherwise the rank or group property changes are not applied, because there are cached.


Quote:

Also is there display issues with IE (especially IE9)?



What exactly?
UserPostedImage
boostdacr
  •  boostdacr
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-08-12T16:21:25Z
Its not that the styles aren't showing up. When I add the something in the textbox for style (either color:#0000 or just the word color), and hit save, I get the error message that I posted in the first post.

One of the themes I was using, wasn't working right with IE9 (if I set it to compatibility mode it worked better) I changed the theme and it seems to work better with IE9 now.
tha_watcha
2011-08-13T11:30:50Z
Originally Posted by: boostdacr 

Its not that the styles aren't showing up. When I add the something in the textbox for style (either color:#0000 or just the word color), and hit save, I get the error message that I posted in the first post.



Of course the Settings will be saved correctly, but this Settings are Cached, until the Cache is cleared you see the same Error Message.

One of the themes I was using, wasn't working right with IE9 (if I set it to compatibility mode it worked better) I changed the theme and it seems to work better with IE9 now.



I think you mean my Color-Grey Themes, the current versions have problems with some text boxes in IE9. This should be fixed in the next Release.

UserPostedImage
Users browsing this topic

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved