Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
I've done something bad to my blog, but I can't work out how to fix it.

It's here: *

I can't get at the dashboard. If I try to log in, either through the link onscreen, or directly using the correct path, it just gives me the blog screen again.

The only 2 things I did, as far as I can remember, were to auto update, and when I was trying that, I got a fast CGI error. After the blog started behaving like it is now, I thought maybe it had only part-updated, so I cleared out the right files, and manually installed the newest version, and updated the database.

The other thing was to change the URL of the blog in the dashboard - from * to the above URL. I then changed back immediately after thinking about it and realising that was a bit stupid. When you navigate back to the main part of the website using the 'main' link in the navbar, despite it having a direct link, it remains within the blog subdirectory. I was trying to fix this. Buuut, if I'd already pointed the link somewhere else, I'm thinking it couldn't have actually made the change back as it was pointing at a part of my server that contained none of the wordpress files.

Sorry for that long winded description, I need some help figuring out what files I now need to alter to regain access

RobertKerans fucked around with this message at 00:05 on Nov 29, 2009

Adbot
ADBOT LOVES YOU

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
Merci beaucoup

& yeah, the subdomain is a bit lame, I'm just trying to get everything working first. Easy for who I want to find it to find it though, so I'm loth to change it. Sketchbook it could possibly be

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
I'm just rebuilding a template for my website here. The way I've set it up is to have the post title there in the left column, and the content (always an image) on the right. But I'd like to add descriptive text that appears for the single posts, under the title in the left column. I assume I can make a custom field that'll pop the text there, but implementing it, and custom fields in general, are confusing the gently caress out of me. If anyone could give me some advice on it I'd be grateful

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.

Twiin posted:

Use the 'excerpt' field in the editor with the_excerpt() tag in your template.

I know that actually would work, if I didn't use the excerpt for the thumbnail on the index page and used something else to do that, then called for the excerpt on single post views at the correct point in the code. Maybe

Ned posted:

What about custom fields is confusing you? I think the part that is strange is the idea of calling them custom fields in the post editor but then access them as get_post_meta() calls. The other thing that is confusing is the idea of having multiple custom fields with the same name but different values.

Anyhoo, get_post_meta() is that function you need to call. You need to shove in the id of the post/page, so use get_post_meta($post->ID, 'field_name', true); to return the first result as a string for the field_name.

If you want to store a bunch of values in the same field name you switch that to false, and then you get back an array and open up some interesting concepts. It would be easy to build galleries around a list of image ids that you associate with a post.

You can also use get_post_custom($post->ID); to get all of the fields and then build your page around looking for things that exist inside the array you get back.

This is getting to the answer I needed though, I don't think I phrased it very well (I need to call for the text part of every post at a different section of the single post view). It is the slightly dodgy naming conventions that have made this a little confusing to understand at times.

If I can't get it to work, or I can't get the latter to work and decide against falling back on excerps, I'll be back, thanks for the replies, apologies if it was a stupidly simple request

RobertKerans fucked around with this message at 16:56 on Nov 30, 2009

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
I know, that was something else I needed to geet sorted out. TBH, I think I'm best doing it through the excerpt as you suggested, it makes it simpler when I'm writing posts just to dump the text in that box and forget about it.

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
edit: sorted

RobertKerans fucked around with this message at 16:14 on Dec 28, 2009

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
I've just changed the way my site behaves, with child pages for portfolio items instead of a category. However, I tested it with both forms of display in place, and now I am stuck with mysite/portfolio-2/mypage in the permalinks instead of mysite/portfolio/mypage. How can i fix this?

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
The permalinks are /%category%/%postname%/, there was already a category of portfolio when testing, so WP automatically gave the portfolio.php template [and its children] a slug of/including portfolio-2. Category deleted, all posts gone, reset the permalinks also to no avail.

RobertKerans fucked around with this message at 19:36 on Feb 1, 2010

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
Ah well, unfortunately ended up dumping a series of posts to solve it; the portfolio was a set number of posts anyway, so it was just a [time consuming] matter of copying out the contents of custom fields. Just hoped there would be a simpler way around it, but just carefully altering the database entries didn't really do it, had to be brute force in the end. Cheers, though

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
I have set up my comments template, replacing the old WP template. It still needs a shitload of pruning, but I need to have a generic avatar for anyone with author/editor privileges, and a gravatar or twitter avatar for everyone else.
At the moment, I have a function defined to style the comments, buut I'm not sure how to translate this bit; it won't pull the default avatar any more.

code:
function js_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>

<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">

	<div id="comment-<?php comment_ID( ); ?>">

			<?php { if ($comment->user_id == $post->post_author): ?>
		
				<div class="commenttext authcomment"><?php comment_text() ?></div>

				<p><img class="avatar" src="<?php bloginfo('template_directory'); ?>/images/jsavatar.png" title="Jumping Ships" width="65" height="65" /></p>

				
			<?php else : ?>
				
				<div class="commenttext"><?php comment_text() ?></div>

				<p><?php echo get_avatar( $id_or_email, $size = '65', $default = '' ); ?></p>
				
			<?php endif; } ?>
I realise that wp now adds classes to the <li, so I could style it that way, and use a background image for avatars, but that doesn't really help unless I use a PHP stylesheet.

RobertKerans fucked around with this message at 14:16 on Oct 21, 2010

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
How can I test whether the blog has more than one author? I have a framework that I'm using for several sites, and I just wanted to drop in something conditional to save me having to strip out poo poo from multiple template files, but I can't figure out a function that works.

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.
I've just moved a site online from xampp; as usual, I exported the sql file, ran a search replace, uploaded everything, checked all the options are correct in the db etc, but this time I can't fix the permalink errors I'm getting. I can access the site fine, everything works perfectly otherwise.
The top-level menu has three entries - an information page, then 2 cpt archives. None of them work after resetting permalinks. If I switch the permalinks to default, the page link is fine, and I can access individual posts if I type them in by hand, but I get 404s consistently for the archives, doesn't seem to matter what structure I use. Just wondering if anyone had any ideas

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.

fuf posted:

I want pages listing all the posts in certain categories, but I also want unique description text on each of those pages ("the posts in this category are about...").

Do I have to create a separate page template for each category? What I'd really like is to use a single template and then when I add a page somehow tell the template which category to list posts from.

Just one category page (or just index + conditional), then
code:
echo category_description( );
dropped in somewhere. Defaults the currently queried category. Fill in the category descriptions. That's it.

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.

rugbert posted:

Can anyone recommend a simple e-commerce plugin for listing downloadable products to sell? So something which will help me sell software packages, or plugins, or any sort of downloadable product.

Im not even sure how it would work but Im thinking it would bring customers to a payment gateway, and then upon successful payment, send the customer an email with a hashcode to download the package? I dunno, Ive never really worked on anything e-commerce before.

I'm busy implementing this on a site - it seems to be pretty good so far, and it should do what you want: Easy Digital Downloads.

Adbot
ADBOT LOVES YOU

RobertKerans
Aug 25, 2006

There is a heppy lend
Fur, fur aw-a-a-ay.

samglover posted:

I'm getting some weird more tag behavior on my blog, with a custom theme.

This post, for example, looks find if you go to the regular URL: http://caveatemptorblog.com/mcdonalds-publishes-guide-tipping-help-minimum-wage-employees/

But if you click on the Keep reading --> link, you cannot scroll up past the break: http://caveatemptorblog.com/mcdonalds-publishes-guide-tipping-help-minimum-wage-employees/#more-11741

Edit: In fact, it works for any anchor: http://caveatemptorblog.com/heres-income-inequality-us-looks-like-one-image/#disqus_thread

Any idea what could be causing this? I'm stumped.

overflow:hidden on the #page_container is causing it. There's a scroll happening, it's just hidden. You'll need to check it doesn't break anything else, but that should fix the primary problem, it works fine if I delete the rule in devtools.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply