22 tra.

Problem s anchor linkom u Firefoxu

http://stackoverflow.com/questions/6826741/anchor-link-landing-in-wrong-position

Problem je bio da anchor link nije skakao na dobro mjesto na stranici kad se pozivao sa neke druge stranice (npr index.html#contact).

Ovo je (više manje) upalilo – dodala u <head> od html dokumenta index.html

<SCRIPT LANGUAGE=JavaScript>
function now(){
    window.location.reload(true);
}
</SCRIPT>

Izvor: https://css-tricks.com/forums/topic/solved-firefox-anchor-links/

11 tra.

Migracija emailova na novi server / cPanel

Make sure that you have an account with the mydomain.com domain or the domain is added as Parked or Addon in cPanel at the destination server.

  1. navigate to the etc/ sub folder. There you will see a folder named mydomain.com or the name of the domain you want to transfer the messages for. Download this folder anywhere to your local PC. This folder contains the email accounts associated with the corresponding domain. 

    Now connect  to the server where you want to transfer the accounts/messages. Navigate again to the etc/ sub folder and upload the previously downloaded mydomain.com folder. With this, the transfer of the email accounts is completed.

  2. The last step is to transfer the email messages. Simply repeat the process from step 1, but this time navigate to the mail/ sub folder of the account where the messages are stored, download mydomain.com to your local PC, connect to the other account where you want to transfer the messages and upload the folder mydomain.com to the mail/ sub folder of the destination account. With this, the transfer of your email accounts and messages is completed.

You should be able to open cPanel > Email accounts of the destination account and see the email accounts for mydomain.com listed.

izvor:

How to transfer email accounts and messages between cPanel servers?

11 tra.

Kreiranje WP Admin korisnika kroz MySQL

Create a WordPress admin user with MySQL

If you’ve ever been locked out of a WordPress installation, but have access to the database, here’s a nifty snippet to grant you administrator-level access. There are a couple of things you need to do before using this MySQL code. First, set the variables to your own information. Next, if your WordPress installation is based on a non-standard wp_ table prefix, you must find/replace ‘wp_’ with your current table prefix.
http://coderrr.com/create-a-wordpress-admin-user-with-mysql/

SET @id = 99;
SET @user = ‘username’;
SET @pass = ‘password’;
SET @email = ’email@ddress’;
SET @name = ‘Your Name’;

INSERT INTO  wp_users (ID, user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_activation_key, user_status, display_name) VALUES (@id, @user, MD5(@pass), @name, @email, ”, ‘2013-06-20 00:00:00’, ”, ‘0’, @name);
INSERT INTO  wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @id, ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’);
INSERT INTO  wp_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @id, ‘wp_user_level’, ’10’);
INSERT INTO  wp_usermeta (umeta_id, user_id, meta_key, meta_value) VA

Moj primjer
________________

SET @id = 99;
SET @user = ‘adminko’;
SET @pass = ‘Ajm00!!.Asad.’;
SET @email = ‘webmaster@ideja.in’;
SET @name = ‘Administrator’;

INSERT INTO  good_users (ID, user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_activation_key, user_status, display_name) VALUES (@id, @user, MD5(@pass), @name, @email, ”, ‘2013-06-20 00:00:00’, ”, ‘0’, @name);
INSERT INTO  good_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @id, ‘wp_capabilities’, ‘a:1:{s:13:”administrator”;s:1:”1″;}’);
INSERT INTO  good_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @id, ‘wp_user_level’, ’10’);
INSERT INTO  good_usermeta (umeta_id, user_id, meta_key, meta_value) VALUES (NULL, @id, ‘active’, ‘1’);

—-
a:1:{s:13:”administrator”;b:1;}
a:1:{s:13:”administrator”;s:1:”1″;}