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.


All times are GMT. The time now is 02:02 PM.

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.01024 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete