w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Jquery conflict with WordPress Tinymce
Jquery no conflict may solve your problem <script type="text/javascript" src="other_lib.js"></script> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $.noConflict(); // Code that uses other library's $ can follow here. </script>

Categories : Jquery

Wordpress jCarousel jQuery Conflict
Change the last script to: <script type="text/javascript"> jQuery("ul.products").last().addClass("jcarousel-skin-tango"); jQuery('ul.jcarousel-skin-tango').attr('id', 'mycarousel') </script> Here it is working - http://jsbin.com/eruweb/1

Categories : Jquery

Wordpress javascript conflict template and calendar
You are checking the length property of an identifier that has never been declared (i.e. is not a valid variable). A construct along the lines of the following would remedy that issue: Option 1: if (typeof yourVariable !== "undefined") { var theLength = yourVariable.length; } else { var theLength = 0; } Option 2: var yourVariable = []; if ( /* some condition */ ) { // reassign yourVariable; } var theLength = yourVariable.length; My guess would be, that, as of now, your code looks like option two, without the first line, meaning that you declare the variable inside a conditional and check its length outside the conditional regardless of whether it was met. But that's just a guess.

Categories : Javascript

Fixing a JavaScript conflict in Wordpress, help using wp_enqueue_script
You have a Error = Object [object Object] has no method 'jCountdown' Maybe your plugin hasn't loaded properly... Remove the jQuery you added jQuery.1.10.2 so i am not supprised that it doesn't work.. PLUS - WordPress has already added a version of jQuery.1.8.3 Now, in your test file you have this var startY = 840; var stopY = 1900; $(window).scroll(function(){ checkY(); }); function checkY() { console.log($(window).scrollTop()); if($(window).scrollTop() > startY && $(window).scrollTop() <= stopY) { console.log("Show"); $('.fixedDiv').fadeIn("slow"); } else { console.log("Hide"); $('.fixedDiv').fadeOut(); } } checkY(); Wordpress uses jQuery.noConflict(); by default so you need to make sure you wra

Categories : Javascript

Wordpress Plugin Jquery Conflict Issue
I'm using http://trentrichardson.com/examples/timepicker/ in my ACF Date and Timepicker plugin, and I don't have any conflicts with WP jquery. Please see input_admin_enqueue_scripts() in date_time_picker-v4.php (in a non ACF add-on, replace the acf-datepicker dependency with jquery-ui-datepicker).

Categories : Jquery

Conflict when calling two versions of jQuery in Wordpress theme
You need to use jquery's noconflict mode, and pass true parameter to it in case your second functionality will use 'jQuery' global variable except for '$' Check out more information about it here

Categories : Jquery

Is this a jquery conflict, or would this be some other type of issue on my WordPress domain?
use <script src="http://www.occupyhln.org/wp-includes/js/jquery/jquery.js">x3C/script> instead <script src="http://www.occupyhln.org/wp-includes/js/jquery/jquery.js"></script> i replaced </script> with x3C/script>

Categories : Jquery

How to remove Conflict in a jQuery plugin in a wordpress website?
Try wrapping your code like this: (function($){ $(document).ready(function(){ //document ready code here }); })(jQuery); Wrap your filter.js plugin with the same wrapper, ie: (function($){ //filter.js code here })(jQuery); If that's not working - make sure jQuery is included on the page.

Categories : Javascript

wordpress multisite from exsiting 4 wordpress directory install
You can do it , but before you need to get backup for the all websites, also import all your posts from all the wordpress installation Create a Network in your main domain , for your reference Create_Network Then create your child website, based on the Sub-domains — a domain-based network in which on-demand sites use subdomains Sub-directories — a path-based network in which on-demand sites use paths so your child website should be like examole.com/university example.com/school example.com/exam Once you have successfully created your child websites then there would be a separate wp-admin for each child websites in your Main wp-admin, once you get logged in as admin , At the left of your WordPress toolbar, My Sites is now the second item. There, all your sites are l

Categories : PHP

WordPress Layer Slider - Weird behavior, possible jQuery Conflict?
Even I am experiencing (but different) errors. The slider works okay when I am working on it. But when I want to work the next day, it appears broke. Maybe only the first slide animates then it apparently goes in a loop (the revolving icon keeps rotating). This happened thrice, in different subdomains and fresh installs and no other plugin. I used ProConsultant from Premopress and Genesis+Executive themes and same result. the layerslider plugin is latest version 4.6.0 and I used the HomeSlider widget for both, wordpress 3.6 How to troubleshoot?

Categories : Jquery

Why is "local delete, incoming delete upon update" of a directory a conflict?
I started digging in to this, and I think it may come from the fact that SVN is not entirely sure whether the delete is a simple delete, or actually a move (a copy, and a delete). From the documentation, it states: Because a move in Subversion is implemented as a copy operation followed by a delete operation, and these two operations cannot be easily related to one another during an update, all Subversion can warn you about is an incoming delete operation on a locally modified file. This delete operation may be part of a move, or it could be a genuine delete operation. So it sounds like to be safe, SVN warns you instead that you should update. Of course, it could ignore the delete "conflict", and simply copy over the newly moved folder, but I think some metadata may perhaps be los

Categories : Svn

ON CONFLICT IGNORE - How to insert data into a dupes table if there is a conflict instead of ignoring
Are you looking for this? Tables CREATE TABLE programs ( programId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, programName TEXT NOT NULL, episodeName TEXT, UNIQUE(programName, episodeName) ON CONFLICT IGNORE ); CREATE TABLE program_dupes ( programId INTEGER, programName TEXT, episodeName TEXT ); Trigger CREATE TRIGGER tg_programs_insert BEFORE INSERT ON programs FOR EACH ROW BEGIN INSERT INTO program_dupes (programId, programName, episodeName) SELECT programId, NEW.programName, NEW.episodeName FROM programs WHERE programName = NEW.programName AND episodeName = NEW.episodeName; END Here is SQLFiddle demo

Categories : SQL

How to use wordpress outside installation directory
Change your site url from http://www.site.com/blog/ to http://www.site.com/ Read http://codex.wordpress.org/Changing_The_Site_URL In database it would be found in wp_options table

Categories : PHP

Can't enter non wordpress sub directory
Have you tried to just add an exclusion to the word press rules? For example: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^de-admin/ - [L] RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> Also, unrelated but you have two of these rules: RewriteRule ^/(.+)/$ /$1 [R=301,L] And they'll never match because URI's that are passed through rules in an htaccess file has the leading slash stripped off. So you need to remove it: RewriteRule ^(.+)/$ /$1 [R=301,L]

Categories : Wordpress

add third parameter to wordpress url
Is this a Custom Post Type? If it is, you have more options than not. Within the register_post_type()'s array you can enter an argument for 'rewrite' to change the slug name and hack in specific rewrite rules for that particular CPT. I have put this project away because of its complexity and if you find an answer I'd love to hear it. Here is my notes on the matter. register_post_type(array( //options 'rewrite' => array( 'slug' => 'beach', //a slug used to identify the post type in URLs. 'with_front' => false, 'feed' => true, 'pages' => true ), dreamdare.org shibashake.com1 shibashake.com2 Beware of wp.tutsplus very often misinformation is offered there by authors themselves. wp.tutsplus.com

Categories : PHP

Mask a forwarded url to wordpress in a directory
One really simple solution is to add a few lines to the .htaccess file in your /wordpress folder. This file is created during the installation, so it should be there. It probably contains the following: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Try adding these 3 lines: RewriteCond %{HTTP_HOST} !newbusiness.com$ [NC] RewriteCond %{REQUEST_URI} clientsite.com/wordpress [NC] RewriteRule ^(.*)clientsite.com/wordpress(.*)$ $1newbusiness.com$2 [L,R=301] right before </IfModule>

Categories : Wordpress

Redirect sub directory name as a parameter to other site
Try adding this to the htaccess file in your document root: RedirectMatch 301 ^/embed/([0-9]+) http://embed.cbplayer/player.swf?config=http://sub.site.com/cbplayer/embed_player.php?vid=$1 Or if you would rather use mod_rewrite: RewriteRule ^/?embed/([0-9]+) http://embed.cbplayer/player.swf?config=http://sub.site.com/cbplayer/embed_player.php?vid=$1 [L,R=301]

Categories : Htaccess

Active Directory integration with Wordpress and LDAP
Here is a guide / code snippit for authenticating using PHP and active directory. If you are dead set on retrieving ALL users for some reason simply modify the filter, and then remove the break statement in the for loop. http://www.exchangecore.com/blog/how-use-ldap-active-directory-authentication-php/

Categories : PHP

Wordpress get_categories can not find out children directory
you can get the child category of a parent category by the following way <?php $subcategories = get_categories('&child_of=1&hide_empty'); // List subcategories of category '4' (even the ones with no posts in them) echo count($subcategories); echo '<ul>'; foreach ($subcategories as $subcategory) { echo sprintf('<li><a href="%s">%s</a></li>', get_category_link($subcategory->term_id), apply_filters('get_term', $subcategory->name)); } echo '</ul>'; ?>

Categories : Wordpress

How do I move a Wordpress page up a directory level?
use rewrite rules. e.g. RewriteRule ^videos/(.*)$ /blog/videos/$1 [L] http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule

Categories : Wordpress

Error 403 Forbidden if I go to a wordpress url that is the same of an existing directory
Just ran into this problem and found an answer here: http://jeffreybarke.net/2011/01/wordpress-permalinks-403-forbidden-error/ In short, you need to write a few lines into your .htaccess which specify the folder names with the problem: # Fix 403 errors on existing directories; WordPress overrides. RewriteCond %{REQUEST_URI} ^/(folder1|folder2|etc)/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . /index.php [L]

Categories : PHP

WIX: Change install directory from c# class parameter?
You can use one of these custom action to change the property value during install: a custom action which changes the directory property value scheduled before CostFinalize a type 35 custom action which changes the directory path (should be scheduled after CostFinalize) For example: <CustomAction Id="ChangeDir" Directory="INSTALLFOLDER" Value="[SomeValueorPropertyhere]"/> 2.Schedule the action during the InstallExecution phase (must be after the CostFinalize step): <Custom Action="ChangeDir" After="CostFinalize"></Custom>

Categories : C#

Wordpress: Unable to upload file to an existing directory
In shell: chown -R www-data:www-data wp-content/uploads chmod -R w+g wp-content/uploads Not familiar with CentOS flavour so I may have it all wrong. EDIT: With a bit of reading around I think I'll take a guess that this is a server issue, in-so-far-as the WordPress framework not getting on with PHP in certain OS environments. It seems some others have had problems creating new 'month' folders in certain server setups. WordPress is supposed to create new folders under the user/group www-data or apache (whichever the correct process alias for Linux), but this can sometimes fail. Some more suggestions: 1) In WordPress Admin Panel -> Settings -> Media, check that the 'Store uploads in this folder' textfield is as you would expect it to be. Perhaps even try explicitly giving it the 'app/

Categories : Wordpress

Wordpress IIS 6.0 Virtual Directory change to Default Website
Why do you use Default website? For organizational and performance matters follow these steps : 1) Create a new directory in C:inetpubwwwroot named wordpress and copy the contents of the directory from C:wp 2) Check if the directory has the proper permissions (IIS_WPG) read/write/modify) 3) Create a new application pool named "Wordpress" in IIS 4) Create a New Web Site named Wordpress in IIS with the proper home directory C:inetpubwwwrootwordpress Don't forget to choose the corresponding application pool in the website settings 5) Optionally disable the default website, or change the settings or url on it I do not know if it will work correctly, it seems to me that there are problems with URL REWRITING and IIS6, and Wordpress works better with Apache

Categories : Wordpress

wordpress site ignoring sub directory when htaccess present
I just tested a setup based off of your question. Here's an example of the hierarchy from what I could gather in your post: public_html/ (all WP install files here) public_html/admin/ (here I created a new folder similar to your question) public_html/admin/index.php (test file - just echos a line of text) public_html/admin/.htaccess (currently blank) So my .htaccess within the new subdir that's spawned off of the WP root is blank. I'm not sure what kind of auth things would/should be in there. If I access "website/admin/" - the test line echos just fine. I don't see any 404s. Could you maybe provide a little more detail so I can try to better replicate the issue you're seeing?

Categories : Wordpress

Conflict resolution or conflict avoidance in GIT?
Should we be using branches to work separately? Yes: he should have done a git pull --rebase (for a branch not yet pushed), before pushing his changes, at which point you would have been able to merge his branch as a simple fast-forward merge. See also merge vs. rebase and a similar blog post. (from Git Is Your Friend not a Foe Vol. 4: Rebasing) More generally, yes, merge locally before pushing.

Categories : GIT

Wordpress: How can I add url GET parameter to my main menu items
The problem is that you are attempting to pass a boolean value in your Ajax call with the variable homeclick. GET requests simply use text because the data is passed thru the URL, so if you are wanting a logical/boolean type you can use either "true" and "false" in text or perhaps 0 and 1. Also you have a syntax error, see below. Try the following: In you ajax call, fix the syntax as well as set homeclick to "true" as follows: data: ({ homeclick: 'true' }),. And in your php, change the if condition for variable $homeclick as follows: $homeclick == 'true'. You may want to consider using a POST method if you want to utilize a boolean.

Categories : PHP

WordPress failed to open directory error to read folder
you have to use get_bloginfo() instead of bloginfo(), like this: $filePath=get_bloginfo('template_url').'/images/empl'; Why? From the codex: [bloginfo()] always prints a result to the browser. If you need the values for use in PHP, use get_bloginfo().

Categories : Wordpress

getting 404 error on admin panel for sub-directory multisite on a sub-domain in wordpress
there is no .htaccess file in the IIS server, I have a web.config file that is generated by wordpress itself at the time on installation of multisite. web.config generated by wordpress <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="WordPress Rule 1" stopProcessing="true"> <match url="^index.php$" ignoreCase="false" /> <action type="None" /> </rule> <rule name="WordPress Rule 2" stopProcessing="true"> <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" /> <action type="Redirect" url="{R:1}wp-admin/" redirec

Categories : Wordpress

Wordpress Custom Post Type Permalink Below Root Directory
If WordPress is handling both the blog and the pages for the products and peoples, you may want to rethink your folder structure. You can still keep most of WordPress where it is (the /blog/ subdirectory), and move its index.php and .htaccess files up to the root. See Giving WordPress Its Own Directory: Using a pre-existing subdirectory install. That being said, if you really don't want to move anything, then you need a more complicated programmatic solution. For that, you need to use the WordPress Rewrite API. The trick is to use its various functions (add_rewrite_rule, add_rewrite_tag, etc.) to create a set of rules WordPress will recognize but then write your own .htaccess file in the root of your website, above the WordPress root folder. So, if you did something like this… <?ph

Categories : Wordpress

Wordpress - extra 'pretty' parameter on the URL string. Mod_rewrite?
You don't need to do anything with .htaccess or mod_rewrite since you are using Wordpress. Wordpress has a built in system for handling rewrite rules. You can also set up your URL parameters right in the function. The function is add_rewrite_rule() and the example in the codex is pretty good. I can walk you through it, though, so you can see exactly what is going on. Take the following rewrite rule from the example: add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?page_id=12&food=$matches[1]&variety=$matches[2]','top'); First, lets go over the function arguments. The first argument is the regex for your rewrite. If this regex finds a match on the current URL, your rewrite will kick in. Any URL parameters will be loaded into a $matches array to be used later in the sec

Categories : Wordpress

Detecting parameter names in php function for wordpress shortcode?
The shortcode is explicitly looking for $text. [button url="http://google.com" color="black" size="small" text="Button Text"] Typically the variable that is set when you use the open/close shortcode is $content, per the Shortcode API. Another fix would be to change the shortcode to look for $content instead of $text.

Categories : PHP

Imagick or header issue in wordpress and save that image to specific directory
You should use an image tag with the src tags containing the direct or base64 version of the image. First example would be direct: echo '<img src="http://localhost/wordpress3.5/'.$_SESSION['imgname'].'">'; Second would be using base64 with the data URI scheme, PHP Example: echo '<img src="data:image/png;base64,'.base64_encode($combined).'">'; I would recommend the first method, simply because it looks like a product display, the images are most likely public and hotlinking can be busted if you choose. In both examples, since the image is inline, you wouldn't need to set the content-type to an image. You should also place the correct mime type within the second version, either image/png, image/jpeg or others depending on the image. Edit: To extend this: $combined cont

Categories : PHP

Azure: {"Invalid syntax for directory path '' Parameter name: initialConfiguration"} Error
It looks like you are retrieving the connection string correctly, but your diagnostics configuration is invalid. What are you setting for Directory configurations? Instead of setting diagnostics configuration via code I would recommend using the wadcfg file (http://msdn.microsoft.com/en-us/library/windowsazure/hh411551.aspx), or use Visual Studio (see http://weblogs.asp.net/scottgu/archive/2013/04/30/announcing-the-release-of-windows-azure-sdk-2-0-for-net.aspx, in particular the "Cloud Services: Improved Diagnostics Support" section).

Categories : C#

Error while running a batch with a file as parameter that does not belong to the current directory
Well, the use of %~f1 does NOT guarantee that the file exists! If the parameter given to the Batch file includes the full path, then %~f1 just return the same information and does not check for the existence of the file. I suggest you to test the Batch file below: @ echo off echo "%~f1" if exist "%~f1" ( findstr /r "I.*=" "%~f1" >outer.TXT ) else ( echo File does NOT exist! )

Categories : Batch File

Why didnt wordpress include parameter in the save_post action refernce?
$post holds the post object that is being saved. $post_ID holds the ID of the post that is being saved. You can get these parameters in your callback function when making your add_action call. example add_action( 'save_post', 'my_save_function', 10, 2 ); The 10 represents priority - 10 is default, the lower the number, the higher the priority (i.e. run earlier). The '2' in the last parameter is the number of arguments to pass to your callback. The default is 1, but as you state there can be 2 parameters here so you can up the value to get them both, if they are both needed. function my_save_function( $post, $post_ID ) { // Do stuff here. } There are lots of actions/filters with variable numbers of parameters that aren't known implicitly, so doing this way allows the code to b

Categories : Wordpress

Could not find tool aapt. Please provide proper Android SDK directory path as configuration parameter
If you are using android version 17, you might want to try this documented workaround (i.e. I did not find it myself). cd <android-sdk>/platform-tools ln -s ../build-tools/17.0.0/aapt aapt ln -s ../build-tools/17.0.0/lib lib

Categories : Android

How to access a file in a directory from other directory, when both are in same parent directory with HTML
if dir1 and dir2 are in the same parent directory then this is how you access 2.html from 1.html: <a href="../dir2/2.html">link to 2.html</a> hope it helped :)

Categories : HTML

How to change the current working directory to a specific directory and execute a program under the specific directory?
One of your principal problems is that you don't capture the return value (output) of the command in backticks. You are merely throwing away the output you want. Do something like: my $output = `perl ./script.pl` system("perl ./script.pl")

Categories : Perl

getting the full filenames from all top directory files in a specific directory and suppressing the occuring error
Did I understand correctly that you only need the File-names with directory-names. This code works for me, no elevations needed. private void button1_Click(object sender, EventArgs e) { string folder = @"C:windowsprefetch"; string filemask = @"*.pf"; string[] filelist = Directory.GetFiles(folder, (filemask)); //now use filelist[i] for any operations. }

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.