The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Profile Page Banner Details »» | ||||||||||||||||||||||
Changeable Member Profile Page Banner
Description: Your members can add a banner above their Profile page. ================================================== === Demo: http://nacc.club/member.php?u=1 The demo is a 3.8 test site but it will look the same in 4.2 Music will play in profile, please adjust volume before clicking. ================================================== === Step One: You will need to make a new User Profile Field. Admincp/User Profile Fields/Add New User Profile Field Single-Line Text Box Title: Add a banner above your profile Description: Please add your Image URL (Example: http://nacc.club/imagehosting/14f7bd890a86c3.jpg) Field Required: No Field Editable by User: Yes Display Page: Edit Profile Save it Remember the field ID number, you will need it later. ================================================== === Step Two: You will need to edit your MEMBERINO template. (MAKE A BACKUP OF ANY TEMPLATE YOU EDIT BEFORE YOU EDIT IT, YOU MAY NEED IT IF YOU MAKE A MISTAKE.) Find: Code:
{vb:raw navbar} Code:
<div align=center><vb:if condition="$userinfo['fieldxx']"><td class="vbmenu_option"><img src="{vb:raw userinfo.fieldxx}" width="600" height="150"></td></tr> </vb:if></div> ================================================== === As you see, I set the default Image size allowed to 600 x 150. Any image a member adds will show image at that size. Adjust these numbers to suit your needs or remove "width="600" height="150" to allow your members to add any size image. ================================================== === Step Four: Inform your Members...Enjoy ================================================== === ================================================== == ADDON: Added wired1's extra profile pages addon ( marked reusable) to show the banner profile field to its own page and added <vb:else /> if conditionals to only show the page contents to select usergroups by adding usergroup id's to the top of the new pbanner template (info included in zip) To Upgrade: Click Install & download the zip file. Import the product-be1_pbpfp.xml Edit the admincp/profilefield.php file Edit the USERCP_SHELL template Edit the pbanner template to add usergroup id's to wat to allow access to the page After you do the addon steps, go into your profile field manager, click edit to the right of Profile Banner. Scroll to the bottom of that page to the Display Page, click the dropdown and select, Option: Profile Banner Options... Done ================================================== == Happy Editing!! Added 3rd party Image Upload and Resize script. Download Now
Show Your Support
|
Благодарность от: | ||
madzat |
Comments |
#32
|
||||
|
||||
Good idea blind eddie, this will provide instant, satisfying feedback to any user.
Always good to see development on 4.2.1. |
#33
|
||||
|
||||
how can i change banner size like facebook cover?
|
#34
|
||||
|
||||
Facebook cover?
As stated in first post: Quote:
Code:
<div align=center><vb:if condition="$userinfo['fieldxx']"><td class="vbmenu_option"><img src="{vb:raw userinfo.fieldxx}" width="600" height="150"></td></tr> </vb:if></div> |
Благодарность от: | ||
mohammad6006 |
#35
|
|||
|
|||
Again I just want to say thanks blind-eddie
@ mohammad6006 facebook cover is ...851 pixels wide and 315 pixels tall. If you upload an image that's smaller than these dimensions, it will be stretched to this larger size. Code:
<div align=center><vb:if condition="$userinfo['fieldxx']"><td class="vbmenu_option"><img src="{vb:raw userinfo.fieldxx}" width="851" height="315"></td></tr> </vb:if></div> Code:
I did 950 pixels wide and 150 pixels tall...but then again I'm still sorting out how I would like it! Code:
<div align=center><vb:if condition="$userinfo['fieldxx']"><td class="vbmenu_option"><img src="{vb:raw userinfo.fieldxx}" width="950" height="150"></td></tr> </vb:if></div> Code:
If you upload an image that's smaller than these dimensions, it will be stretched to this larger size. |
2 благодарности(ей) от: | ||
mohammad6006, tbworld |
#36
|
||||
|
||||
Quote:
i add style HTML Code:
style="max-height: 350px; max-width: 75%;" |
#37
|
||||
|
||||
You could use,
Code:
width="75%" height="auto" The only issue I see having with any of the edits is the size of the image. Example random banner image from the net: http://shipritestore.com/wp-content/...ns-Banners.jpg This image is 1664 x 312 and 1941264 bytes (HUGE) Using style="max-height: 350px; max-width: 75% or width="75%" height="auto will drop the image to 1165 x 218 (Fluid Style)but it will still remain 1941264 bytes (HUGE) I could add image guidelines & add image resizer link on the profile field page so members will know what size their image needs to be. |
#38
|
|||
|
|||
FYI
My image guidelines when filling out the User Profile Field Description Code:
Please add your Image URL ...for best results Banner photos are xxx pixels wide and xxx pixels tall. If image is smaller than these dimensions, it will be stretched to this larger size...sometimes this will give you a cool image. |
#39
|
||||
|
||||
I added image resizing to specific dimension's and image upload on the pbanner page.
I will share my edit later tonight. |
Благодарность от: | ||
Mr_Running |
#40
|
|||
|
|||
Cool!
Upload-Resize Host Image on post #43 Notes: neider ...I think it should read...neither Upload-Resize Host ...will that be hosted on our own servers? |
#41
|
|||
|
|||
nvm this
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|