'; $cats=wp_list_categories("echo=0&show_count=1"); $cats=explode('
  • "; $ittt=str_replace('(','',str_replace(')','',merqappmaker_gb(merqappmaker_gb($category,'><a href="',"</a>")."ap%pmE43zZ",'">','ap%pmE43zZ'))).merqappmaker_gb($category,'</a>',"\n"); $option .= $ittt; $option .= ""; $ciii=merqappmaker_gb($category,'cat-item-','"'); $option .= $ciii; $piii=get_category_parents($ciii); $piii=substr_count($piii, '/'); if ($piii!="1") { $dn=" ".$ittt; } else { $dn=$ittt; } $option .= "".$dn.""; echo $option; }} echo ""; }} //11 CAT //00 TAGS if (isset($_GET['tags']) && $_GET['tags'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker_appid')) { header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true); echo ''; //$tags = wp_tag_cloud('format=array&number=15' ); //print_r($tags); $tags = get_tags(); foreach ($tags as $tag){ //$tag_link = get_tag_link($tag->term_id); //$html .= ""; //$html .= "{$tag->name}"; echo "\r\n"; echo $tag->name." (".$tag->count.")"; echo ""; echo $tag->term_id; echo ""; } echo ""; }} //11 TAGS //00 PUBLISH COMMENT if (isset($_GET['publishcomment']) && $_GET['publishcomment'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker_appid')) { include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if (is_plugin_active('disqus-comment-system/disqus.php')) { //DISQUS $fgc=file_get_content("http://disqus.com/api/3.0/threads/list.json?api_key=E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F&forum=".strtolower(get_option('disqus_forum_url'))."&thread=link:".urlencode(get_permalink($_REQUEST['postid']))); $fgc=json_decode($fgc,true); $fgc=$fgc['response']['0']['id']; $fields = array( 'thread'=>$fgc, 'message'=>urlencode($_REQUEST['comment']), 'author_name'=>urlencode($_REQUEST['autor']), 'author_email'=>urlencode($_REQUEST['mail']), 'author_url'=>urlencode($_REQUEST['url']), 'api_key'=>'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F', ); foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string,'&'); $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,'http://disqus.com/api/3.0/posts/create.json'); curl_setopt($ch,CURLOPT_POST,count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string); curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1); curl_exec($ch); curl_close($ch); //DISQUS } else { $time = current_time('mysql'); $data = array( 'comment_post_ID' => $_REQUEST['postid'], 'comment_author' => $_REQUEST['autor'], 'comment_author_email' => $_REQUEST['mail'], 'comment_author_url' => $_REQUEST['url'], 'comment_content' => $_REQUEST['comment'], 'comment_type' => '', 'comment_parent' => 0, 'user_id' => null, 'comment_author_IP' => $_SERVER['REMOTE_ADDR'], 'comment_agent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-de; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)', 'comment_date' => $time, 'comment_approved' => 1, ); wp_insert_comment($data); }}} //11 PUBLISH COMMENT //00 UPDATE CHECK if (isset($_GET['updatecheck']) && $_GET['updatecheck'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker_appid')) { $posts = query_posts('showposts=1'); while( have_posts()) : the_post(); echo get_the_ID(); endwhile; }} //11 UPDATE CHECK //00 ARTIKEL function data_uri($filename) { $data = base64_encode(file_get_content('http://images.weserv.nl/?url='.urlencode(str_replace('http://','',str_replace('https://','',$filename))).'&q=50&w=600')); if ($data=="RXJyb3IgNDA0OiBTZXJ2ZXIgY291bGQgcGFyc2UgdGhlID91cmw9IHRoYXQgeW91IHdlcmUgbG9va2luZyBmb3IsIGVycm9yIGl0IGdvdDogVGhlIHJlcXVlc3RlZCBVUkwgcmV0dXJuZWQgZXJyb3I6IDQwMyBGb3JiaWRkZW48c21hbGw+PGJyIC8+PGJyIC8+QWxzbywgaWYgcG9zc2libGUsIHBsZWFzZSByZXBsYWNlIGFueSBvY2N1cmVuY2VzIG9mIG9mICsgaW4gdGhlID91cmw9IHdpdGggJTJCIChzZWUgPGEgaHJlZj0iLy9pbWFnZXN3ZXNlcnYudXNlcnZvaWNlLmNvbS9mb3J1bXMvMTQ0MjU5LWltYWdlcy13ZXNlcnYtbmwtZ2VuZXJhbC9zdWdnZXN0aW9ucy8yNTg2ODYzLWJ1ZyI+KyBidWc8L2E+KTwvc21hbGw+") { $data = base64_encode(file_get_content($filename)); } return "data:image/png;base64,$data"; } if (isset($_GET['artikel']) && $_GET['artikel'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker_appid')) { header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true); echo ''; ?> post_content; $content = apply_filters('the_content', $content); //$tube_link = 'http://www.youtube.com/watch?v=XA5Qf8VHh9I&feature=g-all-u&context=G2f50f6aFAAAAAAAADAA'; $search = '#]+?>#i'; $replace = ''; $content = preg_replace($search, $replace, $content); $search = '#]+?>#i'; $replace = ''; $content = preg_replace($search, $replace, $content); //IMG LOCAL function data_uri_callback($matchess) { return $matchess[1] . data_uri($matchess[2]) . $matchess[3]; } function img_handler($matches) { $image_element = $matches[0]; $pattern = '/(src=["\'])([^"\']+)(["\'])/'; $image_element = preg_replace_callback($pattern, "data_uri_callback", $image_element); return $image_element; } $search = '(]+>)'; $content = preg_replace_callback($search, 'img_handler', $content); echo $content; ?>]]> post_author)->display_name; ?> <?php echo get_the_title($my_postid); ?>
    comment_author_url) { ?> comment_author); ?> comment_author); ?> am comment_date, false); ?> um comment_date, false); ?> Uhr

    ", $comment->comment_content); ?> "; endforeach; ?>
    ]]> '; ?> <?php the_title_rss(); ?> '; ?> <?php the_title_rss(); ?> '; ?> <?php the_title_rss(); ?> ID), 'thumbnail' ); $first_img = $first_img['0']; if ($first_img=='') { $output = preg_match_all('//i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ $first_img = "noimagemerqapp"; }} return $first_img; } if ($_GET['start'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker_appid')) { //FEEDAUSGABE $numposts = $_GET['num']; // number of posts in feed if ($_GET['page']) { $offset = (((int)$_GET['page'])-1)*10; $posts = query_posts('showposts='.$numposts.'&offset='.$offset); } else { $offset = (((int)$_GET['page'])-1)*10; $posts = query_posts('showposts='.$numposts); } header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true); echo ''; ?> <?php the_title_rss(); ?> '; ?> > <?php bloginfo_rss('name'); wp_title_rss(); ?> <?php the_title_rss(); ?> ]]> ]]> post_content ) > 0 ) : ?> ]]> ]]>

    Einstellungen: Android Appmaker

    Appmaker

    Mithilfe dieses Plugins kannst du deine eigene Android App erstellen. Die App enthält u.a. die letzten Artikel deiner Seite.

    1. Registriere dich kostenlos bei Appmaker.merq.org.
    2. Erstelle auf der Seite eine neue App und gebe die hier genannte URL (s.u.) in das RSS-Feed - Feld ein.
    3. Die Android App ist fertig. Du kannst auf deiner Seite noch einen Link zur App setzen!
    4. Bei Bedarf kannst du den Pro-Tarif buchen und von weiteren Vorteilen profitieren! Oder lasse die eine native App erstellen (s.u.).

    URL zum RSS-Feed:

    Push-URL (nur Pro-Tarif):

    Anzahl Beiträge, welche in der App angezeigt werden sollen:

    Hinweis: Änderungen werden in der App nach zirka 30 Minuten sichtbar!


    Appmaker WordPress Nativ

    Mit Appmaker WordPress kannst du native Apps für Android erstellen.

    1. Gehe auf Appmaker für WordPress und klicke auf App erstellen.
    2. Erstelle auf der Seite eine neue App und folge dabei den Anweisungen.
    3. Fülle die Einstellungen AppID und Kennwort hier (unten) aus.
    4. Die Android App ist fertig. Du kannst auf deiner Seite noch einen Link zur App setzen!

    AppID:

    Kennwort:

    Pushnaricht senden"; } else { if (get_option('wp_merq_appmaker_pushurl') != "") { return "Pushnaricht senden"; } } }