edzain9 / drydock

Automatically exported from code.google.com/p/drydock
0 stars 0 forks source link

pingbacks #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Example at

ttp://www.quietearth.us/articles/2006/10/30/Coding-your-own-blog-Pingback-in-php

change this to match our needs but it's helpful for me

Essentially, if the user wants, they can pingback their dd url to us to
include in a "sites that use dd" list - optional [x] in setup/admin page

Original issue reported on code.google.com by TaQS...@gmail.com on 22 Sep 2008 at 5:31

GoogleCodeExporter commented 8 years ago
blah

Original comment by all.sta...@gmail.com on 23 Sep 2008 at 4:15

GoogleCodeExporter commented 8 years ago

Original comment by TaQS...@gmail.com on 7 Nov 2008 at 6:56

GoogleCodeExporter commented 8 years ago
On install, [x] box for pingback, sends a string to pingback.php on our server 
that
includes a url for an xml entry for board list and other installation 
information. 
This URL must be then manually approved on our end to prevent any kind of
exploitation.   Will work on XML board information later.

Original comment by TaQS...@gmail.com on 7 Nov 2008 at 8:54

GoogleCodeExporter commented 8 years ago
<?xml version="1.0" encoding="ISO-8859-1"?>
<pingback>
  <sitename>573chan</sitename>
  <siteurl>http://573chan.org</sitename>
  <boardlistname>573,Random Board,Combined Games Board,Discussion</boardlistname>
  <boardlistfolder>573,brx,cgb,dis</boardlistfolder>
</pingback>

Obviously there are some issues with this, because someone could have a comma in
their board names

So let's try with š, a random character I got from character map.  Do people 
use
this?  idk!

<?xml version="1.0" encoding="ISO-8859-1"?>
<pingback>
  <sitename>573chan</sitename>
  <siteurl>http://573chan.org</sitename>
  <boardlistname>573šÿRandom BoardšÿCombined Games BoardšÿDiscussion</boardlistname>
  <boardlistfolder>573šÿbrxšÿcgbšÿdis</boardlistfolder>
</pingback>

Anyway, a button can go in housekeeping to send the pingback file to somewhere 
to be
parsed and checked.  It will only send public boards, not hidden ones.  We 
could also
expand on this to add more fields.

Original comment by TaQS...@gmail.com on 16 Apr 2009 at 8:26

GoogleCodeExporter commented 8 years ago
Second idea:  JSON

http://www.json.org/

Original comment by TaQS...@gmail.com on 16 Apr 2009 at 8:29

GoogleCodeExporter commented 8 years ago
JSON payload would look something like this

 {
   "site_name": "573chan",
   "site_url": "http://573chan.org",
   "publicboardcount": 4,
   "boards": [
     { "board_1_name": "573",
       "board_1_folder": "573",
       "board_1_variouspostdata": "someinformationidk",
       "board_2_name": "Random Board",
       "board_2_folder": "rnd",
       "board_2_variouspostdata": "someinformationidk",
       "board_3_name": "Combined Games Board",
       "board_3_folder": "cgb",
       "board_3_variouspostdata": "someinformationidk",
       "board_4_name": "Discussion",
       "board_4_folder": "dis",
       "board_4_variouspostdata": "someinformationidk",
     }
   ]
 }

This is much more flexible and we don't have to worry about some weird obscure
character to count on for parsing, and we could turn it into something more 
useful
once we get it.

And the variouspostdata, I'm throwing that in there as an example of expansion.

Original comment by TaQS...@gmail.com on 16 Apr 2009 at 8:34