Selecting the Top 2 Meeting Dates from Separate Records CapturedTech - Technology - Patrick Stevens Jun 22 2009 253 0 Selecting the Top 2 Meeting Dates from Separate Records I wrote this short SQL Server code today to select the top 2 meeting dates and combine them into a single record. Using a temporary table it was possible to select the first date as one column and then select the second date as a second column. These records will be placed into a grid with the first record representing meeting dates and the second record showing agendas. Therefore the Union All was used to duplicate the first record. Read more ...
Making your Blog/Site Mobile CapturedTech - Technology - Patrick Stevens Jun 12 2009 174 5 Making your Blog/Site Mobile I have read a number of posts recently about making your blog mobile and found two pretty good versions that anyone can use for their site. The first uses Google Reader to present your RSS feed in a mobile way. And the second creates a more true mobile version with mippin.com and their technology. According to most posts, adding mobile ability to your site increases traffic by a fairly good amount. Read more ...
Creating Image Buttons that Resize on Mouse Over CapturedTech - Technology - Patrick Stevens Jun 09 2009 225 1 Creating Image Buttons that Resize on Mouse Over We needed to have a different way than previously designed to have image buttons enlarge on hover over that included a text label. So I wrote the code below to fill a table cell with an image and change the image onmouseover. The trick was getting the label to sit right on top on the images and having the images swap correctly. I used a div area to push the label down to the right spot on the image. And then I used some css style attributes in JavaScript to get the image to change when needed. Read more ...
Adding Widgets to your Wordpress Footer CapturedTech - Technology - Patrick Stevens May 22 2009 382 6 Adding Widgets to your Wordpress Footer I have a number of Wordpress blogs that I administrate and some have long sidebars with only one column which become too long for the content contained on the page. I have been looking for a way to move some of the sidebar widgets to the footer but this wasn't an option with the SimpleX theme that I am using. Then I came across Help-Developer.com and there great example of how to add widgets to your Wordpress footer. Read more ...
Building HTML in the Page_Init Event CapturedTech - Technology - Patrick Stevens May 15 2009 320 3 Building HTML in the Page_Init Event In relation to the CSS Rounded Corners that I wrote about recently, we needed to have the rounded corners rendered in the Page_Init event of a user control instead of being part of a markup page. Therefore I researched adding simple Html tags in code and found the HtmlControls.HtmlGenericControl method which creates generic Html controls, obviously. The CSS Rounded Corners Html code is a combination of bold tags mostly with some div tags and CSS classes to go along. Here is an example of the Html for the rounded corners in Asp.Net code behind. Read more ...
Removing Groups of Posts from the DNN Blog Module CapturedTech - Technology - Patrick Stevens May 09 2009 370 0 Removing Groups of Posts from the DNN Blog Module If you happen to run DotNetNuke with the Blog Module as one of your major modules for content, you may find the need to remove a group of posts from the module at some time. For instance, you were active in Paid-to-Post at one time, have received your money from the posts, have fulfilled your obligation with the organization that hired you, but are still being penalized by Google for having the posts on your site. Well, there are only two tables in DNN that you need to query and delete records from to remove these posts permanently. Read more ...
CSS Rounded Corners CapturedTech - Technology - Patrick Stevens May 07 2009 194 8 CSS Rounded Corners I have been creating my own rounded corners using a table structure and 6 images on a couple of web sites that we are building. But I started to wonder if there was an easier way to round corners without all the images and etc. Today I came across benogle and his CSS Rounded Corners demonstration which is one really nice way to create what used to require quite a bit of image slicing. Read more ...
Finding a Way to Link to Landing Pages without Linking CapturedTech - Technology - Patrick Stevens Apr 30 2009 214 4 Finding a Way to Link to Landing Pages without Linking I thought I had found a decent way to link to landing pages without actually linking to them. I did this so Google wouldn't know I was linking to certain sites and for some reason punish my rankings. Well I found a decent solution using the Redirection plugin for my Wordpress Blogs. I would create 301 redirections to certain directories on my site which would redirect to the landing page. But some new blogs I created, I received a 401 error on the home page when this plugin was activated. So this solution didn't always work. For those cases I altered the .htaccess file in the root directory to accomplish the same redirection. Read more ...
Changing your BlogSpot Blog to DoFollow CapturedTech - Technology - Patrick Stevens Apr 23 2009 206 11 Changing your BlogSpot Blog to DoFollow I have casually been running a Blogspot blog for some time mostly for linking back to my main web sites. Until today I hadn't taken the time to find out how to alter the blog from a nofollow blog to a dofollow blog. At first it seemed like altering the layout HTML would be all that was necessary but there were no nofollow tags in the code. Then I came across Tips for Blogspot which showed the needed flag 'Expand Widgets'. After selected this checkbox and replacing the two rel="nofollow" with rel="nofollow external", I was set. Read more ...
JavaScript OnMouseOver for Firefox CapturedTech - Technology - Patrick Stevens Apr 10 2009 483 17 JavaScript OnMouseOver for Firefox I wrote a fairly simple JavaScript line to modify the size of an image when there is a OnMouseOver event. And then wrote a similar line of JavaScript to reduce the size back to normal on the OnMouseOut event. The only problem is the JavaScript didn't work on FireFox although it was great with Internet Explorer. After some research I found that using the 'this' object was needed with FireFox. So I adjusted my code to also have the events in the image object itself. Here is the code: Read more ...