vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [vbadvanced Gallery & Links] Number of contributed pics & links in profile (https://vborg.vbsupport.ru/showthread.php?t=100667)

Lea Verou 11-11-2005 10:00 PM

[vbadvanced Gallery & Links] Number of contributed pics & links in profile
 
This modification will add to a member's profile the number of pictures and links he has contributed. It needs vbadvanced links and vbadvanced gallery installed.
The code for the gallery is Brian's (Tigga here) but I made it as a plugin and added the code for the links too.

Installation
1. Import the attached plugin.
2. Add in the MEMBERINFO template wherever you'd like it:
HTML Code:

Pictures Contributed: $userimages[count]
for the images and
HTML Code:

Links contributed: $userlinks[count]
for the links.

Please click install if you use this.
If you only have vba Gallery or vba Links then delete (or comment) the other section of the plugin.

Ramsesx 11-12-2005 10:11 PM

Nice idea, quickly and easy installation. Thank you

trackpads 11-12-2005 10:45 PM

Michelle!!! Great work! How would I go about adding this to the posbit?

Lea Verou 11-12-2005 11:00 PM

Quote:

Originally Posted by trackpads
Michelle!!! Great work! How would I go about adding this to the posbit?

Try changing the hook location of the plugin to postbit_complete and performing the same template changes but on the postbit (or postbit_legacy) template. tell me if it works

trackpads 11-12-2005 11:01 PM

I hope this will contribute some here.

I used this code in my memberinfo:

Code:

                        <!-- Start Photos and Links Hack -->
                                                <fieldset class="fieldset">
                                <legend>Photos & Links</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                Pictures Contributed: <strong>$userimages[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_photos_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td>
                                                Links Contributed: <strong>$userlinks[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_links_by_x]</phrase></a></td>
                                </tr>
                                </table>
                        </fieldset>

                       
                        <!-- / Photos and Links Hack -->


I had to create the 2 new phrases 'find_all_photos_by_x' & 'find_all_links_by_x'.

The only problem I have is what the heck is the code to search the links by username? Above I have the same search string for both. Any ideas?

Thanks again,

-Jason

trackpads 11-12-2005 11:02 PM

Quote:

Originally Posted by Michelle
Try changing the hook location of the plugin to postbit_complete and performing the same template changes. tell me if it works

Will do!

Lea Verou 11-12-2005 11:04 PM

Quote:

Originally Posted by trackpads
I hope this will contribute some here.

I used this code in my memberinfo:

Code:

                        <!-- Start Photos and Links Hack -->
                                                <fieldset class="fieldset">
                                <legend>Photos & Links</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                Pictures Contributed: <strong>$userimages[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_photos_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td>
                                                Links Contributed: <strong>$userlinks[count]</strong>
                                        </td>
                                </tr>
                                <tr>
                                        <td><a href="http://www.trackpads.com/media/browseimages.php?c=500&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_links_by_x]</phrase></a></td>
                                </tr>
                                </table>
                        </fieldset>

                       
                        <!-- / Photos and Links Hack -->


I had to create the 2 new phrases 'find_all_photos_by_x' & 'find_all_links_by_x'.

The only problem I have is what the heck is the code to search the links by username? Above I have the same search string for both. Any ideas?

Thanks again,

-Jason

http://www.vbadvanced.com/forum/showthread.php?t=11534

trackpads 11-12-2005 11:05 PM

Quote:

Originally Posted by Michelle

Psychic, eery really :) :) :) :)

THANKS!!!!!!

trackpads 11-12-2005 11:10 PM

Quote:

Originally Posted by trackpads
Will do!

No luck, there is no postbit_complete, I tried the postbit_display_complete but got an error when I tried to view a thread

Lea Verou 11-12-2005 11:13 PM

Quote:

Originally Posted by trackpads
No luck, there is no postbit_complete, I tried the postbit_display_complete but got an error when I tried to view a thread

Try all the other postbit hook locations :)

What error did you get?


All times are GMT. The time now is 09:18 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.01230 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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