Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
[vbadvanced Gallery & Links] Number of contributed pics & links in profile Details »»
[vbadvanced Gallery & Links] Number of contributed pics & links in profile
Version: 1.00, by Lea Verou Lea Verou is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 11-11-2005 Last Update: Never Installs: 79
Uses Plugins Template Edits
 
No support by the author.

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.

Show Your Support

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

Comments
  #2  
Old 11-12-2005, 10:11 PM
Ramsesx's Avatar
Ramsesx Ramsesx is offline
 
Join Date: Aug 2005
Location: Southern Germany
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, quickly and easy installation. Thank you
Reply With Quote
  #3  
Old 11-12-2005, 10:45 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Michelle!!! Great work! How would I go about adding this to the posbit?
Reply With Quote
  #4  
Old 11-12-2005, 11:00 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 11-12-2005, 11:01 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 11-12-2005, 11:02 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 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!
Reply With Quote
  #7  
Old 11-12-2005, 11:04 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 11-12-2005, 11:05 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 Michelle
Psychic, eery really

THANKS!!!!!!
Reply With Quote
  #9  
Old 11-12-2005, 11:10 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 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
Reply With Quote
  #10  
Old 11-12-2005, 11:13 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

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 01:47 AM.


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.04935 seconds
  • Memory Usage 2,300KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (2)bbcode_html
  • (6)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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