Products

Solutions

Resources

Partners

Community

About

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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Control Language C# - VB Logic needs convertedControl Language C# - VB Logic needs converted
Previous
 
Next
New Post
9/6/2018 1:26 PM
 

I have a skin which has it control language configured for C#; it was a free skins downloaded and then converted to work properly.  So the original skin creator did this.

I'm trying to add logic (VB) to our skin files so that when it's on our development box and "development" is within the URL, a banner on the right side will appear to let the end-users know that they're on development.

How do I change this so the logic will work with  C#?  I can't seem to get this working properly.  Thanks..
<% if PortalSettings.PortalAlias.HTTPAlias like "*development*" Then %>
    <div style="position: fixed; background-color: red; color: white; text-align: center; font-weight: 700; height: 100%; z-index: 0; font-size: 130%; right: 0; top: 0; writing-mode: vertical-rl; text-orientation: mixed; width: 30px; line-height: 30px; letter-spacing: 3px;">
        DEVELOPMENT
    </div>
<% end if %>

 
New Post
9/7/2018 12:15 PM
 

That looks like VB :-)
You can use our free Style Helper skin object for this and add a class to the body tag (which I created for things like this).

https://www.40fingers.net/Products/DN...
I have used it before to "indicate" a demo site:

<fortyfingers:STYLEHELPER ID="SH1" IfUrl="Demo" AddToBodyClass="demo-page" runat="server" />

Then in the skins stylesheet something like this:

.demo-page form{padding-top:2rem !important;}
.demo-page form:before{content:"Demo Site"; font-size:1em; display:block; line-height: 2em; margin-top:-2em;background:#f80;
position:fixed; margin-bottom:0; text-align:center; color:#fff; width:100%; z-index:1001;}

HTH

Or else you could use a converter to convert the VB to C#



 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Control Language C# - VB Logic needs convertedControl Language C# - VB Logic needs converted


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