|
|
| Author |
Message |
Seth Sandrino
New User
Joined: 12 Jan 2010
Posts: 22
|
Posted: February 14th 2010, 6:46 pm Post subject: Ignore User Mod and Welcome PM Mod |
|
|
I'm sure you all have just about had enough with helping me but I am happy to report I almost have all the phpbb2 mods install that I plan to install. With that said I am having some problems again.
The ignore user mod is working wonderfully expect for one thing. The bypass is not working when a user clicks the "Click HERE to view this post" link. The URL changes as if it is trying to but the post does not show up.
view topic .php :
http://crimsonhunters.x10hosting.com/viewtopic.txt
As for the Welcome PM error I am receiving:
I installed the mod and the mod that has the PM sent on first long in. Orginally I realized that the code called on the wrong table (the provided sql created phpbb_wpm when it was simply calling on WPM) so I made those edits, made a new account and logged in, in hopes that it would work but that wasn't the case. So I manually typed in the url of the php file it has you include on the log in page and I get this error:
Fatal error: Call to a member function sql_query() on a non-object in /home/crimhunt/public_html/phpBB2/login_wpm.php on line 31
login_wpm.php:
http://crimsonhunters.x10hosting.com/login_wpm.txt |
|
| Back to top |
|
 |
Wicher
Experienced User

Joined: 23 Apr 2003
Posts: 443
Location: Netherlands or Holland, your choice..
|
Posted: February 15th 2010, 12:56 pm Post subject: |
|
|
try this with viewtopic.php
| Code:
|
#FIND:
if ( !isset($bypass) )
#BEFORE, ADD:
if ( isset($HTTP_GET_VARS['bypass']))
{
$bypass = htmlspecialchars($HTTP_GET_VARS['bypass']);
}
|
I suspect some code like that should have been added by the mod.
login_wpm.php needs following:
| Code:
|
#FIND:
$sql = 'SELECT * FROM ' . phpbb_wpm;
#REPLACE WITH:
$sql = 'SELECT * FROM phpbb_wpm';
|
I suspect it will work with that change. _________________ My little mods | Statistics Mod 4.x.x (revision of 2.1.5) | My hacks at phpbbhacks |
|
| Back to top |
|
 |
Seth Sandrino
New User
Joined: 12 Jan 2010
Posts: 22
|
Posted: February 15th 2010, 7:31 pm Post subject: |
|
|
Once again, thank you Wicher.  |
|
| Back to top |
|
 |
Wicher
Experienced User

Joined: 23 Apr 2003
Posts: 443
Location: Netherlands or Holland, your choice..
|
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
joetraff
New User
Joined: 20 May 2010
Posts: 2
|
Posted: May 21st 2010, 7:52 am Post subject: |
|
|
| Wicher wrote:
|
try this with viewtopic.php
| Code:
|
#FIND:
if ( !isset($bypass) )
#BEFORE, ADD:
if ( isset($HTTP_GET_VARS['bypass']))
{
$bypass = htmlspecialchars($HTTP_GET_VARS['bypass']);
}
|
I suspect some code like that should have been added by the mod.
login_wpm.php needs following:
| Code:
|
#FIND:
$sql = 'SELECT * FROM ' . phpbb_wpm;
#REPLACE WITH:
$sql = 'SELECT * FROM phpbb_wpm';
|
I suspect it will work with that change.
|
Thanks a lot for the solution man !!!
It worked for me too.  _________________ how to make money online |
|
| Back to top |
|
 |
|