vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Delete Visitor Message (https://vborg.vbsupport.ru/showthread.php?t=271088)

Infinity101 09-29-2011 04:36 AM

Delete Visitor Message
 
Hello, I've been working on a link to delete a visitor message on a profile rather than doing it the default way. Currently, I have been using a iframe to a template which uses the form code, however for obvious reasons I would rather use a href.

I've tried several variations, however the output page is bank with a 0.

Example of what I've tried.
PHP Code:

a href="visitormessage.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}&do=deletemessage?rb_del_hard&vmid={vb:raw message.vmid}" 

Any ideas on how to get this to work? Thanks.

souperman 09-29-2011 04:40 AM

How are you accessing the url? you need to be an admin or mod. Also, what template are you putting that code on?

hoangserip 09-29-2011 05:28 AM

ChipLove.9xpro - Quick delete all Visitor Messages

Link mod: http://thuthuat.chiplove.biz/post-51...-messages.html

:( and need help me: https://vborg.vbsupport.ru/showthread.php?t=271026

Infinity101 09-30-2011 03:53 AM

Quote:

Originally Posted by souperman (Post 2251134)
How are you accessing the url? you need to be an admin or mod. Also, what template are you putting that code on?

It's an href link and you only need to be the owner of the profile to delete your visitor message. The link is being attached to every visitor message - next to the edit link.

Quote:

ChipLove.9xpro - Quick delete all Visitor Messages
Thanks, but never heard of the website and am receiving a warning when clicking on the link. I'm not looking to delete all messages either, however I'm sure it wouldn't be hard to edit the code.

- Edit - Got it to work using the onload element and creating a custom template for the editor. Thanks.


All times are GMT. The time now is 12:45 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.00938 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete