ninja-master-jimmy-wong-fu
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Disable WordPress editor on live page when logged in??Wow, I never knew that even existed. Thanks guys.
Case closed.
Forum: Fixing WordPress
In reply to: Error when importing sql database to phpmyadmin1)exported database from live WordPress through built in feature in tools section
2)performed a fresh install of WordPress on localhost
3)ftpd content essential files from live server: uploads, plugins and theme from live to localhost
4)activated localhost WordPress
5)imported database to localhost through phpmyadmin and assigned db name
6)set database details on wp-gonfig.php
7)logged in to localhost, set home page, adn checked for posts
8)search and replaced all themefiles so path names were correct
9)search and replace the database through phpmyadmin so path names are correctVICTORY!
Forum: Fixing WordPress
In reply to: Error when importing sql database to phpmyadminPart 3:
1) I have dropped the tables so I have a blank database
2) I have installed wordpress and selected my theme
3) I then try to import the backup database adn I get the following error
Error SQL query: CREATE TABLE <code>wp_commentmeta</code> ( <code>meta_id</code> bigint( 20 ) unsigned NOT NULL AUTO_INCREMENT , <code>comment_id</code> bigint( 20 ) unsigned NOT NULL default '0', <code>meta_key</code> varchar( 255 ) default NULL , <code>meta_value</code> longtext, PRIMARY KEY ( <code>meta_id</code> ) , KEY <code>comment_id</code> ( <code>comment_id</code> ) , KEY <code>meta_key</code> ( <code>meta_key</code> ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =1; MySQL said: Documentation #1050 - Table 'wp_commentmeta' already exists
Forum: Fixing WordPress
In reply to: Error when importing sql database to phpmyadminOK, I have taken the following steps:
1) Created a blank database in phpmyadmin
2) Imported my database
Everything seems fine but when I try to access wp-login.php I get an unstyled login screen that, when filled in, says object not found.
wp-install.php says the site has already been installed and that I need to clear old database tables first.
??
Forum: Fixing WordPress
In reply to: Add .current_page_item class to a series of pages?OK, I think I see what I am trying to do now.
I need to generate the same class for the parent and child page items.
I know how to do this with the single page, but as soon as I navigate to the child the .current_page_item styling stops working.
Works perfectly!
Thanks so much for your help today!
I have added the following to the head:
<?php // Works in single post outside of the Loop global $wp_query; $thePostID = $wp_query->post->ID; ?>
And the fillowing into my nav bar:
<li<?php if ($thePostID==5) {echo ' class="current_page_item"'; }?>><a href="<?php echo get_permalink($thePostID); ?>" id="videos" ></a>
This does not show post number 5….but a different post altogether.
Any ideas?
Forum: Themes and Templates
In reply to: Apply image rotation javascript to WordPress theme??After many hours of trial and error I have got it working.
1) Upload the images via the WordPress uploader
2) make a note of the image locations (full URL path)
3) place url paths in the javascript
4) delete the document.getElementById line that you do NOT require (leave only one instance of this – otherwise it does not work.
5) change the id in the javascript – for example, here it is shown as iether (“test1”) or (“test2”) – whichever one remains after you deleted the one you did not need should be given the id of the div you want the images to appear in.Case closed…
Forum: Themes and Templates
In reply to: Apply image rotation javascript to WordPress theme??Sorry, but I am confused as to how I get the absolute image path of these images so WordPress knows where the files are.
I have the images at the folowing folder location within my WordPress installation:
wp-content/themes/mysite/images/bg1.jpg
Assuming the url of the site was https://www.mysite.co.uk how would I define the image location for teh javascript array?
Forum: Fixing WordPress
In reply to: WordPress adds images to gallery – lightbox does not work?OK, I have discovered that I need to set the images to ‘link to image’ in order to get lightbox to function properly.
Any ideas if this can be set to the default when uploading images?
Forum: Fixing WordPress
In reply to: WordPress adds images to gallery – lightbox does not work?Another thing:
On the live server:
When I have 3 images lined up in 1 post, and lightbox is turned off, I can click on any picture and it generates a new page with the selected image in the middle and smaller previous and next images underneath?
In my local test server:
When I have 3 images lined up on 1 post, and lightbox is turned off, I can click on any image and it will display the full size image on a new page WITHOUT any previous or next thumbnail images?
This has to be some plugin that has refused to delete properly from my wordpress installation…surely?
Forum: Fixing WordPress
In reply to: Code for location bar: my website > Category 1 > Post 1Cheers for the tip! Breadcrumb Plus looks like it may do the job.
Thanks
JFu
Forum: Fixing WordPress
In reply to: wp-page-numbers incorrectly displaying on news only home pageAs long as the above code is placed above the wp-page-nembers code it works perfectly!!
For example:
<?php if (have_posts()) : ?>
<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query(‘showposts=10′.’&paged=’.$paged.’&category_name=News’);
?><?php if(function_exists(‘wp_page_numbers’)) { wp_page_numbers(); } ?>
Then add the loop
Thanks a million for your quick response!!!!!
Forum: Fixing WordPress
In reply to: What is wrong with this sidebar searchform???I am using the modified kubrick theme, but even when I strip the sidebar of all dynamic coding I still get the same result: the searchform can be seen but no searches can be made without duplicating <form method=”get”>???
A mystery…
Forum: Themes and Templates
In reply to: Images within HTML code of my theme not visibleThanks Alchymyth,
Works a treat – now my website is back on track!
Case closed