We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[ C ] Profile BG; reopened
Topic Started: Jul 10 2015, 01:42 AM (721 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
thewizardlycommons.com

I'm looking a way so that members can choose from various predefined backgrounds which they can use as their mini profile background (let me know dimensions?) I would also like a way that some backgrounds are only available to certain people, for example outlineforum.com, has an exclusive bg for retired staff.

Also would it be possible to allow certain people to use it? I plan on selling it in the shop as a customization. Staff will be receiving this feature for free however
Edited by Tyler Dream, Jul 13 2015, 04:23 AM.
Offline Profile Goto Top
 
Replies:
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Ok
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Which would you prefer?
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
The repetitive image
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Code:
 
<script type="text/javascript">
var profileBackgroundFieldName = "Profile Background";
var profileDefaultBackground = "http://25.media.tumblr.com/a2281ac6eb501c4139e4c8a81cabea26/tumblr_mfhp94g5uc1r0qmqfo1_250.jpg";
var canUse = ['291320', '213567', 'enter user OR group ID of permitted user/group here'];

if ($.inArray($.zb.stat.mid, canUse) === -1 || $.inArray($.zb.stat.gid, canUse) === -1) {
if (location.href.indexOf(main_url + 'home/?c=6') !== -1) {
$('#edit_profile tbody td.c_desc:contains(' + profileBackgroundFieldName + ')').parent().remove();
}
}

if (location.href.indexOf(main_url + 'topic/') !== -1 || location.href.indexOf(main_url + 'single/') !== -1) {
$('table.topic tbody td.c_user').each(function() {
/* Background */
var $this = $(this);
var field = $this.find('dt:contains(' + profileBackgroundFieldName + ')').next();
$this.css('background', field.text().indexOf('http://') !== -1 ? 'url(' + field.text() + ')' : 'url(' + profileDefaultBackground + ')');
field.prev().andSelf().remove();
$this.find('dl:has(dd.spacer:only-child)').remove();
});
} else if (location.href.indexOf(main_url + 'profile/') !== -1) {
var $this = $('table.profile td.c_user');
var field = $this.find('dt:contains(' + profileBackgroundFieldName + ')').next();
field.prev().andSelf().remove();
$this.find('dl:has(dd.spacer:only-child)').remove();
}
</script>
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Works great, Thanks DPM!
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2