Freelancealot
Forum Replies Created
-
Forum: Plugins
In reply to: Conflict of javascript files throwing Internet Explorer into a spinOkay, panic over. I just downloaded the Mtouch plugin and reloaded all the files and the site is back. Phew.
Still need a resolution to the original conflict of javascript issue… back to square one.
Cheers,
Tracy
Forum: Plugins
In reply to: Conflict of javascript files throwing Internet Explorer into a spinHELP! I’m now getting
Warning: Cannot modify header information – headers already sent by (output started at /home/maddocks/public_html/wp-content/plugins/mtouch-quiz/mtouchquiz.php:25) in /home/maddocks/public_html/wp-includes/pluggable.php on line 890
All I did was comment out
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);
on mtouchquiz.php
and added
<?php if (is_page(array('quiz1', 'quiz2', 'quiz3', 'quiz4'))) { echo '<script type='text/javascript' src='https://www.mediatrainingonline.com/wp-content/plugins/mtouch-quiz/script.js?ver=2.2.2'></script>'; echo '<script type='text/javascript' src='">https://www.mediatrainingonline.com/wp-content/plugins/mtouch-quiz/scrollable.min.js?ver=2.2.2’></script> '; } ?>
to the header.php in the theme. This didn’t work, so I took out the above from the header.php and reloaded the original mtouchquiz.php file and now the WP pages won’t load at all,
I get warning about headers…
I really need help here as it should all be back to what it was before I made the above changes.
Any help?
Cheers,
Tracy
Forum: Plugins
In reply to: Conflict of javascript files throwing Internet Explorer into a spinHi again,
Miachel, the developer of the Mtouch-quiz script has pointed me in the right direction. The relevant function is in the mtouchquiz.php file and looks like this:
add_action('init', 'mtq_enqueue_stuff'); function mtq_enqueue_stuff() { $mtq_use_min=false; //$mtq_use_min=false; if ( $mtq_use_min ) { $mtq_StyleUrl = WP_PLUGIN_URL . '/mtouch-quiz/style.min.css'; $mtq_StyleFile = WP_PLUGIN_DIR . '/mtouch-quiz/style.min.css'; } else { $mtq_StyleUrl = WP_PLUGIN_URL . '/mtouch-quiz/style.css'; $mtq_StyleFile = WP_PLUGIN_DIR . '/mtouch-quiz/style.css'; } if ( file_exists($mtq_StyleFile)) { wp_register_style('mtq_StyleSheets', $mtq_StyleUrl,false,mtq_VERSION); wp_enqueue_style( 'mtq_StyleSheets'); } $mtq_proofread_StyleUrl = WP_PLUGIN_URL . '/mtouch-quiz/proofread.min.css'; $mtq_proofread_StyleFile = WP_PLUGIN_DIR . '/mtouch-quiz/proofread.min.css'; 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); }
The only think I need to change is the part that adds the js files to the header.
Can anyone let me know the best way to add:
if (is_page(array('quiz1', 'quiz2', 'quiz3', 'quiz4'))) { blah }
for the
wp_enqueue_script("jquery");
so it only gets printed on those four pages?
Thanks in advance,
Tracy
???????
Forum: Plugins
In reply to: [Plugin: SI CAPTCHA Anti-Spam] CAPTCHA image (text not image)Hi Mike,
I’m using Si Captcha successfully on one WordPress site already, but having difficulty implementing it on my own blog.
The wordpress framework is in a different directory to the one that shows publically at https://www.freelancealot.co.uk/Herald/ so I’m guessing it’s a permalink problem as the entry field for the captcha is appearing.
Here’s the code that appears on the page when you view a post (https://www.freelancealot.co.uk/Herald/2010/09/freelancealot-adopts-freelance-from-communication-charity/) with comments open:
<a href="#" rel="nofollow" title="Refresh Image" onclick="si_captcha_refresh('si_image_com','com','','','https://www.freelancealot.co.uk/round_table/wp-content/plugins/si-captcha-for-wordpress/captcha-secureimage/securimage_show.php?no_trans=1&si_form_id=com&prefix='); return false;">
Any ideas what I can do to fix it?
Help appreciated.
Cheers,
Tracy
Forum: Fixing WordPress
In reply to: Clickable ExcerptHi,
Thanks for the link. I didn’t mean to hijack this post. It seemed to be talking about what I wanted to do. Ie include an excerpt or summary of the latest post.Secondly, my comment about the pages having the same names as the categories was a question, not a statement. Sorry if that wasn’t clear.
I will start a new thread for this as I’m really keen to get this working. I’ve now got the list of 5 latest posts to that category listed on my ‘home.php’ (thanks to your link). So, I’m half way there.
Thanks.
Tracy
Forum: Fixing WordPress
In reply to: Menu OrderHi,
I have a static front page https://www.uttoxeter.biz/testsite/ and I want the ‘Pages’ menu list to list in the order of Home, etc, etc, and finish with Contact Us. At the moment it’s alphabetical, not great!
Could it be a problem naming the Categories the same as the Pages? All pages from the main ‘Pages’ links are static eXtended pages (or will be if they’re not now), where there will be a bit of static text and then a summary of the latest 5 articles with ‘…more’ links to the full article.
Once I’ve done this, I will remove the categories menu and just have the archives listed under categories.
This is my first delve into WordPress, blogging, and CMS – and I’m a PHP newbie – so be gentle!
Any help much appreciated.
Cheers,
Tracy
Forum: Fixing WordPress
In reply to: Clickable ExcerptHi,
I’m a real newbie to PHP and blogging and CMS!!My first testsite is at https://www.uttoxeter.biz/testsite/
I would like to have an excerpt of the latest article in each category on my ‘static’ home page. Then a link to the article in full.
I’m guessing that this is what this does, but I’d need to add the category id to the script above and have no idea how to do it.
Example: Under the People & Politics heading, I’d like an excerpt (or first few lines of the post / summary?) of the latest post and link to full article. I’d also like to put a list of links to maybe 5 of the previous articles in the the category using the article title as the link.
I want to do this for each of the categories.
Is this possible? Or do I need to use some sort of RSS trick?
Cheers,
Tracy