Fork me on GitHub

PNphpbb2 doesn't work with Xanthia skin. pls help!  Bottom

  • Hello there,
    I have just installed a new skin for postnuke. It works fine with postnuke but when i enter the forums an error appears

    Code

    Warning: preg_match(): Unknown modifier 'O' in /home/mgzone/public_html/postnuke/html/modules/Xanthia/pnuserapi.php on line 600


    well.. the following code is from line 599 to 601

    Code

    $pippo = strip_tags($pippo);
                        if (!preg_match("/:$pippo:/i", $nonmostra) && $row['position'] == $side[0])  {
                            echo pnBlockShow($modinfo['name'], $row['bkey'], $row);

    could any1 help me pls? :(
    thx in advance
  • if u need the whole file find me in msn megzyx@gmail.com
    pls.. i beg you. if any1 knows how to fix this msg me :(
    thx again
  • any1??
  • try commenting the code out:

    Code

    /*
    $pippo = strip_tags($pippo);
                   if (!preg_match("/:$pippo:/i", $nonmostra) && $row['position'] == $side[0])  {
                      echo pnBlockShow($modinfo['name'], $row['bkey'], $row);
    */


    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • i get another error
    Parse error: parse error, unexpected T_ELSE in /home/mgzone/public_html/postnuke/html/modules/Xanthia/pnuserapi.php on line 608

    line 608-610:

    } else {
    //---Block Control ------------------------------------------------------------------------------------------------------------
    $column = &$pntable['theme_blcontrol_column'];

    man megzyx@gmail.com find me in msn or something.. iwill send you the file
  • you need to take out the whole if else statement ie the whole lot:

    /*
    $pippo = strip_tags($pippo);
    if (){
    }
    else {
    }
    */

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • im a total noob in PHP.. a single character could fuck up the whole file. could u tell me more details about what i have to do?
  • Did you insert the proper PNphpBB2 tag into your Xanthia template(s) per the PNphpBB2 instructions?
  • i did not insert any PNphpBB2 tag
    listen.. i was using a Xanthia skin before. Everything worked (pnphpbb2, other modules, etc). From the day i switched to the new Xanthia skin i get the friggin error. I tried to select another theme for PNphpbb2 (not for postnule!) and i still get the same error. is there any way that -at least- hide the error? The forums work fine with the new skin but the error that appears fucks up the skin.
  • so..? is there any dude that can help me out there?

This list is based on users active over the last 60 minutes.