Jump to content

social network add.


grlayouts

Recommended Posts

I am looking at doing 2 things with my site:

 

I am trying to add social bookmarking to my users blog section. Digg, Del.ic.ious, Technorati, ect. with their logo. Where users can click the icon and sumbit the blog to these

 

I know how to do this with html, but my blogs page is done in php

 

Any tips, where to start, what do you need from me

 

I am pretty sure I am editing the correct bit of code to add the social bookmarking features, but everytime I get an error saying the header information has already been sent. And the social bookmarks end up in the header

 

existing code

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompBlogs();
$_page['extra_js'] = $oTemplConfig -> sTinyMceEditorJS;
$_page['header'] = $oBlogs->GetHeaderString();
$_page['header_text'] = $oBlogs->GetHeaderString();

function PageCompBlogs() {
    global $site;
global $date_format;
global $oBlogs;

$sRetHtml = '';
$sRetHtml .= $oBlogs->GenCommandForms();

 

 

 

This is what I am adding to the code

 

$tag = "Connection Square User Blog";
$tag = urlencode($tag);
$url = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; 
$url = urlencode($url);
echo <<<EOD
<a href="http://www.socialize-it.com/index.php?url=$url&tag=$tag">Automatic Social Bookmarking<br> <img src="http://www.socialize-it.com/socializeit.png" alt="socialize it"></a>
EOD;

Link to comment
https://forums.phpfreaks.com/topic/127202-social-network-add/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.