Forum Replies Created

Viewing 15 replies - 16 through 30 (of 81 total)
  • Sure,

    if you want to reveal more content on a click without reloading the page or navigating to another, thats fairly simple javascript even more so if your using a library like jquery.
    http://jsfiddle.net/o1pwrzkf/1/

    The content you want hidden needs to be in a div or span with the css style set to display none,

    <div id="hidden-content" style="display:none">.....</div>

    then you’re link, button, image…… whatever you want people to click on displays it something like

    <a  onClick="$('#hidden-content').toggle();">Read More</a>

    Building this into your theme … depends on how and where you want to us it..

    You might be able to used the google Youtube data API

    https://developers.google.com/youtube/

    But that might only give you access to your own videos.. the other alternative is to scrape the information i.e. load the video page in question in code and parse it for the information you want, but thats not exactly kosher behaviour and don’t be surprised if your server gets blocked by google.

    If google haven’t exposed the info in an api then they don’t want you to steal it..!

    I think your miss understanding what the more button in the editor is for, its to abbreviate a post, i.e. tell wordpress where to break the post for the excerpt so you don’t have to create it separately..

    it does absolutely nothing on a page… probably the source of your wows.

    plus it does nothing on a single post view its simply to help WordPress when showing archives. or whenever the theme asks for the_excerpt as apposed to the_content..

    If you want that effect with a page you have to manually do it with two pages, ie. write your excerpt text on one page with a read more link in the content at the bottom that links to a second page with the full content on it..

    🙁 hope that helps

    Hi,

    your using a commercial theme, you should contact the seller and maybe look here?
    http://www.docs.purethemes.net/astrum/

    From the source code of you site I can see your using the plugin Aqua Page builder if its that your having issues with try posting here to get help from the plugin developer
    https://wordpress.org/support/plugin/aqua-page-builder

    Google analytics takes 24hr to update, but their is a live (beta) section which lets you see who’s on you site right now …

    hope you figure it out 🙂

    Forum: Hacks
    In reply to: CSS linked SVG search icon

    There are a couple of ways you can do this… and it all depends on what your actually trying to achieve,

    first off using a SVG is the same as using any image… so something like this would apply
    http://stackoverflow.com/questions/195632/how-to-change-an-input-button-image-using-css

    Im guessing you want to use a svg/vector for scalability and retina displays. so if all you want to do is put a vector icon on your button them maybe look at
    http://fortawesome.github.io/Font-Awesome/

    which once you’ve included the stylesheet and fonts would work like

    <form method="get" id="searchform" action="<?php echo home_url(); ?>/">
    	<input type="text" value="<?php _e('Search','revoke'); ?>" onclick="value=''" name="s" id="s" />
    	<button type="submit" id="searchsubmit" /><?php _e('Search','revoke'); ?><i class="fa fa-search"></i></button>
    </form>

    http://fortawesome.github.io/Font-Awesome/icon/search/

    .by-author { display: none; }

    only applies if the specific html your trying to hide has the class “by-author” if the theme developer called it something else then that line of css is useless..

    the easiest way to do what you want is with CSS like that but without knowing what your site address we cant view your source code to tell you what the correct CSS should be..

    Use one of these as your base theme, both are bootstrap starter themes. create a child theme,

    http://roots.io
    http://bootstrapwp.rachelbaker.me/

    from their add the custom css and images from your bootstrap based theme to your child theme,

    ( You may have to also add/change the html in the template to take advantage of the custom styles of your bootstrap based theme )

    Alt. – look at how these two bootstrap based wp themes are built, build up your original theme with that knowledge…

    By the looks of it you have some security plugins installed, one of which has “blacklisted” your ip address,

    If your completely locked out, you can disable plugins by moving them out of the plugin folder one by one,

    or just renaming the plugins folder plugins.old via ftp will disable all the plugins in one go. and it should let you back in.

    I sound like a permissions problem, i.e. the web server cant write to the wp-content folder, which contains the uploads folder and plugins folder.

    I have no idea how to set file permissions on a NAS install, if you can ftp to where you’ve installed wordpress you should be able to change the folders permissions with your ftp client, you may need to do it recursively ….

    Google analytics..
    https://www.google.co.uk/analytics/

    sign up, add the js code to your template thats it.

    You don’t have to use classes there just useful for separating out logic blocks and name-spacing your code.

    <?php
    /*
    Plugin Name: Custom XMLRPC funcs
    URI: http://....
    Description: Adds WNAG PROFILE and Session storage to wordpress
    Author: Geraint P
    Version: 0.2-bleeding-Consolodated
    */
    
    function gcp_custrpc_init(){
    	add_filter('xmlrpc_methods', 'gcp_custrpc_xmlrpc_methods' ) );
    }
    add_action('init', 'gcp_custrpc_init', 999);
    
    function gcp_custrpc_xmlrpc_methods( $methods )
    {
    	$methods[ 'java.test'    ] = 'gcp_custrpc_test';
    	$methods[ 'java.AddUser' ] = 'gcp_custrpc_add_user';
    
    	$methods[ 'java.EditUser'   ] = 'gcp_custrpc_edit_user';
    	$methods[ 'java.DeleteUser' ] = 'gcp_custrpc_delete_user';
    
    	return $methods;
    }
    
    function gcp_custrpc_test($args)
    {
    	return 'Hello World!';
    }
    
    // Adds a subscriber to the site.
    function gcp_custrpc_add_user($args)
    {
    	require_once(ABSPATH . WPINC . '/registration.php');
    
    	gcp_custrpc_escape($args);
    
    	// !!! CHANGE to your check http referrer !!! //
    	/*
    	$secretkey = $args[0];
    	if( $secretkey != $secret ):
    		return (new IXR_Error(401, __('Access Denied. Invalid Key.')));
    	endif;
    	*/
    
    	$username	= $args[1];
    	$password	= $args[2];
    
    	$user_id = username_exists( $username );
    
    	if ( !$user_id )
    	{
    		$user_id = wp_create_user($username, $password, $username);
    
    		gcp_custrpc_new_user_notification( $user_id, $password );
    		return $user_id;
    
    	} else {
    		return(new IXR_Error(401, __('User already exists.  Password inherited.')));
    	}
    
    	return(new IXR_Error(412, __(' Precondition Failed')));
    }
    
    function gcp_custrpc_edit_user($args)
    {
    	# code...
    }
    
    function gcp_custrpc_delete_user($args)
    {
    	# code...
    }
    
    // Utilites
    function gcp_custrpc_new_user_notification( $user_id, $user_pass )
    {
    		$user = new WP_User($user_id);
    		#.....See original example
    }
    
    function gcp_custrpc_escape(&$array) {
    	#.....See original example
    }
    
    ?>

    That code was just an example of a custom xmlrpc methods that i’d made to add a user not a full plugin, but it wouldn’t take a massive amount of code to extend it ….

    <?php
    /*
    Plugin Name: Custom XMLRPC funcs
    URI: http://....
    Description: Adds WNAG PROFILE and Session storage to wordpress
    Author: Geraint P
    Version: 0.1-bleeding
    */
    
    function gcp_cusrpc_init(){
    	require_once './class-wnag-xmlrpc.php';
    	add_filter('xmlrpc_methods', array( WNAG_XMLRPC, 'xmlrpc_methods' ) );
    }
    add_action('init', 'gcp_cusrpc_init', 999);
    
    ?>

    thats all it would take to load that class and register those methods,

    Hmm,

    I think you can, but it not anything I’ve ever tried or wanted to do, but by the looks of it you can and a quick google for “load wordpress as a module” got me to this
    http://osamashabrez.com/load-wordpress-content-outside-the-bolg/

    and you can and I regularly do run WP in its own directory, which in essence lets you separate your content from the app/system files.
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    I think you just needed to init WP. if you look at index.php & wp-blog-header.php to see how WP actually loads.

    its probably not the best way to go about it but you should be able to have

    www/custom.php
    www/wordpress/wp-load.php
    www/wordpress/wp-config.php
    www/wordpress/{normally installed and configured site}etc…
    www/wordpress/wp-blog-header.php

    where custom.php is something like:

    <?php
       // Include WordPress
        define('WP_USE_THEMES', false);
        require('./www/wp-load.php');
        wp();
     wp_list_authors('show_fullname=1&optioncount=1&orderby=post_count&order=DESC&number=3');
    ?>
Viewing 15 replies - 16 through 30 (of 81 total)