vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - Profile Page Banner (https://vborg.vbsupport.ru/showthread.php?t=309757)

DemOnstar 03-24-2014 05:44 AM

Good idea blind eddie, this will provide instant, satisfying feedback to any user.

Always good to see development on 4.2.1.

mohammad6006 03-24-2014 01:18 PM

how can i change banner size like facebook cover?

blind-eddie 03-24-2014 01:47 PM

Facebook cover?
As stated in first post:

Quote:

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.

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>

Mr_Running 03-24-2014 04:26 PM

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.

mohammad6006 03-24-2014 04:56 PM

Quote:

Originally Posted by Mr_Running (Post 2489278)
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.

thank you very much

i add style
HTML Code:

style="max-height: 350px; max-width: 75%;"

blind-eddie 03-24-2014 05:39 PM

You could use,
Code:

width="75%" height="auto"
which shows same results as your edit on my test board.
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.

Mr_Running 03-24-2014 05:54 PM

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.

blind-eddie 03-26-2014 04:49 PM

I added image resizing to specific dimension's and image upload on the pbanner page.
https://vborg.vbsupport.ru/
I will share my edit later tonight.

Mr_Running 03-29-2014 02:44 AM

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?

coolhula 06-20-2014 11:34 AM

nvm this


All times are GMT. The time now is 10:36 PM.

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.01104 seconds
  • Memory Usage 1,745KB
  • 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
  • (11)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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