vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Photopost Gallery Uploads in Postbits and Profiles (https://vborg.vbsupport.ru/showthread.php?t=170011)

AngelBlue 02-08-2008 10:00 PM

Photopost Gallery Uploads in Postbits and Profiles
 
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

Code:

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

Code:

<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>
Attachment 75808

Memberinfo

Code:

<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>

Attachment 75809

AngelBlue 02-11-2008 01:08 PM

Quote:

Originally Posted by Konstantinos (Post 1439993)
good job, i modified the templates a bit and this is the result

Postbit legacy

Code:

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

Code:

<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>
Attachment 75808

Memberinfo

Code:

<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>

Attachment 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?

Code:

<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

Quote:

Originally Posted by Konstantinos (Post 1464446)
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

Quote:

Originally Posted by Konstantinos (Post 1473674)
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

Quote:

Originally Posted by Ophelia (Post 1616970)
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:
Quote:

<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:
Quote:

<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....


All times are GMT. The time now is 10:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01241 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete