Emily
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Theme files hacked – link added after body tagActually, it looks like getlocal is having the same problem. If you look at the source code of the site, it does have those links just after the body tag. getlocal, you need to remove the stuff mentioned in the first post in this thread. Remove the extra functions from the functions.php file found in your theme folder.
Forum: Fixing WordPress
In reply to: Hacked site? Strange text in headerSee this post for possible help!
Great plugin, thank you so much! FYI, I had to wrap the shortcode in a
<div style="visibility: none;">tag to remove the space taken up by the hidden element. Not sure it that was the best way to do it or if there’s another way around it?Forum: Plugins
In reply to: [Plugin: Contact Form 7] Spam ProblemI started having that same problem today, so I installed the plugin “Contact Form 7 Honeypot” and it seems to have done the trick.
One thing I will note about the honeypot field on the form, is that I had to wrap it in
<div style="visibility: none;">tags to remove the space it was taking up.Hope this helps!
Emily
Forum: Plugins
In reply to: W3 Total Cache critical vulnerability disclosedI read another story about this issue, and the author recommended “deny access to plugin directory by making an extra .htccess in that folder.”
How would I do that? I can’t disable the plugin on the site where it runs…
Edit: After a little more research, I found the answer here:
It seems the easiest way to protect your sites is by disabling database cache or creating an .htaccess file inside the wp-content/w3tc directory denying direct access there:
deny from allIf you are not using Apache, you will need a similar configuration entry to prevent direct access to the w3tc folder.
Thanks!
I had the same problem and the above solution worked for me, too. Thanks bguthro!!
Forum: Plugins
In reply to: [The Events Calendar] Drop Down Menus accross site stopped workingI’m having the same problem. We upgraded the plugin to 2.0.10 on the 7th and it broke the menus. As soon as I deactivate the plugin, the menus start working again. I’m running WordPress 3.4.2 with a theme from ThemeForest (Jewelry Store Dark). The site is a-ha-design.com but I’ve got the plugin deactivated so you won’t be able to see how it’s broken.
It works in IE9 for me, but does NOT work in Firefox, Chrome, Opera, or Safari. All work fine after deactivating the plugin.
Chrome reports an error at line 5 in jquery.pjax.js:
Uncaught TypeError: Object #<Object> has no method ‘on’// jquery.pjax.js // copyright chris wanstrath // https://github.com/defunkt/jquery-pjax (function($){function fnPjax(selector,container,options){var context=this;return this.on("click.pjax",selector,function(event){var opts=$.extend({},optionsFor(container,options));if(!opts.container){opts.container=$(this).attr("data-pjax")||context;}handleClick(event,opts);});}function handleClick(event,container,options){options=optionsFor(container,options);var link=event.currentTarget;if(link.tagName.toUpperCase()!=="A"){throw"$.fn.pjax or $.pjax.click requires an anchor element";}if(event.which>1||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey){return;}if(location.protocol!==link.protocol||location.host!==link.host){return;}if(link.hash&&link.href.replace(link.hash,"")===location.href.replace(location.hash,"")){return;}if(link.href===location.href+"#"){return;}var defaults={url:link.href,container:$(link).attr("data-pjax"),target:link,fragment:null};pjax($.extend({},defaults,options));event.preventDefault();}function handleSubmit(event,container,options){options=optionsFor(container,options);var form=event.currentTarget;if(form.tagName.toUpperCase()!=="FORM"){throw"$.pjax.submit requires a form element";}var defaults={type:form.method,url:form.action,data:$(form).serializeArray(),container:$(form).attr("data-pjax"),target:form,fragment:null,timeout:0};pjax($.extend({},defaults,options));event.preventDefault();}function pjax(options){options=$.extend(true,{},$.ajaxSettings,pjax.defaults,options);if($.isFunction(options.url)){options.url=options.url();}var target=options.target;var hash=parseURL(options.url).hash;var context=options.context=findContainerFor(options.container);if(!options.data){options.data={};}options.data._pjax=context.selector;function fire(type,args){var event=$.Event(type,{relatedTarget:target});context.trigger(event,args);return !event.isDefaultPrevented();}var timeoutTimer;options.beforeSend=function(xhr,settings){if(settings.type!=="GET"){settings.timeout=0;}if(settings.timeout>0){timeoutTimer=setTimeout(function(){if(fire("pjax:timeout",[xhr,options])){xhr.abort("timeout");}},settings.timeout);settings.timeout=0;}xhr.setRequestHeader("X-PJAX","true");xhr.setRequestHeader("X-PJAX-Container",context.selector);var result;if(!fire("pjax:beforeSend",[xhr,settings])){return false;}options.requestUrl=parseURL(settings.url).href;};options.complete=function(xhr,textStatus){if(timeoutTimer){clearTimeout(timeoutTimer);}fire("pjax:complete",[xhr,textStatus,options]);fire("pjax:end",[xhr,options]);};options.error=function(xhr,textStatus,errorThrown){var container=extractContainer("",xhr,options);var allowed=fire("pjax:error",[xhr,textStatus,errorThrown,options]);if(textStatus!=="abort"&&allowed){locationReplace(container.url);}};options.success=function(data,status,xhr){var container=extractContainer(data,xhr,options);if(!container.contents){locationReplace(container.url);return;}pjax.state={id:options.id||uniqueId(),url:container.url,title:container.title,container:context.selector,fragment:options.fragment,timeout:options.timeout};if(options.push||options.replace){window.history.replaceState(pjax.state,container.title,container.url);}if(container.title){document.title=container.title;}context.html(container.contents);if(typeof options.scrollTo==="number"){$(window).scrollTop(options.scrollTo);}if((options.replace||options.push)&&window._gaq){_gaq.push(["_trackPageview"]);}if(hash!==""){var url=parseURL(container.url);url.hash=hash;pjax.state.url=url.href;window.history.replaceState(pjax.state,container.title,url.href);var target=$(url.hash);if(target.length){$(window).scrollTop(target.offset().top);}}fire("pjax:success",[data,status,xhr,options]);};if(!pjax.state){pjax.state={id:uniqueId(),url:window.location.href,title:document.title,container:context.selector,fragment:options.fragment,timeout:options.timeout};window.history.replaceState(pjax.state,document.title);}var xhr=pjax.xhr;if(xhr&&xhr.readyState<4){xhr.onreadystatechange=$.noop;xhr.abort();}pjax.options=options;var xhr=pjax.xhr=$.ajax(options);if(xhr.readyState>0){if(options.push&&!options.replace){cachePush(pjax.state.id,context.clone().contents());window.history.pushState(null,"",stripPjaxParam(options.requestUrl));}fire("pjax:start",[xhr,options]);fire("pjax:send",[xhr,options]);}return pjax.xhr;}function pjaxReload(container,options){var defaults={url:window.location.href,push:false,replace:true,scrollTo:false};return pjax($.extend(defaults,optionsFor(container,options)));}function locationReplace(url){window.history.replaceState(null,"","#");window.location.replace(url);}function onPjaxPopstate(event){var state=event.state;if(state&&state.container){var container=$(state.container);if(container.length){var contents=cacheMapping[state.id];if(pjax.state){var direction=pjax.state.id<state.id?"forward":"back";cachePop(direction,pjax.state.id,container.clone().contents());}var popstateEvent=$.Event("pjax:popstate",{state:state,direction:direction});container.trigger(popstateEvent);var options={id:state.id,url:state.url,container:container,push:false,fragment:state.fragment,timeout:state.timeout,scrollTo:false};if(contents){container.trigger("pjax:start",[null,options]);if(state.title){document.title=state.title;}container.html(contents);pjax.state=state;container.trigger("pjax:end",[null,options]);}else{pjax(options);}container[0].offsetHeight;}else{locationReplace(location.href);}}}function fallbackPjax(options){var url=$.isFunction(options.url)?options.url():options.url,method=options.type?options.type.toUpperCase():"GET";var form=$("<form>",{method:method==="GET"?"GET":"POST",action:url,style:"display:none"});if(method!=="GET"&&method!=="POST"){form.append($("<input>",{type:"hidden",name:"_method",value:method.toLowerCase()}));}var data=options.data;if(typeof data==="string"){$.each(data.split("&"),function(index,value){var pair=value.split("=");form.append($("<input>",{type:"hidden",name:pair[0],value:pair[1]}));});}else{if(typeof data==="object"){for(key in data){form.append($("<input>",{type:"hidden",name:key,value:data[key]}));}}}$(document.body).append(form);form.submit();}function uniqueId(){return(new Date).getTime();}function stripPjaxParam(url){return url.replace(/\?_pjax=[^&]+&?/,"?").replace(/_pjax=[^&]+&?/,"").replace(/[\?&]$/,"");}function parseURL(url){var a=document.createElement("a");a.href=url;return a;}function optionsFor(container,options){if(container&&options){options.container=container;}else{if($.isPlainObject(container)){options=container;}else{options={container:container};}}if(options.container){options.container=findContainerFor(options.container);}return options;}function findContainerFor(container){container=$(container);if(!container.length){throw"no pjax container for "+container.selector;}else{if(container.selector!==""&&container.context===document){return container;}else{if(container.attr("id")){return $("#"+container.attr("id"));}else{throw"cant get selector for pjax container!";}}}}function findAll(elems,selector){return elems.filter(selector).add(elems.find(selector));}function extractContainer(data,xhr,options){var obj={};obj.url=stripPjaxParam(xhr.getResponseHeader("X-PJAX-URL")||options.requestUrl);if(/<html/i.test(data)){var $head=$(data.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0]);var $body=$(data.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0]);}else{var $head=$body=$(data);}if($body.length===0){return obj;}obj.title=findAll($head,"title").last().text();if(options.fragment){if(options.fragment==="body"){var $fragment=$body;}else{var $fragment=findAll($body,options.fragment).first();}if($fragment.length){obj.contents=$fragment.contents();if(!obj.title){obj.title=$fragment.attr("title")||$fragment.data("title");}}}else{if(!/<html/i.test(data)){obj.contents=$body;}}if(obj.contents){obj.contents=obj.contents.not("title");obj.contents.find("title").remove();}if(obj.title){obj.title=$.trim(obj.title);}return obj;}var cacheMapping={};var cacheForwardStack=[];var cacheBackStack=[];function cachePush(id,value){cacheMapping[id]=value;cacheBackStack.push(id);while(cacheForwardStack.length){delete cacheMapping[cacheForwardStack.shift()];}while(cacheBackStack.length>pjax.defaults.maxCacheLength){delete cacheMapping[cacheBackStack.shift()];}}function cachePop(direction,id,value){var pushStack,popStack;cacheMapping[id]=value;if(direction==="forward"){pushStack=cacheBackStack;popStack=cacheForwardStack;}else{pushStack=cacheForwardStack;popStack=cacheBackStack;}pushStack.push(id);if(id=popStack.pop()){delete cacheMapping[id];}}function enable(){$.fn.pjax=fnPjax;$.pjax=pjax;$.pjax.enable=$.noop;$.pjax.disable=disable;$.pjax.click=handleClick;$.pjax.submit=handleSubmit;$.pjax.reload=pjaxReload;$.pjax.defaults={timeout:650,push:true,replace:false,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20};$(window).bind("popstate.pjax",onPjaxPopstate);}function disable(){$.fn.pjax=function(){return this;};$.pjax=fallbackPjax;$.pjax.enable=enable;$.pjax.disable=$.noop;$.pjax.click=$.noop;$.pjax.submit=$.noop;$.pjax.reload=window.location.reload;$(window).unbind("popstate.pjax",onPjaxPopstate);}if($.inArray("state",$.event.props)<0){$.event.props.push("state");}$.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/);$.support.pjax?enable():disable();})(jQuery);Hope this helps! Thank you very much.
Forum: Plugins
In reply to: [Theme My Login] Theme My Login 6.2 Broken?Hello. Version 6.2 is not working for me. When I try to go to the profile page, it goes to the home page instead. I disabled all other plugins and still it didn’t work. I suspect the problem may be with Cimy User Extra Fields but even when I deactivate that plugin, the problem persists. The only feature I’m using is the “Enable Themed Profiles” option, and it works just fine with TML 6.1.4
Any ideas? Thanks!
Forum: Themes and Templates
In reply to: Horizontal footer menuCarlos-David,
The sub menus are set up in the Menu area of the admin page… they are indented underneath the main menu items. To do that, you drag the sub menu items a little bit to the right until it shows how it will be indented.
Hope this helps!
Forum: Plugins
In reply to: [XPoster - Share to Bluesky and Mastodon] WP to Twitter not tweetingI’m having the same problem… using WP to Twitter version 2.4.4 and FeedWordPress version 2011.1019. Regular posts go to Twitter just fine, test works fine, but when we publish syndicated posts, nothing goes to Twitter. We have FWP set to “Hold syndicated posts for review; mark as Pending” and “Permalinks point to: The copy on the original website” and “Posts from aggregator feeds: Give the original source of the post as the source, not the aggregator.”
I have tried the add_action suggestions above, to no avail.
Anybody have ideas?
Forum: Themes and Templates
In reply to: Horizontal footer menuThank you so much, sixhours! That worked perfectly.
Forum: Plugins
In reply to: Is there a plugin to create images on the fly?I found a plugin to do such a thing… it goes in the template, to replace the title tag with an image. It works with WordPress 3.2.1…
http://www.templature.com/2007/10/18/ttftitles-wordpress-plugin/
Hope this helps! π
Forum: Plugins
In reply to: [WP Super Edit] [Plugin: WP Super Edit] After update, SuperEdit not working…Instructions from ev3rywh3re worked for me! Thank you very much.
Forum: Fixing WordPress
In reply to: drop down menu IEI too am having an issue. When I look at the site in IE, I get a javascript error: ‘null’ is null or not an object
The site is http://box588.bluehost.com/~michahd5
The error reports as being on line 55, char 143.
I am using the built-in menus… the line in the theme’s header.php is:
<?php wp_nav_menu( array(‘menu’ => ‘Main’ )); ?>
Forum: Installing WordPress
In reply to: Categories all unchecked in admin after upgradeAnthony, I had this same problem. I updated two plugins and it started working, so I’m not sure if it was the All in One SEO Pack, or Role Scoper that was causing the problem. If you have one of those, perhaps it’s causing trouble. Sometimes plugins don’t have to be directly related to break things! Hope this helps.
Emily