PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 27th, 2006, 08:14 AM   #1 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,736
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.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Michael P; December 5th, 2006 at 07:56 AM.
Michael P is offline   Reply With Quote
Old December 4th, 2006, 09:49 AM   #2 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
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.
aacircle is offline   Reply With Quote
Old December 4th, 2006, 12:05 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,678
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 4th, 2006, 06:11 PM   #4 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
So, Michaels instructions are correct? I was thinking of changing the prefixes in the PP database.
Smoothie is offline   Reply With Quote
Old December 4th, 2006, 08:31 PM   #5 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,736
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.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old December 4th, 2006, 09:04 PM   #6 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
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.
aacircle is offline   Reply With Quote
Old December 4th, 2006, 09:10 PM   #7 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
Question. What if the PP dB and vB db are one in the same? Any ill effects?
Smoothie is offline   Reply With Quote
Old December 4th, 2006, 09:18 PM   #8 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
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 is offline   Reply With Quote
Old December 4th, 2006, 09:33 PM   #9 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
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 is offline   Reply With Quote
Old December 4th, 2006, 09:38 PM   #10 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
The table search is in use by vBulletin. How can PP have the same table?
Smoothie is offline   Reply With Quote
Old December 4th, 2006, 10:00 PM   #11 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
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
Smoothie is offline   Reply With Quote
Old December 5th, 2006, 03:18 AM   #12 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
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

Last edited by aacircle; December 5th, 2006 at 03:40 AM.
aacircle is offline   Reply With Quote
Old December 5th, 2006, 03:53 AM   #13 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
Well, am happy to say all worked fine for us. With now have photopost tables prefixed with pp_.
aacircle is offline   Reply With Quote
Old December 5th, 2006, 05:47 AM   #14 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
Yes, 22 here as well. I assume we can remove those 2 extra, not needed tables? Shouldn't upgrade.php remove these unused tables?
Smoothie is offline   Reply With Quote
Old December 5th, 2006, 05:51 AM   #15 (permalink)
Member
Verified Customer
 
aacircle's Avatar
 
Join Date: Jan 2006
Posts: 209
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.
aacircle is offline   Reply With Quote
Old December 5th, 2006, 08:15 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,678
Yes the upgrade script does remove extra tables and I see Michael has already edited his rename post to remove the table names
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 5th, 2006, 10:31 AM   #17 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
Current version 5.61

RENAME TABLE search TO pp_search;

Does not exist in PP
Smoothie is offline   Reply With Quote
Old December 5th, 2006, 10:34 AM   #18 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
perpage and stylesheet no longer exist, looks like the script removed them.
Smoothie is offline   Reply With Quote
Old December 5th, 2006, 02:07 PM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,678
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old December 5th, 2006, 08:59 PM   #20 (permalink)
Member
Verified Customer
 
Smoothie's Avatar
 
Join Date: Aug 2002
Location: NY
Posts: 426
Chuck, thanks!
Smoothie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does PhotoPost support collapsable tables like vBulletin GateKeeper Classifieds How do I...? 2 July 10th, 2006 08:05 AM
find out cookie prefix AndreasP Photopost Pro Installation & Upgrades 1 June 11th, 2006 09:32 AM
adding a favicon to photopost Smoothie General Discussion 6 November 11th, 2004 10:40 PM
adding a prefix to the mysql tables Coastie Photopost Pro Installation & Upgrades 5 October 10th, 2004 05:36 PM


All times are GMT -5. The time now is 08:11 PM.

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