The Arcive of vBulletin Modifications Site. |
|
Add PhotoPost Pro to each forum. Details »»
|
|||||||||||||||||||||||||
/* ----------------- 4/03/2006 4:37PM -----------------
Add PhotoPost Pro to each forum. This hack will allow you to fill-in catagories from Photopost Pro to display in a film strip format under the $navbar. This will show in every thread of the forum as well. 1 querry
Tested on:
Each forum extra options: - Image Count: (How many images would you like to show ?) - Image Order: (Enter 1 for newest, 2 for most viewed, 3 for most comments, 4 for highest rated, 5 for random.) - Select Catagory(s): (Here you can list catagories you wish to show images from. EX: 1,10,20) - Show Imagebit: (Title, Description, Rating, Username, Views, Dimensions, and more.) +-+-+-+-+-+-+-+-+-+-+-+- Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
What if VB and PhotoPost are in different DB's ?
inc_vbcat.php - Unhash these @ the top of the file Code:
// If you use the same userid/password to access both databases, you don't need to
// uncomment the mysql_connect - this is only if you require different ids to access
// the PhotoPost database.
//$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.');
//mysql_select_db ("pp_database")or die("Could not select photopost database");
- Fill in the photopost DB info @ very botem of the file Code:
// If you use PhotoPost in a seperate database from vB, you'll need to reselect the vB database!
//mysql_select_db ("vb_database");
Edit: photopost/config-int.php - add the " / " slash @ the end of: Code:
$data_dir = "http://www.website.com/photopost/data/"; Why do I get a header of the box and not images ? - photopost/config-int.php Code:
// If your PhotoPost tables have a prefix, put it here // Example: // pp_ = "pp_"; $pp_db_prefix = "pp_"; |
|
#3
|
||||
|
||||
|
There are 2 templates:
Extra Image Info:
Code:
$feature .= <<<PPPRINT
<td align="center" class="alt1">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="background: url({$data_dir}{$pcat}/thumbs/$photo); background-color: #000000; background-repeat: no-repeat; background-position: center;"><a href="{$url_path}/showphoto.php?photo={$pid}">$sthumb</a></td>
</tr>
</table>
<font size="1" face="verdana,arial"><!--{$ptitle}<br />-->
by {$puser}<br />
· · ·<br />
<a href="{$url_path}/showgallery.php?cat={$pcat}">$catname</a><br />
$cphotos photos<br />$cposts comments<br /></font>
</td>
PPPRINT;
Find and remove RED: Code:
<!--{$ptitle}<br />-->
FAQs: |
|
#4
|
|||
|
|||
|
Great
just what I was looking for the new site Thanks |
|
#5
|
|||
|
|||
|
Thanks Zach !
|
|
#6
|
||||
|
||||
|
There is a "Show photos from category" and we have to enter Category IDs there, how can I disable that and make it so any PP category pic will show in this hack?
|
|
#7
|
||||
|
||||
|
Quote:
EX: In a forum we talk about Science and the images that show are from 2 science catagories in the gallery. This could work on any subject (forum) that you need image interaction. +-+-++-+-+-+-+-+-+-+-+-+-+-++-+-+-+ - What did you need or have in mind ? * Image Order - newest, random, most viewed, top rated, most comments * Image Count - enter value * Number of Columns - enter value * Exclude Catagories - enter value(s) * Only Catagories - enter value(s) On every page or just a select few ? |
|
#8
|
||||
|
||||
|
Very nice hack
![]() I have question: How to add all images categories without have to type image category ID one by one? |
|
#9
|
||||
|
||||
|
thats great. thanks
|
|
#10
|
||||
|
||||
|
Excellent!!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|