1
Arabic / قسم الدعم الفني / Re: ممكن ترشحون لي ثيمات تتوافق مع آخر إصدار !
« on: August 28, 2011, 01:21:16 PM »
ماحد لك هنا
الله يعينك
الله يعينك
4images code on GitHub Click here to visit GitHub.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="http://domain.com/gallery/img{image_id}.htm" num_posts="2" width="500"></fb:comments>
replace domain.com with your domain link.$facebook['title'] = $image_row['image_name'];
$facebook['title'] = $image_row['cat_name'];
//[MOD] Facebook Like Button
if ($array["details"]){
$sql = "SELECT i.image_name, i.cat_id, i.image_media_file, i.image_description, c.cat_name
FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
WHERE i.image_id = $image_id AND i.cat_id = c.cat_id AND image_active = 1";
$image_row = $site_db->query_firstrow($sql);
$facebook['image'] = get_file_path($image_row['image_media_file'], "thumb", $image_row['cat_id'], 0, 1);
$facebook['image'] = $script_url.substr($facebook['image'],1);
$facebook['title'] = $image_row['cat_name'];
$facebook['type'] = "article";//this is what facebook says images should be filed under
$facebook['description'] = !empty($image_row['cat_name']) ? strip_tags($image_row['cat_name']) : "";
$facebook['url1'] = $site_sess->url($script_url."/".$self_url);
if (strpos($facebook['url1'],"&")){
$facebook['url1']=substr($facebook['url1'],0,strpos($facebook['url1'],"&"));
}
}
else{
$facebook['image'] = $config['fb_image'];
$facebook['title'] = $config['fb_title'];
$facebook['type'] = "website";// types setting for your default website
$facebook['description'] = strip_tags($config['fb_description']);
$facebook['url1'] = $config['fb_main_url'];
}
$facebook['main_url']= $config['fb_main_url'];
$site_template->register_vars(array(
"fb_title" => $facebook['title'],
"fb_image" => $facebook['image'],
"fb_type" => $facebook['type'],
"fb_desc" => $facebook['description'],
"fb_url1" => $facebook['url1'],
"fb_main_url" => $facebook['main_url'],
"fb_appid" => $config['fb_appid'],
"fb_admins" => $config['fb_admins'],
"fb_language" => ($lang['fb_language']) ? $lang['fb_language'] : $config['fb_language']
)
);
unset($facebook, $image_row);
//END [MOD] Facebook Like Button
Nice, But
if i like the main site it show the url of site?
i want show the title name of site.
http://daralaujam.com/gallery/
you can see like link above on right.
Recheck step #1 and 2b, the code has changed for version 3 that should have taken care of that. Or you can zip your changed files and I can take a look at them for you...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>{site_name}</title>
{if page_details}
<meta property="og:url" content="{fb_url}"/>
<meta property="og:title" content="{facebook_title}"/>
<meta property="og:image" content="{facebook_image}"/>
{endif page_details}
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<link rel="stylesheet" href="{template_url}/style.css" />
{if has_rss}
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}" />
{endif has_rss}
</head>
<body bgcolor="#E9E9E9" text="#050505" link="#E54F00" vlink="#E54F00" alink="#E54F00">
<style>
<!--
A:link {text-decoration: none; color: }
A:visited {text-decoration: none; color: }
A:active {text-decoration: none; color: }
A:hover {text-decoration: none; color: }
-->
</style>
@ Mailoo,
Delete this code from your header fileCode: [Select]<meta property="fb:admins" content="YOUR FACEBOOK ADMIN IDS"/> <!-- delete if not used-->
<meta property="fb:app_id" content="YOUR FACEBOOK APPLICATION ID"/> <!-- delete if not used-->
also in your header file you have 2 <html> tags, not sure if causing problems,Code: [Select]<html dir="rtl">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="rtl" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
Change toCode: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="rtl" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
see what that does, I do know facebook is picky about the dimensions of the thumbnails, not sure if that is your problem.
go to http://developers.facebook.com/tools/lint/ and type in the path to one of your detail pages. That will tell you what facebook sees on their end.
i have one problem of this mod
i complete the steps right.
but the thumbnails image not appear on facebook?
only appear the icon of download.
this my site:
http://www.daralaujam.com/gallery/
I do not see step 2.b anywhere in your header of your pages...