PDA

View Full Version : Help to implement mod


BoRoU
04-28-2011, 02:14 PM
Hello, nice to everyone.

I'm trying to adapt this mod to my forum vb4.1.3.
https://vborg.vbsupport.ru/showthread.php?t=118473&page=10

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 ...

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 ...
$pmtextid = ($this->existing['pmtextid'] ? $this->existing['pmtextid'] : $this->pmtext['pmtextid']);
$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:

$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:


Go to /include/class_dm_pm.php

...

Search for:

$pmtextid = ($this->existing['pmtextid'] ? $this->existing['pmtextid'] : $this->pmtext['pmtextid']); Replace with where vb3_ is the prefix to your master site:

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

...

Search for:

" . $this->dbobject->escape_string($user['username']) . "', '" . $this->dbobject->escape_string($this->pmtext['title']) . Replace with where vb3_ is the prefix to your master site:

" . $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.