1
Hey all,
I am trying to write a custom block for the myReviews module.
This is what I want to do:
My query string is:
http://www.dogmatrix.com/modules/myReviews/detailfile.php?lid=102I want to get the "lid" value (Which is 102 here) in a custom block.
For the custom block I did this:
function b_myReviews_author_show() {
global $xoopsDB, $xoopsUser, $xoopsModuleConfig;
$myts = &MyTextSanitizer::getInstance();
// $lids = intval($HTTP_GET_VARS['lid']);
$lids=( $HTTP_GET_VARS['lid'] && $HTTP_GET_VARS['lid'] > 0 ) ? $HTTP_GET_VARS['lid'] : 0;
$block = array();
if ($lids > 0)
{
do something
}
else ( $lids == 0)
{
do something
}
However my $lids value always comes up as Zero no matter which page I am looking at, even with the above query string. Is there something wrong i am doing here? do I get the value of "lid" in the block.
Please help! thanks a million!
Suyog