Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Change the Skin in codeChange the Skin in code
Previous
 
Next
New Post
8/13/2007 1:56 AM
 

Try below code to set page skin
                  Dim objTab As DotNetNuke.Entities.Tabs.TabInfo = New DotNetNuke.Entities.Tabs.TabInfo()
                    Dim ctlTab As DotNetNuke.Entities.Tabs.TabController = New DotNetNuke.Entities.Tabs.TabController()
                    objTab = ctlTab.GetTab(tabId, portalId, False)
                           'for skin set ,you can use this       
                         objTab.SkinSrc =" your skin value"
                         'for container set ,you can use this
                         objTab.ContainerSrc = =" your skin value"
                       'save settings
                        ctlTab.UpdateTab(objTab)

                            


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
8/13/2007 3:54 AM
 

Will that set the skin for the tab, so that it will be that for all users? Like the portal suggestion from above?

It looks like that code will change the skin for the tab, not for the user.

I'm looking for a way to change the skin each user sees; So each user can select the skin that is displayed. The cookie method does this. Without the DB backend and extra code, it is per computer, but easily adjusted to per user with some code. If there are functions that will allow a 'temporary' setting of the skin, Maybe something involving PortalSettings.ActiveTab.SkinSrc or SkinPath and updating that setting?

 
New Post
8/13/2007 5:57 AM
 

Ok.For full solution, I think you need do these works.

1:Create a table to store data

2.Create a module to let user select their favorite skin.I suggest this function open for both register user and anonymous users.

3.Save user selection, for register user,save it with database, for anonymous users,save it to cookie.

4.Create a module to apply skin selection. much like this.

           If (GetUserSkin(UserId)!=null&&Request.Params["SkinSrc"]!=null)
          { 
                Response.Redirect(Globals.NavigateURL(TabId, "", "SkinSrc=" + GetUserSkin(UserId));
          }


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
8/13/2007 3:45 PM
 

Thanks for that suggestion. Once I get around to designing the module I'll be looking at cookie and url for what I want to do.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Change the Skin in codeChange the Skin in code


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out