WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] Great Plug In But One Problem (2 posts)

  1. chengrob
    Member
    Posted 3 years ago #

    Hi,

    Thank you for a great in. I am now using it on my site and you can see it here at my web site. The problem is that there appears to be an incompatibility with LightBox or PHP-Exec. For example, this page. It is unable to render for some reason. If I disable the plug in the page displays fine. Also, if I remove this code from the page, then it also displays fine when the plug in is enabled.

    <?php
    function dbslide(){
    $slideshowname="Fluminese Champions";
    $user="cheng_rob";
    $host="localhost";
    $user="chengrob_rob";
    $password="";
    $database = "chengrob_photo";
    $connection = mysql_connect($host,$user,$password)
    or die ("couldn't connect to server");
    $db = mysql_select_db($database)
    or die ("Couldn't select database");
    $query = "SELECT * FROM Pic WHERE Description='$slideshowname'";
    $result = mysql_query($query)
    or die ("Couldn't execute query.");
    $rownum=1;

    while ($row = mysql_fetch_array($result))
    {
    extract($row);
    $query1="SELECT People.Name,People.Numero FROM Linker,People WHERE Linker.PeopleNum = People.Numero AND Linker.PhotoNum = $Numero order by concat(substring_index(Name,' ',-1),' ',substring_index(Name,' ',1))";
    $result1 = mysql_query($query1);
    while ($row1 = mysql_fetch_array($result1))
    {extract($row1);
    $arr[]= "$Name";}
    if (is_array($arr))
    {$str=implode(", ",$arr);}
    if ($rownum == 1) echo "<center><h3>Click below to begin the slideshow</h3><table border=1><tr><td><img src=\"/flum/couple.jpg\"></td></tr></table></center>";
    else echo "Test Me";
    $rownum=$rownum+1;
    $arr=array();

    }}

    dbslide();
    ?>

    Do you have any advise for me? I would much appreciate it.

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry, I'm not sure what exactly would be going wrong. Do you get a PHP error? Maybe you can turn on WP_DEBUG and you'll get a useful error.

    You may want to try disabling the automatic display option in YARPP options and instead adding the related_posts() template tag to your theme file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic