Author: Created: 2012/01/18 11:46 AM
My opinion - everything goes!
By Guss Davey on 2012/04/17 09:54 AM
try { int NewImageSize = 128; String strPath = HttpRuntime.AppDomainAppPath + "Portals/0/Users/"; // List all images from source directory DirectoryInfo diImages = new DirectoryInfo(strPath); ArrayList alImages = new ArrayList(); alImages.AddRange(diImages.GetFiles("*.gif", SearchOption.AllDirectories)); alImages.AddRange(diImages.GetFiles("*.jpg", SearchOption.AllDirectories)); alImages.AddRange(diImages.GetFiles("*.png", SearchOption.AllDirectories)); Image imgOriginal; float OriginalHeight; float OriginalWidth; int NewWidth; int NewHeight; Bitmap ResizedBitmap; Graphics ResizedImage; int totalimages = 0; int processedimages = 0; foreach (FileInfo fiImage in alImages) { totalimages += 1; imgOriginal = Image.FromFile(fiImage.FullName); OriginalHeight = imgOriginal.Height; OriginalWidth = imgOriginal.Width; if (OriginalHeight > OriginalWidth) { NewHeight = NewImageSize; NewWidth = (int)((OriginalWidth / OriginalHeight) * (float)NewImageSize); } else {...
By Guss Davey on 2012/04/17 09:47 AM
using DotNetNuke.Services.Scheduling to execute a stored procedure in DNN database.
namespace CompanyName.Schedule
{
class MyUpdater : SchedulerClient
{
public MyUpdater(ScheduleHistoryItem objScheduleHistoryItem)
: base()
{
ScheduleHistoryItem = objScheduleHistoryItem;
}

public override void DoWork()
{ ..... ............
By Guss Davey on 2012/03/11 10:52 AM
/* Change Telerik tabstrib so that it looks like DNN jquery darknight tabstrip (Telerik skin = Simple & RadTabStrip CssClass="telerik2dnn" */ .telerik2dnn .rtsLI, .telerik2dnn .rtsLink { color: #FFFFFF !important; font: 12px/27px Helvetica , Arial, sans-serif !important; font-weight: bold !important; text-shadow: black 0px 1px 1px !important; text-decoration: none !important; } .telerik2dnn .rtsLink { border: 0px none !important; margin-right: 2px !important; margin-top: 2px !important; margin-bottom: 0px !important; -moz-border-radius-topleft: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px;....
By Guss Davey on 2012/02/08 09:27 AM
There is several code example of doing this, but not all of them work 100% in DNN6+. These code examples also have a lot of Deprecated in DNN5.x warnings. My example code below is for DNN 6.x, with no warnings.

private string DotNetNukeRegistration()

{

UserController uCtrl = new UserController();

UserInfo DnnUserObject = new UserInfo();

DnnUserObject.PortalID = this.PortalId;

DnnUserObject.IsSuperUser = false;

DnnUserObject.FirstName = txtFirstname.Text;

DnnUserObject.LastName = txtLastname.Text;

DnnUserObject.Email = txtEmail.Text;

DnnUserObject.Username = txtUsername.Text;

DnnUserObject.DisplayName = txtFirstname.Text + " " + txtLastname.Text;

DnnUserObject.Profile.PreferredLocale = PortalSettings.DefaultLanguage;

DnnUserObject.Profile.PreferredTimeZone = PortalSettings.TimeZone;

DnnUserObject.Profile.FirstName...
By Guss Davey on 2012/01/23 10:24 AM
The proprietary CiscoVPN Mac client is somewhat buggy. It is possible to use the IPSec VPN software included with Mac OS X instead. This tutorial shows you how to migrate from CiscoVPN to the native OS X IPSec VPN by decrypting passwords saved in CiscoVPN PCF files. 

...
DotNetNuke Profile Image Resizer
DNN 6 - Register User from Code
Native Cisco VPN on Mac OS X
NASA Solar Storm Warning
Pole Reversal - Polar Shift
Dan Roodt
Survivor Reality Show - Rules
Communist Disinformation Techniques
The History of Political Correctness
Radio Frequencies
Ex SADF Radios
Internet Search Strategy
Internet Jargon
The Theo Pistorius Handywork