1
Support / problem adding ads on specifical boards / adseller2.php
« on: March 01, 2016, 11:38:06 am »
Hi all!
My site makes use of TinyPortal and PrettyURL. I tried for some days adding some ads to specifical boards, without luck!.
So I decided to test the source code and I've seen some strange behavior on ShowAdLocation() function (at Sources/adseller2.php)
Around line 2480, we can see:
By testing the values of REQUEST['board'] and bID, I've seen the following:
the correct value is on Request_board. I don't understand why bID = 62, because it does not corresponds to the current board.
The solution applied was to substitute this portion of code by:
Depending totally on board parameter from request.
Has anyone experienced a similar situation?
Best Regards,
My site makes use of TinyPortal and PrettyURL. I tried for some days adding some ads to specifical boards, without luck!.
So I decided to test the source code and I've seen some strange behavior on ShowAdLocation() function (at Sources/adseller2.php)
Around line 2480, we can see:
Code: [Select]
if (isset($_REQUEST['board']) || !empty($board))
{
if (!empty($board))
$bID = (int) $board;
else
$bID = (int) $_REQUEST['board'];
$boardCheck = " AND ((l.showinallboards = 1 OR FIND_IN_SET($bID, l.boards)) AND (a.showinallboards = 1 OR FIND_IN_SET($bID, a.boards))) ";
}
By testing the values of REQUEST['board'] and bID, I've seen the following:
Code: [Select]
[REQUEST_board] => 150
[board] => Array
(
[id] => 62
[name] => Cliparts imágenes longitudinales
[child_level] => 2
[selected] =>
)
the correct value is on Request_board. I don't understand why bID = 62, because it does not corresponds to the current board.
The solution applied was to substitute this portion of code by:
Code: [Select]
if (isset($_REQUEST['board']))
{
$bID = (int) $_REQUEST['board'];
$boardCheck = " AND ((l.showinallboards = 1 OR FIND_IN_SET($bID, l.boards)) AND (a.showinallboards = 1 OR FIND_IN_SET($bID, a.boards))) ";
}
Depending totally on board parameter from request.
Has anyone experienced a similar situation?
Best Regards,