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
cocteau
Nov 28, 2005

The best Darcy.

Nimrod posted:

So I'm working on customizing some pages in Wordpress, and for some reason, I want to list the child pages, but the border of my content area is blocking off the bullet, but only for firefox:

http://eugenebike.com/tips/

Would my best option be to add a margin to the #content or is there actually an error I'm not catching?

I just went into the CSS and changed this:

code:
.entry-content,
.entry-summary {
	clear: both;
	padding: 5px 5px 0 0px;
}
to

code:
.entry-content,
.entry-summary {
    clear: both;
    padding: 5px 5px 0 20px;
}

.entry-content li {
margin-left: 20px;
}
You might want to tweak it further, particularly if you use lists a lot, but that should be a starting point.

Adbot
ADBOT LOVES YOU

Nimrod
Sep 20, 2003
Perfect. I'll be customizing it further as I learn more. I don't think I'm doing bad considering the last time I had a website, tables reigned supreme.

Edit: Turns out, all I needed to do was throw it in a nice unordered list, and everything is good even without that new element in my stylesheet.

code:
<ul>
<?php wp_list_pages('title_li=&child_of='.$post->ID.'&echo=1'); ?>
</ul>
edit: I also figured out how to kill the bullets, yay!

Nimrod fucked around with this message at 02:12 on Oct 15, 2010

htabz
Jan 15, 2004
I've ran into a problem with Wordpress MU and honestly don't even know what else to try.

I'm trying to set it up so each user has their own personal blog, but their blogs also post to the main blog page, for the category they are in.

There are four basic blogger types:
Admin
Cattes
Dogs
Robots

And four different pages for their blogs to be displayed:
Front page news
All Catte blogs
All Dog Blogs
All Robot blogs

So if a Catte post a blog on his own personal blog (/blogs/catte123) it would also show up on the "All Catte Blogs" page.

I've spent the past few hours messing around with categories to no avail, as I guess they are categories for the main blog index, so when catte123 logs into his own personal blog, he can't just click the proper category box to also cross post it in like I envisioned.

What should I try next?

mcsuede
Dec 30, 2003

Anyone who has a continuous smile on his face conceals a toughness that is almost frightening.
-Greta Garbo
That's...that's not really how wordpressMU works. It's for entirely separate blogs. Any particular reason you're trying to use MU instead of just having authors and showing author posts on the author page and all posts on the main page, with any posts to a particular category shown on a category post page?

htabz
Jan 15, 2004

mcsuede posted:

That's...that's not really how wordpressMU works. It's for entirely separate blogs. Any particular reason you're trying to use MU instead of just having authors and showing author posts on the author page and all posts on the main page, with any posts to a particular category shown on a category post page?

That's what I've pretty much learned today. We originally wanted each user to have their own blog, but it seems like just using the show all post by author is going to have to suffice.

Thanks!

revmoo
May 25, 2006

#basta

cocteau posted:

I'm sure I must not be understanding you. You're not actually asking if there's a plug-in to insert line breaks?

I suppose there could be, but you'd still have to enter a short code like [br] which wouldn't save any time but would take up additional server resources to generate the HTML.

Maybe you meant something else though?

Wordpress strips line breaks, even in HTML mode.

Sterf
Dec 31, 2004

My website somehow returns the first subcategory of my 'Reviews' category whenever you go to it without the https://www.

So https://www.cultreviews.com goes to the homepage, while cultreviews.com goes to 'Action Reviews' :confused:

Any idea why the hell it would do that?

edit: as for the linebreaks discussed above, I'm using TinyMCE Advanced and it has an option to stop removing <p> and <br /> tags.

Sterf fucked around with this message at 13:14 on Oct 13, 2010

wwb
Aug 17, 2004

So, we've got a few wordpress blogs strewn about the net. Looking to unify the hosting scenario, looking at running on IIS7 rather than something *NIX because we know IIS/Windows very well and know gently caress all about managing *NIX boxes. Is this a horribly bad idea?

cocteau
Nov 28, 2005

The best Darcy.

revmoo posted:

Wordpress strips line breaks, even in HTML mode.

Ah. Now I get what you meant.

Although not very elegant (and something that likely will evoke scorn from a hardcore WP user/coder), this is my work-around:

code:
<p>&nbsp;</p>

Twiin
Nov 11, 2003

King of Suck!

cocteau posted:

Ah. Now I get what you meant.

Although not very elegant (and something that likely will evoke scorn from a hardcore WP user/coder), this is my work-around:

code:
<p>&nbsp;</p>

I use TinyMCE Advanced, but this works without it and is a bit more elegant:

code:
<br class="blank" />

mongoibur
Jun 10, 2005

take my breath away
I'm having an annoying problem I've been trying to fix, but I don't even know where to start. Sometimes I like to share a new blog-post on facebook, but when I paste the link it doesn't show the text or any of the pictures in the post in the preview. It's the text from the comment-section that shows up as text (You can use HTML: <a href="" title=""> <abbr t...), and the pictures are from a widget.

Is there something I can do to the code so that when I paste in a link to a blog post in facebook, the preview shows the actual content?

Edit: Using Ten Twenty

mongoibur fucked around with this message at 18:57 on Oct 13, 2010

revmoo
May 25, 2006

#basta

Twiin posted:

I use TinyMCE Advanced, but this works without it and is a bit more elegant:

code:
<br class="blank" />

Beautiful!

mcsuede
Dec 30, 2003

Anyone who has a continuous smile on his face conceals a toughness that is almost frightening.
-Greta Garbo

wwb posted:

So, we've got a few wordpress blogs strewn about the net. Looking to unify the hosting scenario, looking at running on IIS7 rather than something *NIX because we know IIS/Windows very well and know gently caress all about managing *NIX boxes. Is this a horribly bad idea?

http://www.microsoft.com/web/wordpress/

NotShadowStar
Sep 20, 2000
I never did figure this one out. Is there a more elegant way of linking to an image included in the theme rather than

php:
<?
<img src="/wp-content/themes/clownfarts/images/clownbutt.png" alt="effu" />
?>

KuruMonkey
Jul 23, 2004

NotShadowStar posted:

I never did figure this one out. Is there a more elegant way of linking to an image included in the theme rather than

php:
<?
<img src="/wp-content/themes/clownfarts/images/clownbutt.png" alt="effu" />
?>

You want to be replacing that with:

php:
<?
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/clownbutt.png" alt="effu" />
?>
Which will take the url of the dir that the main stylesheet is from. (which is, basically, your theme's directory, but will be correct if you are using a child theme as well as if not, bloginfo('template_directory') or bloginfo('template_url') both fuckup if you're building a child theme; they return the path of the parent)

bloginfo (and even more; get_bloginfo) is your friend; hit up the codex.

Lareous
Feb 19, 2008

As a tip for anyone wanting to save time/money there's some kind of deal going on at Themeforest where they have bundled a few themes/other miscellanea worth about 250 bucks and are selling it at $30. I picked it up mostly for the mobile theme but there's some other decent stuff in there too.

Nimrod
Sep 20, 2003

cocteau posted:

You might want to tweak it further, particularly if you use lists a lot, but that should be a starting point.

This is my final result:
code:
function remove_page_class($wp_list_pages) {
$pattern = '/\<li class="page_item[^>]*>/';
$replace_with = '<li class="noBullet">';
return preg_replace($pattern, $replace_with, $wp_list_pages);
}
add_filter('wp_list_pages', 'remove_page_class');
Works perfect, I hope it doesn't cause any problems in the future.

tonelok
Sep 29, 2001

Hanukkah came early this year.
WordPress 3.1 Feature Status Update :circlefap:

quote:

Post Formats – “Allow denoting a post as a certain format. Some example formats are aside, gallery, link, quote. This will allow themes to style these posts according to format.” (ready to go, awaiting decision to include a UI that themes can enable)

Custom Post Type Index Pages - Provides an index for custom post type virtual directories. (first round is in)

Internal linking – “. . . you click a button for an internal link . . . and it allows you to search for a post or browse a list of existing content by title, date, author, etc. and select it for inclusion.” (patch provided)

Ajaxified Admin – “. . . makes most columns sortable, introduces a new pagination style, ajaxifies sortable columns, pagination & search . . .” (ready to go)

User Admin - Provides a more personal Dashboard; “a single endpoint for accessing profile information, cross-site preferences, a launching point for accessing all of a user’s blogs, collation of stats across all of a user’s blogs, a place for a multisite aware QuickPress, etc.” (first round is in)
A lot of multisite/multi-user stuff as well.

Doh004
Apr 22, 2007

Mmmmm Donuts...
I just developed my first plugin and I enjoyed the process.

My boss now wants the ability to upload images for the plugin. Have you guys used a plugin that would do this automatically and integrates right into WP 3, or should I just implement it myself?

I have a fair amount of PHP image uploading experience so I'm not worried about how I'd do it. I just figured an existing plugin that I could integrate into my own would save me time.

Thanks.

Agedashi Tofu
Jul 27, 2004

I paid money to type stuff here.
Has anyone ever built a wp site with an events calendar that users can add to before?

I'm digging through the plugins on wordpress.org, but it seems like a lot of them require admin access to add events, or they sync up with google calendar. I'd like something where a visitor can come to the site and add an event - or the visitor creates an account and is then granted access to the add event feature.

I'm probably just blind and looked right at the plug-in I'm wanting, but I can't seem to find it.

Or is wordpress just an overall bad choice for something like that? There will be other parts to the site, but one of the main functions is the events calendar.

mcsuede
Dec 30, 2003

Anyone who has a continuous smile on his face conceals a toughness that is almost frightening.
-Greta Garbo
There's a well regarded Events Calendar for sale on CodeCanyon. Not sure if it has what you're looking for but it's worth asking the author.



Not quite sure I get the point of Post Formats in 3.1...seems like a functionality that already exists, just prepackaged somewhat in a Tumblr fashion? I really feel like they have a lot of work to do with custom post types and custom taxonomies before they're really useful to the non-programmer wordpress user.

mcsuede fucked around with this message at 03:57 on Oct 19, 2010

Tortilla Maker
Dec 13, 2005
Un Desmadre A Toda Madre
I'm out of my element.

I don't recall modifying any of the files when I uploaded the theme, but my sidebar (which isn't really a sidebar since it's located at the bottom) isn't centered.

I re-uploaded all of the files but it's still not centered. I also tried changing themes and it too was not laid out the way it is intended to.

For reference, the theme I have uploaded at the moment is "Ambiru" which can be found for free.

I can upload the code in any of the files if I'm pointed in the right direction, otherwise you can see the problem by scrolling to the very bottom: http://www.mexifut.com :unsmith:

Doh004
Apr 22, 2007

Mmmmm Donuts...

Tortilla Maker posted:

I'm out of my element.

I don't recall modifying any of the files when I uploaded the theme, but my sidebar (which isn't really a sidebar since it's located at the bottom) isn't centered.

I re-uploaded all of the files but it's still not centered. I also tried changing themes and it too was not laid out the way it is intended to.

For reference, the theme I have uploaded at the moment is "Ambiru" which can be found for free.

I can upload the code in any of the files if I'm pointed in the right direction, otherwise you can see the problem by scrolling to the very bottom: http://www.mexifut.com :unsmith:

Well, your #sidebar is floating to the right, so that would explain why it's not centered. Just go into your style.css and fix it all.

Ned
May 23, 2002

by Hand Knit
You need to do this:

modify your style.css #sidebar and remove the float: right; and make the width: 514px; and the margin: 0px auto; and add overflow: hidden; then make the background repeat instead of repeat-x or just remove the reference to an image and set it as a color.

But your page is super skinny. You'd be better off finding a them that is about 990 pixels wide and has navigation elements on the right. Your menu at the top is too big for the theme anyway.

cocteau
Nov 28, 2005

The best Darcy.
Since there's a number of Austin folks in this thread, we announced (and immediately sold out :( ), WordCamp Austin for Dec. 4th.

However, for those of you in Austin not lucky enough to get a ticket, we're talking about having an official happy hour the night before, and I'm keen to do something similar on the day of the event.

I'd love for anyone who's attended other WordCamps (or is planning to!) to post in the thread from time to time.

Tortilla Maker
Dec 13, 2005
Un Desmadre A Toda Madre
Thanks for the assistance. Looks as though everything is centered now. I agree that the theme isn't the best and I'm shopping around for something better. Thanks again to both of you!

tonelok
Sep 29, 2001

Hanukkah came early this year.

Agedashi Tofu posted:

Has anyone ever built a wp site with an events calendar that users can add to before?
I think this might do it.

http://wordpress.org/extend/plugins/the-events-calendar/

You can create posts which create events.

tonelok
Sep 29, 2001

Hanukkah came early this year.

cocteau posted:

Since there's a number of Austin folks in this thread, we announced (and immediately sold out :( ), WordCamp Austin for Dec. 4th.

However, for those of you in Austin not lucky enough to get a ticket, we're talking about having an official happy hour the night before, and I'm keen to do something similar on the day of the event.
Oh gently caress I wasn't even paying attention. Oh well, I'm going to try and hook up with a few people probably.

On another note, those interested in bbPress as a plugin, download the ZIP file here (at the bottom/center):

http://trac.bbpress.org/browser/branches/plugin

Set it up in your plugins directory (it may bury it a directory or two down so you have to move it up).

I can tell you this much about the bbPress plugin:

1) It's fast
2) Search is integrated with WordPress
3) It's bare as hell. I'm not talking theme or styling.

The default I think is made to work with 2010, and I'm not sure about other themes. I'm using a heavily modified 2010 that is basically styled like a CMS and it seems to be fine.

But it is bare. There is no hierarchy or anything as far as I can tell and no way to list the forums on the end-user side - the forum posts act like blog posts or pages. I could be wrong though and missing a few things.

This is bleeding edge so don't bother replacing your existing bbPress install with it. It looks like he's just testing the posting code and some of the back-end stuff. You can follow development and testing through this thread:

http://bbpress.org/forums/topic/bbpress-plugin-updates

and

http://bbpdevel.wordpress.com/

Tortilla Maker
Dec 13, 2005
Un Desmadre A Toda Madre

Ned posted:

You need to do this:

modify your style.css #sidebar and remove the float: right; and make the width: 514px; and the margin: 0px auto; and add overflow: hidden; then make the background repeat instead of repeat-x or just remove the reference to an image and set it as a color.

But your page is super skinny. You'd be better off finding a them that is about 990 pixels wide and has navigation elements on the right. Your menu at the top is too big for the theme anyway.

I've revised the style.css and increased the width of the page. The sidebar is now properly centered on the main page. However, the problem still persists when viewing a page other than the main page (e.g. when viewing the About page or viewing older entries). For reference: http://www.mexifut.com/image-gallery/

I'm doing a small amount of tutorial reading but am just barely covering the basics at this point. I agree that a single column theme is quite limiting, but until I find a suitable 2 or 3 column theme, I'm hoping to make the current version of the blog readable. (also, the enormous list of categories isn't helping much in that sense).

excidium
Oct 24, 2004

Tambahawk Soars
Remove the width on your #siderbar. It's got a width greater than the width of the wrapper.

EDIT: Get rid of your theme. The page HTML is not laid out the same between the Home and About pages. If you notice, on the About, the #sidebar is a child of the wrapper, as it should be. On the Home, it is outside the wrap container. You won't have an easy time making it look consistent with it being of a different design on the separate pages.

If you want to rig it to work for now, make a new rule for #wrap #sidebar { width: auto !important }. That should get it to atleast stop overlapping on just those pages while you look for a suitable theme replacement.

excidium fucked around with this message at 14:34 on Oct 20, 2010

cocteau
Nov 28, 2005

The best Darcy.

excidium posted:

EDIT: Get rid of your theme.

I agree with this. It's not a very interesting site, and if you're so concerned about how the content is laid out, it really would make more sense to just get a better theme. Frankly, updating WordPress if you haven't done so, and using the default Twenty Ten theme with a custom banner image and no other modifications, would make a world of difference. You could still have your footer content the way you do if you wanted, and it would look a bit fresher and have cleaner code all around if you wanted to tweak it furtther.

cocteau fucked around with this message at 18:17 on Oct 21, 2010

First Time Caller
Nov 1, 2004

I want to create a wordpress blog with 9 sub-sites such that when I post to the "main" blog i can delegate to which of the sub-blogs the post gets re-published at. These sub-blogs need to be mapped to their own example.com domain. I'm assuming the wp3.0 "networks" concept is what I need to use here, along with a third-party plugin called WPMU Domain Mapper (which I'm also assuming works with a WP "Network")

Am I thinking along the right lines here? Any good resources on developing this out?

First Time Caller fucked around with this message at 19:53 on Oct 20, 2010

iwannabebobdylan
Jun 10, 2004
What's the general consensus on using photographs for the background of the site? Is loading them a bitch? Is that what this caching business is all about? Do we worry about those on 56k?

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

tonelok
Sep 29, 2001

Hanukkah came early this year.

bbPress developer posted:

Will be trying to hammer out the topic/reply counts this week, as well as a very basic front end New Topic/New Reply form.

That's all it needs to be functioning in a skeletal capacity for initial proof of concept testing and iteration.

bbPress developer posted:

I just committed a first pass at New Topic and Reply forms. They need escaping and a security sweep, but appear to work well enough so far.

I've also opened a few tickets for a few things that I haven't started, for those that are interested in getting involved and dirty with some code.

bbPress plugin is starting to come together pretty fast.

tonelok
Sep 29, 2001

Hanukkah came early this year.

iwannabebobdylan posted:

What's the general consensus on using photographs for the background of the site? Is loading them a bitch? Is that what this caching business is all about? Do we worry about those on 56k?
I would try and save them at a decently optimized setting so that they aren't huge. Even if you don't care about 56k, it's a waste to not optimize your images, plus plenty of people doing the smartphone on 3G thing these days.

As for caching, caching is taking pages and posts and converting them into basically a static file, to keep your server from having to build the page from the PHP/database every time. It takes up virtually no server resources to serve a cached page/static file.

If you have 200 people connecting at the same moment, and 150 people are pulling cached pages/posts and 50 are loading pages/posts that are generated on the fly by the server, it's a huge difference over say 200 people loading pages/posts that are generated on the fly by the server.

In the case of a background photograph, it's static and not a page of content being pulled out of a database and then being run through a template. It's not going to be an issue. If you're worried about low-bandwidth visitors, besides optimizing, you probably have other areas to optimize. Avoid Flash, etc.

tonelok
Sep 29, 2001

Hanukkah came early this year.

cocteau posted:

I agree with this. It's not a very interesting site, and if you're so concerned about how the content is laid out, it really would make more sense to just get a better theme. Frankly, updating WordPress if you haven't done so, and using the default Twenty Ten theme with a custom banner image and no other modifications, would make a world of difference. You could still have your footer content the way you do if you wanted, and it would look a bit fresher and have cleaner code all around if you wanted to tweak it furtther.

Twenty Ten Weaver is based on the Twenty Ten theme:

quote:

Twenty Ten Weaver allows you to tweak almost everything. You can change colors, fonts, sidebar columns, header size, and more. This theme also includes several new theme looks for an easy start.

If you scroll down that page, you'll see a list of features, plus a bunch of screenshots showing the different things that can be done. I'd highly recommend it for somebody not too familiar with theme editing, since you can do everything through the dashboard.

Tars Tarkas
Apr 13, 2003

Rock the Mok



A nasty woman, I think you should try is, Jess.


tonelok posted:

Twenty Ten Weaver is based on the Twenty Ten theme
Twenty Ten Weaver is really good, I use it since I was just going to hack up the Twenty Ten theme anyway and it saved me time. I haven't messed with the header image yet but everything else I changed was simple (and one of their pre-made themes was close to the colors I was planning on using)

cocteau
Nov 28, 2005

The best Darcy.

cocteau posted:

I agree with this. It's not a very interesting site,


I just saw my comment again and realized that came out wrong. I wasn't critiquing the content, just the design. The content is fine.

Sorry. :(

Adbot
ADBOT LOVES YOU

abelwingnut
Dec 23, 2002


I just built my first WordPress site, thanks to Cocteau: http://www.therakishlife.com. Is there anything I'm missing? Anything jarring that should be changed? I know some of the code is weird for Search and a few other things, and I do plan on fixing those in the next few days.

But yea, just a general critique from pros would be nice. Thanks in advance.

abelwingnut fucked around with this message at 05:43 on Oct 22, 2010

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