This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using System; | |
@using System.Collections.Generic; | |
@using System.Linq; | |
@using System.Web; | |
@using System.Web.UI; | |
@using System.Web.UI.WebControls; | |
@using DotNetNuke.Common | |
@* the following is a DLL added to the /bin folder, see http://selectpdf.com/community-edition/ *@ | |
@using SelectPdf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Control Language="C#" AutoEventWireup="True" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %> | |
<%@ Register TagPrefix="dnn" ... | |
... | |
<script runat="server"> | |
// Read more: https://dnncommunity.org/blogs/Post/6127 | |
// Important: for this to work, AutoEventWireup (above) needs to be True | |
protected void Page_Init(object sender, EventArgs e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{ | |
// Where to go | |
string urlRedirect = "/tabid/21?paramname=paramvalue"; | |
if (IsAdminOrHost(Dnn.Portal.UserInfo)) | |
{ | |
<h5>You are in a site/CMS administration role, redirect is disabled for you.</h5> | |
<p>Had you been a normal user, you would have been redirected to:<br> | |
<strong>@urlRedirect</strong> | |
</p> | |
<p>This script now has a home <a href="https://gist.github.com/jeremy-farrance" target="_blank">on my Gists (GitHub)</a>. Cheers! - Jeremy</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PS 7.1.3 20210527 JRF | |
# using this Set-Window function (saved to Users/jfarrance/PowerShell/) | |
# https://superuser.com/questions/1324007/setting-window-size-and-position-in-powershell-5-and-6 | |
## unfinished but working | |
-- need to implement detecting AND controlling the window states for minimized/max/normal | |
-- need to detect screen rez and adapt? 2560x1440, 1920x1200, 1920x1080 | |
## future? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@* 20210212 JRF | |
Load More reference pieces; there are many other ways to do this, and this leaves a lot open for enhancement. | |
This is not a working example, just the pieces *for reference* | |
Note 1a: this still sends ALL entries to the client, so this is not appropriate for more than 200 to 300 items IMHO | |
Note 1b: and if your output includes images, this would be BAD for slow connections and mobile | |
Note 2: this assumes Bootstrap 4.x is in place | |
The original was this using jQuery, at the time I was learning NOT to use jQuery | |
and this was an early attempt at doing something JS only. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@functions { | |
public static string Version() { return "20200822"; } | |
} | |
@* >>> put me in your DNN /App_Code folder | |
>>> there are (at least) 2 files, see AccuTheme.cshtml (below) | |
>>> home = https://gist.github.com/jeremy-farrance/6892f18bf0fd4d60a688d0ca418e449b | |
// TODO - updates and changes needed | |
- Move all compatibility stubs (e.g. ) so a separate section at the bottom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%-- THIS IS THE C# CSharp .NET VERSION | |
NOTES: | |
- the way we get the Skin name is "janky" ;) | |
- uses Bootstrap (next version won't?) | |
How to use: | |
1. Save this file in your theme folder, usually includes/__debug.ascx | |
2. Update the IPs; add the WAN IP(s) for your location(s) | |
3. Update the Bootstrap version manually | |
4. Either in includes/_footer.ascx (or Home.ascx), before closing DIV in main <footer> section add this |
NewerOlder