404 error page when posting or submitting a form to wordpress

Posted by Designo | Posted in Helpful Articles | Posted on 12-02-2012

0

http://www.cabeeb.com/2009/09/posting-a-form-to-a-wordpress-page/

If you are posting a custom form anywhere within WordPress, use very unique field names so that they don’t conflict with WordPress’ variables. Otherwise, when you submit the form, it will have errors displaying the page, and instead display the 404 error page.

how to make a button work in flash as3, how to play a frame with a button using as3

Posted by Designo | Posted in Helpful Articles | Posted on 20-12-2011

0

To create a button in AS3 go to the actions panel on the frame that the button is in and paste the following code
You will need to first create an INSTANCE for your button by selecting the button and going to properties.

my_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(2);
}

change my_btn to the instance you created for your button.
you can change the parameters gotoandstop(2); to any action you want the button to take so if you want that to open a URL you can modify that line of the code, but the rest of the code will stay the same in order to give the button its property configuration

If you want to add several button actions on the same frame you will need to make the function unique by renaming mouseDownHandler
I simply add a 1 and increase the number to make things easy. Below is an example:

my_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndStop(2);
}
my_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
my_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);
function mouseDownHandler3(event:MouseEvent):void {
gotoAndStop(2);
}

AS3 – Go From Inside Movie Clip to selected Root Frame Number

Posted by Designo | Posted in Helpful Articles | Posted on 20-12-2011

0

In Flash using AS3, to navigate back to a specific frame in the root add the following Code to the ACTIONS panel on the desired frame.

MovieClip(parent).gotoAndPlay(2);

(Change 2 to the desired frame number)

How to Remove Comment Author Link in WordPress 3.1 – Helps Avoid Comment Spamming

Posted by Designo | Posted in Technical Tips | Posted on 28-11-2011

1

If your like us and want to promote your blog by allowing appropriate comments, but don’t want to deal with the spam involved you will want to edit your comment_template.php
The way people spam blogs is by posting a comment that would be approved based on the content, but then link their user profile name to an external website that they are promoting.
This usually involved inappropriate material but is always unrelated to your blog.
To help resolve this issue, the quick fix is to get rid of the attached link to the Author’s Title Name

using wordpress 3.1 go to wp-includes/comment_template.php
on line 155 it will say

$return = "<a href='$url' rel='external nofollow' class='url'>$author</a>";

simply remove the link code so it looks like this

$return = '$author';

Now you can safely approve comments that contain appropriate content without their ability to link back to their spam sites.

Windows 7 Printing Issues from lightroom – Please Install a Printer error

Posted by Designo | Posted in Helpful Articles, Technical Tips | Posted on 13-09-2011

0

This error occurred in Lightroom 2.7 when upgrading the Machine to windows 7 pro on a domain.
If your on a domain and having issues printing from a specific program using Windows 7, first try loggin in as a Domain Administrator to see if the error continues. This will let you know its the user account and lack of necessary privileges causing the error. I was able to resolve the issue by using RIGHT+CLICK on the program and selecting RUN AS ADMINISTRATOR

If this fixes your printing problem, you can set the properties of the program to automatically RUN AS ADMINISTRATOR every time by default.
Find the exact .exe file in program files or right click on the shortcut you use and find the target path.
- Right click on the .exe file and select COMPATIBILITY.
- at the bottom where it says PRIVILEGE LEVEL, Check RUN this program as an adminisrator.
- If your on a domain, click the button that says CHANGE SETTINGS FOR ALL USERS, and repeat the previous step.

It might have a popup asking you to confirm access to the program each time you load, so just hit yes or continue.

converting cat5 phone line back into data line Using Keystone Adapters – Proper Wiring and Problems with connecting

Posted by Designo | Posted in Helpful Articles, Technical Tips | Posted on 06-09-2011

1

After about an hour trying to use keystone adapters to network a previously used cat5 for phone lines back into a server rack for network purposes, I realized that the best method is to just use a coupler. If the wiring is off on the cable routed through to the wall jack it can throw you off, so you have to rip the wall jack off just to confirm. As well you will need a punch down tool to make sure your cable is properly seated into the keystone adapter.

If your good at making cat5 cables you can just save yourself the trouble and put a RJ45 end on the wire, then use a coupler. couplers are about $5 a piece at the store but i’m sure you can get them cheaper in bulk online if you need several.

Adding Anchored Links or Reference Links in Wikipedia

Posted by Designo | Posted in Helpful Articles | Posted on 02-08-2011

1

If you need to create a reference link or anchor link in side wikipedia in order to direct users to a specific section in your post use the following code:

ANCHOR CODE: {{anchor|youranchorname}}
Change “youranchorname” to whatever you want to help identify the section of the page your are linking to
Place this code where you want viewers to be directed.

LINK CODE: [[#youranchorname|your text do display]]
Change “your text do display” to whatever text you want the link to be that directs viewers to the anchor
Place this code where you want the link to be

 

 

Proper/Correct Wiring for Cat5 Ethernet Cable

Posted by Designo | Posted in Technical Tips | Posted on 29-07-2011

0

Source: http://en.wikipedia.org/wiki/TIA/EIA-568-B

T568A and T568B termination

Perhaps the widest known and most discussed feature of TIA/EIA-568-B.1-2001 is the definition of pin/pair assignments for eight-conductor 100-ohm balanced twisted-pair cabling, such as Category 3, Category 5 and Category 6 unshielded twisted-pair (UTP) cables. These assignments are named T568A and T568B and they define the pinout, or order of connections, for wires in 8P8C (often incorrectly referred to as RJ45) eight-pin modular connector plugs and sockets. Although these definitions consume only one of the 468 pages in the standards documents, a disproportionate amount of attention is paid to them. This is because cables that are terminated with differing standards on each end will not function normally.

TIA/EIA-568-B specifies that horizontal cables should be terminated using the T568A pin/pair assignments, “or, optionally, per [T568B] if necessary to accommodate certain 8-pin cabling systems.” Despite this instruction, many organizations continue to implement T568B for various reasons, chiefly associated with tradition (T568B is equivalent to AT&T 258A). The United States National Communication Systems Federal Telecommunications Recommendations do not recognize T568B.

The primary color of pair one is blue, pair two is orange, pair three is green and pair four is brown. Each pair consists of one conductor of solid color, and a second conductor which is white with a stripe of the same color. The specific assignments of pairs to connector pins varies between the T568A and T568B standards.

[edit] Wiring

See modular connector for numbering of the pins

Pin T568A Pair T568B Pair Wire T568A Color T568B Color Pins on plug face (socket is reversed)
1 3 2 tip Pair 3 Tip

white/green stripe

Pair 2 Tip

white/orange stripe

Rj45plug-8p8c.png
2 3 2 ring Pair 3 Ring

green solid

Pair 2 Ring

orange solid

3 2 3 tip Pair 2 Tip

white/orange stripe

Pair 3 Tip

white/green stripe

4 1 1 ring Pair 1 Ring

blue solid

Pair 1 Ring

blue solid

5 1 1 tip Pair 1 Tip

white/blue stripe

Pair 1 Tip

white/blue stripe

6 2 3 ring Pair 2 Ring

orange solid

Pair 3 Ring

green solid

7 4 4 tip Pair 4 Tip

white/brown stripe

Pair 4 Tip

white/brown stripe

8 4 4 ring Pair 4 Ring

brown solid

Pair 4 Ring

brown solid

Note that the only difference between T568A and T568B is that pairs 2 and 3 (orange and green) are swapped. Both configurations wire the pins “straight through”, i.e., pins 1 through 8 on one end are connected to pins 1 through 8 on the other end. Also, the same sets of pins are paired in both configurations: pins 1 and 2 form a pair, as do 3 and 6, 4 and 5, and 7 and 8. One can use cables wired according to either configuration in the same installation without significant problem; problems involving crosstalk can occur (which is normally minimized by correctly twisting a pair together), but are usually insignificant in all but the most stringent specifications such as Category 6 cable. The primary thing one has to be careful of is not to accidentally wire the ends of the same cable according to different configurations (unless one intends to create an Ethernet crossover cable).

Updating your WordPress Theme to Natively support menus

Posted by Designo | Posted in Helpful Articles | Posted on 27-07-2011

4

This article is how you modify the menus to include a custom menu – usually replacing the top navigation menu.

http://codex.wordpress.org/Navigation_Menus

Codex

Codex tools: Log in
Navigation Menus

Languages: English • ??? • Sloven?ina • ??(??) • (Add your language)

Navigation Menu is a theme feature introduced with Version 3.0. WordPress includes an easy to use mechanism for introducing customised navigation menus into theme. In order to incorporate menu support into your theme, you need to add a few code segments to your theme files.
Function Reference
Register Navigation Menu

register_nav_menus()
register_nav_menu()
unregister_nav_menu()

Show Navigation Menu

has_nav_menu()
wp_nav_menu()

Contents
[hide]

1 Function Reference
2 Edits to functions.php
3 Now add locations to your template files
4 Back to the Menus Panel
5 External Resources
6 Related

Edits to functions.php

Firstly, in your theme’s functions.php, you need to write a function to register the names of your menus. (This is how they will appear in the Appearance -> Menus admin screen.) As an example, this menu would appear in the “Theme Locations” box as “Header Menu”.

function register_my_menus() {
register_nav_menus(
array(‘header-menu’ => __( ‘Header Menu’ ) )
);
}

And this would make two menu options appear, header menu and extra menu -

function register_my_menus() {
register_nav_menus(
array( ‘header-menu’ => __( ‘Header Menu’ ), ‘extra-menu’ => __( ‘Extra Menu’ ))
);
}

Then you need to ensure that the theme turns these menu options on, so you need this bit of code as well -

add_action( ‘init’, ‘register_my_menus’ );

The above tells the theme to run your “register_my_menus” procedure. As you can see, your new function makes use of the WordPress register_nav_menus functionality.
Now add locations to your template files

Once you’ve done that, your theme will be almost ready. The last preparation step is to tell the theme where you want the menus to show up. You do this in the relevant theme file. So, for example, we might want our header menu to be in header.php. So open up that file in the theme editor, and decide where you want to put your menu. The code to use here is wp_nav_menu which we will need once for each menu location. So, add this code -

‘header-menu’ ) ); ?>

All you need to ensure is that the theme_location points to the name you provided for your menu in the functions.php code above. (Note that it’s the header-menu being used here rather than Header Menu without a hyphen. header-menu is the name that the code understands, Header Menu is the human-readable version that you see in the admin page.)

To complete the code, you can put your extra menu someplace else. Maybe you want a menu on one of your pages, for example, and you might even want it to be jazzed up a little with a containing DIV of a certain class -

wp_nav_menu( array( ‘theme_location’ => ‘extra-menu’, ‘container_class’ => ‘my_extra_menu_class’ ) );

So you’d put the above into your Page template, and not only would the menu show up wherever you put it, it’d be styled as my_extra_menu_class so that you can work with that in CSS.
Back to the Menus Panel
WARNING: If you do not have the Menus SubPanel under Appearance, you need to ensure your theme has add_theme_support( ‘menus’ ) in your theme’s functions.php file.

That’s all the background work. To finish, you would simply visit the Appearance -> Menus panel in your site admin. Now, instead of seeing some text suggesting that your theme doesn’t natively support menus, you’ll see some Theme Location options.

You can now use the GUI menu creator on this admin panel to put your menu(s) together. Give them each a name, and then assign a menu to a location with the pull-down options.

Uninstalling Trend Micro Security Server without Password

Posted by Designo | Posted in Technical Tips | Posted on 27-07-2011

1

If you need to bypass the Trend Micro Security Server password for uninstallation or reinstall purposes below is the link to the password recovery file.

http://esupport.trendmicro.com/solution/en-us/1056323.aspx