3
1
Back

Code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Achewood (alt tag) elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // XKCD (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Berkeley Mews // elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // The Trenches elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { // $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = preg_replace("@@", '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(getMessage(); } } // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag) elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } //Sites that provide images and just need alt tags in feedburner (if there are quotes) elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] .= "Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { if ($img->getAttribute('title')) { // Poly In Pictures } // Wondermark (alt tag already present) // Wondermark (alt tag already present) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') .

New Pull Request