vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - Moderation Auto-PM v3.0.1 (https://vborg.vbsupport.ru/showthread.php?t=192344)

fixer 11-19-2008 07:36 PM

i uploaded the files

i am sure about that

the errors does not disappear

Delphiprogrammi 11-19-2008 08:10 PM

hi,

i just checked the code.That errors are coming from hook "inlinemod_start" but the code is absolutely correct i'm afraid you are having some kind of path issue this error message for example

Quote:

Fatal error: Call to undefined function mod_pm() in /home/fixer/public_html/stock/inlinemod.php(382) : eval()'d code on line 25
what is "stock" that is not a standard vBulletin directory you must upload the PHP files to the "includes" directory from your vBulletin installation

fixer 11-19-2008 08:16 PM

stock is the forum folder

like here

https://vborg.vbsupport.ru/showthrea...192344&page=10
http://www.xxxxx.com/stock/index.php

fixer 11-19-2008 08:24 PM

ooooooooops

i am so sorry about my mistake

yes you were correct

i uploaded them to www/includes
insted of www/stock/incudes directory

fixer 11-19-2008 08:31 PM

it works very good

thanks

Delphiprogrammi 11-19-2008 08:37 PM

Quote:

Originally Posted by fixer (Post 1668882)
ooooooooops

i am so sorry about my mistake

yes you were correct

i uploaded them to www/includes
insted of www/stock/incudes directory

no problem it can happen ;)

Keyser S?ze 11-19-2008 08:50 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1668548)
yes but for such a small code change in 1 PHP file i didn't increased the number

u really should, smal update gets a small ver update, like 2.0.2

Sixpackmark 11-21-2008 03:03 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1668618)
i don't get this error and i can only think of one reason it could happen is by any chance the post / thread you are trying to delete made by a guest ?

We have registered members only, so we delete member's post only not guest. :)

Delphiprogrammi 11-21-2008 04:20 PM

Quote:

Originally Posted by Sixpackmark (Post 1670098)
We have registered members only, so we delete member's post only not guest. :)

can't reproduce this what's your vBulletin version , PHP version and MySQL version ? also you could change some code in functions_modpm.php

PHP Code:

$pmdm =& datamanager_init('PM',$vbulletin,ERRTYPE_ARRAY); 

change to

PHP Code:

$pmdm =& datamanager_init('PM',$vbulletin,ERRTYPE_SILENT); 

PHP Code:

die(print_r($pmdm->errors)); 

remove that line and add

PHP Code:

return false


Sixpackmark 11-22-2008 04:10 PM

We are using the ff:
vbulletin 3.7 Gold
PHP: 5.2.6
MySQL: 5.0.51a

it was doing ok, but after the upgrade it is having that error. Will try what you suggested. Thanks

After changing the code you provided, the mod hack was working well as it is. Thanks!


All times are GMT. The time now is 09:42 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.01259 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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