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)
-   -   Administrative and Maintenance Tools - Delete User Link in Profile for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=255569)

Boofo 12-19-2010 10:00 PM

Delete User Link in Profile for vB 4
 
1 Attachment(s)
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';
}

Merjawy 12-20-2010 08:53 PM

Tagged for later..

Thanks

Skyrider 12-23-2010 05:02 AM

The idea is to use the [code] tags around the code so non-licensed users cannot view the code freely.

Boofo 12-23-2010 05:16 AM

Quote:

Originally Posted by FF|Skyrider (Post 2137933)
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?

TheLastSuperman 12-23-2010 05:38 AM

Quote:

Originally Posted by Boofo (Post 2137937)
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 :(.

Boofo 12-23-2010 05:48 AM

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.


All times are GMT. The time now is 05:27 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.01003 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete