Version: 0.75, by iRO Wiki
Developer Last Online: Feb 2014
Category: Integration with vBulletin -
Version: 3.6.8
Rating:
Released: 01-31-2008
Last Update: 02-21-2008
Installs: 21
DB Changes Template Edits
Re-useable Code Additional Files
No support by the author.
Edit: I no longer use photopost, so this mod is no longer supported!
After noticing a few people wanting a working version of this, I decided to release what I did to make it work! This is the first time I've done anything like this, go easy on me.
This Mod helps "advertise" your PhotoPost gallery on your forums. It will allow you to place "View Gallery" links into the postbit_legacy, the dropdown menu when you click a user's name, and on your profile page. The postbit links will only appear when people actually have photos uploaded. The profile page will display the number of photos uploaded (you could put that on the postbit as well with some code changes).
This is similar to several different mods already out there, except this has been tweaked and confirmed to work on 3.6.8.
The Mod is made up of template changes and a cron script upload. The cron script is designed for the case of the VB and PP databases being seperate, but should work if they are in the same database, just edit the proper fields.
This mod also assumes you are not using search engine friendly URL's. If you are, you can edit the code to reflect it.
Before doing ANYTHING backup your database, I'm not responsible for data loss!
Step One
Using Execute SQL Query in the ACP, run the following as a manual query, making sure to adjust for your table prefix and rename the field if needed:
Code:
ALTER TABLE `vb_user` ADD `photos` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'
Step Two
Download the attached gallery.php and edit it to reflect your database details and table prefixes.
Step Three
Upload the edited gallery.php to your /includes/cron/ folder.
Step Four
Create a new scheduled task in your ACP:
Varname: gallery_check Title: Gallery Check Description: Updates the photo field in vb_users Day of week: * Day of month: * Hour: * Minute: 1 16 31 46 - - Active: Yes Log Entries: No Filename: ./includes/cron/gallery.php Product: vBulletin vBulletin Default: No
Step Five
Add a new phrase:
Phrase Type: GLOBAL Product: vBulletin Varname: pp_gallery Text: Gallery
Step Six
Template edits! First off, the profile page.
Edit MEMBERINFO and insert the following code wherever you would like it, AFTER editing the URL to match your site. I placed mine inbetween Posts and Referrals.
OK so I ran the cron manually as I didn't want to wait for it.
I realized I needed to remove the vb_ table prefix you used.
Once I did that and I ran it, I got this error
Fatal error: Call to undefined function log_cron_action() in /home/mysite/public_html/includes/cron/gallery.php on line 44