vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=309757

Profile Page Banner
by blind-eddie
21 Mar 2014 14:01

1 Attachment(s)
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
Adjust these numbers to suit your needs or remove "width="600" height="150" to allow your members to add any size image.

https://www.vbulletin.org/forum/external/2014/03/25.png
=====================================================

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

https://www.vbulletin.org/forum/external/2014/03/26.png


https://www.vbulletin.org/forum/external/2014/03/27.png

====================================================
Happy Editing!!

Added 3rd party Image Upload and Resize script.

fleshy66 21 Mar 2014 14:32

On the demo site,
Sorry. The administrator has banned your IP address. To contact the administrator click here

blind-eddie 21 Mar 2014 14:35

Try again please.

faisaly.com 21 Mar 2014 21:04

If this is a banner why would it play music? never mind I see now that the profile link worked... It was your youtube player!

blind-eddie 21 Mar 2014 23:53

Via pm, I am ask how to only allow select usergroups access to use this.


vbulletin does not have an option to set permissions on profile fields that I am aware of.

The only way to allow this to be used by select usergroups is....

ACP/User Profile Fields/Profile banner, click edit.

Look for Private Field, select yes. Save.

Now, ACP/Usergroups/Usergroup Manager.

In all your active Usergroups , Select Edit Usergroup.

Scroll to the General Permissions section
.
Check No for all usergroups you do not want to see private profile fields.

They will see the banner image on the profile page of those allowed to see private profile fields.

Bowlsworld 23 Mar 2014 15:05

IP banned also mate, looks very interesting, would it clash with vBSocial Profile mods?

blind-eddie 23 Mar 2014 15:19

All banned ips are now removed, sorry.
Try again please.
I do not use vBSocial Profile mods but, I do not think it will effect it.

Alibass 23 Mar 2014 17:31

Quote:

Originally Posted by blind-eddie (Post 2488840)
Via pm, I am ask how to only allow select usergroups access to use this.


vbulletin does not have an option to set permissions on profile fields that I am aware of.

The only way to allow this to be used by select usergroups is....

ACP/User Profile Fields/Profile banner, click edit.

Look for Private Field, select yes. Save.

Now, ACP/Usergroups/Usergroup Manager.

In all your active Usergroups , Select Edit Usergroup.

Scroll to the General Permissions section
.
Check No for all usergroups you do not want to see private profile fields.

They will see the banner image on the profile page of those allowed to see private profile fields.

I've tried this but it still shows in usercp/settings/edit profile for the usergroup I want to deny this privileged to.

blind-eddie 23 Mar 2014 18:25

I can add a plugin to add the profile banner profile field to its own page with if conditionals to hide the page to add the image link for the banner but still allow the members to see each other Profile page banners.
Would this work for you?

Alibass 23 Mar 2014 18:33

Yes, that would be great. :D:up:

blind-eddie 23 Mar 2014 21:08

Added, click Installed to receive update.

Alibass 23 Mar 2014 21:23

@blind-eddie

Your zip folder shows to be empty after download.

blind-eddie 23 Mar 2014 21:45

Shows it has what it needs to have in it when I download

Alibass 23 Mar 2014 21:51

I've downloaded it 3 times now......... it's empty........ look at your download counter it still shows 0 downloads.

blind-eddie 23 Mar 2014 22:01

The counter does not update immediately. I checked the zip file & it had what I put in it.
I re-uploaded it again and it still has what I put in it.
Please try again.

Edit: I downloaded it in 3 different browsers, each download contained the items I added to it.


All times are GMT. The time now is 16:20.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.