Jump to content

hefterbrumi

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by hefterbrumi

  1. thx actually i made my question more accurate in this post: http://www.phpfreaks.com/forums/index.php?topic=328278.0
  2. Hi! I need to integrate this code (and put in a div tag like the others (to work with the css)down below), but i have no idea how to do it since "print" command puts it in place but ignores the echo part in the like button code. Please help <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo "http://" . $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>&layout=button_count&show_faces=false&width=450&action=like&font&colorscheme=dark&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> into this: function mutargy_megjelenito($content) { $res=""; //$res.="<pre>".print_r($content,true)."</pre>"; if(isset($content[0]["body"]["ximg"])) { $mass=$content[0]["body"]; $c=0; $title[$c]="\"".$mass["xtitle"]."\""; $c++; if($mass["xtype"]!="") {$title[$c]=$mass["xtype"]; $c++;} $title[$c]=date("Y",$mass["xdate"]); $c++; if($mass["xplace"]!="") {$title[$c]=$mass["xplace"]; $c++;} if($mass["xmat"]!="") {$title[$c]="anyaga: ".$mass["xmat"]; $c++;} if($mass["xsize"]!="") {$title[$c]="mérete: ".$mass["xsize"]; $c++;} $tit=implode(", ",$title); $img=sitegen_processImage($mass["ximg"],array(array("resize_box",500,400))); if(isset($mass["xgal"][0]["body"])) { $mass["xgal"][0]["body"]["xtitle"]=""; $mass["xgal"][0]["body"]["xsubtitle"]=""; $mass["xgal"][0]["body"]["xdesc"]=""; $buf=sitegen_callFunction("galeria_megjelenito",$mass["xgal"]); $gal=$buf[0]["body"]; } else { $gal=""; } if($mass["xdesc"]!="") { $desc="<div class=\"rtf\">".sitegen_callFunction("filterRichText",$mass["xdesc"])."</div>"; } else { $desc=""; } $res.="<div class=\"artwork\"> <div class=\"artworkleft\"> <div class=\"artworkimg\"> <img src=\"<resource>".$img["name"]."</resource>\" width=\"".$img["x"]."\" height=\"".$img["y"]."\" alt=\"".$mass["xtitle"]."\" title=\"".$mass["xtitle"]."\" > </div> <div class=\"artworktxt\">".$tit."</div> </div> <div class=\"artworkright\"> ".$gal." </div> <div class=\"clear\"></div> ".$desc." </div>"; } $result[0]["head"]=""; $result[0]["body"]=$res; return($result); }
  3. Hello! I need a little help here please! This is the end of the code on a page. It shows a pic with a gallery assigned to it. I want to attach a facebook like button to the pic, not the gallery. Since its a dynamic page I modified the like button code. But for some reason I just cant fit it in. Im kind of a novice and i didnt write this code on my own:) Oh and yes I coud stick the code right into the webpage, but its a generic site so i cant do it on every single page. So how do you say in "PHP" to put "this" on the page in "this" div tag, and where do you put it in to work properly? .... $res.="<div class=\"works\"> <div class=\"worksleft\"> <div class=\"worksimg\"> <img src=\"<resource>".$img["name"]."</resource>\" width=\"".$img["x"]."\" height=\"".$img["y"]."\" alt=\"".$mass["xtitle"]."\" title=\"".$mass["xtitle"]."\" > </div> <div class=\"workstxt\">".$tit."</div> </div> <div class=\"worksright\"> ".$gal." </div> <div class=\"clear\"></div> ".$desc." </div>"; } $result[0]["head"]=""; $result[0]["body"]=$res; return($result); } .... and this is the code i have to put in: <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo "http://" . $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>&layout=button_count&show_faces=false&width=450&action=like&font&colorscheme=dark&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> thanks very much in advance!
×
×
  • 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.