Register Blogs Advertise with usHelp Desk Today's Posts Search

Thread Tools Search this Thread
Unread 14th Jul 2011, 02:34 AM   #1
Warrior Member
War Room Member
 
Join Date: 2011
Location: Sydney, Australia
Posts: 13
Thanks: 1
Thanked 7 Times in 6 Posts
Default
About Installing Plugins in Default PIP Site
Share on: 
fb share twitter share gplus share more share

Hello everyone,

Less than a month ago (mid-July 2011) I had my brand new PIP Site. Looks Great..

Troubles started when I tried to install my favorite plugins.
Some of them did not work at all, like Wp-SEO plugin.
Some others, like Google-Analytics plugin appeared to work but there was no Google Analytics code inserted into the html code.
Some did work OK.

I went looking around in the PHP code to figure out what was causing the lack of functionality.
It turned out that the default Theme "pluginprofitsite" is written in a way that doesn't allow some plugins to work properly.
Also there are problems with the widgets.

A theme should control the appearance and formating of the content only. It should not contain the content itself.
That is not the case in my version of the theme. Changing the theme to, say twentyten makes most of the content to disappear.

I think the default PIP Site is designed with "monetization" in mind.
Like the "shareware" concept - get a version with limited features and play with it. For full-featured version you have to pay.

It is not hard to get most of the plugins to work but it involves editing PHP code in couple of files...
Not sure if I am allowed to discuss PHP issues in this Forum...:confused:

Also got to figure out a way to help those of you who are interested in the fix.

Any ideas?

Alex

AlexGor is offline   Reply With Quote
The Following User Says Thank You to AlexGor For This Useful Post:
Unread 14th Jul 2011, 10:54 AM   #2
OffTheWallflowerChild
War Room Member
 
Patrician's Avatar
 
Join Date: 2004
Location: USA
Posts: 11,698
Thanks: 6,331
Thanked 2,668 Times in 1,802 Posts
Default
Re: About Installing Plugins in Default PIP Site
Share on: 
fb share twitter share gplus share more share

We are aware that not all plugins and widgets work with our newest theme.

The designer does not have the expertise to fix it when asked.

However our partner Darrin McLaughlin at PIPSiteHelp.com does offer alternative themes that are plugin and widget friendly (although he charges a fee for the installation).

If you have some ideas it is up to you if you want to share them or even if you want to charge a fee. You can offer it to members here or you can offer to give it to us (Plug-In Profit Site owner).

If you would like to propose something to Stone Evans, please send it to the Helpdesk and I will send him your proposal and ask him if he is interested.

It would be great if you could help...

Patricia Brucoli
Plug-In Profit Site Helpdesk
Patrician is offline   Reply With Quote
Unread 14th Jul 2011, 10:49 PM   #3
Warrior Member
War Room Member
 
Join Date: 2011
Location: Sydney, Australia
Posts: 13
Thanks: 1
Thanked 7 Times in 6 Posts
Default
Re: About Installing Plugins in Default PIP Site
Share on: 
fb share twitter share gplus share more share

I am more than happy to help.

The steps I am describing here is what I did to fix some issues with my PIP Site.
Anyone can use this information on their own risk.
My conditions are:
-I do not accept anybody's Cpanel/Wp-backend login information.
-I do not accept anybody's money.
-I do not accept responsibility if you mess up your site.

I recommend you to follow the steps exactly as described.

Here are the steps to fix most of the plugin issues:

There will be three stages in the process:
1. Preparation Stage.
2. Do-The-Work Stage.
3. Clean-Up Stage.


1. Preparation Stage.

- Create a working folder on your hard disk. I named mine "PIPS0"
- Create another folder inside PIPS0 folder named Bak0 - "PIPS0/Bak0"
- Login into your PIPS Cpanel and run "Backups" under "Files" section
Scroll down to "Partial Backups" section and click on "Home Directory" button.
Save the downloaded file into the working folder "PIPS0/Bak0".
Under "Download a MySQL Database Backup" click on <login-name>_wrdp1 and download the backup of your WP database into "PIPS0/Bak0" folder.
Note: <login-name> above is different for every site. Actual database name would look like "sitename_wrdp1".
Reason for two backups is that "Home Directory" does NOT include the WP database backup.

Warning: I do not recommend doing anything with your site if you do not have those two backup files saved on your computer.
If anything goes wrong you can restore it back to where it is now!

- Go back to your Cpanel Home and run "File Manager" under "Files" section
Select "Web Root (public_html/www)" radio button and click the "Go" button.
Navigate to "wp-content/themes/pluginprofitsite" by double-clicking on the folders.
The navigation path on top-left corner should be "/public_html/wp-content/themes/pluginprofitsite"

Select the "footer.php" file by clicking on it's name and press "Download" button on the toolbar. Save the file in your "PIPS0" folder.
Repeat the same with "header.php" file. Save the file in your "PIPS0" folder.

By now we should have two files and one folder in our "PIPS0" folder:
PIPS0/Bak0 <- folder with backups
PIPS0/footer.php
PIPS0/header.php

Last step in preparation stage:
- copy the two files to Bak0 folder. That way we know what we have been modifying.


2. Do-The-Work Stage.

- Using your favorite text editor open the "footer.php" file in "PIPS0" folder.
Scroll down to the end of the file and locate the text that looks like:

</div>

</body>
</html>


Copy and paste the text from here so it becomes:

</div>

<?php
/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/

wp_footer();
?>
</body>
</html>


- Save changes and exit the text editor.

- Open the "header.php" file in "PIPS0" folder.
Scroll down and locate the text (around line 16) that looks like:

<link rel="stylesheet" type="text/css" media="all" href="http://www.images.pluginprofitsite.com/css/style.css"/>
</head>


Copy and paste the text from here so it becomes:

<link rel="stylesheet" type="text/css" media="all" href="http://www.images.pluginprofitsite.com/css/style.css"/>

<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/
wp_head();
?>
</head>


- Save changes and exit the text editor.

By now we have modified the files locally in our working folder.
What is left is to upload them to the website.

- Go back to Cpanel -> File Manager.
It should be in "/public_html/wp-content/themes/pluginprofitsite"
Click on "Upload" button on the toolbar.
Click on the top "Choose File" button and select our modified "footer.php" file.
Click "Open". Confirm that you want to overwrite it ("Yes" button).

Click on the middle "Choose File" button and select our modified "header.php" file. Open and confirm the same way.

- Exit "File Manager".
I recommend a second backup of "Home Directory" and WP database and store them in "PIPS0" folder so I don't have to do everything again if any new plugin messes WordPress while testing.

Now we have two backups - one before any changes and another after the changes.
In the future we can always return to any of the two points.

- Log off from Cpanel.

By now we are finished with modifications. It is time for testing.

- Log-in to your WordPress back-end, test installed plugins, install new ones, make sure they work.

- If at any time things go wrong there are two points to return to:
1. The point after we made the changes but before installing new plugins (PIPS0 folder).
2. The point before we started any changes (PIPS0/Bak0 folder)


3. Clean-Up Stage.

- If while testing you had WordPress crashed or have installed plugins that you don't intend to use then:
Restore your "Home Directory" and WP database (in that order) from the backup,
Install only what you plan to use (make sure it works as expected).

- If you are happy with what you have:
Do another backup so you can return to that point later.
- Delete any temporary files, backups you don't need etc.
- Save any backups that you feel might be a good idea to return to in the future.
- Have a break, relax for a while.

And this is it.

For the curious there is where I have the code from:

"pluginprofitsite" theme is a modified "twentyten" theme.

"/public_html/wp-content/themes/twentyten/footer.php"
"/public_html/wp-content/themes/twentyten/header.php"

Hope that might be of some use.
Thanks for reading.

Alex


Last edited on 15th Jul 2011 at 02:12 AM. Reason: typo
AlexGor is offline   Reply With Quote
The Following User Says Thank You to AlexGor For This Useful Post:
Unread 14th Jul 2011, 11:29 PM   #4
OffTheWallflowerChild
War Room Member
 
Patrician's Avatar
 
Join Date: 2004
Location: USA
Posts: 11,698
Thanks: 6,331
Thanked 2,668 Times in 1,802 Posts
Default
Re: About Installing Plugins in Default PIP Site
Share on: 
fb share twitter share gplus share more share

Thank you so much Alex.

You are brilliant.

I am going to make a post in my Tips and Tricks thread so that this information will always stay more or less on the first page going forward (while regular threads will sink down as people do not keep posting).

I will give you acknowledgement there.

http://www.warriorforum.com/plug-pro...ml#post4265471

Again, thank you so much for your kindness in the Warrior Spirit - to help people just out of your goodness!

Patricia Brucoli
Plug-In Profit Site Helpdesk
Patrician is offline   Reply With Quote


Bookmarks

Tags
default, installing, pip, plugins, site


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:24 PM.