vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Allow members to report own posts (https://vborg.vbsupport.ru/showthread.php?t=82973)

tamarian 06-14-2005 07:35 PM

Quote:

Originally Posted by Zachery
I'd think it would just be easier to edit the template and remove the $show conditional... but thats me and all...

It would it be easier if you guys didn't disable it in the first place, it was working fine before 3.0.7 ;)

Zachery 06-14-2005 07:38 PM

The conditional to report someones post has been there since 3.0.0 and in the betas as well.

tamarian 06-14-2005 07:50 PM

Quote:

Originally Posted by Zachery
The conditional to report someones post has been there since 3.0.0 and in the betas as well.

Zachery, while we have your attention :) could I get you to check this for me (or forward it to the WYSIWYG guru in dev):

https://vborg.vbsupport.ru/showthread.php?t=83034

It's holding up the spell checkers release, and I'm stomped.

Zachery 06-14-2005 07:52 PM

Not a js guru, Scott or Kier would have to respond to that, and my poking won't help that much :\

tamarian 06-14-2005 08:00 PM

Quote:

Originally Posted by Zachery
Not a js guru, Scott or Kier would have to respond to that, and my poking won't help that much :\

These guys are "unpokable" at the moment I take it. I'll send a PM and see what happens. :)

FleaBag 07-31-2005 01:01 PM

It allowed me to report my own post with RC1, but I didn't get a notification e-mail yet. That may be my server though, so I'll wait it out and post an update.

Boofo 08-25-2005 09:55 AM

This shows up in pms now but when you click it, it gives a no permissions error.

Marco van Herwaarden 08-25-2005 11:27 AM

Ofcourse it will also show in pm's, since pm's use the same template. It will cause an error because clicking on it will call the report.php script, which expects a postid, and there is no postid in a pm

Boofo 08-25-2005 11:30 AM

And, Marco, what would we need to do to fix this issue? ;)

Marco van Herwaarden 08-25-2005 11:38 AM

I don't think you have access to the type of object that is using the postbit in 'postbit_display_complete', so you can not add a test to see if it is a post or a pm.

what you could do is create a 'postbit_factory' plugin, that save the $postbit_type. For example in postbit_factory:
PHP Code:

global $show;
$show['hack_postbit_type'] = $postbit_type

Then in the 'postbit_display_complete' you would put:
PHP Code:

global $show;
if (
$show['hack_postbit_type'] == 'post')
{
$show['reportlink'] = $this->registry->userinfo['userid'];


Not tested this, but something like this should work.


All times are GMT. The time now is 01:15 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.01043 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
  • (3)pagenav_pagelink
  • (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