Show Posts

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.


Messages - mailoo

Pages: [1]
1
ماحد لك هنا

الله يعينك

2
Mr. budduke
thank u 4 this mod. great work :)

Also you can add this code anywhere in details.html
Code: [Select]
<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.

that code allow users to add comments to images in your gallery by using Facebook account.

3
yaaa wow great work my friend :)

your code is correct but, i make small edit to work 100%

you forget this line:
Code: [Select]
$facebook['title'] = $image_row['image_name'];
should be change to:
Code: [Select]
$facebook['title'] = $image_row['cat_name'];
and a right final code:
Code: [Select]
//[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

4
mr. budduke

thank you very much, for your hard work :)

can you plz see the attachment image. :)


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

plz check an attachment files,
tanx

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

7
but the like button on this page for example:
still not work:
http://daralaujam.com/gallery/cat214.htm


sorry..
this is an attachmen file:

update:
now work fine :)
this is last edit of header file:

Code: [Select]
<!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>

8
@ Mailoo,

Delete this code from your header file
Code: [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 to
Code: [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.



this is header file on my site: attachment.
can you help me plz.
there is no change after edit

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

i added step 2.b but:
1- the like button in old images not work fine.
2- like button in new images still give download icon on facebook thumb.

10
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/

11
Great Work..
But How Can I Enable For Guest ?

tanx

12
hello
i have 4 templates, i want to let the visitors to change style between theme

how?

13
السلام عليكم
عندي مجموعة من الاستايلات
مااريده هو
ان يقوم الزائر باختيار الاستايل اللي يعجبه
وشكرا مقدما

Pages: [1]