Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
VB Gallery Photo Counts in Postbit Details »»
VB Gallery Photo Counts in Postbit
Version: 1.00, by trackpads trackpads is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-26-2006 Last Update: Never Installs: 8
Uses Plugins Template Edits
 
No support by the author.

This is an Addon for PP VB Gallery and VB 3.5.4 that will show the total (current) number of photos a user has uploaded to your Photopost VB Gallery. For the other PP Products please see my profile. I apologize for any errors in advance, I am new at this

Special thanks to everyone in the coders forum as well as Zachery, Hambil, Geoligist, Developer and tn3yguy! And of course Photopost!

This hack is based on the Referers in Postbit Hack by Developer.

For support please click install!



Notes before you install!!

1. This hack will add on one query per postbit on your showthread pages. On my site it is unnoticeable but if you experience a load problem then try disabling it. I am working on a second version but it will require actually hacking PP code and this is the easier version.

2. I have 2 versions of the XML, for those that have their PPVB Gallery in the same database as VB and for folks that dont. This is unnavoidable since PPVB Gallery users seem to have dramatically different databases. I personally have my VB and PPVB Gallery installs in the same dbase so I have not tested the XML for seperate dbases. Please let me know if it doesnt work or if there is a better way.

3. [VBG/VB in Same Dbase] - Once you download the XML file (VBG Pics In Postbit.xml) you will need to open it in a Text Editor and edit the phrase 'vbgtablename' to the name of your PPVB Gallery table. If you are using the default install then it should be 'adv_gallery_images'. Do not edit this with an editor like Write or Word, use plain old notepad. Then save it and install below.

4. [VBG/VB in different Dbase] -If you are using a seperate database for VB and PP then edit the XML file (VBG Pics In Postbit-sep dbase.xml) and replace 'databasename' with the name of the Database that the VBG is installed in, then do the edit in #3 for the table name.

5. Go to your Admin cp > Plugin System > Download/Upload Plugin. Then upload the plugin.

6. Go to your Admin cp > Styles and Templates > Postbit Templates and add the following:

For Postbit

Find:

Code:
 
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
Add After:


Code:
 
<if condition="$show['profile']">
    <div class="smallfont">My Photos: $trackpadsvbgpbit</div>
</if>

For Postbit Legacy

Find:

Code:
 
<div>
$vbphrase[posts]: $post[posts]
</div>
Add After:


Code:
 
<if condition="$show['profile']">
    <div class="smallfont">My Photos: $trackpadsvbgpbit</div>
</if>
And that is it! Please click install!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-29-2006, 01:07 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, just checked. Not sure why, I will look into it.

-Jason
Reply With Quote
  #13  
Old 04-29-2006, 01:09 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nonamer69
This is great. I've been needing this for a long time. Thanks trackpads for coming through with it.
Thanks! Please click install!
Reply With Quote
  #14  
Old 04-30-2006, 08:17 PM
wii's Avatar
wii wii is offline
 
Join Date: Oct 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

Quote:
Originally Posted by trackpads
No, just checked. Not sure why, I will look into it.

-Jason
Reply With Quote
  #15  
Old 06-20-2006, 07:38 PM
Serenity Serenity is offline
 
Join Date: Nov 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a slight mod to this to display an icon instead of words.

instead of using
Code:
<if condition="$show['profile']">
    <div class="smallfont">My Photos: $trackpadsvbgpbit</div>
</if>
use

Code:
 <td class="alt2"><a href="http://www.mysitename.com/gallery/browseimages.php?do=member&imageuser=$post[userid]" rel="nofollow"><img name="camera" src="$stylevar[imgdir_misc]/camera.gif" width="30" height="25" border="0" alt="My Photos: $trackpadsvbgpbit"></a>
	</td>
replace the "mysitename.com/gallery" with the proper url

i also changed the area where it will display. check out http://www.thepiratesreef.com/forums/index.php to see it working

this will also display the number of photos when you hover over the icon. i included the image i'm using.
Reply With Quote
  #16  
Old 07-03-2006, 08:12 PM
theChronic theChronic is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome hack! Just what I was looking for to do what I wanted.

Here is what code I put it, it displays a link to the users gallery if they have uploaded any images and links to the gallery and if not, it says they haven't uploaded any images.

Code:
<if condition="($show['profile']) AND ($trackpadsvbgpbit > 0)">
    <div class="smallfont"><a href="http://www.example.com/gallery/browseimages.php?do=member&imageuser=$post[userid]" title="$post[username]'s gallery">$post[musername] has pics! <img src="http://www.example.com/cimages/camera.gif" width="30" height="25" border="0"></a> </div>
<else />
<div class="smallfont">$post[musername] has no pics.</div>
</if>
Thanks for the camera icon!

Peace
John
Reply With Quote
  #17  
Old 07-03-2006, 08:13 PM
theChronic theChronic is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PS:
Quote:
3. [VBG/VB in Same Dbase] - Once you download the XML file (VBG Pics In Postbit.xml) you will need to open it in a Text Editor and edit the phrase 'vbgtablename' to the name of your PPVB Gallery table. If you are using the default install then it should be 'adv_gallery_images'. Do not edit this with an editor like Write or Word, use plain old notepad. Then save it and install below.
Correction: I am pretty sure I used all default installs and the name is: vb_adv_gallery_images

Hope that helps
Reply With Quote
  #18  
Old 07-03-2006, 10:25 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to everyone who constributes!!
Reply With Quote
  #19  
Old 07-19-2006, 09:57 AM
theChronic theChronic is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to call this variable from the MEMBERINFO template (member profiles page)?
Reply With Quote
  #20  
Old 07-21-2006, 02:36 PM
creativepart creativepart is offline
 
Join Date: Jun 2006
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the mod installed (but I put a camera.gif next to the number) it works fine in the Postbit of posts, but in PMs it shows the number of photos the person receiving the PM has in the PM Postbit with the sender's username and avatar.

However, even though it shows the PM receiver's photo quantity... the link takes you to the sender's gallery.

So, that also means it shows the number (and camera.gif) in the PM Postbit of senders that don't have a gallery as well as those that do.

Any ideas about this?
Reply With Quote
  #21  
Old 08-08-2006, 07:17 AM
theChronic theChronic is offline
 
Join Date: May 2006
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, it does mess up on that but I don't really care because the search engines don't see it soo...
Reply With Quote
Reply


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


All times are GMT. The time now is 06:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04353 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete