Derpir
Nuke Ace Posts:52
|
03/14/2009 4:36 AM |
|
I am trying to update my changes I've done to my skin, but something funny is going on. I have two logos both are .jpg.
The first logo is placed in a bannerpane, the second logo is placed as a logo.
The logo that is placed as a logo shows when I press F5, but the one that is placed in the bannerpane does not show when I press F5.
both are showing in Visual Studio 2008, but only one is showing when we build(F5)
an other thing why does the second logo show after zipping the skin and not the first logo in the bannerpane?
How do I get all my changes(logos) in place?
-----------------------------------------------------------------------------
update:
After some research I found that I had forgot to zip the correct way, but now the changes only appear on the host/admin but not on the site, what is wrong?
regards Alex |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/14/2009 8:42 AM |
|
If the changes appear on the Host and Admin pages, I would look to make sure that your site pages specify the correct skin. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Derpir
Nuke Ace Posts:52
|
03/14/2009 1:09 PM |
|
Yes you are correct.
But now after doing the installations steps for a custom html skin I face a new problem.
I have done the followings steps:
- put the following files in a folder, skin.css, skin.xml, background_full.jpg, contact_full_box.html, thumbmail_contact_full_box.jpg
- created a zip-file in this folder, called skins.zip
- Dragged all the files listed in step 1 into the zip-file named skins.zip
- created another zip-file, named this zip-file MyHtmlSkin.zip
- Dragged the zip-fileinto the MyHtmlSkin.zip
- Log into DNN using my host account
- selected host on on the menu bar and selected Skins.
- clicked upload skins located at the bottom of the page.
- On the install skin package page I located and installed my zip-file called MyHtmlSkin.zip
- clicked on the return-button on the page
- In the skin drop-downlist, I selected my item named MyHtmlSkin
- pressed apply under my thumbnail.
Everything is OK my skin is showing, but when I click on the home-hyperlink I get a strange error message:
An error has occurred. DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at DotNetNuke.UI.Skins.Skin.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
What is wrong? I seem to get blocked, everytime this happens I can´t continue to ise my project.
please help...
//Alex |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/14/2009 3:51 PM |
|
Please attach your skin's zip file to a reply, and I'll try to take a look at it.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Derpir
Nuke Ace Posts:52
|
03/14/2009 5:12 PM |
|
Thank you
I have attached the zip-file now.
Regards Alex
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/15/2009 10:15 AM |
|
I installed your skin on a 4.9.1 test site.
When I install the skin, and you can see this if you reinstall it, the installation process adds < % Skin Path % > in front of file references. These are the things that cause the problem.
I then went a got a copy of the .ascx file that is created from the skin's .htm file, removed all of those references, and the skin "works." Of course, it doesn't even try to show the images or flash files because those are broken.
Then I deleted the .ascx file. Next, I think went to the Host, Skins page and selected your skin and clicked the "Parse Skin Package" link and something different happened. Instead of inserting the tags, the parse routine inserted /portals/_default/skins/lusofansdezaster/ in front of all of the file names. These are the correct references, and your skin worked without an error.
When I say "worked," I mean that I now see the static images. I didn't see any flash files.
But, that is at least a place where you can start.
And ... I hope that someone who understands this will chime in and tell us both what is going on here.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
03/18/2009 11:18 AM |
|
Hello,
I've been digging through this skin for the past 30mins and have just got the same results as Joe.
But, there are a couple of pointers as well -
remove the entire < head > section - you should not have head code in there calling the skin.css file as DNN does this automatically and you are duplicating code + causing validation errors by doing this.
there are 2 closing < object > tags one after an other which is causing validation errors
Visual studio also stated that it required the param tags to be closed - in most cases you have just closed the last param tag in the list.
I experimented with the skinpath code, but it just appears as though it does not like the object tag with those parameters in. - It may be best to code these as ascx skins.
Thanks,
|
|
Lee Sykes Site Administrator Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
Twitter: www.twitter.com/DNNCreative
|
|
|
Derpir
Nuke Ace Posts:52
|
03/20/2009 4:54 AM |
|
Thank you Lee and Craig I will make a new try this evening and take all your comments in consideration.
Thank you once again!
//Alex |
|
|
|
|
Derpir
Nuke Ace Posts:52
|
03/20/2009 7:31 AM |
|
Hi
after reinstalling the skin, I get no skin in the folder to apply, when I am logged in as host on the host|skins page. I am using the exact sake skin.zip file as you have done, why doesn't the skin thumbnail picure show after installation as it did before?
regards Alex |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/20/2009 8:20 AM |
|
I assume that you installed as a ZIP file? You should look in your skins directory to see if the updated files are actually there. I have occasionally zipped up skins incorrectly and that puts the files in the wrong directory. If you just uploaded files directly, you'll want to visit the Skins page a "parse" the skin. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Derpir
Nuke Ace Posts:52
|
03/20/2009 8:38 AM |
|
Thank you Craig! I had installed it wrong.
One more question, when the skin in installed a ascx-file is created, but where should I be able to find that file after installation in my VS-project?
regards Alex |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/20/2009 8:59 AM |
|
The file will be created in the folder with the rest of the skin's files. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Derpir
Nuke Ace Posts:52
|
03/21/2009 5:12 AM |
|
Hi
I am still stuck with these skinningproblems, I thought I had got it right, but I am still struggling. I wonder if I understood you(Craig & Lee) correct.
I should remove all <%...%>? even these at the top of my ascx-file?
<%</EM></FONT><EM><FONT color=#0000ff size=2>@</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>Control</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>language</FONT><FONT color=#0000ff size=2>="vb"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>CodeBehind</FONT><FONT color=#0000ff size=2>="~/admin/Skins/skin.vb"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>AutoEventWireup</FONT><FONT color=#0000ff size=2>="false"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>Explicit</FONT><FONT color=#0000ff size=2>="True"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>Inherits</FONT><FONT color=#0000ff size=2>="DotNetNuke.UI.Skins.Skin"</FONT></EM><EM><FONT size=2>%> <%</FONT><FONT color=#0000ff size=2>@</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>Register</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>TagPrefix</FONT><FONT color=#0000ff size=2>="dnn"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>TagName</FONT><FONT color=#0000ff size=2>="LOGO"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>Src</FONT><FONT color=#0000ff size=2>="~/Admin/Skins/Logo.ascx"</FONT></EM><EM><FONT size=2> %> <%</FONT><FONT color=#0000ff size=2>@</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>Register</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>TagPrefix</FONT><FONT color=#0000ff size=2>="dnn"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>TagName</FONT><FONT color=#0000ff size=2>="SEARCH"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>Src</FONT><FONT color=#0000ff size=2>="~/Admin/Skins/Search.ascx"</FONT></EM><EM><FONT size=2> %> <%</FONT><FONT color=#0000ff size=2>@</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>Register</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>TagPrefix</FONT><FONT color=#0000ff size=2>="dnn"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>TagName</FONT><FONT color=#0000ff size=2>="CURRENTDATE"</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>Src</FONT><FONT color=#0000ff size=2>="~/Admin/Skins/CurrentDate.ascx"</FONT></EM><FONT size=2><EM> %>
I have reviewed some of the tutorial videos (they are awesome!) And I can only see that I am doing exactly as the videos are instructiong me to do, I find no diffrences in my manual work compared with the instructions.
Alson I wonder in the tutorial preperations of skinning I see that you put the ascx-file into the folder together with css, jpg, htm-files an so on, don´t you need to install the htm-file as a skin before you get a ascx-file? where did it come from?
I find skinning really hard...but I will not give up!
I will problably return soon with more questions.
//Alex |
|
|
|
|
Derpir
Nuke Ace Posts:52
|
03/21/2009 8:07 AM |
|
Hi again!
I am having a bad skinningday
I've attached my upload result in a word-doc. I have been trying to upload my new skin several times today, and everything is great(no errormessages), but after pressing the return-link and chosing my skin in the drop-downlist, I get no thumbnail to apply. I have looked at the upload outcome and identified my thumbnail-file but it still doesn't appear.
I wonder if you could take a look at my solution in private, to see if you can detect any misstakes? Tell me if that is alright, I will send it in private.
I've been struggling since yesterday to get my new skin in place, or at least to see some changes.
I will not give up!
best regards
Alex |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/21/2009 8:22 AM |
|
I think that the problem is still with the "Skin Path" references. Have you gone to the Skins page, selected your skin, and then clicked the link to Parse the skin file. After you have done that, look in your ascx file and see if the Skin Path references have been replaced with links.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Derpir
Nuke Ace Posts:52
|
03/21/2009 10:32 AM |
|
Hello Joe
I am still having the same old problem...I have done everything according to your instructions. Regarding the ascx-file, parsing and so on...
my ascx-file is attached, I have removed all the <%...%> blocks. Feels like something is still not correct.
//Alex
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/21/2009 11:14 PM |
|
I'm at a loss, but will continue to look at this. It may take a couple of days ... as I have a project due first thing on Monday morning.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
|