vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Delete a post with only one button (in postbit) (https://vborg.vbsupport.ru/showthread.php?t=60704)

calvinnguyen 02-24-2005 01:22 AM

this is great! thanks Gary

grief 06-04-2005 02:50 AM

Quote:

Originally Posted by Gary King
To change to an image, change
PHP Code:

<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" /> 

to
PHP Code:

<input type="hidden" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" /> 

Then, add this below that:
PHP Code:

<input type="image" name="submit" src="image.jpg" /> 

Replace image.jpg with the path to your image.

might wanna add align="middle" border="0" to that line aswell so the button lines up with the edit and quote buttons

[high]* grief clicks install[/high]

stan111 09-18-2005 01:00 AM

i got it working perfectly but somehow when i want it to show the picture i got the X because i dont know wat folder on the Root i should put the image in
thanks in advance
btw: if you use v3.0.7, u should edit your postbit legacy also in order to get it work

thanks a lot

Alphawolf83 11-16-2005 10:25 AM

*clicks install*

Thanks for this hack. A useful addition would be to give access to this button to only those moderators who can moderate in the forum. Otherwise the button would have been shown in all forums so that moderators can delete in every forum => they would have permissions like super-moderators.

To do this I added:
PHP Code:

<if condition="can_moderate($forum['forumid'])">
...
</if> 

Sorry for the terrible english :-)


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

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.01475 seconds
  • Memory Usage 1,726KB
  • 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
  • (4)bbcode_php_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
  • (4)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