ahmedmz
Forum Replies Created
-
Hi ,
it’s Something nice to be available
Awaiting it .. thanks alotForum: Plugins
In reply to: [Simple Event Planner] widgets on event pageDone, thanks
Forum: Fixing WordPress
In reply to: custom template posts issuethanks alot
please can you help me to do thisthis is the template file
<?php /* Template Name: Mobile App Template */ ?> <?php get_header('mobapp'); ?> <div class="content"> <?php if( get_query_var('page') ) $paged = get_query_var('page') ; ?> <div class="page-head"> <h1 class="page-title"> <?php the_title(); ?> </h1> </div> <?php $blog_cats = unserialize($get_meta["blog_cats"][0]); if( empty( $blog_cats ) ) $blog_cats = get_all_category_ids(); query_posts( array( 'paged' => $paged , 'category__in' => $blog_cats )); get_template_part( 'loop', 'category' ); if ($wp_query->max_num_pages > 1) pagenavi(); ?> <?php comments_template( '', true ); ?> </div><!-- .content --> <?php get_footer('mobapp'); ?>
well it display list of posts with Specific header and footer
Please keep in mind that the page of this template works without a problem , but when you go to the page displaying the Selected news like(/?p=123) it appears containing the default header and footer of theme.Forum: Fixing WordPress
In reply to: custom template posts issueHi , thanks for reply
first i will tell you what i do .
i’m working on small Mobile App that only view last posts from specified category .(will put it in Mobile App as Iframe) that’s away from default version
i it should be without header and footer and sidebar , so i thought in using template file .
1-i copied file template-blog.php from theme to new file with name template-mobile-app.php and i deleted header and footer from it .
2-i created an empty page “app-template” and changed Template from Page attributes to the new one .
3- https://www.website.com/app-template .the link works as i want, to put it in Mobile App Iframe , but when i browse posts , it shown with header and footer and it’s the issue , i want it Without it.(this page is only for Mobile App) .
The idea is that this is done entirely within the specified template so that the site is not affected by this customizationI hope you understand what is required
how can i do it ?
thanksi modified the database and everything is ok now
Forum: Hacks
In reply to: increase number of special characters in member registration in WordPressohh thanks brother ?? , appreciated your reply ,
finally found person facing the Troublesome problem ?? .
the plugin author also replied me now with the same solution ,i increased the value to 255 , and it’s OK now
the issue was that it reads the Arabic and Russian usernames same as is the case with %d0%b9%d1%86%d0%ba%d0%b5%d0%bf%d0 !thanks dear ??
Regardsi found this simple plugin to resolve this issue
it is OK but the issue now that maximum number of special characters member can use is 8 only , how can i increase it ?
when i use more than 8 characters in username ,it’s not register and not get any message !could you help me please to increase characters no. in username ?
thanks a lot<?php /* Plugin Name: WordPress Special Characters in Usernames Plugin URI: https://www.oneall.com/ Description: Enables usernames containing special characters (russian, cyrillic, arabic) on your WordPress Blog Version: 1.2 Author: Claude Schlesser Author URI: https://www.oneall.com/ License: GPL2 */ /** * Overrides the WordPress sanitize_user filter to allow special characters */ function wscu_sanitize_user ($username, $raw_username, $strict) { //Strip HTML Tags $username = wp_strip_all_tags ($raw_username); //Remove Accents $username = remove_accents ($username); //Kill octets $username = preg_replace ('|%([a-fA-F0-9][a-fA-F0-9])|', '', $username); //Kill entities $username = preg_replace ('/&.+?;/', '', $username); //If strict, reduce to ASCII, Cyrillic and Arabic characters for max portability. if ($strict) { //Read settings $settings = get_option ('wscu_settings'); //Replace $username = preg_replace ('|[^a-z\p{Arabic}\p{Cyrillic}0-9 _.\-@]|iu', '', $username); } //Remove Whitespaces $username = trim ($username); // Consolidate contiguous Whitespaces $username = preg_replace ('|\s+|', ' ', $username); //Done return $username; } add_filter ('sanitize_user', 'wscu_sanitize_user', 10, 3);
or , how make visitor to access search form ?
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] problem with TranslateHi dcooney
thanks , it’s ok nowForum: Plugins
In reply to: [Page Builder by WooRockets.com] how can i use it in home page ?hello @adam
thanks dear for your support
5 star ??