|
|
Posted 17/01/2004 13:41:00 |
|
|
Forum Newbie
      
Group: Customers
Last Login: 28/03/2005 07:40:00
Posts: 12,
Visits: 1
|
|
If I added a new control, something simple like below. How can I add the stylesheet settings to it? Thanks newcontrol.ascx <table class="ForumsBackGroundTableLight" cellSpacing="1" cellPadding="3" width="220"> <tr> <th align="left" colspan="2"> HEADEDR </th> </tr> <tr> <td align="left" valign="top" colspan="2"> <table cellspacing="1" border="0" cellpadding="2"> <tr> <td align="left"> <font size="-1">*</font><a href=""><font size="-1" color="#003366">ITEM 1</a></font> </td> </tr> <tr> <td align="left"> <font size="-1">*</font><a href=""><font size="-1" color="#003366">ITEM 2</a></font> </td> </tr> <tr> </table>
dc
|
|
|
|
Posted 17/01/2004 13:50:00 |
|
|
IF.NET 4.2 Coming Soon
      
Group: Administrators
Last Login: 13/11/2008 13:12:14
Posts: 1,955,
Visits: 3,014
|
|
Hi Derek, Good question the table template is something like... <table width="100%" align="center" cellpadding="0" cellspacing="0" class="ForumsBackGroundTable"><tr><td> <table width="100%" cellpadding="5" cellspacing="1"> <tr><td class="ForumsHeader" colspan="2">My New Control</td></tr> <tr><td class="ForumGroupHeader" colspan="2">Sub Header</td></tr> <tr> <td width="20" class="ForumsBody2">Forum Name:</td> <td width="98%" class="ForumsBody1">Some content here...</td> </tr> </table> </td></tr></table> Hope this helps 
 Kindest Regards,
Ryan Healey Director / Developer
Explore our products... http://demos.instantasp.co.uk/
|
|
|
|
Posted 19/01/2004 01:34:00 |
|
|
Forum Newbie
      
Group: Customers
Last Login: 28/03/2005 07:40:00
Posts: 12,
Visits: 1
|
|
How would you link that control if its outside of the forum files...for instance, outside of having it in the header "If.global.js " file. I'm using the forums for the intranet part, but I like the style, so i wanted to continue to use the box layouts throughout, without that header I lose the stye sheets.
dc
|
|
|
|
Posted 19/01/2004 01:37:00 |
|
|
IF.NET 4.2 Coming Soon
      
Group: Administrators
Last Login: 13/11/2008 13:12:14
Posts: 1,955,
Visits: 3,014
|
|
Hi Derek, To use the styles outside the application you could simply add the style sheet to the top of your user control. For example... <link href="http://www.domain.com/forums/skins/Classic/style.css" rel="stylesheet" type="text/css"> or in your ascx add... <link id="StyleSheet" runat="server"/> then in your ascx.vb add... Private Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs) If Session("InstantForum_Skin") <> "" And Session("InstantForum_SkinPath") <> "" Then StyleSheet.Attributes("href") = Session("InstantForum_Skin") & "style.css" Else StyleSheet.Attributes("href") = _ ConfigurationSettings.AppSettings("InstantForum_SkinURL") & _ ConfigurationSettings.AppSettings("InstantForum_DefaultSkin") & "/style.css" End If End Sub Hope this helps 
 Kindest Regards,
Ryan Healey Director / Developer
Explore our products... http://demos.instantasp.co.uk/
|
|
|
|
Posted 02/06/2005 10:46:48 |
|
|
Forum Newbie
      
Group: Customers
Last Login: 05/08/2008 13:31:25
Posts: 17,
Visits: 75
|
|
| Is Session("InstantForum_Skin") also used in 4.0? How is this handled in the new version? Thanks
|
|
|
|
Posted 07/06/2005 14:20:57 |
|
|
Support Supremo
      
Group: Customers
Last Login: 13/11/2008 12:44:07
Posts: 568,
Visits: 2,507
|
|
Birdin (6/2/2005)
Is Session("InstantForum_Skin") also used in 4.0? How is this handled in the new version? Thanks Dear Birdin, No. In InstantForum 4v the way you can know about the current Skin is: InstantASP.InstantForum.HttpContext.Current.Current .CurrentSkin()
|
|
|
|