vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Reported post email -- add poster's username (https://vborg.vbsupport.ru/showthread.php?t=297011)

makaiguy 04-08-2013 11:10 PM

Reported post email -- add poster's username
 
Am trying to modify the reportpost phrase to include in the notification email the name of the person who submitted the post that is being reported.

I've tried:
Code:

Posted by:
$postinfo[username]

.. and a number of other variations, but have not found anything that works.

$reportinfo[postid] appears to contain the postid number for the reported post. How do I use this to return the username of the poster?

kh99 04-09-2013 12:11 PM

Try using $reportinfo[pusername].

makaiguy 04-09-2013 01:02 PM

Quote:

Originally Posted by kh99 (Post 2415311)
Try using $reportinfo[pusername].

BINGO! That did it. Thanks so much.

--------------- Added [DATE]1365522208[/DATE] at [TIME]1365522208[/TIME] ---------------

For anyone looking for this information, I further enhanced by including a link to the poster's profile page by adding this:

Code:

Posted by:
$reportinfo[pusername] (Profile at $vboptions[bburl]/member.php?u=$reportinfo[puserid])



All times are GMT. The time now is 03: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.02461 seconds
  • Memory Usage 1,711KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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