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
EXEC sp_MSforeachdb | |
' | |
UPDATE [?].dbo.Users | |
SET IsDeleted = true | |
WHERE Email = ''[EMAILADDRESS]''' |
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
-- Better Version | |
EXEC sp_MSforeachdb | |
--Declaring Variables | |
DECLARE @var2 VARCHAR(50) | |
SET @var2 = ''andrew@purplecs.com'' | |
DECLARE @var1 int | |
--Checking to see if Andrew exists | |
IF EXISTS (SELECT * FROM Users WHERE Email = @var2) | |
--If Andrew Exists, Run this |
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
EXEC sp_MSforeachdb | |
'IF EXISTS (SELECT * FROM [?].INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_NAME = ''PaleDNN_Templates'') | |
BEGIN | |
PRINT DB_NAME(DB_ID(''?'')) | |
END' |
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.Dynamic; | |
@using System.Web.UI.HtmlControls; | |
@using DotNetNuke.Common; | |
@using DotNetNuke.Entities.Users; | |
@using CartViper.Modules.Store.Admin; | |
@using CartViper.Modules.Store.Catalog; | |
@using CartViper.Modules.Store.Extensions; | |
@using CartViper.Modules.Store.WebControls; | |
@using CartViper.Modules.Store.Data; | |
@inherits DotNetNuke.Web.Razor.DotNetNukeWebPage<dynamic> |
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
window.animateCSS = function(element, animationName, callback) { | |
element.classList.add('animated', animationName) | |
function handleAnimationEnd() { | |
element.classList.remove('animated', animationName) | |
element.removeEventListener('animationend', handleAnimationEnd) | |
if (typeof callback === 'function') callback() | |
} | |
element.addEventListener('animationend', handleAnimationEnd) | |
} |
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
// <p>Loading</p> | |
p::after { | |
content: ''; | |
position: absolute; | |
animation: dots 1s linear infinite; | |
} | |
@keyframes dots { | |
25% { |
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
dbo.PersonaBarMenu | |
Change Parent Menu ID of a page that you created in the admin menu. | |
DNN allows you to have parent page as admin, having it in admin section allows it to be show in this DB table |
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
if (navigator.userAgent.match(/Trident\/7\./)) { | |
// if IE | |
$("body").on("mousewheel", function() { | |
// remove default behavior | |
event.preventDefault(); | |
//scroll without smoothing | |
var wheelDelta = event.wheelDelta; | |
var currentScrollPosition = window.pageYOffset; | |
window.scrollTo(0, currentScrollPosition - wheelDelta); |
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
SELECT PaneName FROM dbo.TabModules | |
UPDATE dbo.TabModules | |
SET PaneName = 'NewPaneName' | |
WHERE PaneName = 'OldPaneName' | |
-- Update Using Module Title | |
SELECT PaneName FROM dbo.TabModules | |
UPDATE dbo.TabModules | |
SET PaneName = 'New pane name' | |
WHERE 'Module Title' = 'Your Title' |
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
@if (DotNetNuke.Common.Globals.IsEditMode()) | |
{ | |
<div id="accordion-@Dnn.Module.ModuleID"> | |
<div class="card"> | |
<div class="card-header" id="heading-@Dnn.Module.ModuleID" > | |
<h5 class="mb-0"> | |
<a class="btn btn-primary text-white" data-toggle="collapse" data-target="#collapse-@Dnn.Module.ModuleID" aria-expanded="true" aria-controls="collapse-@Dnn.Module.ModuleID">Show Admin Section</a> | |
</h5> | |
</div> | |
<div id="collapse-@Dnn.Module.ModuleID" class="collapse" aria-labelledby="heading-@Dnn.Module.ModuleID" data-parent="#accordion-@Dnn.Module.ModuleID"> |
NewerOlder