Place simple social networking share buttons on my website
Solution
Created a simple JavaScript file with the corresponding HTML links to share my website on popular social networking websites without including a "count"
I already have a registration system with login, but would like to expand it so that after the user enters all their info into the registration form, including email, an auto-email is sent to user to validate their registration.
Solution
Please see below for a detailed explanation of how to accomplish this.
Needed an accordion that scrolled right to left and had vertical text, that would advance on it's own and pause when you moused over it.
Solution
Spry has the ability to slide an accordion right to left built into it as an option. Found a solution for the vertical text solution that appears to work across all browser. Used the Spry forum to tackle the auto-start and mouse over pause.
Prior to ColdFusion 9, it was not always easy to <cfdump /> a variable when using <cfscript />.
Solution
Create a function or a utility component which you can then call from cfscript. Using the function, you can pass in "true" to stop the code execution anywhere you place the function call. This is useful for debugging chunks of code with a lot of conditional logic.
I am finishing up the administrative area of my website, which requires admin users to login. I have now added security levels - 1 for administrator and 2 for admin user. At login a session variable is set. There is a system button that allows an administrator to add/update/delete users. I want to restrict admin users access to this button and all system pages. I have an idea how to do it, but wanted to see if there is a simple "best practices" approach to the problem. Thank you.
Solution
There are some ways to approach this problem.
1. Define your login page by Restrict access based on: Username, password, and access level
2. In the admin page, use if condition to hide the button. This mean the user who has the level as a Administrator can see the button and the User Admin only can see the list of the users
You have a hosted video that you want to share on the web or mobile devices.
Solution
Use the free and super-easy-to-use video player called Flash Media Playback. The following how-to video walks you through the simple steps of getting the HTML embed code for the Adobe-hosted video player and pasting it into a finished web page so you can play your own hosted video file anywhere (that Flash Player is).
(Video below is currently offline pending a bug fix by the Cookbooks engineering team. A resolution is expected shortly.)
I want to center my web page in all browsers, even if it contains AP Divs.
Solution
Centering block-level HTML elements is easy: just make sure the element has a declared width, and set the left and right margins to auto. To center a page, wrap the entire contents in a div, and set its horizontal margins to auto. If the page contains AP Divs, set the position property of the wrapper div to relative.
I want to insert code so a file field can be used to upload images. Also, is it possible to upload images to an image placeholder?
Solution
Uploading images with PHP is relatively easy. For security reasons, you should always check that the file is an image, and that it doesn't exceed a maximum size. The original question posed by Daniel Hogg specified that the image should be uploaded to an image placeholder. As long as the image has the same name as the placeholder, the following solution should work.
You have a set of database results (recordset) that contains a field with a value that's repeated in each row, but you want to show the value only the first time it appears. At the same time, you want the remaining fields to be displayed. For example, you're building a list with categories and subcategories. Each category should be shown only once.
Solution
Before the recordset is displayed in a repeat region, initialize an empty variable to keep track of value of the field with the repeated value(s). Each time the repeat region loop runs, check to see if the value is the same as the current one. If the value is different, display it. Otherwise, skip it.
How can I get Dreamweaver to generate earlier, (higher-up) content, in the right-hand column (visually) of a 2-column layout for SEO a la Matthew James Taylor's hack-free CSS? Dreamweaver creates top-down as left-right.
Solution
You can customize the 32 built-in CSS layouts in Dreamweaver CS3 and CS4 by editing the source files in the Dreamweaver configuration folder.
This site is produced in partnership with O'Reilly.