Results 1 to 18 of 18

Thread: Latest PhotoPost Comments Module

Threaded View

  1. #1
    Need..More..Coffee..
    Join Date
    Feb 2007
    Location
    TN
    Posts
    17

    Default Latest PhotoPost Comments Module

    This module will display the latest 5 (configurable) comments from PhotoPost Pro including the associated photo thumbnails.

    I noticed there was a similar module posted here as well, but the code wasn't working on my installation so I constructed my own.

    Tested and working on VB 3.68, VBA CMPS v3.0 RC1, PP Pro 5.6.2, don't know if it will work otherwise.


    1. Open pp_latestcomments.php and make the changes as annotated. Save and upload to your vBadvanced modules folder.

    2. Add 2 new templates (Code below - included in .zip also):

    adv_portal_pp_latestcomments

    Code:
    $pp_latestcommentsbits
    adv_portal_pp_latestcomments_bits

    Replace the two instances of YOURGALLERYURL with your gallery root folder url (ie: http://www.mysite.com/gallery) and the one instance of YOURVBULLETINURL with your vBulletin root folder url (ie: http://www.mysite.com/forums).

    Code:
    <tr>
    	<td class="alt1" align="left">
    		<span class="smallfont"><a href="http://YOURGALLERYURL/showphoto.php?photo=$pp_latestcomments[photo]"><strong>$pp_latestcomments[title]</strong></a><br>$pp_latestcomments[comment]<br>by <a href="http://YOURVBULLETINURL/member.php?u=$pp_latestcomments[userid]">$pp_latestcomments[username]</a>
    	</td>
    	<td class="alt2" align="center">
    		<table cellpadding="0" cellspacing="0" border="0">
    			<tr>
    				<td style="background: url(http://YOURGALLERYURL/data/$pp_latestcomments[cat]/thumbs/$pp_latestcomments[bigimage]); background-color: #FAFAF8; background-repeat: no-repeat; background-position: center;"><a href="http://YOURGALLERYURL/showphoto.php?photo=$pp_latestcomments[photo]"><center>$pp_latestcomments[thumb]</center></a>
    				</td>
    			</tr>
    		</table>
    		<span class="smallfont">Rating:$pp_latestcomments[rating]</span>
    	</td>
    </tr>
    3. Navigate to vBulletin admincp / vBa CMPS / Add Module / PHP File:

    Module Title: Latest Gallery Comments
    Active: Yes
    File to Include: pp_latestcomments.php
    Module Parent: None
    Identifier: pplatestcomments
    Templates Used:
    adv_portal_pp_latestcomments
    adv_portal_pp_latestcomments_bits
    Initialize BB Code Parser: No
    Initialize Forum Permissions: No
    Initialize Moderator Cache/Permissions: No
    Initialize Ignored Users: No
    Clean File Output: No
    Title Row Colspan: 2
    Save

    Place module where desired.

    4. Done
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by John_770; 09-04-2007 at 05:56 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Photopost vBGallery module help
    By Lord Katsuhito in forum Module & Modification Discussion & Requests
    Replies: 0
    Last Post: 07-11-2007, 07:27 AM
  2. [vB 3.6.4] Is their a Gallery Module? [photopost 5.62]
    By Bergler in forum Module & Modification Discussion & Requests
    Replies: 5
    Last Post: 04-16-2007, 07:35 PM
  3. poll module from vba to photopost
    By puregraf in forum Module & Modification Discussion & Requests
    Replies: 0
    Last Post: 02-25-2007, 03:01 PM
  4. photopost module?
    By Ted S in forum Add-On Modules & Modifications
    Replies: 3
    Last Post: 08-09-2004, 08:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •