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

Pages: 1 2 [3] 4 5 6 7 ... 29
31
I've been looking in this mod and don't think its possible, but I'll ask:

is it possible to show images with most hits from last month (ORDER BY images_hits DESC && WHERE image_date > ".$last month.")

I know that i can get last month date by:
Code: [Select]
$last_month = time() - 60 * 60 * 24 * 7 * 30;

32
Mods & Plugins (Releases & Support) / Re: [MOD] Facebook Connector V1.0
« on: August 18, 2010, 11:46:15 AM »
Am I the only one who is having problems with login through Facebook account? When I click on Facebook login button nothing happens. So I need to refresh site to see that I'm logged in. I tried this in IE, FF and Chrome.

33
Oh I missed that :? No problem at all, it took me only few minutes to make this one :) 

PS: I think mine is little different and simpler  :roll:

34
Mods & Plugins (Requests & Discussions) / [MOD] Firefox Search Engine
« on: August 13, 2010, 09:35:36 AM »
I've made little mod that allow you to add your 4images gallery to your Firefox search engine.

1st open Notepad and past this in it:
Code: [Select]
<search
version="7.1"
name=""
description=""
action=""
searchForm=""
method="GET"
>

<input name="sourceid" value="Mozilla-search">
<input name="search_keywords" user >
  
</search>

Then change (only red text)
name="Name of your website"
description="description of your website"
action="path-to-your-website/search.php"
searchForm="path-to-your-website"

Then: File > Save as > (go to directory: C:\Program Files\Mozilla Firefox\searchplugins)
File name: yourwebsitename.src
Save as type: All type
Encoding: ANSI

After restarting Firefox select on the top your new search engine, enter keywords and let me know if its working ;)


EDIT:

I've also found way to submit your gallery to Firefox search engine list.

You can read this tutorial:
http://www.hacktheday.com/step-by-step-create-your-own-search-engine-for-firefox-twitter-contacts/


And submit your search engine here:
http://mycroft.mozdev.org/submitos.html

Here is some info about inputs:
Search URL: http://www.yourdomain.com/search.php?search_keywords={searchTerms}
Search Form URL: http://www.yourdomain.com/search.php
Reference: (whatever you want)



35
You're welcome.

Yes I have successfully installed this mod and it's working now. I can't recall if there were any errors during installation, because I did that few years ago.

36
Okey zakaria666 you may now that these guys here aren't paid to help you or me. They are doing that for free and that's why you should show more respect for them.

Your error that you're showing doesn't tell absolutely nothing, just an error. It's like going to the doctor and tell him: doc i'm feeling something wrong, could you write me some kind of prescription?

Do you have access to phpmyadmin? If you do, copy that sql sentence (create table 'images_users_friendship' etc) to phpmyadmin / sql tab on the top and see what kind of error you will get. Copy that error to board here and maybe we'll get some new tip whats wrong.

If you don't have access to phpmyadmin maybe you should give us access to your website and someone might check. Otherwise you are just giving us some VERY unuseful tips.


But to make your life easier I've found error in that sql. At the end it shows user_friendship_id as primary key - that row doesn't exist in SQL. The right SQL sentence should be:
Code: [Select]
CREATE TABLE `4images_users_friendship` ( `friendship_id` int(11) NOT NULL auto_increment, `user_id_primary` int(11) NOT NULL default '0', `user_id_secondary` int(11) NOT NULL default '0', `friendship_status` int(1) NOT NULL default '0', `friendship_request_date` timestamp NOT NULL default CURRENT_TIMESTAMP, `friendship_accept_date` timestamp NOT NULL default '0000-00-00 00:00:00', `friendship_request_message` text NOT NULL, `friendship_response_message` text NULL, PRIMARY KEY (`friendship_id`) ) TYPE=MyISAM

37
Mods & Plugins (Releases & Support) / Re: [MOD] Facebook Connector V1.0
« on: August 05, 2010, 02:02:04 PM »
Yes I agree with you that you should give users to many options when they register. And that is all about Facebook connection! Right now I'm without idea how/where to insert option that new user must agree with TOS on site. Maybe little popup window on first connect that would warn user about TOS?

38
Mods & Plugins (Releases & Support) / Re: [MOD] Facebook Connector V1.0
« on: August 04, 2010, 02:58:22 PM »
I'm testing MOD and till now everything is working just fine. But my concerns are that when user register with FB account he doesn't agree with Term of Services of my website. I mean OK, who does read that? But what would happened if anything goes wrong and user said that he didn't have change to read them and so he can't agree with them.

I saw great integration with FB connection on this side:
http://www.workstir.com

When you sign in with FB account you must still fill some of the information: like password, username, ..., and agree with TOS.

Check it out, maybe someone will have idea how to integrate this in 4images gallery.

39
This looks very promising... but I have a question:

What would happened when you signup with facebook account and your username is already taken?

I have also noticed that there is error with logout link. When you want to logout from gallery some FB code show up.
first question: It will add numbers to the end of the name until it gets a username that does not already exist.

second one: do you have php warnings being suppressed? I do know it makes a call to facebook to see if you are attached or not but I rechecked the code to make sure I removed that array that you say is showing up. Can you provide me with a link to see if it is the same thing?

Thx for you answers, here is attached screenshot of that error that i was talking about...

40
This looks very promising... but I have a question:

What would happened when you signup with facebook account and your username is already taken?

I have also noticed that there is error with logout link. When you want to logout from gallery some FB code show up.

41
Requests for paid modifications / Jobbörse / Re: Facebook Connect
« on: May 04, 2010, 02:15:12 PM »
@budduke: maybe this file attached to this message will help you

I downloaded those files from these threat (PhpBB Facebook connect MOD):
http://www.phpbb.com/community/viewtopic.php?f=70&t=1692295

http://labs.c-dev.be/phpbb/facebook-connect/download/fbconnect034.zip

Also older files for Facebook Connect (via: http://wiki.developers.facebook.com/index.php/PHP)
Note: The older PHP client is available at http://pearhub.org/get/facebook-0.1.0.tgz

42
Requests for paid modifications / Jobbörse / Re: Facebook Connect
« on: May 03, 2010, 10:11:12 AM »
@budduke: looks like link to download has been moved to domain: http://github.com/facebook/

v@no wrote:
Quote
My guess would be so they don't have to register on 4images site, use same login from FB, it would be convenient.

Yes indeed, but you could also automatically publish news on users wall on facebook site.


43
Requests for paid modifications / Jobbörse / Re: Facebook Connect
« on: April 29, 2010, 12:10:56 PM »
Has anyone succeed implementing Facebook connect to 4images gallery?


EDIT!

I've found pretty good tutorial how to integrate FC to any php script:
http://www.barattalo.it/facebook-connect-tutorial/comment-page-1/#comment-1499

So what does it do:
- add 2 new rows in user table
- check if user is already sign in with user id (facebook)
- if now, register new user based on facebook information (problem with getting their emails)
- if user is already sign in with unique id, just log him to 4images

Right now I'm facing problem with getting user email, because I won't allow that users can register through Facebook Connect without email.

EDIT 2:
I somehow manage to get user access with requesting user for extended permissions:
http://wiki.developers.facebook.com/index.php/Extended_permissions
But I think this mod will be too much. Let me know if anyone else is willing to try this. Maybe I could give you some hand.

44
Thank you its working ;)

45
@v@no: on my site for adding image to lightbox I'm not using images but text. And because your javascript check first src sure it's not working. Do you have any idea how to modify this?

Example:
Code: [Select]
      $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; return false;\">Add to lightbox</a>";
      $lightbox_button = "<a href=\"".$site_sess->url($lightbox_url)."\" onclick=\"this.firstChild.src='".$site_sess->url(ROOT_PATH."lightboxaction.php?id=".$image_row['image_id'])."&ilu='+this.firstChild.src; return false;\">Remove from lightbox</a>";

Pages: 1 2 [3] 4 5 6 7 ... 29