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 01-19-2006 04:20 PM

From my sig ;

Quote:

when you use one of my hacks, please make sure you have clicked the install link - esp if you require support.

Snake 01-24-2006 08:43 PM

Screenshots?

Paul M 01-24-2006 09:10 PM

Quote:

Originally Posted by Aftermath
Screenshots?

Nope, I don't have any. It just creates a thread so there is nothing special that really needs a screen shot.

Eagle Creek 01-24-2006 09:56 PM

Quote:

Originally Posted by Aftermath
Screenshots?

For what exactly :ermm: ?

You create a section.
You report a post.
You see a copy of your report begint showed as a normal post in that section.

Works great btw :D.

Snake 01-27-2006 09:27 AM

Awesome. I'm a huge fan of this hack of yours lol. Thanks! :D

kregger 01-27-2006 09:59 AM

Exactly what I need! Wish I'd found it sooner. Yet another Paul M hack for my board. hehe Thanks for doing such great work, dude!
*clicks install*

Craig

Paul M 01-27-2006 09:07 PM

Quote:

Originally Posted by Eagle Creek
For what exactly :ermm: ?

You create a section.
You report a post.
You see a copy of your report begint showed as a normal post in that section.

Works great btw :D.

You have it installed then ;)

Kmaster 01-28-2006 03:40 AM

when do report post, I'd received below error.
Warning: Invalid argument supplied for foreach() in /includes/functions_newpost.php on line 243

Paul M 01-28-2006 04:09 AM

Line 243 of functions_newpost.php is commented out in vb 3.5.3, what version are you running ?

Kmaster 01-28-2006 04:27 AM

running vb352, in line 243 I found
foreach ($post['hidetype'] as $value)

guess my hide hack make crash the fucntion.
any idea how fix it work in my hide hack.

Paul M 01-28-2006 04:51 AM

Sorry, no idea, I don't even know what it is, but I assume it has it's own support thread.

davidw 01-28-2006 01:40 PM

<font color="SeaGreen">* Christianb reserves this post to install at a later time as it is something worthwhile but at the meantime uses this spot to subscribe to the thread.</font>

tamborinegal 02-07-2006 04:25 AM

Thanks so much Paul. I can't tell you how much time this will save me.

Thank you :) Clicking install.

Clancy

Cloud-Warrior 02-13-2006 09:36 AM

To add the forum name to the created thread's title and post content, it should be a matter (as outlined above) of changing the 'title' line in the XML to:

PHP Code:

    'title' => 'Reported post in ' .$foruminfo['title'] . ' : ' $threadinfo['title'

and adding:

PHP Code:

Forum : [url=$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]]$foruminfo[title][/url

to the Report_post template or by adding it to above the "Thread :" line in the XML file.

If you do have some characters like & or < in your forum title, there may be problems in the created thread's title (as outlined earlier in this thread), but maybe try using htmlentities($foruminfo['title']) or htmlspecialchars($foruminfo['title']) instead of $foruminfo['title'] in the 'title' line.

Mindwarp 02-17-2006 05:45 PM

any thought on why Everyone but admins would be able to report a post?

cmiller1014 02-20-2006 05:24 AM

As someone stated, the Admin is not given the report post option.....

And the post created contains these comments... how would I remove those??

Quote:

<!-- BEGIN TEMPLATE: Report_post -->
The following post has been reported ;

Thread : This is just a test

Original Post by Admin :

Quote:
Originally Posted by Admin
Tester Testing in the testing forum

Reason Given : This is a reported post
<!-- END TEMPLATE: Report_post -->

Paul M 02-20-2006 10:37 AM

Quote:

Originally Posted by cmiller1014
As someone stated, the Admin is not given the report post option.....

And the post created contains these comments... how would I remove those??

1. This has zero effect on who can report a post since it's not called until you actually report one.

2. Turn off the "Add Template Name in HTML Comments" option in the ACP - it's a debug feature, not for live sites.

daFish 02-20-2006 06:38 PM

Is there a way to get the reported post opened in a new window instead of the parent one?

Mindwarp 02-25-2006 01:13 AM

Quote:

Originally Posted by Paul M
1. This has zero effect on who can report a post since it's not called until you actually report one.

2. Turn off the "Add Template Name in HTML Comments" option in the ACP - it's a debug feature, not for live sites.


wellon the board im running this on we get the option to report a post however when we submit it, it does not apear in the forum designated for reported post to show up. Super Mod and below will show up, but Admins don't :(

SaN-DeeP 02-25-2006 02:46 PM

works like a charm on 3.5.4, could we have an option enabled to send emails + create a new thread as well ?

thanks.

MichaelP 02-25-2006 03:09 PM

Installed and clicked installed, works a treat :up:

Paul M 02-25-2006 05:05 PM

Quote:

Originally Posted by SaN-DeeP
works like a charm on 3.5.4, could we have an option enabled to send emails + create a new thread as well ?

thanks.

Manually disable the forth plugin of this hack (Reported Post as New Thread (4)) and e-mails will be sent as before.

Paul M 02-25-2006 05:08 PM

Quote:

Originally Posted by Mindwarp
wellon the board im running this on we get the option to report a post however when we submit it, it does not apear in the forum designated for reported post to show up. Super Mod and below will show up, but Admins don't :(

Sorry I can't replicate that at all - I can only investigate something if I can make it happen. The only thing I can think of is that maybe admins use a different style. The only way I can think of that it would fail is if it cannot find the template.

SaN-DeeP 02-25-2006 06:30 PM

Quote:

Originally Posted by Paul M
forth plugin of this hack (Reported Post as New Thread (4)) and e-mails will be sent as before.

hi Paul,
Sorry to bump back again, can we have a feature in future, to have both sending emails + a new thread created in specified forum ?

Regards,

Paul M 02-25-2006 06:32 PM

Quote:

Originally Posted by SaN-DeeP
hi Paul,
Sorry to bump back again, can we have a feature in future, to have both sending emails + a new thread created in specified forum ?

Regards,

Um, that's what will [already] happen if you disable the forth plugin.

cecdah 02-28-2006 11:07 PM

Thanks a lot for this! :)

InfidelMatt 03-01-2006 10:09 PM

Quote:

Originally Posted by Cloud-Warrior
If you do have some characters like & or < in your forum title, there may be problems in the created thread's title (as outlined earlier in this thread), but maybe try using htmlentities($foruminfo['title']) or htmlspecialchars($foruminfo['title']) instead of $foruminfo['title'] in the 'title' line.

Unfortunately neither of these fix the error either.

Matt

ZombieAndy 03-07-2006 09:15 PM

hey i have a set username to post messages in the mod forum, i'd like to modify this hack to post a message as this username rather than the member that reported.

is this possible?

Nathan2006 03-07-2006 11:01 PM

Thank you :) Installed

Paul M 03-08-2006 12:08 PM

Quote:

Originally Posted by YodaTheCoda
hey i have a set username to post messages in the mod forum, i'd like to modify this hack to post a message as this username rather than the member that reported.

is this possible?

I would imagine it's possible by editing the code - it's not something I'm about to attempt though as I really can't see much of a need for this.

ZombieAndy 03-08-2006 01:40 PM

Quote:

Originally Posted by Paul M
I would imagine it's possible by editing the code - it's not something I'm about to attempt though as I really can't see much of a need for this.

im not much of a coder so could you at least tell me where to look?

Paul M 03-08-2006 01:46 PM

Quote:

Originally Posted by YodaTheCoda
im not much of a coder so could you at least tell me where to look?

Have you actually looked for yourself ? This only has two plugins, one of them is called "Disable Reported Post E-mails" and the other is called "Add Reported Post as Thread". Take a wild guess at which one you need to look at. :)

ZombieAndy 03-08-2006 01:58 PM

Code:

<![CDATA[
$report_foruminfo = fetch_foruminfo($vbulletin->options['reportforum']);
$newpost = array(
        'emailupdate' => 9999,
        'userid' => $vbulletin->userinfo['userid'],
        'username' => $vbulletin->userinfo['username'],
        'title' => 'Reported post in : ' . $threadinfo['title']
);
eval('$newpost[message] = "' . fetch_template('Report_post') . '";');
require_once(DIR . '/includes/functions_newpost.php');
build_new_post('thread', $report_foruminfo, array(), array(), $newpost, $errors);

  ]]>

ive found this and changed this;

Code:

'userid' => $vbulletin->userinfo['userid'],
to

Code:

'userid' => $vbulletin->userinfo['137'],
and it dosn't work.. i know this is probally miles out but like i said im not a coder :|

Paul M 03-08-2006 04:47 PM

You just need
PHP Code:

'userid' => 137


Bounce 03-08-2006 05:09 PM

nice one paul , installed , tested and working in 3.5.4 lovely , thanks :)

Oblivion Knight 03-08-2006 07:36 PM

I was never a fan of this; but I've now been converted.. :p

Installed, many thanks for another masterpiece!

Paul M 03-08-2006 08:59 PM

Quote:

Originally Posted by Oblivion Knight
I was never a fan of this; but I've now been converted.. :p

Installed, many thanks for another masterpiece!

Now you've seen it in action here I presume :)

ZombieAndy 03-08-2006 10:14 PM

Quote:

Originally Posted by Paul M
You just need
PHP Code:

'userid' => 137



ive changed it to

Code:

<![CDATA[
$report_foruminfo = fetch_foruminfo($vbulletin->options['reportforum']);
$newpost = array(
        'emailupdate' => 9999,
        'userid' => 137,
        'username' => $vbulletin->userinfo['username'],
        'title' => 'Reported post in : ' . $threadinfo['title']
);
eval('$newpost[message] = "' . fetch_template('Report_post') . '";');
require_once(DIR . '/includes/functions_newpost.php');
build_new_post('thread', $report_foruminfo, array(), array(), $newpost, $errors);

  ]]>

and it still dosn't work... help please?

Mindwarp 03-16-2006 02:57 PM

ok this is really starting to bother me. One global template. when a Supermod or below reports a post it will show up. When someone in the Admin Usergorup reports a post, It does not show up. :dead: I don't see anyting in the admin usergorup that would prevent them from reporting a post.

kindpeoplerule 03-22-2006 06:49 PM

Clicked install. Second hack downloaded after I baught vBulletin! Very nice work!


All times are GMT. The time now is 12:02 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.01633 seconds
  • Memory Usage 1,833KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (17)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