Skip to main content

Posts

Showing posts with the label Dotnetnuke

Dotnetnuke Messages and Notifications links not working properly

It take me a week to figure this out, had to look into the source code,  In our case the issue occur because we have a custom User Profile page and the Message Center page in not a child of that page. We just move the messages page under profile page and everything works properly.  Also make sure you clear cache under host settings. I ask a question about this on DNN Q&A

DotNetNuke and Apache Solr in action

All search functionality of  zeekbeek.com is powered by SOLR. Also we are using  jQuery Waypoints  for infinite scroll of search results and  jQuery BBQ  for handing #hash.

Allow Indexing Page Settings and ROBOTS Meta in DotNetNuke

This is a single page settings that every DotNetNuke Admin should never forget. This setting controls whether a page should be indexed by search crawlers. It uses the INDEX/NOINDEX values for ROBOTS meta tag. It is located in: Page Settings > Advance Settings > Other Settings

Example on how to use dnnConfirm jQuery Plugin

The JS code below will show a dnn confirm dialog upon click on any button with my-Button class.  Pay attention to isButton option on initialization and the isTrigger parameter on button click. //initialization $(".my-Button").dnnConfirm({     text: "Confirm Message",     title: "Confirm",     isButton: true }); //button click handler $(".my-Button").click(function (e, isTrigger) {     if (isTrigger) {         // Your code here     }     return false; });

DotNetNuke+Apache Solr=High Speed Enterprise Search

We have successfully implemented Apache Solr as a Search Solution for DotNetNuke . Here's the summary on how we did it. First we installed  BitNami Apache Solr Stack  to our test machine(Windows 7). We change the Solr Schema to fit our needs.   We build a DNN Scheduler to add/edit/delete documents to Solr using Solrnet . After we are done indexing,  we created a search class to query Solr Webservice using Solrnet. Now we have an Intelligent and Fast Search. :) FYI: Solr has a cool Dashboard that will let you check if your documents are being index properly or do some test query. I will find time to share actual source code in the near future. Regards

Another way implementing dnnConfirm

// Delete review button $(".Delete-Button").dnnConfirm({     text: "Confirm Message",     title: "Confirm Title",     isButton: true }); $(document).delegate(".Delete-Button", "click", function (e) {     if (e.isTrigger) {         //Your code here     }     return false; });

Disable tokeninput inside of Compose Message Dialog

I implemented DotNetNuke's dnnComposeMessage method/plugin in one of my module and I notice that other than the contact being pre-populated, users are also allowed to add/edit contact, this is great if you want it that way, however if you don't want users to change contacts other than what you already pre-populated, then we should disable it. I can't find a method inside of tokeninput plugin so I use CSS to hide the close icon and input control which in turn disable add or delete of contact during compose message dialog. Below is my CSS, using facebook theme. .composeMessageDialog fieldset .dnnFormItem .token-input-input-token-facebook input { display: none; } .composeMessageDialog fieldset .dnnFormItem .token-input-delete-token-facebook { display: none; }

dnnAlert and dnnConfirm jQuery Plugin

I like the idea of using jQuery Plugins in DNN for interactive and consistent user interface which is why I digg into using dnnAlert and dnnConfirm plugins, however after a quick look on the documentation I notice the following. For dnnAlert you can't set the title. We are allowed to set the OK button text using okText option but not the dialog title? For dnnConfirm. This is very usefull when you just want a confirmation dialog upon click on your button or link however you can't use it like javascript confirm function or at least I don't know how to use it like below: if(confirm('Question?')){//some code}

Export Crystal Report to PDF using VB.Net for Download in your DotNetNuke site

The code below will force download of PDF version of you crystal report in DotNetNuke. This code is base on this article . ' Create a temporary filename Dim strPDF As String = MapPath("Reports/TO" & Session.SessionID & ".pdf") ' Create report Dim rpt As New TravelOrderList ' Set report params 'rpt.SetParameterValue("ReportTitle", "Report Title") 'rpt.SetParameterValue("ReportSubTitle", "Sub Title") ' Set report datasource rpt.SetDataSource(ds) Dim CrExportOptions As ExportOptions Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions() Dim CrFormatTypeOptions As New PdfRtfWordFormatOptions() CrDiskFileDestinationOptions.DiskFileName = strPDF CrExportOptions = rpt.ExportOptions With CrExportOptions .ExportDestinationType = ExportDestinationType.DiskFile .ExportFormatType = ExportFormatType.PortableDocFormat .DestinationOptions = CrDiskFileDestinationOptions .Format...

Update DesktopModule Category

The code below will add a new category to dotnetnuke module category list. ' Update module category Dim desktopModule As DesktopModuleInfo = DesktopModuleController.GetDesktopModuleByModuleName("DNNSEO", Null.NullInteger) DesktopModuleController.AddModuleCategory("Vivoware") desktopModule.Category = "Vivoware" DesktopModuleController.SaveDesktopModule(desktopModule, False, False) For some reason I had to edit the desktop module, set the category and save for it to be visible in the list of modules when the category I created is selected. Screenshoot. HTH

Profanity Filter

Soon vivosocial will have a Profanity Filter Feature. We are still fine tunning this cool new addition, hopefully it will be out in the next release. Accordning to Wikipedia A swear filter, also known as a profanity filter or language filter is a software subsystem which modifies text to remove words deemed offensive by the administrator or community of an online forum. Swear filters are common in custom-programmed chat rooms and online video games, primarily MMORPGs. This is not to be confused with content filtering, which is usually built into internet browsing programs by third-party developers to filter or block specific websites or types of websites. Swear filters are usually created or implemented by the developers of the Internet service. Read more...

DotNetNuke.Common.Globals.NavigateURL() Inside DotNetNuke Scheduler

I need to call this very usefull function of DNN from my Scheduler Class but I always get the following error. Object reference not set to an instance of an object., stack at DotNetNuke.Common.Globals.NavigateURL(Int32 TabID, Boolean IsSuperTab, PortalSettings settings, String ControlKey, String Language, String[] AdditionalParameters) at DotNetNuke.Common.Globals.NavigateURL(Int32 TabID, Boolean IsSuperTab, PortalSettings settings, String ControlKey, String[] AdditionalParameters) at DotNetNuke.Common.Globals.NavigateURL(Int32 TabID, PortalSettings settings, String ControlKey, String[]..... For now I have no idea whats happening, I have already post an entry in this very old thread in DotNetNuke Forum and hopefully somebody can share there solution. I will keep digging on this one, Once I have a solution I will add a comment on this post. a s t a l a v i s t a

Upgrade DNN Label Control

This script will upgrade the look and feel of DotNetNuke label control.  Instead of hiding/showing the help element of the label it will show it as tooltip using jQuery Tools Tooltip .  Its pretty cool, you can even add some fancy style to your tooltip window.  Copy the script below to your page,  Be it in skin,  Header/Footer setting of your module or anywhere you want.  Then hover in any of the ? icon beside your label and see the difference. I have no running sample for now, but I will update this post as soon as i got one. Thanks, v