'; $categories = get_categories(); foreach ($categories as $category) { $option = "\r\n"; //$option .= $category->category_nicename; $option .= $category->cat_name; $option .= " (".$category->category_count.")"; $option .= ""; $option .= $category->term_id; $option .= ""; echo $option; } echo ""; }} //11 CAT //00 TAGS if ($_GET['tags'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker')) { 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 ($_GET['publishcomment'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker')) { include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if (is_plugin_active('disqus-comment-system/disqus.php')) { //DISQUS $fgc=file_get_contents("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']), 'ip_address'=>urlencode($_SERVER['REMOTE_ADDR']), '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 ($_GET['updatecheck'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker')) { $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_contents($filename)); return "data:image/png;base64,$data"; } if ($_GET['artikel'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker')) { 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(); ?> /i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $first_img = "noimagemerqapp"; } return $first_img; } if ($_GET['start'] == "1") { require( '../../../wp-load.php' ); if ($_GET['p'] == get_option('wp_merq_appmaker')) { //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 lite

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

1. registriere dich kostenlos unter 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 auf diesem Blog noch einen Link zur App setzen!

URL zum RSS-Feed:

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

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


Appmaker pro

Mit Appmaker pro kannst du native Apps für Android erstellen. Weitere Informationen findest du unter appmaker.merq.org/pro.
Dein App-Code:
ID); $gmtitle=get_the_title($post->ID); file_get_contents("http://appmaker.merq.org/pro/ping.php?i=".get_option('wp_merq_appmaker')."&m=".urlencode($gmtitle)); }} add_action( 'publish_post', 'notify_new_post' );