Jump to content

Search the Community

Showing results for tags 'wordpress'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

  1. Hey, can i include the html code from w3 in my wordpress site? or is this just for building a site without any other programs?
  2. Hello This is my site made on Wordpress, the theme was made by other people: http://www.endeavor.cl/ I need to add a popup in the home section, so i installed some popup plugins and neither of them worked, i even tried using the echo do_shortcode[''] function of Wordpress and it doesn't work either. The i tried to use bootstrap modals, i just copied the example we have on w3schools and the button doesn't respond, the popup won't appear. So i decided to use jquery-ui: https://jqueryui.com/dialog/ It doesn't work either, it's like something in the theme is preventing to have anything poping-up in the page. At the end i tried a Javascript alert() and only that worked. Well, how can i make jquery-ui work on this page? Here is my header.php where i included the script: <!DOCTYPE html> <!--[if IE 6]> <html id="ie6" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 7]> <html id="ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html id="ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!--> <html <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php if (have_posts()):while(have_posts()):the_post(); endwhile; endif;?> <!-- the default values --> <meta property="fb:app_id" content="570150036476648" /> <!-- if page is content page --> <?php if (in_category('categoria-videos')) { ?> <meta property="og:url" content="<?php the_permalink() ?>"/> <meta property="og:title" content="<?php single_post_title(''); ?> | <?php bloginfo('name'); ?>" /> <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" /> <meta property="og:type" content="article" /> <meta property="og:image" content="http://i.ytimg.com/vi/<?php the_field('video-youtube-id'); ?>/hqdefault.jpg" /> <meta property="og:image:width" content="300"/> <meta property="og:image:height" content="300"/> <?php } elseif (is_single()) { ?> <meta property="og:url" content="<?php the_permalink() ?>"/> <meta property="og:title" content="<?php single_post_title(''); ?> | <?php bloginfo('name'); ?>" /> <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" /> <meta property="og:type" content="article" /> <?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'medium' ); ?> <meta property="og:image" content="<?php echo $feat_image;?>" /> <meta property="og:image:width" content="300"/> <meta property="og:image:height" content="300"/> <?php } elseif (is_page()) { ?> <meta property="og:url" content="<?php the_permalink() ?>"/> <meta property="og:title" content="<?php single_post_title(''); ?> | <?php bloginfo('name'); ?>" /> <meta property="og:description" content="Endeavor lidera el movimiento global que busca impulsar el crecimiento económico sostenible, a través de la selección de Emprendedores de Alto Impacto" /> <meta property="og:type" content="article" /> <?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> <meta property="og:image" content="<?php bloginfo('template_directory'); ?>/template/FotoShare.jpg" /> <meta property="og:image:width" content="450"/> <meta property="og:image:height" content="298"/> <?php } elseif(is_home()) { ?> <meta property="og:site_name" content="<?php bloginfo('name'); ?>" /> <meta property="og:title" content="Endeavor Chile | www.endeavor.cl" /> <meta property="og:description" content="Endeavor lidera el movimiento global que busca impulsar el crecimiento económico sostenible, a través de la selección de Emprendedores de Alto Impacto" /> <meta property="og:type" content="website" /> <meta property="og:image" content="<?php bloginfo('template_directory'); ?>/template/FotoShare.jpg" /> <meta property="og:image:width" content="450"/> <meta property="og:image:height" content="298"/> <?php } else { ?> <meta property="og:site_name" content="<?php bloginfo('name'); ?>" /> <meta property="og:description" content="Endeavor lidera el movimiento global que busca impulsar el crecimiento económico sostenible, a través de la selección de Emprendedores de Alto Impacto" /> <meta property="og:type" content="website" /> <meta property="og:image" content="<?php bloginfo('template_directory'); ?>/template/FotoShare.jpg" /> <meta property="og:image:width" content="450"/> <meta property="og:image:height" content="298"/> <?php } ?> <title> <?php // Print the <title> tag based on what is being viewed. global $page, $paged; wp_title( '|', true, 'right' ); // Add the blog name. bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) echo " | $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ); ?> </title> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script> $( function() { $( "#dialog" ).dialog(); } ); </script> <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/template/favicon.ico" type="image/x-icon" /> <!-- Fancybox --> <?php include(TEMPLATEPATH . '/fancybox/lib/fancyincludes.php'); ?> <!-- Nicescroll --> <script src="<?php bloginfo('template_directory'); ?>/nicescroll/jquery.nicescroll.js"></script> <!-- Masonry --> <script src="<?php bloginfo('template_directory'); ?>/isotope/isotope.pkgd.js"></script> <!-- PARALLAX --> <script src="<?php bloginfo('template_directory'); ?>/parallax/parallax.js"></script> <script src="<?php bloginfo('template_directory'); ?>/popup/jquery.modal.min.js"></script> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/popup/jquery.modal.min.css" type="text/css" /> <script> $(window).load(function() { <!---- MASONRY ---> var $container = $('.grid'); // initialize $container.isotope({ itemSelector: '.grid-item', layoutMode: 'fitRows' }); <!---- MASONRY ---> }); $(window).scroll( function(){ /* Check the location of each desired element */ $('.show').each( function(i){ var bottom_of_object = $(this).offset().top + $(this).outerHeight(); var bottom_of_window = $(window).scrollTop() + $(window).height()+100; /* If the object is completely visible in the window, fade it in */ if( bottom_of_window > bottom_of_object ){ $(this).animate({'opacity':'1'},300); } }); }); $(window).on('load resize', function () { if ($(window).width() >= 1000){ $("#menu-top").removeClass(); $("#menu-top").addClass("desktop"); }else{ $("#menu-top").removeClass(); $("#menu-top").addClass("touch"); $("#menu-top.touch .menu-item-has-children a").addClass("primer-boton").css('cursor','pointer'); $("#menu-top.touch .sub-menu a").removeClass(); $("#menu-top.touch .primer-boton").removeAttr("href"); $('#menu-top.touch .menu-item-has-children > .sub-menu').parent().click(function() { var submenu = $(this).children('.sub-menu'); if ( $(submenu).is(':hidden') ) { $(submenu).slideDown(200); } else { $(submenu).slideUp(200); } }); } }); <!---- NICESCROLL ---> var nice = false; $(document).ready( function() { nice = $("html").niceScroll(); } ); <!---- NICESCROLL ---> <!---- MENU ---> $(document).ready(function(){ $("#nav-mobile-hold").click(function(){ $("#menu-top").slideToggle(); $("#nav-mobile").toggleClass('active'); }); }); <!---- MENU ---> jQuery(document).ready(function($) { $('#post-content a[href$="jpg"], #post-content a[href$="png"], #post-content a[href$="jpeg"]').fancybox(); }); </script> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script> $( function() { $( "#dialog" ).dialog(); } ); </script> </head> <body> <div id="dialog" title="Basic dialog"> <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p> </div> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-45413975-1', 'auto'); ga('send', 'pageview'); </script> <script> window.fbAsyncInit = function() { FB.init({ appId : '570150036476648', xfbml : true, version : 'v2.5' }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <?php include('includes/preload.php'); ?> <div id="header"> <div id="menu-top" class="menu-top"> <?php wp_nav_menu( array( 'theme_location' => 'menu_sup', 'menu_class' => 'primary', 'fallback_cb' => '') ); ?> </div> <div class="barra-menu"> <div id="nav-mobile-hold"> <div class="texto">menu</div> <div id="nav-mobile"> <span class="ln-one"></span> <span class="ln-two"></span> <span class="ln-three"></span> </div> </div> <a href="<?php echo get_settings('home'); ?>"><img id="logo-top" src="<?php bloginfo('template_directory'); ?>/template/logo-top.svg"></a> <div id="redes-top"> <div id="searchbox" > <form class="search" method="get" action="<?php echo home_url(); ?>" role="search"> <input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Buscar…', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> <button type="submit" role="button" class="btn btn-default right"/><span class="glyphicon glyphicon-search white">></span></button> </form> </div> <a href="https://www.facebook.com/Endeavor-Chile-343478338971/?fref=ts" target="_blank"><img id="facebook-top" class="boton" src="<?php bloginfo('template_directory'); ?>/template/iconos/facebook-blanco.svg"></a> <a href="https://twitter.com/endeavorchile" target="_blank"><img id="twitter-top" class="boton" src="<?php bloginfo('template_directory'); ?>/template/iconos/twitter-blanco.svg"></a> <a href="https://www.youtube.com/user/endeavorCL" target="_blank"><img id="youtube-top" class="boton" src="<?php bloginfo('template_directory'); ?>/template/iconos/youtube-blanco.svg"></a> <a href="https://cl.linkedin.com/in/endeavorchile" target="_blank"><img id="linkedin-top" class="boton" src="<?php bloginfo('template_directory'); ?>/template/iconos/linkedin-blanco.svg"></a> </div> </div> <?php include('includes/prox-evento.php'); ?> </div> <div id="dialog" title="Basic dialog"> <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p> </div>
  3. How To show category wise posts using custom fields i am use acf plugin and i want show custom fields page i have 3 custom fields 1 album 2 artist 3 lyrics and 2 category 1st remix 2nd top song i want creat deffrant page for all 3 fields like 1st page album where i can show all album with 1st category with paging See Below Attached file For Best Understanding
  4. So I am trying to find which CSS code to change for the background of the slideshow plugin I have on my page, but no matter how hard I try I can't seem to find it using the inspector tool, have been trying for over an hour now Could anyone help point me in the right direction! The page with the slider is http://dannorrisphotography.net/portraits/ Obviously I don't want the background of the slider to be black on a white page. PS sorry for being such a noob!
  5. We have setup a bitcoin payment gateway on the site and client is having a 25% off if the customers will use bitcoin. The client wants to exclude certain categories on the sale and they will have to pay the normal bitcoin percentage. Can I do this adding a php cod on the functions.php file? Thank you so much!
  6. Hi I have purchase “XScholar - LMS, Course, Event, University WordPress”. In this theme there is a loader when every page is loading. I want to remove this loader. How can I remove this loader? Any help? Thanks
  7. Hello Everyone I Need Wordpress User Password as taxt formate(User Entered ex 12345678)For Spl perpose how i done plz help me Thanks in advance
  8. Hello Every one I need help plz help me How i done this User can Pay Half payment in WooCommerce and user can edit payment before pay exam any item prince 600rs user can edit for payment 500 pending 100rs user can payment aftr 30day etc and User my acount show All transection credit or debit total and Show Pending Ammount etc Plz help me
  9. Are there any peculiarities to using CSS on a WordPress site. Anybody know where I can find a CSS and WordPress tutorial?
  10. Hi! I modified the wordpress slideshow to make it much nicer looking and added text below, however, I am having a horrible time with the responsive aspect of it...the location of the control buttons (to move the show forward and backwards), as well as the simple text block below the slides move an enormous amount depending on the screen size! Is there anything I can do to make the location of these elements dependent on each other so that they re-locate accordingly? Otherwise, no one is going to be able to view the slides! The page I am talking about can be found here: http://annascherman.com/made-in-birmingham/
  11. Hi There, I'am developing an new wordpress website with The X from theme.co Default i only can add text content to my google map infobox. But i want to show an Text, Hyperlink and logo like this: I want to use Advanced Custom Fields to accomplish this and tried to added the following code to my childthemes functions.php // Website in infobox// =============================================================================add_action('init', 'remove_parent_theme_shortcodes');function remove_parent_theme_shortcodes() { remove_shortcode( 'x_google_map' ); add_shortcode( 'x_google_map', 'custom_google_map');}function custom_google_map( $atts ) { the_field('website'); <-// Advanced Custom Fields code //} But no results and the site gets a whitescreen. Thanks in advance, Gino
  12. How do I reduce the spacing between the horizontal line and the text of WordPress visual editor?
  13. Hello Forum, Okay so this is probably the easiest question to answer but I am new to coding and CSS/HTML so I hope someone can answer this. Created a Navigation Menu on my website and added code to center the Links to the center of the page which works fine but as you can see the picture I attached, the links are sitting below the blue menu bar. It looks like there is a line height issue or something. I went through a bunch of the demos on this site and couldn't get it right. This is the code I am using to get it centered: <style type="text/css"> #primary-menu-container ul{text-align:center;} #primary-menu-container ul li { float: none; display: inline-block; } h1#site-logo{ display:none; } #primary-menu-container { float: none; clear: both; margin: auto; width: 75%; } </style> Thanks to who ever responds and its much appreciated. Website if you want to see the whole thing is: www.ChrisReedTattoo.com
  14. Hello guys! I have an issue on my website. As you can see on the inclosed picture, I have white borders on my footer. But they appear only on phone screens and I can't see where they are located in the CSS... Any idea please? Thank you in advance!
  15. Hello everyone! I've got 6 details I wish to improve through my WP theme, Evolve. And I guess I need some CSS for them but I'm not good enough right now to do it all alone... So, I'm asking for your help today! I hope I'm not asking to much... Here is my (french) website : le-chemin-du-butterfly.fr 1. You can see I've got a widget on the right of my page. I'd like to resize it to give more space to my text (right now, it's 66% and 33% and I would like 75%-25%). I tried some things but I have to made it so that it still responsive. But I don't know how... I guess I have to add some If or And but.. how? 2. Again with this menu, I would like my text to be around it. Right now, the text is only in its column and doesn't go under the widget when it's after it. Menu and text are truly separated in two columns 3. Talking about menu, you can see I've got 2 links in my header ("Une Histoire de Bouquins" and "The Voyage"). What I'm looking after is to duplicate it on the right to add other links... But I guess it's HTML rather than CSS and I need to configure the theme itself for this right? But then, have you tips for me to do so? 4. I've got a search bar in the header but on small screens this search bar doesn't show very well: the text that's shown when you click on the button is shown... all time on small screens. So, it's not very... Professional. 5. I ran the plugin Livefyre for the comments but since, the "Leave a comment" (Laisser un commentaire) doesn't scroll down to the comments menu, because the anchor is #respond and not "#comments" or "#livefyre-comments" as the Livefyre's Support told me. So, how I can I manage that? Here is a link to an article for an example I know I'm asking a lot (especially for a first message!) but I've to say I'm kind of lost in all of this. I'm learning HTML/CSS from not so long and I can't figure out how to do this... Thank you a lot in advance!And see you
  16. Hello, I'm attempting to re-create this Wix page - http://gtnphotography.wix.com/collectivecp#!new-equipment/c10au -in WP using the genesis theme. However, I'm having issues with spacing and alignment. Here's the code I have: <style> div.container{ position: relative; } p { text-align: center; margin-bottom: 60px; } div.container img{ position: absolute; top: -30px; left: -10px; right: -10px; } </style> <div class="container"> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Red-One-e1436565960605.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/C100.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Titla.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Tilta-2.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/24-105mm.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Rokinon-14mm.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Fostex.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Windshield.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Wireless-Mics.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Tascam.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Fluorescent-Banks.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Tungsten-Fresnels.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Green-Screen.png" /> <img src="http://www.collectivecp.com/wp-content/uploads/2015/07/Client-Monitor.png" /> </div> Any help would be great. Thanks, Kelsey
  17. I am having a difficult time getting JavaScript to run in a Wordpress Post. I work extensively in forms, and creating calulators of different sorts. I want each script to be local for only one single post, not global. I know I can include the path in the header.php file, but with all the scripts I want to include in the Wordpress websites, I don’t want to convolute the header.php with lots of local file paths which are going to be one and done. I know Wordpress changes the html syntax when switching from text to visual, that is not my problem. The scripts I have written works in every editor I use, and with all the most popular browsers, but not when posted in Wordpress from the file.js path or when inserted with <script> tags. I can get very simple scripts with an alert() function, or document.write() function to work, but when I attempt form manipulation, no luck. When troubleshooting from a console, none of the variables or functions are acknowledged. All the websites I deal with are Wordpress. I'm frustrated because I want to really grow and expand my JavaScript skills, but I constantly hit dead ends with Wordpress and no one can offer guidance. I've been told to write everything in PHP. I am new to programming and want to learn JQuery and javaScript well before taking on any other language! Please Help!
  18. Hello. I call myself having studies this forum but I can't seem to find the answer to this question. If it has been answered, please excuse me for re-posting it. If it has been answered, I would appriciate it if someone would direct me to that thread.I am using the Engrave Lite (Free Version) theme by Think Up Themes, Ltd. in Wordpress. Please see the link here. I am having problems getting anything to render in the box to the right. It took me forever to finally find a way to closly duplicate the box on the left but I was finally able to get it done. I have been working on this for 3 days now, and can't make it work. From all of the reading I have done on the W3schools site, it seems like I should simply be able to enclose my information that should be displayed in that box between the p id tag and the and the close p tag. Like the word "Hello" in the following example: <p id="rcorners1">Hello</p> However, with this done, the word "Hello" shows at the bottom of the page just above the footer.My css code looks like this:[codeblock]<style>#rcorners1 { position: relative; clear: top; top: 23px; right: -525px; border-radius: 9px; border: 1px solid #CCCCFF; background: -webkit-linear-gradient(white,#E5E5FF); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(white, #E5E5FF); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(white,#E5E5FF); /* For Firefox 3.6 to 15 */ background: linear-gradient(white, #E5E5FF); /* Standard syntax */); /* For Safari 5.1 to 6.0 */ padding: 0px; width: 370px; height: 257px; } </style>[/codeblock] I have the css code in a plugin for custom css coding, and it seems to work because it shows the box. Does anybody have any ideas? It may be the theme. is there a way to override the theme if it is?Thanks for your time.
  19. Hello EverybodyWhich is better using Content Management Systems CMS (WordPress- Joomla ...etc.) or using Manual coding (HTML- CSS ...etc.) ? and why ?Thanks for support
  20. Hello,I've integrated a wp-search on a page. I've customized it to display some search results according to page ID. Well, I want to do something in such a way that when any term or keyword is searched and clicked on SEARCH button, the results should be displayed in a new popup window.I'm new to programming that's why I need help in this regard.Appreciated.Thank you!
  21. In my previous question I managed to solve a way to load an external php file into my html thanks to your help. The php file loads perfectly fine as long as it follows the simple to criteria to load php after a given amount of time, which in my case is 1000 milliseconds. I wanted to know a method which loads data from the php file ONLY, and ONLY if the data in that php file has changed. My script what I managed to do after hours of research looks like follows: <script type="text/javascript">$(document).ready(function () { var auto_refresh = setInterval( function () { function testing() { var result = null; var scriptUrl = "http://localhost:8888/test-site/wp-content/my-php-files/test-check.php"; //Use this php file (NB: This file contains the same data as "test.php") as a check if data changed or not. $.ajax({ url: scriptUrl, type: 'POST', // I tried "GET" as well dataType: 'html', success: function (data) { result = data; } }); return result; } databaseData = testing(); currentData = $('#demo').html(); if (databaseData != currentData) { // I compare the values from the Ajax request and the value currently in my div to see if they are similar or not. $('#demo').fadeOut('slow', function () { // I added fadeOut and FadeIn effect for the div to load when data has changed $('#demo').load('http://localhost:8888/test-site/wp-content/my-php-files/test.php', function () { $('#demo').fadeIn('slow'); }); }); } }, 1000);});</script><div id="demo"></div> In this case scenario, the problem is that the div is loaded every second with the fadeIn and FadeOut effect although the data has not changed. Precisely, the same value appears even up to ten times with the effects even if it is the same value the whole time. It does not matter, if the value is altered or not, the div will be refreshed anyway. The php file contains some data (to pe precise prices) that are refreshed in a random amount of time (it can be 1 second, 10 seconds, 1 minute, etc; this is uncertain). Is there a way to compare the data in "test.php" and if it is not the same, upload the div with the new content? Thanks once again!! This forum always gives great support and positive feedback.
  22. Hello W3schools community. My name is manuel and i'm the owner of http://webguidesetup.com/ There i created a guide for the basic installation of WordPress and i hope someone could give me feedback. Link: http://webguidesetup.com/books/wordpress/index.html Thanks and best regards, manuel.
  23. Hi, I am using the php code as mentioned below to remove the verification email of the new user in my website which is powered by wordpress. However, once the user registers he gets the user name and password on the website screen. I would like to disable this and display "Your password has been sent to your registered email id". I want to user to check his email for the password. <?php /* Plugin Name: Remove Email Verification Plugin URI: Description: This plugin automatically activates user and blog signups, effectively disabling the need for the user to respond to an email Author: Barry at clearskys.net (Incsub) Version: 1.0.3 Author URI: */ /* Copyright 2007-2009 Incsub (http://incsub.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (Version 2 - GPLv2) as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Remove existing filters - we need to do this in the whitelist_options filter because there isn't another action between // the built in MU one and the saving, besides which we need to add our new_admin_email field to the list anyway. add_filter('whitelist_options', 'remove_mu_option_hooks'); // Blog signup - autoactivate add_filter( 'wpmu_signup_blog_notification', 'activate_on_blog_signup', 10, 7 ); // User signup - autoactivate add_filter( 'wpmu_signup_user_notification', 'activate_on_user_signup', 10, 4 ); // End activation message display add_action( 'signup_finished', 'activated_signup_finished', 1 ); // Change internal confirmation message - user-new.php add_filter('gettext', 'activated_newuser_msg', 10, 3); //Remove BP activation emails. add_filter('wp_mail', 'remove_bp_activation_emails'); function remove_bp_activation_emails($data) { if ( strstr($data['message'], 'To activate your user, please click the following link') || strstr($data['message'], 'To activate your blog, please click the following link') ) { unset( $data ); $data['message'] = ''; $data['to'] = ''; $data['subject'] = ''; } return $data; } function remove_mu_option_hooks($whitelist_options) { global $wp_filter; if(has_action('update_option_new_admin_email', 'update_option_new_admin_email')) { remove_action('update_option_new_admin_email', 'update_option_new_admin_email', 10, 2); // Add our own replacement action add_action('pre_update_option_new_admin_email', 'custom_update_option_new_admin_email', 10, 2); } $whitelist_options['general'][] = 'new_admin_email'; return $whitelist_options; } function custom_update_option_new_admin_email($new_value, $old_value) { global $current_site; // Update the correct fields update_option('admin_email', $new_value); // Return the old value so that the new_admin_email option isn't set return $old_value; } function activate_on_blog_signup($domain, $path, $title, $user, $user_email, $key, $meta) { global $current_site; // Rather than recreate the wheel, just activate the blog immediately $result = wpmu_activate_signup($key); if ( is_wp_error($result) ) { if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) { $signup = $result->get_error_data(); ?> <h2><?php _e('Congratulations! Your new blog is ready!'); ?></h2> <?php if( $signup->domain . $signup->path != '' ) { } } else { ?> <h2><?php _e('An error occurred during the signup'); ?></h2> <?php echo '<p>'.$result->get_error_message().'</p>'; } } else { extract($result); $url = get_blogaddress_by_id( (int) $blog_id); $user = new WP_User( (int) $user_id); ?> <h2><?php _e('Congratulations! Your new blog is ready!'); ?></h2> <div id="signup-welcome"> <p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p> <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $password; ?></p> </div> <?php if( !empty($url) ) : ?> <p class="view"><?php printf(__('You're all set up and ready to go. <a href="%1$s">View your site</a> or <a href="%2$s">Login</a>'), $url, $url . 'wp-login.php' ); ?></p> <?php else: ?> <?php endif; } // Now we need to hijack the sign up message so it isn't displayed ob_start(); return false; // Returns false so that the activation email isn't sent out to the user } function activate_on_user_signup($user, $user_email, $key, $meta) { global $current_site, $current_blog; // Output buffer in case we need to email instead of output $html = ''; // Rather than recreate the wheel, just activate the user immediately $result = wpmu_activate_signup($key); if ( is_wp_error($result) ) { if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) { $signup = $result->get_error_data(); $html .= '<h2>' . __('Hello, your account has been created!') . "</h2>n"; if( $signup->domain . $signup->path == '' ) { } else { } } else { $html .= '<h2>' . __('An error occurred during the signup') . "</h2>n"; $html .= '<p>'.$result->get_error_message().'</p>'; } } else { extract($result); $user = new WP_User( (int) $user_id); $html = '<h2>' . sprintf(__('Hello %s, your account has been created!'), $user->user_login ) . "</h2>n"; $html .= '<div id="signup-welcome">'; $html .= '<p><span class="h3">' . __('Username:') . '</span>' . $user->user_login . '</p>'; $html .= '<p><span class="h3">' . __('Password:') . '</span>' . $password . '</p>'; $html .= '</div>'; } // Check if we are passed in an admin area if(!is_admin() || !(isset($_POST['_wp_http_referer']) && strstr($_POST['_wp_http_referer'], 'user-new.php'))) { echo $html; } // Now we need to hijack the sign up message so it isn't displayed ob_start(); return false; // Returns false so that the activation email isn't sent out to the user } //Invitation email sent to new user. A confirmation link must be clicked before their account is created. function activated_newuser_msg($transtext, $normtext, $domain) { switch ($normtext) { // Plugin page text that we want to remove case 'Invitation email sent to new user. A confirmation link must be clicked before their account is created.': $transtext = __('The new user has been created and an email containing their account details has been sent to them.'); break; case 'If you change this we will send you an email at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>': $transtext = ''; break; } return $transtext; } function activated_signup_finished() { // Flush the activation buffer ob_end_clean(); } ?> remove verification email.txt
  24. On home page [Website link] there is sliding celebrity Images : on click of any celebrity it takes to it resp. pages which is working on Desktop / laptop browser , i mean click - link working , but same if i open in Any Cell Phones then `sliding images` is shown but `images` is `not click able` and it not going to resp. page of celebrity.I am using `wp-roundabout-pro` ( https://wordpress.org/plugins/wp-roundabout-pro/ ) plugin in my website ( `WordPress 3.8.4` )i know the plugin is not support to current version of my word-press... but In Desktop / laptop browser all working prefect.any idea what is the issue. please help me out... as if this issue is not short-out then my whole work will be wasted Below is plugin code : <?php $anims = array('lazySusan', 'waterWheel', 'figure8', 'square', 'conveyorBeltLeft', 'conveyorBeltRight', 'diagonalRingLeft', 'diagonalRingRight', 'rollerCoaster', 'tearDrop', 'theJuggler', 'goodbyeCruelWorld'); if(!in_array($animation, $anims)){ $animation='conveyorBeltLeft'; $asclass = ''; } else { $asclass = 'class="hideflow"'; } $sid = 'rbt-'.uniqid(); $out = '<ul '.$asclass.' id="'.$sid.'">'; $fwidth = intval($data[opt1]); $fheight = intval($data[opt2]); while($row = mysql_fetch_assoc($res)){ if($row[url]!='' && trim($row[url])!=' '){ $img = '<img src="'.get_image_thumb($row[url], 'w='.$fwidth.'&h='.$fheight).'" />'; } else { $img = ''; } if($row[title]!='' && trim($row[title])!=' '){ //$ttlxz='<span class="rbt-title"><span>'.$row[title].'</span></span>'; $ttlxz=''; } else { $ttlxz=''; } if($row[desc]!='' && trim($row[desc])!=' '){ //$descxz='<span class="rbt-content"><span>'.$row[desc].'</span></span>'; $descxz=''; } else { $descxz=''; } $out = $out.'<li style="background-color:'.$row[color].'">'.$ttlxz.''.$descxz.'<a href='.$row[desc].'>'.$img.'</a></li>'; } $out = $out.'</ul> <style type="text/css"> #'.$sid.' { list-style: none; padding: 0; margin: 0 auto; width: '.$data[opt5].'px; height: '.$data[opt6].'px; } #'.$sid.' .roundabout-moveable-item { height: '.$fheight.'px; width: '.$fwidth.'px; background-color: '.$data[opt4].'; text-align: left; cursor: pointer; overflow:hidden; } </style> <script> jQuery(document).ready(function() { jQuery("#'.$sid.'").roundabout({ autoplay: '.$data[opt7].', autoplayDuration: '.$data[opt9].'000, minOpacity: '.$data[opt10].', maxOpacity: '.$data[opt11].', reflect: '.$data[opt12].', enableDrag: '.$data[opt13].', dragAxis:"'.$data[opt3].'", shape: "'.$animation.'", autoplayPauseOnHover: '.$data[opt8].' }); }); </script> '; ?> Sample of HTML code generated : <div class="slider"> <ul id="rbt-5428f4c10c934" class="hideflow roundabout-holder" style="padding: 0px; position: relative;"> <li style="background-color: rgb(238, 238, 238); position: absolute; left: 684px; top: 58px; width: 137.19px; height: 82.314px; opacity: 0.19; z-index: 117; font-size: 6.4px;" class="roundabout-moveable-item"> <a href="http://www.thefansworld.com/celebfanpage/shahrukh-khan/"> <img src="http://www.thefansworld.com/wp-content/plugins/wp-roundabout-pro/cache/w=300&h=180___Shahrukh-Khan-Magazine-Photoshoot.jpg"> </a> </li> </ul> </div> I taught my a link have some issue but my anchor link is seem to be perfect then why its not working in mobile phones. Also one user told me that on his/her mobile phone its working but i have checked in Samsung , Nokia , Sony ,Tabs all phones ..but its not working -- means image is not clickable ,where on desktop / laptop its working fine
  25. Hello ,how can I include functionality for wordpress search on this static Markup: <div class="medium-4 columns sidebar"> <div class="row search"> <div class="small-12 columns"> <div class="row collapse"> <div class="small-8 columns"> <input type="text" placeholder="Cauta"> </div> <div class="small-2 columns end"> <a href="#" class="button postfix search_button"><i class="fa fa-search fa-lg"></i></a> </div> </div> </div> </div>
×
×
  • Create New...