The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Display albums in member profile
I've been playing around the the memberinfo template for awhile now, I moved the album that appears on the sidebar into a tab. That works, but I would like to find a way to display ALL of the member albums in a new profile tab.
This is the code I used to display the sidebar albums in my current tab " {vb:raw blocks.albums}" I would like to know if there is a way to display all of my albums while keeping the formatting I all ready created on "album.php" |
#2
|
|||
|
|||
Still nothing? Man, I swear Vbulletin forum is not as helpful as some of the other communities out there, maybe because this isn't open source?
|
#3
|
|||
|
|||
I see that you found the article on creating profile tabs. You probably want to look in includes/class_profileblock.php, function vB_ProfileBlock_Albums:repare_output() around line 1023. Basically it does a query of the album table and formats the output by rendering the memberinfo_albumbit template for each album.
|
#4
|
|||
|
|||
any actual way to this???? other than just hinting out?
|
#5
|
||||
|
||||
You could see if there is a modification already or you can hire someone to write one. This is a user run community where we help others customize their site. We can't go and code up everything for you, but we are willing to point you in the right direction and when you get stuck, post up your code, and we can help you out.
|
#6
|
|||
|
|||
Hey Lynne,
I really tried my best yet I couldnt make yet work you can check it here the code so far PHP Code:
hope if you can help me as I removed the LIMIT from the sql query so I registered the array contain everything added to the templates that already created and delcared yet it doesnt display the albums???? --------------- Added [DATE]1371390920[/DATE] at [TIME]1371390920[/TIME] --------------- what I have don so far PHP Code:
deleted functions just made straigt away plugin work also removed this $hook_query_fields = $hook_query_joins = $hook_query_where = ''; ($hook = vBulletinHook::fetch_hook('member_profileblock_alb um_query')) ? eval($hook) : false; and added the plugin to work in hook member_profileblock_album_query so the tab disappeared ???? --------------- Added [DATE]1371391385[/DATE] at [TIME]1371391385[/TIME] --------------- so far splitted the plugin into to plugins once to work in member_profileblock_album_query to retrieve all albums PHP Code:
PHP Code:
still not displaying the albums???? |
#7
|
||||
|
||||
What about the template memberinfo_block_photos ? We need that code also.
When I create that template and just put in the content: HTML Code:
This is a test. |
#8
|
|||
|
|||
Here is what I have done
template memberinfo_block_photos PHP Code:
template memberinfo_block_photosbit PHP Code:
works with each template i.e. the plugin with hook member_profileblock_album_query create the albums bits alltogather which is temaplate memberinfo_block_photosbit and the plugin member_complete create the albums whole template which is memberinfo_block_photos that contains memberinfo_block_photosbit hope this cleared everything???? |
#9
|
||||
|
||||
You are creating the template memberinfo_block_photos in both plugins. In the first one you simply want to preregister the variables for use in that template, not create it also.
I would change $albumbits to $albumbits2 throughout. Change the id of the tab from photos to photos2 throughout (both plugin and template). I got it to work with those changes, although it will need some formatting to be done. |
#10
|
|||
|
|||
please give me two mintues and I will update u with results dont log off please!
thank you --------------- Added [DATE]1371404477[/DATE] at [TIME]1371404477[/TIME] --------------- Here is what I have done but is not working created two templates created two plugins one template with name memberinfo_block_mpphotos contains PHP Code:
contains PHP Code:
first plugin with hook position member_profileblock_album_query contains PHP Code:
second plugin with hook position member_complete contains PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|