Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Allow members to report own posts Details »»
Allow members to report own posts
Version: 1.00, by tamarian tamarian is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 06-11-2005 Last Update: 08-24-2005 Installs: 35
Uses Plugins
 
No support by the author.

What this plugin does:

vBulletin does not (no longer) allow a user to report their own posts. This plugin allows you to enable (or disable by deactivation) reporting own posts.

On some forums there are quite a few threads started and after a set period members want to report those threads to be moved by moderators. without it, members need to PM moderators and provide a link to the post and/or thread, which is a lot of make-work, especially when some members don't know how to provide links, so they'll PM something like "Go to that sub-forum, look in page 7, second thread from the top"!

This can alternatively be done by editing two templates (per template set), postbit and legacy psotbit. But you will need to make those edits to disable/enable this behavious. A plugin is much cleaner, and easier.

Installation: Upload the plugin xml file through your admincp plugin manager.


Please click Install if you have installed this mod.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-25-2005, 12:20 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Plugin updated with this

PHP Code:
if (THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'showpost'$show['reportlink'] = $this->registry->userinfo['userid']; 
Reply With Quote
  #23  
Old 08-25-2005, 12:44 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just looking back at this line now, why do you put the userid in a boolean variable?
Reply With Quote
  #24  
Old 08-25-2005, 12:47 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
Just looking back at this line now, why do you put the userid in a boolean variable?
Not intended as userid, just a quick way for setting true or false. The intended results is saying "If this is a registered member, show the darn report button".
Reply With Quote
  #25  
Old 08-25-2005, 12:56 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then just use:
PHP Code:
$show['reportlink'] = ($this->registry->userinfo['userid'] ? true false); 
Reply With Quote
  #26  
Old 08-25-2005, 01:02 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
Then just use:
PHP Code:
$show['reportlink'] = ($this->registry->userinfo['userid'] ? true false); 
It's the same thing.
Reply With Quote
  #27  
Old 08-25-2005, 02:09 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not really, what if some script somewhere will do a real boolean test, and you put a number in there?
Reply With Quote
  #28  
Old 08-25-2005, 07:11 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
Not really, what if some script somewhere will do a real boolean test, and you put a number in there?
Another script won't go through it, since this explicitly runs for showthread and showpost.

BTW, this code is stock from vBulletin, prior to disabling the ability to report own post. It could be done as if/then/else or iif, or left as is.
Reply With Quote
  #29  
Old 08-25-2005, 08:47 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
        $show['reportlink'] = ($this->registry->userinfo['userid'] AND $this->registry->userinfo['userid'] != $this->post['userid']); 
That is the stock code, which will evaluate to either true or false.
Reply With Quote
  #30  
Old 08-25-2005, 08:56 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarcoH64
PHP Code:
        $show['reportlink'] = ($this->registry->userinfo['userid'] AND $this->registry->userinfo['userid'] != $this->post['userid']); 
That is the stock code, which will evaluate to either true or false.
No it's not. This is the current stock code, where you cannot report your own post.

Quote:
Originally Posted by tamarian
BTW, this code is stock from vBulletin, prior to disabling the ability to report own post.
Reply With Quote
  #31  
Old 08-25-2005, 09:16 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
        $show['reportlink'] = ($this->registry->userinfo['userid'] AND $this->registry->userinfo['userid'] != $this->post['userid']); 
That is the code from 3.5 Beta 1.

So i guess you are talking about implementing 3.0.x code into vB3.5

I think we better stop this discussion because i have the feeling it is turning into a i am right, no i am right one.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:02 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.04479 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete