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. :)

The Realist 09-16-2005 12:37 PM

Thanks, forgot to add the template to the style :)

Latersxs

Quote:

Originally Posted by Paul M
Make sure the template is called report_post (case sensitive) and is available in all styles you use.


Paul M 09-16-2005 04:10 PM

Quote:

Originally Posted by The Realist
Thanks, forgot to add the template to the style :)

Latersxs

Ah, glad you're sorted - the new version should prevent this - as the template is imported by the product into the master style.

btw - please click install :)

The Realist 09-16-2005 04:11 PM

Great and I have clicked the install buton as well :)

laters

Quote:

Originally Posted by Paul M
The e-mail can still be sent, just turn off the plugin that disables the e-mail send. I don't see the point of a PM when a thread is created.


utw-Mephisto 09-18-2005 04:17 PM

LOVE THAT !

It is working like a charm :)

Yorixz 09-29-2005 01:36 PM

Very nice plugin but somehow the
Code:

<!-- BEGIN TEMPLATE: report_post --><!-- END TEMPLATE: report_post -->
tags keep coming up; does anyone have a solution? (I've checked the templates but it's not in there.

Acers 09-29-2005 02:31 PM

i think if you remove the commend : put template names for templates in admincp that will vanish. It did for me anyway.

dieselpowered 09-29-2005 03:47 PM

Quote:

Originally Posted by nexialys
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...

Is this something that is needed?

Just curious if it was updated in the attached file, if it was, I am not getting any sort of redirect message.

@Paul M, forgive me if this was answered, however, if I set up the hack to start a new thread in a staff area where the user who reports the post does not have access to read or post, will it still create a post from him/her?

Great hack!

**clicks install**

Paul M 09-29-2005 05:26 PM

Quote:

Originally Posted by Yorixz
Very nice plugin but somehow the
Code:

<!-- BEGIN TEMPLATE: report_post --><!-- END TEMPLATE: report_post -->
tags keep coming up; does anyone have a solution? (I've checked the templates but it's not in there.

This is totally unrelated to this hack - it is because you have "Add Template Name in HTML Comments" set to yes in the vb general settings. It should always be set to no on a live forum.

Paul M 09-29-2005 05:30 PM

Quote:

Originally Posted by xtremeoff-road
Is this something that is needed?

Just curious if it was updated in the attached file, if it was, I am not getting any sort of redirect message.

@Paul M, forgive me if this was answered, however, if I set up the hack to start a new thread in a staff area where the user who reports the post does not have access to read or post, will it still create a post from him/her?

Great hack!

**clicks install**

There is no redirect code in the hack, it's not necessary IMO, but you can add it if you prefer it on your forum. :)

Yes, it will create a thread in a staff area, regardless of whether the user has permission to view it - I would think this is how 99% of people use it. :)

Ncturnal 09-29-2005 07:27 PM

Yet again, another awesome modification.

digitalhome 09-29-2005 08:25 PM

Great product! Thanks

Threads are being created in our Mods Forum as you read this!

dieselpowered 09-29-2005 09:55 PM

Quote:

Originally Posted by Paul M
There is no redirect code in the hack, it's not necessary IMO, but you can add it if you prefer it on your forum. :)

Yes, it will create a thread in a staff area, regardless of whether the user has permission to view it - I would think this is how 99% of people use it. :)

Sounds great Paul, that is all I needed to know :)

Thanks again!!

Yorixz 10-02-2005 10:48 AM

Ah, finally found out why it was also posting the commented things; I had "Comment Templates in HTML" enabled in the config. Still a great hack :)

ytclear 10-02-2005 04:27 PM

I dont have my email functions enabled. So when i try to use this mod with the report post it says
"Sorry. The email function has been disabled by the administrator."

When i enable the email functions it works and makes a thread in the forum i specified. The thing is i dont want any other email functions available. Is there a workaround to getting this to work without enabling email?

Paul M 10-02-2005 06:43 PM

Turning e-mail off disables the ability to report posts [with that message] - this is a standard part of vb functionality and there is nothing that can be done about it (other than edit report.php).

Slacker 10-02-2005 07:35 PM

This is awesome. Thanks Paul. Installed at slackercentral.com. ^__^

dieselpowered 10-05-2005 05:07 AM

Hi there Paul, just wanted to let you know that there is a slight problem with this product. Once installed it will not allow the quick reply feature to be used.

Anyone else see that?

Tested with IE and FireFox.

dieselpowered 10-05-2005 05:16 AM

Hang on, I have it disabled and it is still not working...works off and on, this is odd.

Sorry Paul.

poolking 10-05-2005 05:18 AM

Quote:

Originally Posted by xtremeoff-road
Hi there Paul, just wanted to let you know that there is a slight problem with this product. Once installed it will not allow the quick reply feature to be used.

Anyone else see that?

Tested with IE and FireFox.

Works fine for me, sure you're clicking the quick reply button to enable the quick reply box?

Paul M 10-05-2005 05:36 AM

Quote:

Originally Posted by xtremeoff-road
Hang on, I have it disabled and it is still not working...works off and on, this is odd.

Sorry Paul.

Apology accepted. (in my best Darth Vader voice ;))

(you have to have seen Star Wars to understand the humour of this)

ozmazdaclub 10-05-2005 08:09 AM

Excellent work!

*Clicks Install*

dieselpowered 10-05-2005 05:11 PM

Quote:

Originally Posted by poolking
Works fine for me, sure you're clicking the quick reply button to enable the quick reply box?

Ya it is a quick reply problem, sometimes it works, sometimes it does not???

dieselpowered 10-05-2005 05:15 PM

Quote:

Originally Posted by Paul M
Apology accepted. (in my best Darth Vader voice ;))

(you have to have seen Star Wars to understand the humour of this)

LOL ya I like Star Wars...

Anyhow, not to get quick reply working??

Slacker 10-05-2005 05:16 PM

I've only had it on my production site for a day or so, but I'm not have any problems so far. And my users wear the quick reply function OUT. :D

Kaliyoda 10-06-2005 07:07 AM

What a great mod!!!!

Installed and working! :D

The Wise One 10-06-2005 10:13 PM

installed. much thanks.

WNxWakko 10-07-2005 05:28 PM

How do I get this mod to also pull the name of the forum it came from into the subject line?

Paul M 10-07-2005 05:55 PM

See posts 50 & 51 of this thread.

Billspaintball 10-09-2005 09:38 AM

Just installed this hack now.

Love it, will make it a lot easier to see what the Mods have done with any complaints :)

COBRAws 10-12-2005 09:44 AM

another fine rls by Paul M


All times are GMT. The time now is 04:20 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.01868 seconds
  • Memory Usage 1,823KB
  • 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
  • (4)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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