Max625
Forum Replies Created
-
Forum: Plugins
In reply to: [Private Only] Media Not PrivateFlush permalinks = it works.
Excuse my ignorance – the answer is right here
Previous / Next Navigation – Wrong orderThanks!
@sebchauss – thanks for this post. Can you clarify what your final solution was? I think I have the same problem – need the next post/previous post navigation to follow the order specified with this plugin. I can’t seem to get it to work for single page template – while the archive and category templates (which use wp-paginate plugin) works perfectly.
Glad to start my own post if this seems off-topic, but I think you have the solution I need.
Thanks.
Forum: Fixing WordPress
In reply to: Twenty Eleven – Remove Internal Style Sheet Theme OptionThank you for pointing that out. I overlooked that when I was examining theme-options.php.
Another issue was the action I was hooking to. ‘after_setup_theme’ did not work, but when I changed it to ‘init’ I was successful.
add_action( 'init', 'goodbye_internal_style_sheet' ); function goodbye_internal_style_sheet() { remove_action( 'wp_head', 'twentyeleven_print_link_color_style' ); }I am not convinced I picked the most appropriate action hook, any advise on this?
http://codex.ww.wp.xz.cn/Plugin_API/Action_ReferenceForum: Installing WordPress
In reply to: Fresh Install Own Directory Blank PageThanks for your suggestion.
I did confirm the entries in wp_options were correct by looking at them directly in the database. Defining those values in wp-config.php did not work either (this was a good suggestion, as it has worked for other situations in the past).
Any other ideas? This seems rather odd…
Forum: Fixing WordPress
In reply to: Making an exact copy of a WordPress website on the same serverOkay.
Some background info for you…
There are two parts to a wordpress site – the wordpress php framework (presents the information from the database as webpages), and the database (stores all the content and settings).The way developers do what you are describing above is to have a production environment (the “final” version that visitors see), and the development/test environment (where you can experiment, test, and develop new features without compromising the production environment). So you need two different versions of the wordpress files and the database. Many plugins create new tables and make new entries in the database, so things will be much cleaner if you have the development and production database separated.
The Database
You can either create 2 separate databases, or use the same database with two different table prefixes. If you use the same database with two different table prefixes, you need to edit the file
“wp-config.php”. Find this block of code…/** * WordPress Database Table prefix. * * You can have multiple installations in one database if you give each a unique * prefix. Only numbers, letters, and underscores please! */ $table_prefix = 'wp_';I would recommend sticking with the default for your production site, but for your development site, change it something like..
$table_prefix = 'wpdev_';Here is a sort of step-wise procedure for you. I’m guessing you may have to do some research for each step, but that is how you learn (chunk by chunk).
1) Create the subdomain on your webserver. You are probably using a hosted solution, so use the control panel interface to do this. If you don’t know how, consult the tech support of your web host or do web searches for help.
2) Copy your production wordpress files (everything in the folder “wordpress”) to the subdomain directory.
3) Edit the wp-config.php file that is now in the subdomain directory as I instructed above. (If you go the 2 database route then you’ll need to edit the database authentication credentials in this file accordingly and you can leave the table prefix as the default).Now you have a separate development and production environment.
Forum: Fixing WordPress
In reply to: Making an exact copy of a WordPress website on the same serverCan you describe what you are trying to accomplish (why do you want an exact copy)? Depending on what your goal is the solution might be either to use multisite or to have a development and production version of the website…
I figured this out – but have kept the post in case a poor lost soul can benefit from it.
Problem:
my own incompetenceSolution:
1) enable Settings>User>Password Handling>Enable local password changes
2) change the password for User ID 1 (luckily I had another admin account that could do this)
3) disable local password changes settingNot sure if this applies to your issue but, I had problems with the DN, once I hacked in a few lines of code it worked.
file: adLDAP.php, in the authenticate function
/*$this->_bind = @ldap_bind($this->_conn, $username . $this->_account_suffix, $password); this doesn't work! it is missing the DN*/ $this->_bind = @ldap_bind($this->_conn, 'uid='.$username.','.$this->_base_dn, $password); /*works*/file: adLDAP.php, in the user_info function
if ($isGUID === true) { $username = $this->strguid2hex($username); $filter="objectguid=".$username; } else if (strstr($username, "@")) { $filter="userPrincipalName=".$username; } else { //$filter="samaccountname=".$username; $filter="uid=".$username; /*fix*/ } //$filter = "(&(objectCategory=person)({$filter}))"; if ($fields===NULL){ $fields=array("samaccountname","mail","memberof","department","displayname","telephonenumber","primarygroupid","objectsid"); } if (!in_array("objectsid",$fields)){ $fields[] = "objectsid"; }This allowed the login to work, and brought in some info about the user.
First of all thanks to the developer for this great plugin.
This might be a totally separate issue, but I had this same problem for the full page calendar plugin for events manager. Events marked as “All Day” appeared a day earlier on the calendar. All I had to do was set the appropriate default php timezone by adding:
date_default_timezone_set('America/Chicago');
to events-manager-fullcalendar.php, and the problem was solved. My guess was the code wasn’t referencing the timezone set in wordpress, so the incorrect default php timezone threw it off.Hope this is useful.
Versions:
Events Manager Version 5.1.4
Events Manager Pro Version 2.1
Events Manager Fullcalendar Add-On Version 1.3
WordPress Version 3.3.1@webowner – Would you mind sharing how you accomplished this? I did not know how to manipulate the string data.error was outputting, so I just swapped in my own string ($mymessage). I’m thinking there is a better way to accomplish this.
//Handle a AJAX call for Login, RememberMe or Registration function lwaAjax( data, statusElement, prependTo ){ $('#LoginWithAjax_Loading').remove(); if( data.result === true || data.result === false ){ if(data.result === true){ //Login Successful if( $('#'+statusElement).length > 0 ){ $('#'+statusElement).attr('class','confirm').html(data.message); }else{ $('<span id="'+statusElement+'" class="confirm">'+data.message+'</span>').prependTo( prependTo ); } }else{ //Login Failed //If there already is an error element, replace text contents, otherwise create a new one and insert it if( $('#'+statusElement).length > 0 ){ $mymessage = '<strong>ERROR</strong>: Invalid username. <a href="mylink" title="My help title">Need Help?</a>'; $('#'+statusElement).attr('class','invalid').html($mymessage); /*$('#'+statusElement).attr('class','invalid').html(data.error);*/ }else{ $('<span id="'+statusElement+'" class="invalid">'+data.error+'</span>').prependTo( prependTo ); } //We assume a link in the status message is for a forgotten password $('#'+statusElement).click(function(event){ event.preventDefault(); $('#LoginWithAjax_Remember').show('slow'); }); } }else{ //If there already is an error element, replace text contents, otherwise create a new one and insert it if( $('#'+statusElement).length > 0 ){ $('#'+statusElement).attr('class','invalid').html('An error has occured. Please try again.'); }else{ $('<span id="'+statusElement+'" class="invalid">An error has occured. Please try again.</span>').prependTo( prependTo ); } } }For those of you having trouble getting started on this – you need to override the login-with-ajax.js file by creating a new one (if you haven’t already) at wp-content/themes/yourtheme/plugins/login-with-ajax/ to make the change you implement update safe (this way you aren’t touching the source code). See the readme file included with the plugin.
Forum: Fixing WordPress
In reply to: Sub-directory without Multisite?@samuel B
Thanks for that link – that is a very handy plugin.Forum: Fixing WordPress
In reply to: Sub-directory without Multisite?@christini
Thanks for the suggestions.masking with .htaccess
I’ve got some background with apache – but wouldn’t consider myself an expert. Seems like I could probably give this a shot. Will job manager still function properly if I implement the masking (I’ll assume you wouldn’t have suggested it in the first place if the answer was no :P)?WordPress as CMS for entire site
This seems like a decent idea. I wanted to add a WordPress managed news feed page (currently updating it manually via hard-coding html) anyways. That way I could add a widget to the homepage sidebar that shows recent news, blogs, and jobs (doing that manually right now too). The question is – how daunting of a task is switching over 100 pages?Based on what I have read – it is possible to have different widgets show up on the side bar for different pages, so I’m guessing I could preserve the functionality of our current sidebar.
The idea seems promising though as the CMS we had planned on using for the rest of the pages has issues.
Forum: Fixing WordPress
In reply to: Sub-directory without Multisite?@samuel B – OK – Thanks!