vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Reported post creates new thread. (https://vborg.vbsupport.ru/showthread.php?t=83074)

Paul M 09-15-2005 07:15 PM

Make sure the template is called report_post (case sensitive) and is available in all styles you use.

FleaBag 09-15-2005 08:05 PM

Hey Paul, just got this running on RC3, very nice - thanks! I'm currently trying to work out how to get the user redirected to a confirmation of the report being sent, once submitted. I'll let you know how I get on. :)

Nobody hold their breath though... I've no idea what I'm doing.

Boofo 09-15-2005 08:44 PM

Quote:

Originally Posted by Eagle Creek
The previous hack (I have installed a report post hack) included that. It's usefull!

I got it to show the mods who were sent the email now. And no file edits. ;)

nexialys 09-15-2005 11:48 PM

ADDITION:

to display the redirect page after the user sent the message, just add this at the end of the actual hack:

FIND
PHP Code:

// ########### End report posts hack ############# 

at the end of the plugin text, ADD this JUST BEFORE:
PHP Code:

eval(print_standard_redirect('redirect_reportthanks',1,1)); 

.. the actual one is not showing the redirect completely...

Boofo 09-16-2005 12:08 AM

Could it not be showing correctly because the redirects are turned off? ;)

nexialys 09-16-2005 12:35 AM

Quote:

Originally Posted by Boofo
Could it not be showing correctly because the redirects are turned off? ;)

this setting will FORCE REDIRECT... that's the difference!

Boofo 09-16-2005 01:27 AM

And if redirects are turned on it won't show twice, right?

nexialys 09-16-2005 02:08 AM

Quote:

Originally Posted by Boofo
And if redirects are turned on it won't show twice, right?

no because of a simple act: (print_standard_redirect) display and exit the script, so even if you have something else in front of it, calling this function exit everything else after it!

the FORCE REDIRECT is used in many places on the forum anyway, where redirects are needed for cookies and for acknowledgements of actions...

WNxWakko 09-16-2005 02:18 AM

nevermind, I retract my post.

Paul M 09-16-2005 07:48 AM

Now updated to v2.01 (as a vb product). See the first post for details. :)


All times are GMT. The time now is 07:46 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.01525 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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