converting2wp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: changing themes[One question per post, please.]
Yes, I do all my CSS edits in Dreamweaver. Your theme has a style.css file. The path to the theme file, if you’ve got any questions, will show in the Manage Themes administrative subpanel.
You may want to take care if you plan to update the theme, and if you’re using a theme that has an extensive system in the WordPress admin to change style characteristics, your mileage may vary. But for simple themes, style.css is where most things are set.
———-
As for your second question —
o Do you want the e-mail sent to the administrator? all subscribers?
o By “response” do you mean “post” or “comment” or both?
o Do you mean “posted by administrator” only? or posted by anyone?Maybe you could make the clarifications in a new post with a more appropriate title.
Thanks and I hope you get comfortable with WordPress and grow to like it!
Forum: Requests and Feedback
In reply to: Feature Request: Total ExportI haven’t tried it and I have no relationship to the company — but http://pluginbuddy.com/purchase/backupbuddy/ got some good comments at WordCamp Raleigh
Forum: Fixing WordPress
In reply to: PHP variable persistence/scope between template filesMany thanks to you both. I haven’t tested yet, but I expect you’ve given me exactly what I need. While the PHP.net references may have seemed to be obvious places for me to check, as only an occasional programmer whose brain is still crufty with rules from other languages (and with, obviously, an incomplete understanding of the differences between setting and declaring variables) your pointing them out was very helpful.
Forum: Fixing WordPress
In reply to: Alternating content area background colour?This seems like a specialized requirement, so I’d guess it’s unlikely there’s a plugin for it, but if you know a bit about CSS and PHP, modifying your theme for this requirement should be possible.
Off the top of my head, look in your theme’s header.php file for the line that pulls in the style.css file, something like
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen,print" />
just below the <title>…</title> section. It may not look exactly like that, but somewhere in the header.php file there’s a link to your style.css file.You can add lines there to pull in different CSS files depending on what your requirements are. For instance,
1. create a css directory in your theme directory (if it’s not already there)
2. in that directory create the css files
Sun.css, Mon,css, Tue.css, Wed.css, Thu.css, Fri.css, Sat.css
with the code you want to use on the different days of the week.
3. Then in your header.php file, use the PHP function date and add a line like
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_url'); ?>/css/<?php echo date('D'); ?>.css" />Does that sound like what you want?
You could, of course, use a different function to select the auxiliary CSS file — and create those files using some other scheme.
Forum: Fixing WordPress
In reply to: text of post disappears after adding table with image and textI’m not entirely sure I understand what you’re asking, but have you tried
<table> <tr> <td>[picture]</td> <td>Put the text you want between the "table data" tags</td> </tr> </table>If you’re actually putting text between the “</td>” and the “</tr>” then that’s invalid HTML and results are unpredictable.
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Landing PageAt the bottom-left of the area where you’re editing your form, there’s a section “Additional Settings”.
Click the “show” link and it will open up a text area where you can add additional settings :-).
That’s where the line you reference goes. Mine looks like
on_sent_ok: “location = ‘/pay-dues’;”
which uses a relative address as I move the site from DEV to TEST to Production.
Forum: Fixing WordPress
In reply to: Characters have changed from ” to ’However, in the interest of moving forward, I did just investigate another solution.
I installed the Search Regex plugin. [It appears to be the search and replace plugin that’s had the most recent development and its version 1.4.11 is compatible to WP 2.9.2 which is what I’m running.]
I used it to make the following replacements:
 ->   — => — ’ => ’ †=> ” “ => “and things look much better.
Forum: Fixing WordPress
In reply to: Characters have changed from ” to ’mediabaron’s link appears to suggest commenting out the defines for DB_CHARSET and DB_COLLATE. That didn’t work for me.
My problem arose when I migrated a WordPress install from one hosting service to another. Both databases were set for UTF8 (and there were no defines for DB_CHARSET and DB_COLLATE in the wp_config.php file until I added them trying to fix the problems).
The weird characters (e.g. “) do seem to be in the database (at least according to phpMyAdmin) — but one server must have settings that translate the characters to ones that the browser understands. I’m seeing the same behavior with Firefox and IE on Windows and Safari on a Mac — things look fine when the data is served from one system, garbled from another.
Since these characters *are* apt to appear in future posts, does anyone have suggestions on where to look for a server-side solution?
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Landing PageA “thanks for submitting the form” page is one thing. A page (or e-commerce system) that actually *uses* the data from the form is another. It sounds as if your question is related to the one I asked in http://ww.wp.xz.cn/support/topic/399486?replies=3 — but I don’t think my strategy is optimal, and it may not work for you. But I thought I’d share here in case you have a better solution.
Here’s the code snippet:
if ( 4 == $cf7->id ) { ... do stuff ... }Forum: Fixing WordPress
In reply to: Form handling with WordPress – How to?The third parameter there is the expiration time of the cookie and it should obviously be something other than “0”. Sorry for copying in test code.
See the debugging link above for a way to write debug output to a file (rather than back to the browser, where, depending on the state of the rest of the http transaction it may not get all the way through).
I’m still feeling like the blind person figuring out an elephant while I’m poking around the plugin structure, but in svoinea’s example the line was
add_action( 'wpcf7_before_send_mail', 'my_conversion' );and the second parameter was the function, not the first.
If you want to be sure that there are no other functions tied to that hook, precede it with
remove_all_filters ('wpcf7_before_send_mail');Forum: Plugins
In reply to: [Plugin: Maintenance Mode] MM 5.1 won’t install<offtopic>
@onewordsmith In the top right of the forum pages you’ll seeWelcome, onewordsmith! View your profile (Log Out)
Click the “View your profile” link, and it will take you to a page with the threads you’ve started and/or commented on.
The one you want is
http://ww.wp.xz.cn/support/topic/400999?replies=2PLEASE do not add comments to completely unrelated threads.
</offtopic>[Of course, how s/he’s going to find this comment … But maybe it’ll help someone else.]
Forum: Fixing WordPress
In reply to: PHP variable persistence/scope between template filesAnd commenting out either one of the global’s in the plugin2.php file makes no difference.
Forum: Fixing WordPress
In reply to: PHP variable persistence/scope between template filesOkay, I’m still missing something basic. I’ll admit it’s probably PHP rather than WordPress, but here’s my situation.
functions.php:
global $testvar; add_action( 'hook_defined_in_plugin1', 'my_process_plugin1_data');I’ve written “plugin2.php” and installed/activated it. Its code contains
global $testvar; function my_process_plugin1_data( --args as from plugin1-- ) { global $testvar; $testvar="this is in the data processing function"; }Finally in a PHP template file for a page displayed after my_process_plugin1_data executes, I have
global $testvar; echo "<br />Confirm var value===".$testvar."===</br>";but $testvar shows up as an empty string.
I’ve confirmed the hook/action works — in the template file I can retrieve a cookie that’s set by the my_process_plugin1_data function. But I just can’t seem to get the function and the page communicating through a variable.
I’ve searched the docs and the book “WordPress Plugin Development” — but nothing jumps out as the step-by-step way to set up this communication.