PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Adding a prefix to your PhotoPost tables (http://www.photopost.com/forum/photopost-pro-installation-upgrades/128982-adding-prefix-your-photopost-tables.html)

Michael P November 27th, 2006 07:14 AM

Adding a prefix to your PhotoPost tables
 
If for some reason you need to change your PhotoPost tables to use a prefix because of conflicts with other scripts; this group of RENAMEs will accomplish what you need quickly.

First, close your gallery. Then paste these commands into phpmyadmin using your PhotoPost database.

Code:

Content visible to verified customers only.
You'll need to edit your config-inc.php and change

$pp_db_prefix = "pp_";

That's it. Now your tables are using a pp_ prefix which will avoid any conflicts with other tables created in your database by other applications.

aacircle December 4th, 2006 08:49 AM

Just an update on the above. Members may want to realise that the search table has now been renamed to searchids as of v5.61.

Also, I think an important first step has been left out of the above instructions.

You need to go into your photopost admin area and change "Forum database table prefix" to whatever you are changing it to. If you rename your tables prior, then the whole system will break and you wont be able to get into admin or even view your gallery.

Can a member from Photopost please confirm this?

Thank you.

Chuck S December 4th, 2006 11:05 AM

You never update the forum database table prefix. The instructions above are correct you edit your config file as Michael noted and set your new Photopost $pp_db_prefix to pp_ in your config-inc.php

Smoothie December 4th, 2006 05:11 PM

So, Michaels instructions are correct? I was thinking of changing the prefixes in the PP database.

Michael P December 4th, 2006 07:31 PM

Yes. You follow mine in the first post and it'll work (I did it to my site); the $pp_db_prefix is in the config-inc.php file, so you can edit that outside of the PP Admin to avoid any issues.

aacircle December 4th, 2006 08:04 PM

Thanks, and sorry to confuse everyone. Will get to your instructions right away. It's always better to have table with a prefix according to their product. If not you may run into bugs later as was the case for me when search table was renamed to searchids because vbulletin also uses a search table.

Smoothie December 4th, 2006 08:10 PM

Question. What if the PP dB and vB db are one in the same? Any ill effects?

Smoothie December 4th, 2006 08:18 PM

This must only work with the latest version, because some of these tables don't exist in the version I'm running. Now I got half done and it stopped with an error

Smoothie December 4th, 2006 08:33 PM

Michael, you forgot to add one thing. If you run the plugin that shows thumbs on your vB forum, you also need to change 1 other file.

1. config-int.php

or else you'll get errors on forumhome.

Smoothie December 4th, 2006 08:38 PM

The table search is in use by vBulletin. How can PP have the same table?

Smoothie December 4th, 2006 09:00 PM

These are the tables I have for PP, am I missing something?

# Browse pp_admingroups
# Browse pp_admlog
# Browse pp_cache
# Browse pp_categories
# Browse pp_comments
# Browse pp_ecards
# Browse pp_exif
# Browse pp_extrafields
# Browse pp_favorites
# Browse pp_ipcache
# Browse pp_iponline
# Browse pp_laston
# Browse pp_notify
# Browse pp_photoextras
# Browse pp_photos
# Browse pp_photoviews
# Browse pp_searchids
# Browse pp_settings
# Browse pp_sort
# Browse pp_sortmemb
# Browse pp_usergroups
# Browse pp_users

aacircle December 5th, 2006 02:18 AM

Quote:

Originally Posted by Smoothie
The table search is in use by vBulletin. How can PP have the same table?

Yes, we were using the same table as our photopost installation wasn't prefixed, hence it become a problem when we upgraded to 5.61. The search and searchids tables are different, so be careful.

Quote:

Originally Posted by Smoothie
you also need to change 1 other file.

1. config-int.php

Yep, I noted this as well.

The tables I have as at 5.61 are:
pp_admingroups
pp_admlog
pp_cache
pp_categories
pp_comments
pp_ecards
pp_exif
pp_extrafields
pp_favorites
pp_ipcache
pp_iponline
pp_laston
pp_notify
pp_photosextra
pp_photos
pp_photoviews
pp_searchids
pp_settings
pp_sort
pp_sortmemb
pp_usergroups
pp_users
TOTAL = 22 tables.

In the first post by Michael, he has 24 tables. The following tables no longer exist so take note:
pp_perpage
pp_stylesheet

aacircle December 5th, 2006 02:53 AM

Well, am happy to say all worked fine for us. With now have photopost tables prefixed with pp_.

Smoothie December 5th, 2006 04:47 AM

Yes, 22 here as well. I assume we can remove those 2 extra, not needed tables? Shouldn't upgrade.php remove these unused tables?

aacircle December 5th, 2006 04:51 AM

I don't have those extra tables, and if the upgrade script worked for u, it should have removed these tables. Perhaps u are not running the latest version. Check in your admin panel of photopost.

Chuck S December 5th, 2006 07:15 AM

Yes the upgrade script does remove extra tables and I see Michael has already edited his rename post to remove the table names ;)

Smoothie December 5th, 2006 09:31 AM

Current version 5.61

RENAME TABLE search TO pp_search;

Does not exist in PP

Smoothie December 5th, 2006 09:34 AM

perpage and stylesheet no longer exist, looks like the script removed them.

Chuck S December 5th, 2006 01:07 PM

Smoothie search table is created in 5.6 which is when Michael posted this. In 5.61 we further renamed search to searchid to avoid conflicts with vb3

Smoothie December 5th, 2006 07:59 PM

Chuck, thanks!


All times are GMT -5. The time now is 02:03 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97