Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Delete User Link in Profile for vB 4 Details »»
Delete User Link in Profile for vB 4
Version: 1.0.1, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.1.0 Rating:
Released: 12-19-2010 Last Update: 03-01-2011 Installs: 13
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

Delete User Link in Profile for vB 4
Version 1.0.1
(By Boofo)

What does this product do?
This will add a Delete User Link in the profile. It will NOT show up for undeletable/unalterable users. The "Edit Profile" button will also not show up for undeletable/unalterable users as it makes no sense to have it there if the user can not be edited or deleted. The button will only be available to those who are allowed to edit user profiles. Also, the button image color will change when it is moused over, hence, the CSS code.

Credits:
Digital Jedi, for coming up with the original idea for this mod.
BirdOPrey5, for the mouseover image and original CSS code.

Version Information:
Version 1.0.0 --Initial release for vBulletin 4.x.x
Version 1.0.1 --Rewrote template edit code and added canadminusers condition ("Administrator Permissions -> Can Administer Users" must be set to yes for this to be visible). Also, the delete user link will not show up in your own profile.

Installation Overview:
-----------------------------------------------------
1 Product XML (2 Plugins, 4 phrases and 1 setting)
2 image files

Installation Instructions:
-----------------------------------------------------
1. Upload "boofo_dup2.png" and/or "boofo_dup2_dark.png" to the "forums/images/misc" folder on your site.

2. You will need to add ONLY ONE of the following CSS codes to the "additional.css" template, according to your style type.

---------------------------
For Light/Default Style:
---------------------------
HTML Code:
/* Delete User Link in Profile */
#boofo_dup
{
  display: block;
  width: 16px;
  height: 16px;
  background: url("images/misc/boofo_dup2.png") no-repeat 0 0;
}
#boofo_dup:hover
{
  background-position: 0 -16px;
}
#boofo_dup span
{
  display: none;
}
---------------------------
For Dark Style:
---------------------------
HTML Code:
/* Delete User Link in Profile */
#boofo_dup
{
  display: block;
  width: 16px;
  height: 16px;
  background: url("images/misc/boofo_dup2_dark.png") no-repeat 0 0;
}
#boofo_dup:hover
{
  background-position: 0 -16px;
}
#boofo_dup span
{
  display: none;
}

3. Go to your Admin CP
Scroll down to 'Plugins & Products'
Click 'Manage Products'
Click 'Add/Import Product'
Click the 'Browse' button, and locate the "product-boofo_delete_user_profile.xml" file on your computer

4. Go to your Admin CP -> vBulletin Options -> "Delete User Link in Profile" and set the following option:
--Do you want automatic template edits?: This will automatically add the template code to the MEMBERINFO template.

NOTE: If you have a custom style for your site and find out that the automatic template edit does NOT work, I have included the manual template edit code with this mod in a file called "delete_user_link_in_profile_template_code.txt ".
-----------------------------------------------------
Done!
Enjoy!


if ($mark_as_installed != 'clicked')
{
$you_get = 'squat';
}
else
{
$you_get = 'support';
}

Download Now

File Type: zip Delete_User_Link_in_Profile_vb4.zip (20.0 KB, 50 views)

Screenshots

File Type: png noaltdel.png (3.5 KB, 0 views)
File Type: png nohover.png (6.0 KB, 0 views)
File Type: png hover.png (5.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Digital Jedi

Comments
  #2  
Old 12-20-2010, 08:53 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged for later..

Thanks
Reply With Quote
  #3  
Old 12-23-2010, 05:02 AM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The idea is to use the [code] tags around the code so non-licensed users cannot view the code freely.
Reply With Quote
  #4  
Old 12-23-2010, 05:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FF|Skyrider View Post
The idea is to use the [code] tags around the code so non-licensed users cannot view the code freely.
What does this mean? Are you sure you are in the right thread?
Reply With Quote
  #5  
Old 12-23-2010, 05:38 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
What does this mean? Are you sure you are in the right thread?
I believe skyrider meant the CSS you pasted in the mods description should be within the bb code for "Code" so unlicensed users cannot see it etc.

TBO skyrider you know this will end up on another site just like some of our other stuff and without our permission, I won't say much more than that .
Reply With Quote
  #6  
Old 12-23-2010, 05:48 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The CSS would not do the unlicensed users any good without the mod or the image. But, I went ahead and added html tags, anyway.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06504 seconds
  • Memory Usage 2,282KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (4)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete