Prime 357

We'll learn something

Site Menu

  • Home
  • Recent Posts
  • Forum
    • Programming Languages
      • C++
    • Website Design & Content Management
      • Wordpress >> Drupal
  • Blogs
  • Topics
    • C++
    • Changing hosts - Dummies Guide
    • Wordpress >> Drupal
  • Download Centre
  • Contact us
Home Wordpress to Drupal Wordpress 2.5


Image - OpenID

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password

Navigation

  • Recent posts

Topics

  • C++ (The Book)
  • Changing Hosts - a Dummies Guide
  • Wordpress to Drupal
    • Wordpress 2.1 - 2.2
    • Wordpress 2.5
      • General Requirements
      • Program - Converter
      • Search and Replace
      • Explanation of Import
      • Versions

Recent comments

  • Got it solved This page here
    2 hours 29 min ago
  • Links working
    1 day 2 hours ago
  • Thanks... I may be able to
    1 day 8 hours ago
  • 3306 by default
    1 day 18 hours ago
  • Is this the right place to
    1 day 18 hours ago
  • Figured
    3 weeks 6 days ago
  • I'm guessing at this stage
    3 weeks 6 days ago
  • WordPress MU?
    4 weeks 3 hours ago
  • Thanks
    10 weeks 1 day ago
  • I'm running the conversion
    11 weeks 4 days ago

New forum topics

  • What should the port number be
  • WordPress MU?
  • funny little bug in mac version
  • Error: Unable to Insert into Node_revisions table when converting from wordpress 2.6.0 to drupal 6.4
  • index.php?
more

Who's online

There are currently 0 users and 1 guest online.

Who's new

  • oODeathStormOo
  • leruffiant
  • Emtee
  • mnogodet
  • ZioMimmo

Search and Replace

  • View
  • Revisions
Submitted by Steve on Fri, 18 Apr, 2008 - 12:35
  • CMS
  • Drupal 5.x
  • Wordpress 2.5

Caution

If you don't know what you are doing this module can be very dangerous. You have the ability to effectively change all the content in one fell swoop. If you do, that shouldn't be such a big problem, more an inconvenience, as you will have a backup (remember - backups). This aspect of the utility is intended for post import procedures though it could also be used without having imported anything.

Connection

In order to access this window a connection must first be established. Clicking the 'Search and Replace' button from the main opening window will activate this window. If a connection hasn't been established the Connection window will first appear. Upon successful connection (only to the Drupal database) the user is progressed to the Search and Replace window.

Image - Search and Replace

Criteria

It should be fairly self-explanatory what happens here. Enter text to be replaced in the 'Find What...' text box. Enter text that is to replace the searched text in the 'Replace with' text box.

Find (Preview First)

Click the 'Find (Preview First)' button and the first matching record will be displayed in both the bottom panels. The left panel will display the original post and the right panel will indicate the result of the replace operation. At this point no changes have occurred, it's merely a preview. Also note, it only shows the first matching record. There could be 100's of matching records which you are advised by a message box.

At this point you have the ability to change the criteria, click the 'Find...' button again and peruse the results.

Replace (satisfied - commit)

If, and only if, you are satisfied with the replace operation, click the 'Replace (satisfied - commit)' button. This will make the necessary replacements throughout the entire Drupal database (teasers and full entries).

Possible Use

You may have transferred all your images from an old server to a new server in the whole process of updating to Drupal. All your Wordpress entries regarding links to your images will still be intact. Such images maybe linked like so

<a href="http://yoursite.com/wordpress/wp-content/image-001.jpg"...</a>

If your images have been transferred to 'drupal/files/images/' then the correct link should be

<a href="http://yoursite.com/drupal/files/images/image-001.jpg"...</a>

To make this change simply enter
href="http://yoursite.com/wordpress/wp-content/"
in the 'Find' text box, and

href="http://yoursite.com/drupal/files/images/"
in the 'Replace' text box.

All posts will be replaced with the new link information.

‹ Importing Progress up Explanation of Import ›
  • Printer-friendly version
  • Login or register to post comments
  • 439 reads

 Subscribe in a reader

free hit counter


RoopleTheme