vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - Profile Page Banner (https://vborg.vbsupport.ru/showthread.php?t=199709)

blind-eddie 12-23-2008 10:00 PM

Profile Page Banner
 
1 Attachment(s)
Changeable Member Profile Page Banner

Will work on all 3.8 series

Description: Your members can add a banner above their Profile page.
================================================== ===
Demo: http://blind-eddie.com/forum/member.php?u=1

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://blind-eddie.com/forum/imageho...bd890a86c3.jpg)

Field Required: No

Field Editable by User: Yes

Display Page: Edit Details


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:

$navbar
Add below:
Code:

<div align=center><if condition="$userinfo['fieldxx']"><td class="vbmenu_option"><IMG SRC="$userinfo[fieldxx]" width="600" height="150"></td></tr> </if></div>
Note: Change the xx in fieldxx to the profile field you created.
================================================== ===

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.
================================================== ===

Step Four:
Inform your Members...Enjoy

You can click Installed above right, or you can just say Thanks blind-eddie
================================================== ===

Sweeks 12-26-2008 06:15 AM

Can you set the profile fields so only specified groups can use them? EDIT:

I have found this to work better on our style:

HTML Code:

<if condition="$userinfo['fieldxx']">
<div align="center"><img src="$userinfo[xx]" width="400" height="120"></div></if>

________
Blowjob mature

Hornstar 12-26-2008 11:58 PM

I dont see any picture come up in FF, it is just black where the banner should probably be.

Sweeks 12-27-2008 10:41 AM

1 Attachment(s)
Here is an example of ours working fine in FF
________
ZX14 VS HAYABUSA

TheInsaneManiac 01-23-2009 06:48 PM

only looks good on fixed styles.

blind-eddie 01-23-2009 11:25 PM

Change width="600" height="150" to what suits your needs, or remove that line of code altogether, but keep in mind that removing it will allow members to show images of any size.

XtremeOffroad 01-23-2009 11:51 PM

Quote:

Originally Posted by Sweeks (Post 1694678)
Here is an example of ours working fine in FF


hahaha look at the thread you were looking at when you took the screen shot.

Shaliza 01-24-2009 02:56 AM

This is a cool little hack. It reminds me of the way you can add your own images/banners at the top of your profile page on Myspace.

blind-eddie 01-24-2009 03:20 AM

Thanks, If you look at the demo, you will see I moved the banner to above the navbar. To do this,

In the MEMBERINO template, find

Code:

$header
delete it.




then add the line of code list in first post.

spirittina 02-01-2009 02:13 AM

awesome thank you so much so easy to do


All times are GMT. The time now is 01:54 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.01030 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)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