PDA

View Full Version : Integration with vBulletin - Photopost Gallery Uploads in Postbits and Profiles


AngelBlue
02-08-2008, 10:00 PM
This addon has been withdrawn.

Hornstar
02-09-2008, 01:28 AM
Have you got a demo or a screen shot of how it looks? because i'd love to see how it looks int he postbit. thanks.

AngelBlue
02-09-2008, 08:18 PM
Nope, sorry, I don't. However, it isn't hard to imagine.
Users with gallery uploads have one line added to their postbit, and two to their profile.
Say they had 5 uploads and have been registered for 10 days, they would have :

"Gallery Uploads: 5" in their postbit. (under their post count)

"Total Gallery Uploads: 5 (0.5 per day)" in their profile. (under their post count)

Konstantinos
02-10-2008, 10:34 AM
good job, i modified the templates a bit and this is the result

Postbit legacy

<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">

after i added

<if condition="$post[ppuploads] > 0"><a href="../albums/showgallery.php?cat=500&ppuser=$post[userid]" rel="nofollow" target="_blank"><img class="inlineimg" src="$stylevar[imgdir_button]/gallery.png" alt="$post[ppuploads] Gallery uploads" border="0" /></a></if>

75808

Memberinfo

<if condition="$userinfo[ppuploads] > 0">
<fieldset class="fieldset">
<legend>Gallery</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td><a href="../albums/showgallery.php?cat=500&ppuser=$userinfo[userid]" target=_blank>View all Gallery photos of $userinfo[username] </a></td>
</tr>
<tr>
<td>$vbphrase[total_ppuploads]: <strong>$userinfo[ppuploads]</strong> (<phrase 1="$ppuploadsperday">$vbphrase[x_ppuploads_per_day]</phrase>)</td>
</tr>
</table>
</fieldset>
</if>

75809

AngelBlue
02-11-2008, 01:08 PM
good job, i modified the templates a bit and this is the result

Postbit legacy

<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">

after i added

<if condition="$post[ppuploads] > 0"><a href="../albums/showgallery.php?cat=500&ppuser=$post[userid]" rel="nofollow" target="_blank"><img class="inlineimg" src="$stylevar[imgdir_button]/gallery.png" alt="$post[ppuploads] Gallery uploads" border="0" /></a></if>

75808

Memberinfo

<if condition="$userinfo[ppuploads] > 0">
<fieldset class="fieldset">
<legend>Gallery</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td><a href="../albums/showgallery.php?cat=500&ppuser=$userinfo[userid]" target=_blank>View all Gallery photos of $userinfo[username] </a></td>
</tr>
<tr>
<td>$vbphrase[total_ppuploads]: <strong>$userinfo[ppuploads]</strong> (<phrase 1="$ppuploadsperday">$vbphrase[x_ppuploads_per_day]</phrase>)</td>
</tr>
</table>
</fieldset>
</if>

75809

Thank you, and nice job with the template modifications :)

I like the way you use "../" in your link to avoid making installers specify the URLs manually.
Personally, I always like to specify the absolute URL, because I have different bits of my vB install in different folders, and this means that relative URLs can end up giving 404 errors.
Your version is probably better for sites with little customization.

I also used the member.php? link because I wanted to display a link to a search page that lists *all* their photos, not just the ones they've put in the member gallery. Your version might well be better for sites which don't have other categories beyond the 'member galleries' one.

CallieJo
02-26-2008, 08:56 PM
Is there anyway to show the total number of photos from all cats and all members?

Konstantinos
03-12-2008, 10:10 PM
found a bug. when a user deletes some of his photos the number of uploads in post and memberinfo doesnt reduce

RichTJ99
03-13-2008, 02:53 AM
won't this do the same without using the add-on?

<if condition="$post[ppicount] != '0'">
<div class="smallfont"><a href="http://www.yoursite.com/gallery/browseimages.php?do=member&imageuser=$post[userid]">
Gallery: $post[ppicount]
</a></div></if>

Konstantinos
03-14-2008, 07:03 AM
are u sure this mod doesnt interfear with post count ? i deleted some users images and i saw that this users post count got decreased. plz check it out

Konstantinos
03-14-2008, 07:07 AM
all right i just checked. it When u delete user photos in BULK ACTIONS if u delete 5 images and run the cron ,for example his post count is reduced by 5 . plz check it out, maybe this is not mod related but photopost related.

AngelBlue
03-24-2008, 12:51 AM
all right i just checked. it When u delete user photos in BULK ACTIONS if u delete 5 images and run the cron ,for example his post count is reduced by 5 . plz check it out, maybe this is not mod related but photopost related.

IIRC, there's an option in PhotoPost which causes a user's post count on the forums to be incremented every time they upload a new image to the gallery. If you have this enabled, and are deleting images, it might explain why post counts are going down.

Check that this isn't the case. If it isn't, I'll investigate the hack.

Also... if you want support... sending me a PM is a better idea, because I notice those a lot faster!

Konstantinos
03-24-2008, 10:12 PM
its photopost related. i had to edit a photopost file so when u delete fotos it doesnt decrease post count

AngelBlue
03-30-2008, 11:36 PM
its photopost related. i had to edit a photopost file so when u delete fotos it doesnt decrease post count
Thanks for letting me know :)

TheHYPO
09-05-2008, 08:08 PM
I'm not sure why, but on my VB, it all works except the "... gallery posts per day". The number is not calculated and leaves a blank. Any thoughts related to this?

I also had to modify the the memberinfo from table-based to list-based, as I guess the template was changed since this addon was created.

Ophelia
09-07-2008, 10:20 PM
With 3.7 how would you set this up in the Membersinfo area? I'm not finding $userinfo[posts] in that template.

AngelBlue
11-22-2008, 09:42 PM
With 3.7 how would you set this up in the Membersinfo area? I'm not finding $userinfo[posts] in that template.

In the template "memberinfo_block_statistics", after:

<li><span class="shade">$vbphrase[total_posts]:</span> $prepared[posts]</li>
<li><span class="shade">$vbphrase[posts_per_day]:</span> $prepared[postsperday]</li>
<li><span class="shade">$vbphrase[total_threads]:</span>

Add:

<li><span class="shade">$vbphrase[total_ppuploads]:</span>$userinfo[ppuploads]</li>

Tauhid
01-21-2009, 06:27 PM
does this work on vb 3.8???

mse2k
10-19-2009, 07:30 AM
It works....