0

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

Edited by PF2G

2
Contributors
3
Replies
8
Views
3 Years
Discussion Span
Last Post by diafol
0

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?

0

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...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.