vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > vBa CMPS v3.x & 2.x > Add-On Modules (version 3.x & 2.x)

Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2007, 09:25 AM
John_770 John_770 is offline
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
File Type: jpg _Screenshot - Latest PPpro Comments Module.jpg (83.8 KB, 812 views)
Attached Files
File Type: zip VBA - Latest PP Comments Module.zip (56.4 KB, 319 views)

Last edited by John_770; 09-04-2007 at 05:56 PM.
Reply With Quote
  #2  
Old 10-24-2007, 07:39 PM
puregraf puregraf is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Default Re: Latest PhotoPost Comments Module

awesome! will install now
Reply With Quote
  #3  
Old 10-25-2007, 01:43 PM
puregraf puregraf is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Default Re: Latest PhotoPost Comments Module

nm i figured it out, love this module!

Last edited by puregraf; 10-25-2007 at 09:00 PM.
Reply With Quote
  #4  
Old 11-03-2007, 02:57 AM
zglows zglows is offline
Member
 
Join Date: Oct 2007
Posts: 59
Default Re: Latest PhotoPost Comments Module

this is really cool! thanks a lot
Reply With Quote
  #5  
Old 02-11-2008, 02:46 PM
optrex optrex is offline
Member
 
Join Date: Jun 2006
Posts: 44
Default Re: Latest PhotoPost Comments Module

I run using 2 databases -can anyone tell me what I need to modify please?
Reply With Quote
  #6  
Old 02-26-2008, 06:23 PM
stevec stevec is offline
Junior Member
 
Join Date: Dec 2007
Posts: 8
Default Re: Latest PhotoPost Comments Module

how and where do I add the two templates, adv_portal_pp_latestcomments, and adv_portal_pp_latestcomments_bits?

thanks, sorry I'm new
Reply With Quote
  #7  
Old 02-27-2008, 02:44 AM
bosss bosss is offline
Member
 
Join Date: Jan 2008
Posts: 55
Default Re: Latest PhotoPost Comments Module

hello!

i have photoplog - can i found something like this to photoplog?

regards
bosss
Reply With Quote
  #8  
Old 02-27-2008, 12:46 PM
stevec stevec is offline
Junior Member
 
Join Date: Dec 2007
Posts: 8
Default Re: Latest PhotoPost Comments Module

Well I tried my best but I really didn't know where the two templates adv_portal_pp_latestcomments, and adv_portal_pp_latestcomments_bits go

I locked my site up with a database error

if any of you guys could tell me how to add the templates I'd appreciate it

Thanks!
Steve
Reply With Quote
  #9  
Old 03-24-2008, 12:07 PM
kepler001 kepler001 is offline
Junior Member
 
Join Date: Apr 2007
Posts: 2
Default Re: Latest PhotoPost Comments Module

very nice thx
Reply With Quote
  #10  
Old 04-05-2008, 04:15 AM
jschvili jschvili is offline
Junior Member
 
Join Date: Apr 2007
Posts: 19
Default Re: Latest PhotoPost Comments Module

Is there a way to only show the latest, random or most popoular picture från PhotoPost on the CMPS fronpage as a module on the side?
Reply With Quote
  #11  
Old 05-04-2008, 05:40 PM
nyfoto nyfoto is offline
Member
 
Join Date: Nov 2004
Posts: 35
Default Re: Latest PhotoPost Comments Module

Quote:
Originally Posted by jschvili View Post
Is there a way to only show the latest, random or most popoular picture från PhotoPost on the CMPS fronpage as a module on the side?
I also would like to know this
__________________
http://www.photochimper.com
Reply With Quote
  #12  
Old 06-15-2008, 01:50 AM
MediaHound MediaHound is offline
Junior Member
 
Join Date: Jun 2008
Location: Florida
Posts: 8
Default Re: Latest PhotoPost Comments Module

Awesome... installed, tyvm.
Reply With Quote
  #13  
Old 07-22-2008, 09:13 AM
Cocko Cocko is offline
Junior Member
 
Join Date: Oct 2006
Posts: 25
Default

Any ideas how to see bb codes in latest comments cmps box?

cmps 2.2.1
vbulletin 3.6.4
pp pro 5.5

In general same question for template based boxes.
Can't see bb code parse option in cmps 2.2.1 .

Thanks for reply.

Regards,
Cocko
Reply With Quote
  #14  
Old 07-24-2008, 12:03 AM
Cello Cello is offline
Junior Member
 
Join Date: Mar 2005
Posts: 3
Default

I'm getting this error when even trying to install it. Can anyone help?

Quote:
SELECT albumpicture.*, album.*, user.username, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM albumpicture AS albumpicture
LEFT JOIN album AS album ON(album.albumid = albumpicture.albumid)
LEFT JOIN user AS user ON(user.userid = album.userid)
WHERE album.state = 'public'
ORDER BY rand(NOW()) DESC LIMIT 0, 5;

MySQL Error : Unknown column 'album.state' in 'where clause'
Error Number : 1054
Reply With Quote
  #15  
Old 10-19-2008, 01:34 PM
ckgb ckgb is offline
Junior Member
 
Join Date: Sep 2007
Posts: 24
Default

Photoplog one would be nice ))
Reply With Quote
  #16  
Old 04-01-2009, 08:49 PM
vbuser49 vbuser49 is offline
Junior Member
 
Join Date: Feb 2009
Posts: 9
Default

Hello.

I installed this and I get a database error on the home page. Basically it's a table prefix error as I can see:

MySQL Error : Table 'user_mysite.mst_pp_comments' doesn't exist

Maybe it's just a matter of getting rid of the mst_ ? How would I do that please?

The correct database table pp_comments is there in the database.
Reply With Quote
  #17  
Old 04-12-2009, 01:42 PM
vbuser49 vbuser49 is offline
Junior Member
 
Join Date: Feb 2009
Posts: 9
Default

bump
Reply With Quote
  #18  
Old 07-03-2009, 02:34 AM
pengrus pengrus is offline
Junior Member
 
Join Date: Jul 2009
Posts: 4
Default

Where do we add the two templates?
Reply With Quote
Reply


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

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 On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 11:57 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.