Warning: session_start(): open(file/session//sess_u5dm5ncrbofebge1nuep69r7r2, O_RDWR) failed: Disk quota exceeded (122) - include/library/phpfox/session/handler/default.class.php (28)
include/library/phpfox/session/handler/default.class.php : 28   session_start()
include/init.inc.php : 157   Phpfox_Session_Handler_Default->init()
index.php : 40   require("include/init.inc.php")

Warning: fopen(file/cache/ad_1.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_1.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_1", Array(1))
include/library/phpfox/phpfox/phpfox.class.php : 1337   Ad_Service_Ad->getForBlock(1, FALSE, FALSE)
index.php : 42   Phpfox::run()

Warning: fopen(file/cache/ad_3.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_3.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_3", Array(0))
include/library/phpfox/phpfox/phpfox.class.php : 1338   Ad_Service_Ad->getForBlock(3, FALSE, FALSE)
index.php : 42   Phpfox::run()

Warning: fopen(file/cache/cron.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/cron.php", "w+")
include/library/phpfox/cron/cron.class.php : 62   Phpfox_Cache_Storage_File->save("cron", Array(4))
include/library/phpfox/phpfox/phpfox.class.php : 233   Phpfox_Cron->__construct()
include/library/phpfox/phpfox/phpfox.class.php : 331   Phpfox::getObject("phpfox.cron", Array(0))
include/cron/exec.php : 56   Phpfox::getLib("cron")
include/library/phpfox/phpfox/phpfox.class.php : 1465   require_once("include/cron/exec.php")
index.php : 42   Phpfox::run()
App Developers » PofOnline
Warning: fopen(file/cache/theme/theme_css6d951c72d23007a90986e68b35ae9c5d.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/theme/theme_css6d951c72d23007a90986e68b35ae9c5d.php", "w+")
include/library/phpfox/template/template.class.php : 1220   Phpfox_Cache_Storage_File->save("theme/theme_css6d951c72d23007a90986e68b35ae9c5d", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 20   Phpfox_Template->getHeader()
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile("theme/frontend/default/template/template.html.php")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache("theme/frontend/default/template/template.html.php")
include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout("template")
index.php : 42   Phpfox::run()

Warning: fopen(file/cache/ad_9.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_9.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_9", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(9, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 26   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile(""theme/frontend/default/template/template.html.php"")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache(""theme/frontend/default/template/template.html.php"")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout(""template"")
11 index.php : 42   Phpfox::run()
Sign Up
PofOnline helps you connect and share with the people in your life.

Warning: fopen(file/cache/ad_11.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_11.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_11", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(11, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 96   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile("""""theme/frontend/default/template/template.html.php""""")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache("""""theme/frontend/default/template/template.html.php""""")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout("""""template""""")
11 index.php : 42   Phpfox::run()

Warning: fopen(file/cache/ad_13.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_13.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_13", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(13, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 108   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile(""""""theme/frontend/default/template/template.html.php"""""")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache(""""""theme/frontend/default/template/template.html.php"""""")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout(""""""template"""""")
11 index.php : 42   Phpfox::run()

Warning: fopen(file/cache/ad_7.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_7.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_7", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(7, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 111   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile("""""""theme/frontend/default/template/template.html.php""""""")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache("""""""theme/frontend/default/template/template.html.php""""""")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout("""""""template""""""")
11 index.php : 42   Phpfox::run()

Warning: fopen(file/cache/ad_12.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_12.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_12", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(12, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 116   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile(""""""""theme/frontend/default/template/template.html.php"""""""")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache(""""""""theme/frontend/default/template/template.html.php"""""""")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout(""""""""template"""""""")
11 index.php : 42   Phpfox::run()

Developers


Warning: fopen(file/cache/ad_2.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_2.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_2", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(2, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 158   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile("""""""""theme/frontend/default/template/template.html.php""""""""")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache("""""""""theme/frontend/default/template/template.html.php""""""""")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout("""""""""template""""""""")
11 index.php : 42   Phpfox::run()
As a developer you can create applications and add them to PofOnline, taking advantage of the existing user base. You host the application, which means that you are in full control of your server specifications.

Setting up an APP

To interact with PofOnline your application can issue calls to our API and request or post information.

When you add an application to our site we will give you an APP ID.

Requesting a Token

Whenever you plan on using our API you must first request a token. In order to request a token you need a unique key that we send to you when a user visits your APP from an iframe on our site. We pass this along as $_GET['key'].
This is an example of how you can request a token:
http://www.pofonline.com/token.php?key=$_GET['key']
If successful, you will get a JSON response like:
Object
(
    [token] => LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUc4d0RRWUpLb1pJaHZjTkFRRUJCUUFEWGdBd1d3SlVBdHFZdmVWOXFEdDd6NFhXTXYzS3VZM2JyWXpUKzR0VgpBbERrN1dQWjhqRVpoVzBNWjE1Z3lHdGNlNm5ueFRNenp4SXpHM29BRVIzc0JVRCtYdStHb21JeVV4UE1RN1NtCkVPdFg0ZTNwekp6R081cUxBZ01CQUFFPQotLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0K
)

Sending a Request

Now that you have a valid token you can make requests to our server. With each request you must pass the token we created for you.
An example call to our API server would look like:
http://www.pofonline.com/api.php?token=#{TOKEN}&method=#{METHOD_NAME}

Understanding an API Response

For methods that could return more than one item the response will contain an indicator of the total items available as well as how many pages there are. We return by default 10 items at most and in order to get the next 10 items you would have to pass the param "page=2".

To the left you will find a list of the modules that implement API methods. Click on the module and you will see a list of the methods that your application can use. For shortness and formatting purposes we do not include the full request in there but only the most relevant parts.

friend
getFriends
GET /api.php?method=friend.getFriends&user_id=#{USER_ID}
Gets a full list of friends for a specific user. If you do not pass the #{USER_ID} we will return information about the user that is currently logged in.
Response
Object
(
    [api] => Object
        (
            [total] => 1
            [pages] => 0
            [current_page] => 0
        )

    [output] => Array
        (
            [0] => Object
                (
                    [user_id] => 7
                    [user_name] => jane-doe
                    [full_name] => Jane Doe
                    [joined] => 1314110027
                    [country_iso] => US
                    [gender] => Female
                    [photo_50px] => http://www.pofonline.com/file/pic/user/7_50.jpg
                    [photo_50px_square] => http://www.pofonline.com/file/pic/user/7_50_square.jpg
                    [photo_120px] => http://www.pofonline.com/file/pic/user/7_120.jpg
                    [photo_original] => http://www.pofonline.com/file/pic/user/7.jpg
                    [profile_url] => http://www.pofonline.com/index.php?do=/jane-doe/
                )

        )

)
isFriend
GET /api.php?method=friend.isFriend&user_id=#{USER_ID}&friend_user_id=#{FRIEND_USER_ID}
Checks if 2 users are friends or not. If you do not pass the #{USER_ID} we will return information about the user that is currently logged in.
Response
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Object
        (
            [is_friend] => 1
        )

)
mail
getNewCount
GET /api.php?method=mail.getNewCount&user_id=#{USER_ID}
Get the total number of unseen messages. If you do not pass the #{USER_ID} we will return information about the user that is currently logged in.
Response
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => 1
)
notification
getNewCount
GET /api.php?method=notification.getNewCount&user_id=#{USER_ID}
Get the total number of unseen notifications. If you do not pass the #{USER_ID} we will return information about the user that is currently logged in.
Response
Object
(
    [api] => Object
        (
            [total] => 5
            [pages] => 0
            [current_page] => 0
        )

    [output] => 5
)
get
GET /api.php?method=notification.get&user_id=#{USER_ID}
Get all of the users notifications. If you do not pass the #{USER_ID} we will return information about the user that is currently logged in.
Response
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Array
        (
            [0] => Object
                (
                    [notification_id] => 3
                    [link] => http://www.pofonline.com/john-doe/comment-id_1/
                    [message] => Jane Doe commented on your wall
                    [icon] => http://www.pofonline.com/module/blog/static/image/default/default/activity.png
                )

        )

)
photo
addPhoto
POST /api.php?method=photo.addPhoto&photo=#{@FILE_PATH;TYPE=MIME_TYPE}&photo_name=#{BASE_FILE_NAME}
Uploads a photo on behalf of the user.
Response
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Object
        (
            [original] => http://www.pofonline.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d.jpg
            [75px] => http://www.pofonline.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_75.jpg
            [100px] => http://www.pofonline.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_100.jpg
            [150px] => http://www.pofonline.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_150.jpg
            [240px] => http://www.pofonline.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_240.jpg
            [500px] => http://www.pofonline.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_500.jpg
            [1024px] => http://www.pofonline.com/file/pic/photo/2011/08/39740c5e356fdd6f66cfc973d4aebf6d_1024.jpg
        )

)
getPhotos
GET /api.php?method=photo.getPhotos&user_id=#{USER_ID}
Get all the photos for a user. If you do not pass the #{USER_ID} we will return information about the user that is currently logged in.
Response
Object
(
    [api] => Object
        (
            [total] => 1
            [pages] => 0
            [current_page] => 0
        )

    [output] => Array
        (
            [0] => Object
                (
                    [photo_100px] => http://www.pofonline.com/file/pic/photo/c81e728d9d4c2f636f067f89cc14862c_100.jpg
                    [photo_240px] => http://www.pofonline.com/file/pic/photo/c81e728d9d4c2f636f067f89cc14862c_240.jpg
                    [photo_original] => http://www.pofonline.com/file/pic/photo/c81e728d9d4c2f636f067f89cc14862c.jpg
                )

        )

)
user
getUser
GET /api.php?method=user.getUser&user_id=#{USER_ID}
Get information about a user based on the user ID# you pass. If you do not pass the #{USER_ID} we will return information about the user that is currently logged in.
Response
Object
(
    [api] => Object
        (
            [total] => 0
            [pages] => 0
            [current_page] => 0
        )

    [output] => Object
        (
            [user_id] => 1
            [user_name] => john-doe
            [joined] => 1314109907
            [gender] => Male
            [country_iso] => US
            [full_name] => John Doe
            [email] => john.doe@site.com
            [photo_50px] => http://www.pofonline.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e_50.jpg
            [photo_50px_square] => http://www.pofonline.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e_50_square.jpg
            [photo_120px] => http://www.pofonline.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e_120.jpg
            [photo_original] => http://www.pofonline.com/file/pic/user/2011/08/9d673759d1cf55c9cd0b0805dc32e68e.jpg
            [profile_url] => http://www.pofonline.com/index.php?do=/john-doe/
        )

)

Warning: fopen(file/cache/ad_4.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_4.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_4", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(4, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 165   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile(""""""""""theme/frontend/default/template/template.html.php"""""""""")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache(""""""""""theme/frontend/default/template/template.html.php"""""""""")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout(""""""""""template"""""""""")
11 index.php : 42   Phpfox::run()

Warning: fopen(file/cache/ad_8.php): failed to open stream: Disk quota exceeded - include/library/phpfox/cache/storage/file.class.php (210)
include/library/phpfox/cache/storage/file.class.php : 210   fopen("file/cache/ad_8.php", "w+")
module/ad/include/service/ad.class.php : 350   Phpfox_Cache_Storage_File->save("ad_8", Array(0))
module/ad/include/component/block/display.class.php : 67   Ad_Service_Ad->getForBlock(8, TRUE)
include/library/phpfox/module/module.class.php : 843   Ad_Component_Block_Display->process()
include/library/phpfox/phpfox/phpfox.class.php : 354   Phpfox_Module->getComponent("ad.display", Array(1), "block", FALSE)
file/cache/template/frontend_default_template_template.html.php.php : 184   Phpfox::getBlock("ad.display", Array(1))
include/library/phpfox/template/template.class.php : 3446   require("file/cache/template/frontend_default_template_template.html.php.php")
include/library/phpfox/template/template.class.php : 3432   Phpfox_Template->_requireFile("""""""""""theme/frontend/default/template/template.html.php""""""""""")
include/library/phpfox/template/template.class.php : 2480   Phpfox_Template->_getFromCache("""""""""""theme/frontend/default/template/template.html.php""""""""""")
10 include/library/phpfox/phpfox/phpfox.class.php : 1470   Phpfox_Template->getLayout("""""""""""template""""""""""")
11 index.php : 42   Phpfox::run()
Page generated in 0.1388 seconds with 17 queries and GZIP enabled on 160.153.60.103.