Freelancealot
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Rewrite permalink for child pagesThanks Alexander, but I wanted to use the class ‘parent-pageid-xx’ to style all the child pages.
I’m having a mental block. I need to style the child pages differently to the parent page, but I don’t want to get into custom post types, so thought the parent-pageid-xx class was a good way around it.
Any suggestions welcome.
Cheers,
TracyFound a solution: it was the # links in the top-level menu dropdowns causing the issue.
I still don’t know why the # links all led to the front page of the site. So if anyone could suggest a reason, that may be useful, as I’m guessing the reason behind the inital problem is still there. I’ve just circumvented it by getting rid of the # links.
I’m posting the solution to my particular problem here just in case it’s useful for anyone else.
As it appeared the # link in the ‘disabled’ top-level item on the dropdowns was causing the ‘active’ class to be created, I looked into the issue of disabling items on the WordPress menu. One thread somewhere said to remove the # from the link once the Custom link has been added to the menu, so the field is blank.
It worked. Now all the # links are gone the menu is no longer creating the ‘active’ class on the all the top-level links with dropdowns.
Cheers,
TracyAch, I just realised I didn’t put the Plugin in the title and can’t seem to edit it. Sorry folks …
Forum: Plugins
In reply to: [Custom widgets] [Plugin: Custom widgets] TS Custom Widget install broke siteHi Tom,
Any news from your colleague on the updated version? I have a few sites running your plugin—which has saved the day on many projects. ??
I’m getting concerned about the sites that are using Slayers custom widget plugin as WP is moving on so quickly. I need to address the issue on a few sites so wanted to double-check that a new version of your widget will definitely be coming out … and perhaps get a date for release?
Otherwise I need to look at something like custom sidebar widget, but would prefer to continue to use the custom widgets plugin if there’s a new version out soon.
Cheers,
Tracy
Forum: Plugins
In reply to: Get Notified of User's One Year Anniversary After Registration – Possible?Hi tcbarrett,
Thanks for this — looks promising.
Somehow I need to add an instruction to email Admin in place of the:
echo "Happy anniversary"
I found this useful snippet (at https://wp.smashingmagazine.com/2009/08/18/10-useful-wordpress-hook-hacks/) that looks well on the way to getting what I want along with the above code (slighly hacked for this purpose):
if (!wp_next_scheduled('my_task_hook')) { wp_schedule_event( time(), 'daily', 'my_task_hook' ); } add_action( 'my_task_hook', 'my_task_function' ); function my_task_function() { wp_mail('[email protected]', 'Automatic email', 'User-name has been a member for one year.'); }
Basically, a scheduled event happening daily, that will call the function to check if any user has been a member for 365 days.
I just don’t know how to marry the two snippets of code above. As I say, I’m not a programmer so I’m relying heavily on you experts out there.
Cheers,
Tracy
Hi alchymyth,
Sorry for the delay in getting back to you.
The site page is at https://bit.ly/pOoerP
You’ll see to the right of the post title a cartoon figure that replaces the comment bubble.
If you scroll down to below that first post, you’ll see two previous posts which are just shown up to the <– more –> tag.
I want to target these two and use a smaller image.
I’m using TwentyEleven, and making changes in a child theme. The default on Twenty Eleven is to show the whole post on the category page, or up to the <– more –> tag.
I would prefer to get the category pages showing the lates post in full (as it does now) and then showing two excerpts (which would be easier than having to manually add the <– more –> tag every time.
I’ve already set up a category-38.php to show the posts, so I’m happy to hack the template I’ve made in the Child theme.
Any idea how to do the either of these?
Thanks for any pointers you can give.
Cheers,
TracyForum: Plugins
In reply to: NextGen referencing singlepic.php in gallery.php instead of opening the .jpgNo takers?
Hi Chuckee,
I was just about to post I was getting the same problem … when inspiration struck. It’s probably already struck you as well, but here it is for others.
Answer
When you’re in the All Posts page/section click the ‘Screen Options’ tab at the top right of the page. There you can untick the options to show the All in One SEO pack columns.Cheers,
Tracy
Forum: Themes and Templates
In reply to: [Twenty Eleven] [Theme: Twenty Eleven] auto-slideHi again,
I’m figuring something like this …
$(this).fadeTo("slow", 0.33);
Has to go in the code Johan kindly posted, but where and how … ??
Cheers,
Tracy
Forum: Themes and Templates
In reply to: [Twenty Eleven] [Theme: Twenty Eleven] auto-slideHi,
Seems to be working in Safari 5 and Firefox 5, but haven’t tested in IE or Chrome as yet.
Johan, did you get the longer fade transitions you wanted? I would love to know how to do it if you have…
Cheers,
Tracy
Forum: Hacks
In reply to: Need way to display hidden div on click of Form buttonNot sure where this code is duplicated in www.ads-software.com forums. Sorry about that.
Can anyone help?
If you need the code, please let me know.
Cheers,
Tracy
Forum: Plugins
In reply to: Access Expiration on Views per User HELPAnyone?
Forum: Hacks
In reply to: Need way to display hidden div on click of Form buttonAnyone?
Forum: Plugins
In reply to: Conflict of javascript files throwing Internet Explorer into a spinOkay, came across this useful post on Position-relative.com
I added the following to my theme’s custom function.php file:
add_action('wp_print_scripts', 'my_deregister_javascript', 100 ); function my_deregister_javascript() { if (!is_page(array('quiz1','quiz2','quiz3','quiz4')) ) { wp_deregister_script('mtq_script'); wp_deregister_script('mtq_scrollable'); } }
And it works; the Mtouch-quiz files only appear in the header of those four pages. So that’s sorted.
However, my original problem is still there – aarrgghhh.
When you click the link to the page in IE8 it says there is one file loading and it just keeps loading. When you click the image to load the video in the JWBox lightbox, the player does not load completely.
When I use the JWPlayer embed code with both <object> and <embed>, the the lightbox opens and the video player loads fully and plays.
But, of course, if I use <embed> code the page does not validate as transitional XHTML, which I really need it to do.
So perhaps not a javascript problem, but an embedding issue with lightbox.
Whey the video player is coded directly in the page, using just the <object> method, the page validates and the player works in IE8.
So logic tells me it’s a conflict with the JWBox script and JWPlayer <object> embed method in IE8.
Any ideas?
The link to the page that IE8 is having a problem with is https://www.//mediatrainingonline.com/complete-media-confidence (please remove the // before the domain name, I don’t want to use a hyperlink sorry).
IE8 will play this one, but the page will not validate.
The version with the <embed> tag included is at https://www.//mediatrainingonline.com/use-the-media-to-build-your-business
Cheers,
Tracy
Forum: Plugins
In reply to: Conflict of javascript files throwing Internet Explorer into a spinHi Michael,
I just can’t understand how to use the code in the link you gave me — https://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/
It’s way over my head.
I seriously need to restrict the Mtouch-quiz plugin header stuff to only go on the four pages where it’s needed.
Does anyone know if it’s possible to use
if ( is_page(array(1, 2, 3, 4)) )
anywhere before the following bit of code to restrict the pages it puts the header stuff in?
wp_enqueue_script("jquery"); if ( $mtq_use_min ) { wp_enqueue_script('mtq_script', WP_CONTENT_URL . '/plugins/mtouch-quiz/script.min.js',array('jquery'),mtq_VERSION,false); } else { wp_enqueue_script('mtq_script', WP_CONTENT_URL . '/plugins/mtouch-quiz/script.js',array('jquery'),mtq_VERSION,false); } //if (! get_option('mtouchquiz_skiploadjquerytools')) { wp_enqueue_script('mtq_scrollable', WP_CONTENT_URL . '/plugins/mtouch-quiz/scrollable.min.js',array('jquery'),mtq_VERSION,false); //} //wp_enqueue_script('jquerytools_full','https://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js','1.2.5',false);
I’m a bit worried about giving it a go given my last delve into the code. And I’m not familiar with the wp_enqueue method.
Cheers,
Tracy