Facebook Share

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
thumb-0e9e8abd23f8ea0808dc5fd7f31ac206-fbshare.png


File Name: Facebook Share

File Submitter: Dastgir

File Submitted: 12 Mar 2014

File Category: Utility

Facebook Share System(Works Only with New Clients)

Configuration:

Edit NPC FacebookShare.txt

Code:
.link$ = "http://www.yourdomain.com/fbshare/";	//Trailing with "/"
Edit the link with the link where you have PHP Scripts(Trailing with "/" or "/index.php")

WebSite:

Edit config.php

Code:
$host = "127.0.0.1";		//MySQL Host$user = "root";				//MySQL Username$pass = "";				//MySQL Password$database = "fb_share";		//Ragnarok Database$site = "http://yourdomain.com/fbshare/";	//Link to FBShare Page(Directory where these scripts are installed)
$site should match with .link$(in the npc), Other Info are self explanatory.

It is a Simple Script Illustrating the usage of linking to website.

Click here to download this file

 
Last edited by a moderator:
http://herc.ws/board/index.php?app=downloads&module=display&section=screenshot&id=111

File Name: Facebook ShareFile Submitter: Dastgir Pojee

File Submitted: 12 Mar 2014

File Category: Utility

Facebook Share System(Works Only with New Clients)

Configuration:

Edit NPC FacebookShare.txt

.link$ = "http://www.yourdomain.com/fbshare/"; //Trailing with "/"Edit the link with the link where you have PHP Scripts(Trailing with "/" or "/index.php")
WebSite:

Edit config.php

$host = "127.0.0.1"; //MySQL Host$user = "root"; //MySQL Username$pass = ""; //MySQL Password$database = "fb_share"; //Ragnarok Database$site = "http://yourdomain.com/fbshare/"; //Link to FBShare Page(Directory where these scripts are installed)$site should match with .link$(in the npc), Other Info are self explanatory.
It is a Simple Script Illustrating the usage of linking to website.

Click here to download this file
Thank you for this one.

btw is it possible to add more feature like what equips is the player currently using? refines cards zeny etc?

 
@karazu

Its possible, but maybe I have to add a privacy option if I add the option for showing equips, since some player may not be comfortable for sharing their equips(especially, the refine,cards and zeny)

 
Also add a option for custom tables, for displays like pvp ladder position, kills, deaths, cashpoint amount, etc
default_smile.png


 
hey there... can u tell me what exactly happens here?? i am sorry for asking this but no description is given there.

 
hey there... can u tell me what exactly happens here?? i am sorry for asking this but no description is given there.
*bump*
Its a NPC, you install npc to vps and webscript to webserver

When someone click npc, it will show a link in npc, clicking that link will share a url to FB.(That url will contain the character Info)

 
Hello Dastgir

You have a point there but how about just enable it and we will just uncomment if I dont want to enable it in our servers?

I mean just put all the possibilities but we can just comment and uncomment it if we dont want to include it in the share.



 

 
Last edited by a moderator:
@karazu

Its possible, but maybe I have to add a privacy option if I add the option for showing equips, since some player may not be comfortable for sharing their equips(especially, the refine,cards and zeny)
I tried to install it, but when i share my stats, the link on facebook contains nothing but the image (logo.png)
default_sad.png


XU7jyAF.jpg


npc:

MxEU1QR.jpg


config.php

NgrcVfq.jpg


the $port was // disabeld, i tried it with and without port, with " and without. I can't figure whats wrong q.q

(root is generic username,)

(ip of the server, password and database are correct and tripple checked)

the website can access the db for the server online/offline check, so this should work as well?

 
Last edited by a moderator:
@karazu

Its

possible, but maybe I have to add a privacy option if I add the option

for showing equips, since some player may not be comfortable for sharing

their equips(especially, the refine,cards and zeny)
I tried to install it, but when i share my stats, the link on facebook contains nothing but the image (logo.png)
default_sad.png


XU7jyAF.jpg


npc:

MxEU1QR.jpg


config.php

NgrcVfq.jpg


the $port was // disabeld, i tried it with and without port, with " and without. I can't figure whats wrong q.q

(root is generic username,)

(ip of the server, password and database are correct and tripple checked)

the website can access the db for the server online/offline check, so this should work as well?
@karazu

Its

possible, but maybe I have to add a privacy option if I add the option

for showing equips, since some player may not be comfortable for sharing

their equips(especially, the refine,cards and zeny)
I tried to install it, but when i share my stats, the link on facebook contains nothing but the image (logo.png)
default_sad.png


XU7jyAF.jpg


npc:

MxEU1QR.jpg


config.php

NgrcVfq.jpg


the $port was // disabeld, i tried it with and without port, with " and without. I can't figure whats wrong q.q

(root is generic username,)

(ip of the server, password and database are correct and tripple checked)

the website can access the db for the server online/offline check, so this should work as well?
I think you are Using A wrong Database

Did you create Fb_share table

 
Last edited by a moderator:
Code:
if (($table = mysqli_query($sql,"SELECT * FROM `char` WHERE `char_id`='".$_GET['char']."'")) )
 How do I add a table? I'm trying to have my "pvp_rank" table included so i can add how many kills, deaths, etc. my player has
 
Where is the Table Script for this? anyone ^^ thanks

anyone update this script ^^ with points like on rathena, and exhange for items, more info with pics, ^^ ty

 
Did I posted this entirely as mine? Or did I just copy pasted? Obviously it was modified before sharing it here.

 
Back
Top