DPJ Online

My daily computer experience

How To Rearrange Your WordPress Navigation Menu

I was wondering how can i rearrange wordpress navigation menu. I usually place the “About” menu at the right most of my page. In wordpress’ case it is placed right after “Home” menu. When you add another page, the page’s navigation menu will be automatically be placed right beside the “About” menu. I’ve rearranged mine like this wordpress blog [Cebu, Philippines. The Queen City Of The South]

To do it please follow the simple steps below:

  • 1. Login to your wordpress admin page.
  • 2. On the dashboard, click pages.
  • 3. On the Edit Pages window, click the page you want to rearrange. Do one after the other.
  • 4. At the right part of the edit window, you can find attributes option. Place a number in the “Order” field that corresponds to your page menu location. It is arranged in ascending order from left to right.

To view a working sample, you can visit http://cebu.dpjonline.com

Happy Coding

November 12, 2009 Posted by | Programming | , , | 7 Comments

How To Add A Youtube Video On Your WordPress Blog Posts

This is how I added a video on my wordpress blog post (http://bisdak.dpjonline.com)

1. Login in to your WP Dashboard.

2. Click Plugins

WP Plugins Window

3. At the new plugins search for youtube

search

4. Look for the youtuber plugin

youtuber

And click the install link at the right most.

5. After the installation click on the activate plugin button

activate

6. Add or Edit your post and insert this line

youtuberx

anywhere in your post where xxxxx is the youtube video ID.

Good Luck and More Power!!!
http://www.dpjonline.com

November 12, 2009 Posted by | Programming | , | 2 Comments

How to place google adsense with your coppermine gallery

1. Adding a google adsense below your header.


Edit template.html and locate the line {ADMIN_MENU} after that line you can have your 728×90 google adsense

{ADMIN_MENU}
adsense code here

2. Beside the image preview

Open and edit themes.inc.php located at /include/ folder of the coppermine directory.
locate the line {IMAGE}

GOOGLE ADSENSE CODE
{IMAGE}
GOOGLE ADSENSE CODE

Happy Coding !

October 21, 2009 Posted by | Desktop, Programming | , | Leave a comment

My First Google Adsense Payment

I have just received my first 100.30 U.S Dollar google adsense payment. I was so excited upon receiving a notice from google that the payment is already ready for pick up at our local Western Union Agent.

I’m suppose to treat my officemates with pancit cantoon and a slice bread from Manila Restaurant here in Park Mall Cebu City😉 But it’s already 5 in the afternoon so I will just pay for our snacks tomorrow.

One of our officemates really loves pancit cantoon. He said, starting from his younger days, he really loves to eat this pancit at their neighbor’s cafeteria. It’s better to have it w/ a dugo-dugo🙂 that’s a cebuano term, i can not find a word for that at this time. Anyway, i’ll try to talk about that dugo-dugo some other time🙂

October 6, 2009 Posted by | Business | , | Leave a comment

Windows Update error 8024402C (Windows Vista)

When you are running Windows Update in Windows Vista and resulted to Windows Update error 8024402C just follow the following to resolve this problem. I have also noticed that I can not connect to download.microsoft.com

I have just resolved it and here’s what I did.

I am connected w/ our DSL Router that serves as our DHCP server. Now my windows vista is acquiring an IP address from this Router.

Router IP : 192.168.1.1
My Windows Vista IP: 192.168.1.5 ; gateway 192.168.1.1; DNS 192.168.1.1

Now I’ve changed the automatic DNS (192.168.1.1) to my public DNS (from my ISP) It can be found in your DSL Modem system Log. If you can’t find it, you may ask your Internet Service Provider.

After doing this, Im able to run windows update and can go to download.microsoft.com

October 2, 2009 Posted by | Desktop | | 2 Comments

Replace Zend_Loader::registerAutoload() with the new Zend_Loader_Autoloader

Inorder for the project to work with the new Zend loader you must replace the lines

——————————————–
require_once(“Zend/Loader.php”);
Zend_Loader::registerAutoload();
———————————————-

with theses new lines
———————————————————
require_once ‘Zend/Loader/Autoloader.php’;
$loader = Zend_Loader_Autoloader::getInstance();
$loader->setFallbackAutoloader(true);
——————————————————

Happy Coding !!!

October 2, 2009 Posted by | Programming | | Leave a comment

How to load PDO_Pgsql with WAMP Server

A lot of solutions I’ve read regarding on how to load pdo_pgsql with WAMPServer but the real and complete solution is to add the php path to the windows environment variables. You can disregard my previous post on how did i do it. It was just a sort of experimentation but it really worked. Now here’s the real solution to the problem.

1. right click on my computer and select properties.
2. click on advance system settings
3. on the system properties window click “environment variables”
4. look for system variables frame and click “Path” variable
5. click the “edit” button
6. change the variable value by adding your php root path
mine looks like this:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\wamp\bin\php\php5.3.0\

I just added my php root path.
7. restart your wampserver and check mark the pdo_pgsql and php_pgsql extension using the wamp server menu or by editing your php.ini ; just remove the remark for the above extensions.

and you’re done! happy coding!

October 2, 2009 Posted by | Programming | | Leave a comment

How to create a random number using Visual Basic 6 (Vb6)

This example uses the Randomize statement to initialize the random-number generator. Because the number argument has been omitted, Randomize uses the return value from the Timer function as the new seed value.

Dim MyValue

Randomize  ‘ –> Initialize random-number generator.

MyValue = Int((36 * Rnd) + 1)    ‘ –> Generate random value between 1 and 36.

January 14, 2009 Posted by | Programming | , | Leave a comment

   

Follow

Get every new post delivered to your Inbox.