telophase: (Default)
telophase ([personal profile] telophase) wrote2007-06-25 04:40 pm

(no subject)

Well, I've managed to get the random generator code to run on WordPress. It's just not generating. Or maybe it's generating but not posting. I haven't figured that bit out yet. Figured out. Global variable issue. Working now! Now to figure out how best to port the generators to WP so as to (a) organize them and future generators and (b) not mess up anybody's links. Hm.
ext_1502: (Default)

[identity profile] sub-divided.livejournal.com 2007-07-07 12:26 am (UTC)(link)
Heyyyy, remember when you said you'd help if I had any WP-related questions? Well, I have a question. I set something up at http://sd.magatsu.net/blog/, downloaded some plugins and the Redie 3.0 () theme and activated them through the site admin page and everything worked fine. However, I ran into trouble when I tried to edit sidebar.php to remove the annoying bad English under the "Social Network" section of the right Sidebar.

I think the problem is that I rearranged the order of items in the sidebar through the admin page (Presentation --> Widgets) and this generated a file, "dynamic_sidebar.php", that's overwriting the content in "sidebar.php". But I'm having a hard time figuring out what to do about it. ^^; Information about "Social Network" does not appear in dynamic_sidebar.php, only in sidebar.php, but editing sidebar.php does not effect the way my blog displays.

Here's the code:

http://www-personal.umich.edu/~onyabear/journal/dynamic_sidebar.php
http://www-personal.umich.edu/~onyabear/journal/sidebar.php

Help? I don't know any php, all I know how to do is find the information I want to change, and change it. But even to my untrained eyes, dynamic_sidebar looks pretty messed up.

[identity profile] telophase.livejournal.com 2007-07-07 12:56 am (UTC)(link)
I'm on it. :) I'll let you know what I figure out. If the text is in the plugin, you may have to go edit it - on the plugin page, you have two links: one to activate/deactivate and one to edit. I'll poke around and see if it's anything else.

(and man, I hate tracking down *where* something is - is it a widget? a plugin? a theme file? AAARGH! XD And them adding widgets as native to the latest WP build didn't help the situation!)

[identity profile] telophase.livejournal.com 2007-07-07 01:03 am (UTC)(link)
What plugins do you have? Installing the theme on a test subdomain (http://folse.magatsu.net/) I've got allowed me to edit the Social Network box in the sidebar.php file. If you're not able to, it might be a plugin taking precedence (though why it'd copy the box text from the original, I have no idea).
ext_1502: (Default)

[identity profile] sub-divided.livejournal.com 2007-07-07 01:37 am (UTC)(link)
Active Plugins:

Akismet
Auto-hyperlink URLs
Brian's Threaded Comments
Comment Email Responder
Extended Comment Options
OpenID Registration
Sociable
WP-Polls
WP-Polls Widget
WP AJAX Edit Comments

Akismet and WP-Polls Widget are the only two plugins that come with widgets.

I also have a wp-ljtags php file in my root directory that is supposed to allow Wordpress to recognize livejournal coding, although I have had some trouble with it. At first it allowed WP to recognize the lj code in imported lj entries, and would keep it, but if I tried to re-categorize those those entries (which for some reason requires that I re-publish them) Wordpress would helpfully close all of those nasty open lj-cut tags and change all the italics tags to em tags and bold tags to strong tags. Now WP isn't even recognizing the code in imported entries, it's changing them as they're imported. I really don't want to have to edit every entry by hand to fix the tags...

[identity profile] telophase.livejournal.com 2007-07-07 01:49 am (UTC)(link)
Found it! It's in the widget code, which is contained in function.php in the theme editor. Load it, then ctrl-f and type in 'mysocial' to find that function - it's right near the end. You can edit the text and links there.

The function is named: function widget_mytheme_mysocial() {
ext_1502: (Default)

[identity profile] sub-divided.livejournal.com 2007-07-07 02:04 am (UTC)(link)
Thank you!!! I never would have found that on my own.

[identity profile] telophase.livejournal.com 2007-07-07 02:09 am (UTC)(link)
It's taken quite a lot of beating my head against a desk over the past six months to figure out where things are likely to be lurking. XD

I think this one was especially aggravated by widgets becoming native, so the stupid English was coded into two different places by the guy who made the theme. Otherwise he'd have had to write a separate widget for it, and you'd have known where it was.

[identity profile] telophase.livejournal.com 2007-07-07 01:51 am (UTC)(link)
As far as the wp-ljtags thing goes, I have no idea. XD There's plugins I've found that ended up not working for me that I ended up replacing - I think I went through three of them to find one that would allow me to post working PHP code to pages in the blog, *and* that had good enough documentation to explain how to set up the PHP code I was posting so it would work.
ext_1502: (Default)

[identity profile] sub-divided.livejournal.com 2007-07-07 02:02 am (UTC)(link)
I'm just frustrated because it WAS working, and now it isn't. XD;; The code works, but WP doesn't know in advance that the code is going to work, and takes the liberty of altering it to something more standard. (Though why em tags should be standard and not italics tags, I don't know.)

At least that's what I think is happening. It wouldn't be such a big deal if I could import a few entries at a time, edit them, then take a break for a little while and come back and add a few more later, but importing new entries also causes the code in exisiting entries to revert, for some reason. I could also honestly live without lj tags on a non-lj blog -- just edit them out entirely -- if it wasn't for those annoying em tags popping up everywhere.
ext_1502: (Default)

[identity profile] sub-divided.livejournal.com 2007-07-07 02:52 am (UTC)(link)
Oh my God. I can't deal. Forget all that stuff about mis-communicated lj-cut tags, WP keeps changing my italics tags back into em tags. I does this every time the blog is updated. Is there any way I can turn this automatic-correction feature off? Or get the em tags to look less awful? Should I just give up and find a new theme?

[identity profile] telophase.livejournal.com 2007-07-07 02:54 am (UTC)(link)
You know, I think there's a checkbox on one of the Options pages that says something about formatting XHTML properly, and it might stop doing that if you uncheck it. I'll go look for where it is. XD

[identity profile] telophase.livejournal.com 2007-07-07 02:56 am (UTC)(link)
OK, it's invalidly nested XHTML, and I remembered it because I had to make sure it was off for PHP. Dunno if it'll do anything about the italics tags.
ext_1502: (Default)

problem solved!

[identity profile] sub-divided.livejournal.com 2007-07-07 03:25 am (UTC)(link)
I already had that option unchecked. Turns out what I needed to turn off the visual text editor. (This must be one of those steps that is so basic, everyone forgets to mention it.)

Re: problem solved!

[identity profile] telophase.livejournal.com 2007-07-07 04:25 am (UTC)(link)
You know, that problem frustrated the hell out of me when working out the PHP plugin; you'd think it would ahve occurred to me. XDD