Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

Hymies Records on "New plugin similar to Anarchy Media Player"

$
0
0

Our website features a blog which is about old records and local music in and around Minneapolis. We have been using Anarchy Media Player for years, but with recent updates now seems to show both a native audio player and the Anarchy player.

Here is our site: http://www.hymiesrecords.com

Most posts contain at least one or two tracks for people to stream.

Is there a plugin with a similar appearance to Anarchy Media Player. It appears that one has not been updated in some time. We appreciated that it was simple, and didn't take up much space for each track. We would also prefer not to reenter all the shortcodes for previous posts.

Thanks for any help you can offer.

Dave


thelackof on "Force "Link To" as "None" In Media"

$
0
0

The "Link To" is always set to "Media File".
I want it to naturally be set to "none".

Pol0023 on "change theme colors"

$
0
0

Hi,
I'm using the "fulgent theme, and I can't find how to change the green/blue color (#09a59c) I've tried to change every color in the style.css and nothing.. even I tried the plugin "Theme Tweaker" and nothing happens..

WebTrooper on "Dynamic Stylesheet and get_theme_mod() error"

$
0
0

I'm having an issue while trying to use a dynamic stylesheet, mystyle.css.php, getting the error "Fatal error: Call to undefined function get_theme_mod()"

I registered and enqueued the the stylesheet in my functions.php file, as follows:

wp_register_style('mystyle', get_template_directory_uri() . '/bc-parts/mystyle.css.php');
wp_enqueue_style('mystyle', get_template_directory_uri() . '/bc-parts/mystyle.css.php');

And this is the stylesheet:

<?php
header('Content-type: text/css');
?>

a:link, a:visited:link {
	color: <?php echo get_theme_mod(site_title_color);?>;

I'm using WordPress Customizer with Kirky plugin. My objective is to use a dynamic stylesheet rather than having all the generated styles output to the head of the theme.

What am I missing?

Thanks :)

deepaks85 on "Theme functionality to another theme"

$
0
0

Hello Sir,

I am currently using the tourpackage theme in wordpress. In this theme I have got some options like Add Package, Add Gallery, Add Testimonials, Add Price Table, Add Portfolio. Is there any way that I can incorporate these functions into another theme and use them.

Thank you in advance.
Deepak Saxena

qco on "Extending or Overriding Playlist Templates"

$
0
0

In the interest of not unnecessarily creating additional scripts or potentially introducing incompatible conflicts with built-in scripts, I'm working on trying to find ways to extend or override the templates and functionality created by the built-in [playist] shortcode, and it's associated Backbone.js based templates/functionality. In doing so, I've ran into a couple of problems, most likely due to being unfamiliar with Backbone.

I'm wanting to be able to create video playlist pages that can utilize the built-in [playlist] shortcode, but split the playing video and the playlist items themselves out into separate elements. I want the videos to remain in the main content area, and the playlist to show in the sidebar, or another defined area. I've gotten as far as overriding the shortcode to point to custom script and template definitions, and duplicating the wp-playlist.js file and wp_underscore_playlist_templates function, to at least, initially, modify the layout and data structure, but now, since the playlist is outside of the main Backbone view, I'm running into problems maintaining the functionality of jumping to new videos.

Has anyone worked with modifying the template files or creating customizations of the default playlist in this way?

peden on "Non compressed image"

$
0
0

Hi Wordpress Community,

Hope you are well. I'm trying to upload a non compressed image as a featured image to a Wordpress Page. Non compressed as not compressed at all by wordpress. It seems impossible. Wordpress always do a little something with it that decreases the image quality and increases the image size.

I have tried GIF, PNG, and JPEG files
I have tried to add the code:
"add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) );"
I have tried WP Smush
I have tried to upload a picture via ftp and insert it
I have tried Nelio External Featured Image

But none of these solutions do the job.

Do anyone here got some ideas?

Thanks!

alf3299 on "admin custom dashboard code"

$
0
0

Hi all,

would like to have some help. i am no expert in php but i understand and i can do some stuff. the help i need is.. lets say i want to display the number of registred users on the dashboard. i know how to create custome boxes but i dont know how to get the value from the database and display it on the dashboard.

can someone point me in the right direction or a tutorial on how to get this done please ?

thanks :)


WorldGlider on "Help! IT Challenged!"

$
0
0

I seem to have a malicious code at the end of my "Tagline". Appearance > Current Theme > Blue Clouds > Customize > Site Identity > Tagline > Worldwide Pargaliding Adventure (malicious code)www.paraglidetandem.net I can't seem to find it in the "Editor" anywhere. Please help.

Coletta on "Problem with if in category!"

$
0
0

Hi!!
I am having a trouble with this website http://goo.gl/47oXzi

I wanna make that, when a property is in X category, it be shown a div that contains a red bar that says "rented".

All is done ok, but i am having a trouble with "if"

This is the code:

$(window).load(function(){
$(".property-featured-image").each(function(){
PIheight = $(this).find("img").outerHeight();
if (is_category('36') || in_category('36')) {
$(this).prepend("<div class='overlay' style='line-height:"+PIheight+"px'><img src='http://micucciopropiedades.com/wp-content/uploads/2015/10/alquilado.png'></div>");
}
});

What is wrong??
thank you!!

angelo1122 on "How to float the search form to top upon click"

$
0
0

I have a search form configured here, on revolution slider. I want it to display as a bar, and upon click on bar it should float on the top and display the full form.

The live example of what i am looking is here
I am looking for some plugin or a script to do the same thing, anyone can help?

Ciredor on "Duplicate default gallery creator ?"

$
0
0

I have slider plugin in form of shortcode that's very similar to default gallery, using the same parameters (other than columns). So when i want to create one i use default gallery creator and simply change part of generated shortcode from [gallery... to [slider...

Is it possible to duplicate that gallery creator changing just name and shortcode output name ?

Or adding some kind of dropdown to select shortcode name output only ?

say_hello on "jobberbase-the powerful jobboard-software - any takers?"

$
0
0

dear community,

i was testing some of the wordpress-plugins for wordpress.

i found some very powerful ones - eg.the job-board-manager - cf.
https://wordpress.org/plugins/job-board-manager/

but there is a very poerful stand alone jobboard too: see jobberbase.com
the powerful & featurerich jobboard is looking for a new developer.
are you interested to take over the development

note it one of the best jobboard-software on the whlle net - and it is free

what about taking over this great project?

love to hear from you

Agunter999 on "Remove Site Name on Admin Bar for all but admins"

$
0
0

How can I remove the Site Name link item from the admin bar for all apart from admin (I don't mind if moderators can get it)

I have tried quite a few codes and none seem to understand. What should I be using?

fb-creations on "Probleme with formatting file"

$
0
0

Hi, i am codding a filter widget witch sends paramters with $_GET in order to customize The Loop whith WP_Query.

In order to filter width several taxonomies terms i have this :
mytax[]=term1, mytax[]=term2 ...

i did a var_dump of WP_Query objetc and all is ok, but results are not displayed since i have mytax[] and i get 2 errors :

Warning: preg_match() expects parameter 2 to be string, array given in C:\xampp\htdocs\wordpress-4.3\wp-includes\formatting.php on line 1067

Warning: strip_tags() expects parameter 1 to be string, array given in C:\xampp\htdocs\wordpress-4.3\wp-includes\formatting.php on line 1505

When i have only mytax=term1 there is ne problem.
How can i do it ? Is there another way to do it ?
Thank you for help.


Swenn on "Best solution for Wordpress Wiki?"

$
0
0

I'm looking for an up-to-date best solution for adding a Wiki to my Wordpress-based website.

I have found several websites covering this topic, most of them are about integrating MediaWiki into Wordpress, but they all rely on ancient plugins that have long since been dropped by their authors.

Has anyone had any success with adding a Wiki to their Wordpress based website recently? And if so, how did you do it?

GCSkye on "If Author replace username with custom field information"

$
0
0

Hey!

I have a specific author account that I use to make posts. Each post made has a few custom fields. I'd like the value of one of them to show up in place of his username.

So...

If AUTHORACCOUNT1 makes a post with the following custom field:

Custom Field =
Custom Field Name = BOB
Custom Field Value = BOBISHERE

It should replace his name with BOBISHERE.

Thanks!

aum001 on "Filtering Posts By Category Using Dual Dropdown Lists"

$
0
0

I have created two Custom Post Types with custom meta boxes. I am needing to add two dropdown lists into one of my meta boxes to allow me to select a Post from a list based upon the Category selected in the prior list. I envision populating the Category list when the Create Post pages loads in the Dashboard. Then once a category is selected the second dropdown list would then populate using OnChange with the posts from that particular category which I can then select.

I have looked everywhere and can't find anything to guide me into creating it. Does anyone know where I could look or are able to offer some insights into doing this?

Thanks in advance and any help is greatly appreciated.

- M

pikosan on "IE Mobile 11 won't allow scroll desktop site version"

$
0
0

Hello everyone,
I apologise in advance if I posted it into the wrong category.
I made up a website in Wordpress and uploaded it to the server. I also added a plugin WPTouch which allows the site to go to mobile version once viewed on mobile devices. It works well on most of browsers I checked apart from my Windows Phone Lumia 640 which has browser IE Mobile 11. Now the problem is that on all other browsers it goes straight to the mobile version and if I prefer the desktop version it will allow scrolling web page down and choosing it. On IE Mobile 11 quite often it goes to the desktop version and there is no scroll bar whatsoever. I cannot get to the bottom of the page. Would anyone recommend how to fix it please?
Thank you.

immoon on "Set uploaded image or image url as featured image"

$
0
0

I am creating a custom submit form (yes, its heavily customized to suit my needs) but the only problem is, when I try to upload the image (via Dropzone.js) or image url, the image doesn't upload and it is not set as featured image. The uploader can only upload images 1 at a time. Am I doing something wrong here? Unfortunately, I cannot link it to a website, as this is all done on localhost. Sorry if the code is messy, just making a basic functioning script before I secure it and clean it up.

Here's the code.
HEADING

<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/ta.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.0.1/dropzone.js"></script>
 <link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.0.1/dropzone.css" rel="stylesheet" />
 <script type="text/javascript">

 Dropzone.autoDiscover = false;
 Dropzone.options.myAwesomeDropzone = {
  maxFiles: 1,
  accept: function(file, done) {
    console.log("uploaded");
    done();
  },
  init: function() {
    this.on("maxfilesexceeded", function(file){
        alert("No more files please!");
    });
  }
};
    $(document).ready(function() {
$( "#showurlupload" ).click(function() {
  $( "#dropupload" ).slideToggle( "slow", function() {
    // Animation complete.
      $( "#urlupload" ).slideToggle( "slow", function() {
    // Animation complete.
  });
  });
});
      $("div#myAwesomeDropzone").dropzone({
        url: "/file/post"
      });
    });</script>
</head>

PAGE

<?php
// Check if the form was submitted
if( 'POST' == $_SERVER['REQUEST_METHOD'] && !empty( $_POST['action'] )) {

        // Do some minor form validation to make sure there is content
        if (isset ($_POST['title'])) {
                $title =  $_POST['title'];
        } else {
                echo 'Please enter a title';
        }
 /*       if (isset ($_POST['description'])) {
                $description = htmlentities(trim(stripcslashes($_POST['description'])));
    } else {
        echo 'Please enter the content';
        }
        */

        $tags = $_POST['post_tags'];
        $source = $_POST['source'];
        $imgurl = $_POST['imgurl'];

        // Add the content of the form to $post as an array
        $type = trim($_POST['Type']);
        $post = array(
                'post_title'    => $title,
                'post_content'  => $description,
                'post_category' =>   array($_POST['cat']),  // Usable for custom taxonomies too
                'post_status'   => 'pending',                     // Choose: publish, preview, future, etc.
                'tags_input'    => array($tags),
                'comment_status' => 'open',
                'post_author' => '2',
                'source'    =>   $source
        );
        $post_id = wp_insert_post($post);
        wp_set_post_terms($post_id,$type,'Type',true);
        add_post_meta($post_id, 'source', $source, false);
        $upload_dir = wp_upload_dir();
        // if using image url
        if ($imgurl) {
            $image_data = file_get_contents($imgurl);
            $filename = basename($imgurl);
            if(wp_mkdir_p($upload_dir['path']))
                $file = $upload_dir['path'] . '/' . $filename;
            else
                $file = $upload_dir['basedir'] . '/' . $filename;
            file_put_contents($file, $image_data);

            $wp_filetype = wp_check_filetype($filename, null );
            $attachment = array(
                'post_mime_type' => $wp_filetype['type'],
                'post_title' => sanitize_file_name($filename),
                'post_content' => '',
                'post_status' => 'inherit'
            );
            $attach_id = wp_insert_attachment( $attachment, $file, $post_id );
            require_once(ABSPATH . 'wp-admin/includes/image.php');
            $attach_data = wp_generate_attachment_metadata( $attach_id, $file );
            wp_update_attachment_metadata( $attach_id, $attach_data );

            set_post_thumbnail( $post_id, $attach_id );
        } else if ($_FILES) {
                foreach ($_FILES as $file => $array) {
                $filename = $file;
                if(wp_mkdir_p($upload_dir['path']))
                    $file = $upload_dir['path'] . '/' . $filename;
                else
                    $file = $upload_dir['basedir'] . '/' . $filename;
                file_put_contents($file, $image_data);

                $wp_filetype = wp_check_filetype($filename, null );
                $attachment = array(
                    'post_mime_type' => $wp_filetype['type'],
                    'post_title' => sanitize_file_name($filename),
                    'post_content' => '',
                    'post_status' => 'inherit'
                );
                $attach_id = wp_insert_attachment( $attachment, $file, $post_id );
                require_once(ABSPATH . 'wp-admin/includes/image.php');
                $attach_data = wp_generate_attachment_metadata( $attach_id, $file );
                wp_update_attachment_metadata( $attach_id, $attach_data );

                set_post_thumbnail( $post_id, $attach_id );
                }
             }

        wp_redirect( home_url('/listing-submitted/') ); // redirect to home page after submit
        exit();
}
 // end IF
?>
<?php get_header() ?>
<div class="container">
                        <h1>Share something awesome!</h1>

<!--SUBMIT POST-->
                        <form id="new_post" name="new_post" class="form-horizontal" method="post" enctype="multipart/form-data">
<div id="dropupload"><div class="dropzone dropzone-previews" id="myAwesomeDropzone"></div></div>
                                <a href="#" class="lead" id="showurlupload">Upload via URL</a>
                                <div id="urlupload" style="display:none;">
                                <div class="form-group">
                                <label for="imgurl" class="col-sm-3 control-label">Image URL</label>
                                    <div class="col-sm-9">
                                        <input type="text" id="imgurl" class="form-control required" value="" tabindex="1" size="20" name="imgurl" />
                                    </div>
                                </div>
                                </div>
                                <div class="form-group">
                                <label for="title" class="col-sm-3 control-label">Title</label>
                                    <div class="col-sm-9">
                                        <input type="text" id="title" class="form-control required" value="" tabindex="1" size="20" name="title" />
                                    </div>
                                </div>
                                <div class="form-group">
                                        <label for="cat" class="col-sm-3 control-label">Content Type:</label>
                                        <div class="col-sm-9">
                                        <?php wp_dropdown_categories( 'tab_index=10&taxonomy=category&hide_empty=0' ); ?>
                                    </div>
</div>
<!-- Source -->
                                <div class="form-group">
                                        <label for="source" class="col-sm-3 control-label">Source</label>
                                        <div class="col-sm-9">
                                        <input type="text" value="" id="source" class="form-control" tabindex="20" name="source" />
                                    </div>
 </div>
<!-- Listing Services -->
                                <div class="form-group">
                                        <label for="post_tags" class="col-sm-3 control-label">Tags (7 max)</label>
                                        <div class="col-sm-9">
<div class="tagsinput-primary"><input type="text" value="" tabindex="35" name="post_tags" id="post_tags" class="tagsinput" data-role="tagsinput" />
</div>
</div>
 </div>
                                <input type="hidden" name="post_type" id="post_type" value="domande" />
                                <input type="hidden" name="action" value="post" />

                                <input type="submit" value="Submit" class="btn btn-primary btn-lg" tabindex="6" id="submit" name="submit" />

                                <?php wp_nonce_field( 'new-post' ); ?>
                        </form>
Viewing all 8245 articles
Browse latest View live




Latest Images