Hi,

I have a list of news that i'm getting from the DataBase:

do{
    $content.='<div id="square_news">';
        $content.='<div id="news_banner">';
            $content.='<img src="'.$SelectAllNews['ImagemNoticia'].'" />';
        $content.='</div>';

        $content.='<div id="square_news_title">';
            $content.='<div class="news_title_h2">   ';
                $content.='<h2>';
                    $content.='<a href="news.php?news='.$SelectAllNews['IdNoticia'].'">'.$SelectAllNews['TituloNoticia'].'</a>';
                $content.='</h2>';
            $content.='</div>';


        /************SHARE FACEBOOK************/

        $title=urlencode($news['TituloNoticia']);
        $url=urlencode('http://mywebsite.com/news.php?news='.$news['IdNoticia']);
        $summary=urlencode(strip_tags($news['TextoNoticia']));
        $image=urlencode('http://mywebsite.com/'.$news['ImagemSmallNoticia']);
?>
            <a href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=<?php echo $title ?>&p%5Bsummary%5D=<?php echo $summary ?>.&p%5Burl%5D=<?php echo $url ?>&p%5Bimages%5D%5B0%5D=<?php echo $image ?>" target="_blank" title="share this on facebook">SHARE</a>                                                                                       /************SHARE FACEBOOK************/

    $content.='</div>';

    $content.='<div id="news_content">';
            $content.='<p>'.$SelectAllNews['TextoNoticia'].'</p>';
    $content.='</div>';

    $content.='<div class="news_info">';
        $content.='<div class="meta"><img src="" /> Date: '.$SelectAllNews['DataNoticia'].' </div>';
        $content.='<!-- <div class="meta"><img src="" /> By : '.$SelectAllNews['SourceNoticia'].' </div> -->';
        $content.='<div class="meta"><img src="" /> Source : <a href="#">'.$SelectAllNews['SourceNoticia'].'</a> </div>';
        $content.='<div class="meta"><img src="" /> 12 Comments </div>';
    $content.='</div>';
$content.='</div>';
}while($SelectAllNews = mysql_fetch_assoc($QuerySelectAllNews));

And i want to instead of opening a new tab, i would like to make a "Feed and Share Dialogs".

Can someone help me, please?

Thank you,
PF2G

Member Avatar for diafol

When you say opening a new tab, are you referring to this link..

<a href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=<?php echo $title ?>&p%5Bsummary%5D=<?php echo $summary ?>.&p%5Burl%5D=<?php echo $url ?>&p%5Bimages%5D%5B0%5D=<?php echo $image ?>" target="_blank" title="share this on facebook">SHARE</a>

If so, take out the target="_blank"

Is it something like this?

<a href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=<?php echo $title ?>&p%5Bsummary%5D=<?php echo $summary ?>.&p%5Burl%5D=<?php echo $url ?>&p%5Bimages%5D%5B0%5D=<?php echo $image ?>" title="share this on facebook"Feed and Share Dialogs</a>

Or am I missing something?

yeah i know that. i'm sorry i wasn't clear:
i want it to open in a pop-up window instead of a full page...

Member Avatar for diafol

Do you mean in a real browser window or a 'lightbox' type dialog?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.