vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Help to implement mod (https://vborg.vbsupport.ru/showthread.php?t=262810)

BoRoU 04-28-2011 02:14 PM

Help to implement mod
 
Hello, nice to everyone.

I'm trying to adapt this mod to my forum vb4.1.3.
I've managed to make everything more or less the same. The explanation is said to bear all the tables in the same BD, and I rather put it all on the same BD I have given on behalf of the BD "mother" in the amendments to be done.
Apparently everything works fine, except sending PM. Every time I try to send a PM I say this ...

Quote:

Parse error: syntax error, unexpected '[' in / home / borou / Desktop / www / webs / ERDM / forum / includes / class_dm_pm.php on line 539

The problem is exactly in this line ...
Quote:

$pmtextid = ($this->existing['pmtextid'] ? $this->existing['pmtextid'] : $this->pmtext['pmtextid']);
Quote:

$pmtextid = ($this->existing['pmtextid'] ? $this->existing['pmtextid'] : $this->erds.vb2_pmtext['pmtextid']);
Then I skip the error at the point that I have to say that BD is. Above is the code file origial and under the amended.
That could change that code to not give me the error?

THANKS.

kh99 04-28-2011 02:35 PM

I'd say maybe the problem is this:

Code:

$this->erds.vb2_pmtext['pmtextid']
You cannot have a '.' in a variable name.

BoRoU 04-28-2011 09:11 PM

Yes, that is precisely the problem. What I would like to know is how being able to put that error and malfunction.

THANKS.

kh99 04-28-2011 09:43 PM

I don't understand the mod completely, and you really should be asking this in the mod thread. However, my guess is that you should *not* make these changes:

Quote:

Go to /include/class_dm_pm.php

...

Search for:

PHP Code:

$pmtextid = ($this->existing['pmtextid'] ? $this->existing['pmtextid'] : $this->pmtext['pmtextid']); 

Replace with where vb3_ is the prefix to your master site:

PHP Code:

$pmtextid = ($this->existing['pmtextid'] ? $this->existing['pmtextid'] : $this->vb3_pmtext['pmtextid']); 

...

Search for:

PHP Code:

" . $this->dbobject->escape_string($user['username']) . "', '" . $this->dbobject->escape_string($this->pmtext['title']) . 

Replace with where vb3_ is the prefix to your master site:

PHP Code:

" . $this->dbobject->escape_string($user['username']) . "', '" . $this->dbobject->escape_string($this->vb3_pmtext['title']) . 



What I mean of course is that you should undo those changes. I think the person who came up with this mod tried to change the table name everywhere it appears, but $this->pmtext is a variable name that should not have been changed.

BoRoU 04-29-2011 05:33 AM

Ok, so I'll try to make moving it all to the same database to avoid placing "."

Thanks for everything.


All times are GMT. The time now is 07:17 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.01529 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete