![]() |
I'm working on programming a wordpress plugin to turn FHGs into blog entries......
Before I get to far along I wanted to make sure this doesn't already exist? I hunted for it and couldn't find anything close?
If not, I'll continue working away. Shouldn't be too difficult. Parse it baby, ooh yeah, right there, parse it, parse it hard! I'm breaking out my ninja coding skills breeders, look out look out! |
good luck, sounds like a great plug in, I'd like something like that
|
it doesn't exist as a wordpress plugin but it can be easily done with ST
You can export RSS feeds with auto cropped thumbnails and with the description. Once you have the feeds getting them into wordpress is cake. |
Check out ZippedSites.com
They have developed plugins for wordpress for converting it to TGP, Thumb Blog, Dating blog, WebCams Blog and to use RSS feeds form sponsors... |
i've looked for one, but couldn't really find anything....
|
well I have programmed one...
but the problem is getting text on it.... I used galleries with unique text descriptions and thought of maybe using markov. but this script is not up for grasp, sorry. |
|
|
Quote:
|
Just a FYI.. there is already a WP plug in like this in the works. It's actually already in use by a few people from another forum.
|
Quote:
|
I already built the software that can do this all. The version is based on php and mysql.
If anyone need a copy shoot me an icq msg to 502189.... |
Cool, thanks for all the replies, might end up saving me some work. I'll look into these today.
|
Nice let me know when its ready for Beta
|
Quote:
Now that's nice...:thumbsup |
Quote:
|
why does it have to be a plugin? spider gallery, parse html, show results, approve or auto post, up to you.... done
|
I'm also using Gallery Scraper Try out the free version and see how you like it.
|
<?
include('config.php'); $url = $row['URL']; // gallery url $ch = curl_init(); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); // 5 seconds curl_setopt($ch, CURLOPT_USERAGENT, "teksonline spider"); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_MAXREDIRS, 2); $output = curl_exec($ch); $response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); // fixes a whitespace problem between tags on some gay html $output = preg_replace ('/ {2,}/is', ' ', $output); $array = parseHTML($output); echo "{$row['ID']} $response_code: $url\n"; //echo $html[A][0][HREF]; example of html data is in array echo"\n"; foreach($array['A'] as $href) { /* hey im one of the href in the web page, do something with me as I am probably a picture link or a movie link */ } function parseHtml($s_str) { $i_indicatorL = 0; $i_indicatorR = 0; $s_tagOption = ""; $i_arrayCounter = 0; $a_html = array(); // Search for a tag in string while(is_int(($i_indicatorL=strpos($s_str,"<",$i_i ndicatorR))) ) { // Get everything into tag... $i_indicatorL++; $i_indicatorR = strpos($s_str,">", $i_indicatorL); $s_temp = substr($s_str, $i_indicatorL, ($i_indicatorR-$i_indicatorL) ); $a_tag = explode( ' ', $s_temp ); // Here we get the tag's name list( ,$s_tagName,, ) = each($a_tag); $s_tagName = strtoupper($s_tagName); // Well, I am not interesting in <br>, </font> or anything else like that... // So, this is false for tags without options. $b_boolOptions = is_array(($s_tagOption=each($a_tag))) && $s_tagOption[1]; if( $b_boolOptions ) { // Without this, we will mess up the array $i_arrayCounter = (int)count($a_html[$s_tagName]); // get the tag options, like src="htt://". Here, s_tagTokOption is 'src' and s_tagTokValue is '"http://"' do { $s_tagTokOption = strtoupper(strtok($s_tagOption[1], "=")); $s_tagTokValue = trim(strtok("=")); $a_html[$s_tagName][$i_arrayCounter][$s_tagTokOption] = $s_tagTokValue; $b_boolOptions = is_array(($s_tagOption=each($a_tag))) && $s_tagOption[1]; } while( $b_boolOptions ); } } return $a_html; } ?> there you are half way home |
All times are GMT -7. The time now is 07:59 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123