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
Ned
May 23, 2002

by Hand Knit
Go for html5. No reason to do anything else if you want to learn.

Adbot
ADBOT LOVES YOU

KuruMonkey
Jul 23, 2004
Indeed; learn the standard everyone is moving to, not the one everyone's moving from.

(its also much better and simultaneously less annoying than xhtml strict)

Ziir
Nov 20, 2004

by Ozmaugh
I'll do that then!

Is it possible to make my default page a static page, and have one of my pages be something called "Blog" with (you guessed it) the blog? What about if I wanted the blog on a subdomain? Say mywebsite.com would load up a static about page (I plan on using this as an online resume kind of), and then blog.mywebsite.com would be my actual blog?

Edit: Figured it out, kind of. I don't think I can configure subdomains with xampp so I'll have worry about those ones later when I get proper hosting.

Ziir fucked around with this message at 05:15 on Jan 7, 2010

Ned
May 23, 2002

by Hand Knit
Get some cheap, proper hosting and develop on a subdomain. That is what I do when I make WordPress sites and I am very happy with the process. The big thing with local development is it is hard to show people things when you need some help/advice.

excidium
Oct 24, 2004

Tambahawk Soars
Thanks Ned, I got the rendering thing fixed now.

I'm on to another issue though. I have a pretty slick jQuery slider that has my login/registration forms. The problem with it is that there is no error handling in it, so if you enter the wrong username/password it kicks you back to the regular WP login screen. I've seen a multitude of plugins that are based around themeing your login/registration/profile pages, but I have not been that impressed with them to this point. Ideally I would like to just get the code I need from wp-login and make a Login page that the user is redirected to if their login or registration has errors. I have googled the hell out of how to do this but have not had any luck.

You can see what I mean here: http://brandonangelakos.com/dev

Anyone know how to accomplish this?

Ziir
Nov 20, 2004

by Ozmaugh
Is it possible to have a page only display blog posts with a certain tag or category?

Grayham
Jun 13, 2005

I just blue myself

Ziir posted:

Is it possible to have a page only display blog posts with a certain tag or category?

You can use the Wordpress get_posts() function.

http://codex.wordpress.org/Template_Tags/get_posts

Just enter the appropriate category ID or Tag ID.
php:
<?php global $post;
$the_posts get_posts('category=CATEGORY-ID&tag=TAG-ID');
foreach $the_posts as $post ?>

…Format your loop however you want…

<?php endforeach; ?>

Ziir
Nov 20, 2004

by Ozmaugh

Grayham posted:

:words:

Thanks.

Now I've run into another snag. I want my search page to display the number of items found followed by the search term, so if I search for "random word" then I want it to say one of the following:

0 results found for random word
1 result found for random word
342 results found for random word

It seems like it would be doable because it does that to tell you how many comments there are, but I can't find any calls that would display the number of results.

php:
<?php the_search_query(); ?>
Returns the search query though, I know that much.

Edit: Never mind, figured it out :).

php:
<?php $allsearch = &new WP_Query("s=$s&showposts=-1");
    $count $allsearch->post_count;
    if ($count == 1) {
        echo $count ' '_e('result for ');
    }
    else {
        echo $count ' '_e('results for ');
    }
?><?php the_search_query(); ?>
(I have another condition for 0 posts.)

Ziir fucked around with this message at 21:19 on Jan 10, 2010

simcole
Sep 13, 2003
PATHETIC STALKER
Ok I need help. I need to add several collapsible div's to a wordpress page for a FAQ. I can NOT get the script loaded for the life of me. Here is my page. The javascript file is located in my theme's js directory. I got the js from here.

$5 via paypal to whoever can get this working for me. I've tried everything I know.

Here is my code:
code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>  FAQ | Villages of Denver</title>
<link rel="stylesheet" href="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/css/screen.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/css/print.css" type="text/css" media="print" />
<!--[if IE]><link rel="stylesheet" href="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/css/ie.css" type="text/css" media="screen, projection"><![endif]-->
<link rel="stylesheet" href="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/style.css" type="text/css" media="screen" />
<!--[if IE 6]>
	<script src="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/js/pngfix.js"></script>
	<script>
	  DD_belatedPNG.fix('#header');
	</script>
<![endif]--> 
<script src="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/js/accordian.js" type="text/javascript"></script>

<link rel="alternate" type="application/rss+xml" title="Villages of Denver RSS Feed" href="http://www.vodnc.com/wp/?feed=rss2" />
<link rel="alternate" type="application/atom+xml" title="Villages of Denver Atom Feed" href="http://www.vodnc.com/wp/?feed=atom" />

<link rel="pingback" href="http://www.vodnc.com/wp/xmlrpc.php" />


<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/accordion.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
    // $() will work as an alias for jQuery() inside of this function	
	$(".accordion h3:first").addClass("active");
	$(".accordion p:not(:first)").hide();

	$(".accordion h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});

});
</script>
<meta name='robots' content='noindex,nofollow' />
<link rel='stylesheet' id='NextGEN-css'  href='http://www.vodnc.com/wp/wp-content/plugins/nextgen-gallery/css/nggallery.css?ver=1.0.0' type='text/css' media='screen' />
<link rel='stylesheet' id='shutter-css'  href='http://www.vodnc.com/wp/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.css?ver=1.3.0' type='text/css' media='screen' />
<script type='text/javascript'>
/* <![CDATA[ */
var shutterSettings = {
	msgLoading: "L O A D I N G",
	msgClose: "Click to Close",
	imageCount: "1"
};
/* ]]> */
</script>
<script type='text/javascript' src='http://www.vodnc.com/wp/wp-content/plugins/nextgen-gallery/shutter/shutter-reloaded.js?ver=1.3.0'></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.vodnc.com/wp/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.vodnc.com/wp/wp-includes/wlwmanifest.xml" /> 
<link rel='index' title='Villages of Denver' href='http://www.vodnc.com/wp' />

<meta name="generator" content="WordPress 2.9.1" />
<link rel='canonical' href='http://www.vodnc.com/wp/?page_id=9' />
<link id='MediaRSS' rel='alternate' type='application/rss+xml' title='NextGEN Gallery RSS Feed' href='http://www.vodnc.com/wp/wp-content/plugins/nextgen-gallery/xml/media-rss.php' />

<!-- NextGeEN Gallery CoolIris/PicLens support -->
<script type="text/javascript" src="http://lite.piclens.com/current/piclens_optimized.js"></script>
<!-- /NextGEN Gallery CoolIris/PicLens support -->
<meta name='NextGEN' content='1.4.3' />
<script type='text/javascript' src='http://www.vodnc.com/wp/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type='text/javascript' src='http://www.vodnc.com/wp/wp-content/plugins/sponsors-slideshow-widget/js/jquery.cycle.all.js?ver=2.65'></script>
<script type='text/javascript' src='http://www.vodnc.com/wp/wp-content/plugins/sponsors-slideshow-widget/sponsors-slideshow-widget.js?ver=2.9.1'></script>
<link rel='stylesheet' id='sponsors-slideshow-css'  href='http://www.vodnc.com/wp/wp-content/plugins/sponsors-slideshow-widget/style.css?ver=1.9' type='text/css' media='all' />

</head>
<body>

	<div id="wrapper">
		<div id="container" class="container">  
			<div class="span-24">
            <div class="span-24">
            <div id="subscriptioncontainer">
				<ul id="subscription">
					<li><a href="http://www.vodnc.com/wp/?feed=rss2"><img src="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/images/rss.png"  style="margin:0 2px 0 0; vertical-align:middle;"  /> RSS Feed</a></li>		
									</ul>

			</div>
            </div>
				<div class="span-16">
					<div id="pagemenucontainer">
						<ul id="pagemenu">
							<li ><a href="http://www.vodnc.com/wp/">Home</a></li>
							<li class="page_item page-item-2"><a href="http://www.vodnc.com/wp/?page_id=2" title="About">About</a></li>
<li class="page_item page-item-3"><a href="http://www.vodnc.com/wp/?page_id=3" title="Gallery">Gallery</a></li>

<li class="page_item page-item-5"><a href="http://www.vodnc.com/forum/" target="_blank" title="Forums">Forums</a></li>
<li class="page_item page-item-7"><a href="http://www.vodnc.com/wp/?page_id=7" title="Documents">Documents</a></li>
<li class="page_item page-item-9 current_page_item"><a href="http://www.vodnc.com/wp/?page_id=9" title="FAQ">FAQ</a></li>
<li class="page_item page-item-11"><a href="http://www.vodnc.com/wp/?page_id=11" title="Events">Events</a></li>
<li class="page_item page-item-59"><a href="http://www.vodnc.com/wp/?page_id=59" title="Committees">Committees</a></li>
						</ul>
					</div>
				</div>
				<div id="topsearch" class="span-8 last">

					 
<form method="get" id="searchform"  
action="http://www.vodnc.com/wp/"> 
<input type="text" value="Search"  
name="s" id="s"  
onblur="if (this.value == '')  
{this.value = 'Search';}"  
onfocus="if (this.value == 'Search')  
{this.value = '';}" /> 
<input type="image" src="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/images/search.gif" style="border:0;" align="top" /> 
</form>				</div>
			</div>
				<div id="header" class="span-24">
					<div class="span-12">
													<a href="http://www.vodnc.com/wp"><img src="http://www.vodnc.com/wp/wp-content/themes/iGreatBlack/images/logo3.png" alt="Villages of Denver" title="Villages of Denver" class="logoimg" /></a> <br />
                            <h2>Our Neighbors, Our Community</h2>

													
					</div>
					
					<div class="span-12 last" style="padding-top: 5px; text-align:right;">
											</div>
				</div>
			
			<div class="span-24">
				<div class="navcontainer">
					<ul id="nav">
						<li ><a href="http://www.vodnc.com/wp">Home</a></li>

							<li class="cat-item cat-item-3"><a href="http://www.vodnc.com/wp/?cat=3" title="View all posts filed under News">News</a>
</li>
	<li class="cat-item cat-item-1"><a href="http://www.vodnc.com/wp/?cat=1" title="View all posts filed under Uncategorized">Uncategorized</a>
</li>
		
					</ul>
					
				</div>
			</div><div class="span-24" id="contentwrap">
	<div class="span-16">
		<div id="content">	

						<div class="post" id="post-9">

			<h2 class="title">FAQ</h2>
				<div class="entry">
					<ul>
<li>How to advertise</li>
<p>If you&#8217;d like to advertise with us, please email us here.  We charge $20.00 a year and we can setup your logo or artwork for an extra $5.  Typical dimensions are 125 by 125 pixels or a 3:4 ratio with a maximum dimension of 175 pixels. Payment can be made to John Patterson or Adam Coleman.  We will provide you with a receipt.</p>
</ul>
<ul>
<li>How to sign up on the forums</li>
<p>The discussion forums can be accessed from a link at the top of the page.  The register button can be found on the top right of the page.  Input all your information and we will approve your application, a step we&#8217;re taking to prevent spammers from registering on our board.  Once registered you will have sufficient privledges to post topics and reply to messages on the various forums.  Each committee has it&#8217;s own forum as well as a classifieds section for neighbors to sell / buy goods.  If you have any problems email the <a href="mailto:council@vodnc.com">general council</a>.</p>

</ul>
<ul>
<li>How to contact us</li>
<p>If you have any problems with the website or you just have a question, send us an <a href="mailto:council@vodnc.com">email.</a></p>
</ul>
<ul>
<li>Utilities / Sports / Entertainment links</li>
<p>Charter Communications: 1-888-438-2427  [url]http://www.charter.com[/url]</p>
<p>Duke Energy: 1-800-777-9898  [url]http://www.duke-energy.com[/url]  Outage#1-800-769-3766</p>
<p>Non-Emergency Police</p>

<p>Trash Collection (2)</p>
<p>Animal Control</p>
</ul>
<div class="accordion">
<h3>Question One Sample Text</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi malesuada, ante at feugiat tincidunt, enim massa gravida metus, commodo lacinia massa diam vel eros. Proin eget urna. Nunc fringilla neque vitae odio. Vivamus vitae ligula.</p>
<h3>This is Question Two</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi malesuada, ante at feugiat tincidunt, enim massa gravida metus, commodo lacinia massa diam vel eros. Proin eget urna. Nunc fringilla neque vitae odio. Vivamus vitae ligula.</p>
<h3>Another Questio here</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi malesuada, ante at feugiat tincidunt, enim massa gravida metus, commodo lacinia massa diam vel eros. Proin eget urna. Nunc fringilla neque vitae odio. Vivamus vitae ligula.</p>

<h3>Sample heading</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi malesuada, ante at feugiat tincidunt, enim massa gravida metus, commodo lacinia massa diam vel eros. Proin eget urna. Nunc fringilla neque vitae odio. Vivamus vitae ligula.</p>
<h3>Sample Question Heading</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi malesuada, ante at feugiat tincidunt, enim massa gravida metus, commodo lacinia massa diam vel eros. Proin eget urna. Nunc fringilla neque vitae odio. Vivamus vitae ligula.</p>
</div>
	
						
				</div>
			</div>
					<p><a class="post-edit-link" href="http://www.vodnc.com/wp/wp-admin/page.php?action=edit&amp;post=9" title="Edit post">Edit this entry.</a></p>		</div>

	</div>
	

<div class="span-8 last">
   
    <div class="sidebar">
       
       
       
        <ul>
            			<div>
			<script type='text/javascript'>
			//<![CDATA[
			//jQuery(document).ready(function() {
				jQuery('#links_slideshow_3').cycle({
					fx: 'blindX',
					timeout: 6000,
					speed: 1000,
					random: 1,
					pause: 1
				});
			//});
			//]]>
			</script>
			<style type="text/css">
				div#links_slideshow_3 div {
					width: 150px;
					height: 150px;
				}
			</style>
			</div>

			<li id="sponsors-slideshow-3" class="widget sponsors_slideshow_widget"><h2 class="widgettitle">Sponsors</h2><div id="links_slideshow_3" class="links_slideshow"><div><a href="http://vodnc.com/wp/" target="_blank" title="Ad1"><img src="http://www.vodnc.com/wp/images/placeholder.jpg" alt="Ad1" /></a></div><div><a href="http://vodnc.com/wp/" target="_blank" title="Ad2"><img src="http://www.vodnc.com/wp/images/placeholder125.gif" alt="Ad2" /></a></div><div><a href="http://vodnc.com/" target="_blank" title="Sponsors Placeholder"><img src="http://vodnc.com/wp/images/ad-placeholder.jpg" alt="Sponsors Placeholder" /></a></div><div><a href="http://vodnc.com/wp/" target="_blank" title="Sponsors Placeholder"><img src="http://vodnc.com/wp/images/bh125x125.gif" alt="Sponsors Placeholder" /></a></div></div></li>		<li id="recent-posts-3" class="widget widget_recent_entries">		<h2 class="widgettitle">Recent News</h2>		<ul>
				<li><a href="http://www.vodnc.com/wp/?p=1" title="New Website">New Website </a></li>
				</ul>
		</li><li id="archives-3" class="widget widget_archive"><h2 class="widgettitle">News Archives</h2>		<ul>
			<li><a href='http://www.vodnc.com/wp/?m=200912' title='December 2009'>December 2009</a></li>

		</ul>
</li>        </ul>
            </div>
</div>
</div>
	</div>
	<div id="footer">
		Copyright &copy; <strong>Villages of Denver</strong> | Powered by <a href="http://wordpress.org/">WordPress</a> 
	</div>

        <div id="footer2">Buy <a href="http://www.bestincellphones.com/verizon-wireless.asp">VerizonCell Phones</a> and Save. | Thanks to <a href="http://www.bankingzen.com/banks/">Bank Rates & Reviews</a>, <a href="http://www.thepiggybanker.com/">CD Rates</a> and <a href="http://www.cheaper-loan.co.uk">UK Loan</a></div>
</div>

</body>
</html>

simcole fucked around with this message at 01:19 on Jan 11, 2010

Oben
Aug 7, 2004

Oh, the lights changed
You seem to be using jquery functions before you've loaded jquery. Try moving the jquery.js line up above the other <script> lines.

simcole
Sep 13, 2003
PATHETIC STALKER

Oben posted:

You seem to be using jquery functions before you've loaded jquery. Try moving the jquery.js line up above the other <script> lines.

I redid my call and made jquery a dependent... I'm trying to accomplish this: http://www.webdesignerwall.com/demo/jquery/collapsible-panels.html

This is my new call: <? wp_enqueue_script('accordion.js', 'http://vodnc.com/wp/wp-content/themes/iGreatBlack/js/accordion.js', array('jquery')); ?>

Edit:
Well I figured it out.. my call to the default built in jquery wasn't enough for wp. I needed to download and call a minified version. Here is what fixed it. Unfortunately it's conflicting with my main page. I just need to change my links to relational's:
code:
<? wp_enqueue_script('jquery-1.3.2.min.js', 'http://vodnc.com/wp/wp-content/themes/iGreatBlack/js/jquery-1.3.2.min.js','','','',''); ?>
<? wp_enqueue_script('accordion.js', 'http://vodnc.com/wp/wp-content/themes/iGreatBlack/js/accordion.js', array('jquery')); ?>
Edit2:
Adding the jquery line above broke my mootools addons. I had to go into the accordion.js file and add noconflict then change every variable from $ to $j to fix the problem. I hope this helps someone else out because it about drove me nuts.

simcole fucked around with this message at 13:47 on Jan 13, 2010

SmirkingJack
Nov 27, 2002
Oh hey, I didn't realize 2.9 was already released

cLin
Apr 21, 2003
lat3nt.net
How would I include the value of queries in my link into my posts? For example, if the link is https://www.domain.com/?id=12345 I'd like to be able to put "12345" into my posts. Right now I am using exec-php plugin and I place
code:
<?php $id = strip_tags($_REQUEST['id']);?>
in the header.php but when I try to echo $id, it comes out empty. It's like it's not passed into the posts and someone mentioned it might be a scope problem so I tried placing global $id into the post as well but no go.

This is for a rss feed for my affiliates, I want to be able to pass their aff code into the blog so they can just use this feed for whatever purpose they need.

Ned
May 23, 2002

by Hand Knit
What type of page are you trying to echo it on? Switch to $_GET[] since you know it is a get variable and make sure the page you are trying to echo it on includes header.php somewhere along the way. I can take a quick look for you if you post a URL.

On a side note we are trying to set up an environment for a blog that is getting 100k visits a day. Moving things from Yahoo is not fun or easy.

cLin
Apr 21, 2003
lat3nt.net
I'm trying to use echo $id within the post in the admin panel. I'm using Exec-PHP to run php in my posts and while other php codes work find, it seems like $id isn't passed along. If I place <?php $id = strip_tags($_REQUEST['id']);?> inside the post with the echo, it'll work but I don't want to have to do it for every post.

A workaround I found was setting the_content() to a variable in the index.php page in the theme folder then using str_replace on a designated word like #ID# and setting it to whatever $id is. That works BUT then the rss feeds didn't make the changes on the rss feed page (which I am not even familiar with).

In any case, what's the best method to do what I want? I don't use $_GET since I assume that means anyone can put tags which would screw up how the page looks. Then again, strip_tag isn't that much to block from any XSS attacks but at least it's a start right?

edit: I hate myself. Right after I posted that, I decided to search for $_GET in the wordpress plugins and found exactly what I needed. I just had to modify a few rules and it works exactly the way I want it. The plugin is $_GET Getter for those wondering. Now if I can only get my last day back....

cLin fucked around with this message at 10:20 on Jan 14, 2010

ProdigalSon
Sep 15, 2003
Does anyone have experience using BuddyPress along with Wordpress?

I want to integrate a discussion forum into my wordpress blog: https://www.chengduliving.com

I was originally planning to use bbPress but since it seems to be out of development it doesn't seem like a great idea in the long term.

My problem is that BuddyPress requires Wordpress MU and I'm on a regular WP install. Is there any way for me to integrate the two?

cLin
Apr 21, 2003
lat3nt.net
Seems like bbPress is still being developed although slowly. Last posts regarding development was on 12/15/09 in which he asked what users would like in 1.1 and it looks like they have weekly meetups in which they...talk about development of the software.

Ziir
Nov 20, 2004

by Ozmaugh
It seems that when I put links in my posts, WordPress doesn't automatically place a target tag in the link so clicking on the link opens the link in the same window. If I'm linking within my site this makes sense, but when I'm linking out I'd like it to automatically add a target="newwindow" or something so that it opens in a new tab. Is there anything I can do to do this?

Also I finished my very first WordPress theme from scratch :woop:. It's the first time I've ever done any web coding and prior to this the only HTML tags I knew were <b> and <i> which apparently aren't even in use anymore.

Ziir fucked around with this message at 06:28 on Jan 15, 2010

Twiin
Nov 11, 2003

King of Suck!

Ziir posted:

It seems that when I put links in my posts, WordPress doesn't automatically place a target tag in the link so clicking on the link opens the link in the same window. If I'm linking within my site this makes sense, but when I'm linking out I'd like it to automatically add a target="newwindow" or something so that it opens in a new tab. Is there anything I can do to do this?

Also I finished my very first WordPress theme from scratch :woop:. It's the first time I've ever done any web coding and prior to this the only HTML tags I knew were <b> and <i> which apparently aren't even in use anymore.

Please don't. I want my browser to work the same on your site as it does everyone else's site. If I want the link in a new window I'll shift-click it.

Ziir
Nov 20, 2004

by Ozmaugh

Twiin posted:

Please don't. I want my browser to work the same on your site as it does everyone else's site. If I want the link in a new window I'll shift-click it.

It's normal behavior for a link to an outside site to open inside the same window? I had no idea but then again I do instinctively middle click on links. Well scrap that then.

Twiin
Nov 11, 2003

King of Suck!

Ziir posted:

It's normal behavior for a link to an outside site to open inside the same window? I had no idea but then again I do instinctively middle click on links. Well scrap that then.

It breaks the back button, which sucks. And it can cause navigation problems with screen readers, which sucks. Let the user decide what happens to the link. You can always use CSS to make all external links have a little external-link-icon so that the users know.

Ziir
Nov 20, 2004

by Ozmaugh

Twiin posted:

It breaks the back button, which sucks. And it can cause navigation problems with screen readers, which sucks. Let the user decide what happens to the link. You can always use CSS to make all external links have a little external-link-icon so that the users know.

Gotcha, I'll just do that then.

I want to make a custom page template that displays posts in a certain category. I asked earlier and someone responded but that method didn't work, but I found this in the Codex http://codex.wordpress.org/Template_Tags/query_posts.

Now, it's all fine and dandy except for the fact that my previous/next page buttons don't work. Clicking on the previous page link takes me to page 2, but the posts that show up are the same as the ones on page 1, i.e. the first 10 posts. Fortunately in the Codex, they talk about how to preserve pagination, except I believe I've tried every way they give and it won't work. Does anyone know what I'm doing wrong?

php:
    <?php
        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
        $args=array(
            'cat'=>3,
            'paged'=>$paged,
        );
        query_posts(args);
    ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
            [link to title, removed line cause it was breaking table]
            <?php the_content(); ?>
        </div> <!-- .post -->
    <?php endwhile; endif; ?>

excidium
Oct 24, 2004

Tambahawk Soars
On to my next retarded question...

I am trying to display a dynamic Referrals table under a Page that will pull in all of the current users referrals, but can not figure out the code needed to run a SQL query from within the Page. I have the query itself written and working fine when I test it in SQL, but I can not determine how I can run it within a post. Anyone have any ideas?

EDIT: Nevermind, I just created a new page template instead and created a blank page using that template. Seems to be working fine without having to install a bunch of plug-ins to get PHP within a Page working.

excidium fucked around with this message at 11:42 on Jan 17, 2010

The Merkinman
Apr 22, 2007

I sell only quality merkins. What is a merkin you ask? Why, it's a wig for your genitals!
Bumping this thread to see if anyone knows if this is possible.

Is there a plugin where the user has to search for all tags of a post?

Meaning if the tags are "Foo" and "Bar":
  • Searching for "Foo" AND "Bar", it would show up.
  • Searching for just "Foo" or just "Bar" would have it not show up.
  • Searching for "Foo" AND "Bar" AND "Baz", however, would.

Twiin
Nov 11, 2003

King of Suck!

The Merkinman posted:

Bumping this thread to see if anyone knows if this is possible.

Is there a plugin where the user has to search for all tags of a post?

Meaning if the tags are "Foo" and "Bar":
  • Searching for "Foo" AND "Bar", it would show up.
  • Searching for just "Foo" or just "Bar" would have it not show up.
  • Searching for "Foo" AND "Bar" AND "Baz", however, would.

That is a some really weird search logic there. I don't think you're going to find a plugin for that.

The Merkinman
Apr 22, 2007

I sell only quality merkins. What is a merkin you ask? Why, it's a wig for your genitals!

Twiin posted:

That is a some really weird search logic there. I don't think you're going to find a plugin for that.

Yeah I know it's sort of the opposite of the way tags are supposed to work.

So I just give up on my idea? I have absolutely no clue how to code a plugin for WordPress.

Twiin
Nov 11, 2003

King of Suck!

The Merkinman posted:

Yeah I know it's sort of the opposite of the way tags are supposed to work.

So I just give up on my idea? I have absolutely no clue how to code a plugin for WordPress.

What is the purpose behind it? What is it you're trying to accomplish with that?

The Merkinman
Apr 22, 2007

I sell only quality merkins. What is a merkin you ask? Why, it's a wig for your genitals!

Twiin posted:

What is the purpose behind it? What is it you're trying to accomplish with that?

Maybe it's already been done...

A friend had an idea where you could put in a list of what stuff you had in your kitchen and the results would be recipes that only used the ingredients you listed.

Twiin
Nov 11, 2003

King of Suck!

The Merkinman posted:

Maybe it's already been done...

A friend had an idea where you could put in a list of what stuff you had in your kitchen and the results would be recipes that only used the ingredients you listed.

You might be late to the party.

The Merkinman
Apr 22, 2007

I sell only quality merkins. What is a merkin you ask? Why, it's a wig for your genitals!

I figured as much. I saw allrecipes.com before, but those other two sites work much more like how he was picturing.

I'm actually more happy than disappointed, telling my friend "Site X already did it" is much better than trying to figure out how to do it.

FlyWhiteBoy
Jul 13, 2004
I have this monochrome theme I'm using. I'd like to widen it so it fills more of the screen. There's a grey padding around the content of the site I'd like to remove. I'm sort of new to this and ended up breaking the layout when I would play around with changing things. I'd also like to change it so the layout was based on percents rather than pixels, I thought this might work better for people with varying screen resolutions? This part isn't a must, if its not necessary. I uploaded the style.css to pastebin so if someone can check it out and give me some tips that'd be awesome. Thanks ya'll.

Pastebin link: http://pastebin.com/m730af7de

Thock
Apr 13, 2003
Well, Fuck.

ProdigalSon posted:

Does anyone have experience using BuddyPress along with Wordpress?

I want to integrate a discussion forum into my wordpress blog: https://www.chengduliving.com

I was originally planning to use bbPress but since it seems to be out of development it doesn't seem like a great idea in the long term.

My problem is that BuddyPress requires Wordpress MU and I'm on a regular WP install. Is there any way for me to integrate the two?

You got banned so I dunno why i'm responding to this; but I just finished a pretty big buddypress system that ties into a bunch of backend flash applications. The only thing I can say is stay the gently caress away until it's more stable.. Or just use django / MType and save yourself some headaches.

(the site is my.spot411.com btw).

Wordpress is a killer publishing platform, and some of the things you can do with the loop are freakishly fun. Just be wary of underdeveloped plugins / components. Most just modify the loop.. poorly.

edit: to the guy above: what's your site URL? This kind of modification is really easy to accomplish by doing some tinkering with firebug's css editing engine and just updating the CSS as necessary. Send me a PM or an IM (check profile) and I'll walk you through it if you want.

Thock fucked around with this message at 09:45 on Jan 21, 2010

Alfalfa
Apr 24, 2003

Superman Don't Need No Seat Belt
What is the best plugin/way to implement 2checkout.com on a WP website? They have the options I need for my payments but I want to make sure it will work with WP nicely before I sign up with them.

edit: and if there isn't a good one what is the easiest shopping cart system out there that can do recurring payments to integrate with WP?

Alfalfa fucked around with this message at 20:46 on Jan 21, 2010

Ziir
Nov 20, 2004

by Ozmaugh
Am I able to [easily] export all blog posts, all pages, all content, all users, all passwords, all settings, etc from one installation to another?

Ned
May 23, 2002

by Hand Knit
You can do a database dump and then you just need to change a couple of settings in the options table for the new hosting.

Broccoli Must Die!
Aug 12, 2004

Meow.

Ziir posted:

Am I able to [easily] export all blog posts, all pages, all content, all users, all passwords, all settings, etc from one installation to another?

There are some very detailed instructions on how to do this on the Wordpress site.

Iron Squid
Nov 23, 2005

by Ozmaugh
All I want is my header image to link back to / when people click on it, but this theme is making it challenging.

Right now the relevant header code in the stylesheet is this:

code:
#header {
	background:transparent url("images//header.png") no-repeat top center;
	height:367px;
	color:#eee;
	font-weight:normal;
	letter-spacing:-1px;
	font-family:'Californian FB','Georgia','Arial';
	font-size:48px;
	text-align:left;
	margin:0px;
	padding-left:10px;
	padding-top:15px;
Moving into the header.php file we have this:

code:
<body>
<div id="page">
<h1 id="header">
	
	

	<a href="<?php echo get_option('home'); ?>/">
	<?php bloginfo('name'); ?>
	</a>

	
	<div id="description">
		<?php bloginfo('description'); ?>
	</div>
</h1>
Basically what is happening here is that the name of the blog is supposed to be written over the background image. What I'm trying to do is remove the text entirely and make it so that when one clicks on the background image, the user is returned to the home page.

Any thoughts on how I can accomplish this?

Ned
May 23, 2002

by Hand Knit
You can be lazy and do it with jQuery. Otherwise you can make the a tag the same size as the header with css and hide the description.

jQuery way
code:
jQuery('#header').click(function() {
jQuery('#header a').click();
});

Iron Squid
Nov 23, 2005

by Ozmaugh

Ned posted:

You can be lazy and do it with jQuery. Otherwise you can make the a tag the same size as the header with css and hide the description.

jQuery way
code:
jQuery('#header').click(function() {
jQuery('#header a').click();
});

What is jQuery?

Adbot
ADBOT LOVES YOU

hmm yes
Dec 2, 2000
College Slice
With some tweaking this will get you what you want:

Wrap the bloginfo() calls inside the link. With the link being a block element, you can make it take up the entire #header. The absolute positioning lets you get the bloginfo() results where you want without relying on padding, which can be a pain.

code:
<div id="header">

  <a href="<?php echo get_option('home'); ?>/">

    <span id="name">
      <?php bloginfo('name'); ?>
    </span>

    <span id="description">
      <?php bloginfo('description'); ?>
    </div>
  
  </a>

</div>


#header a { display: block; position: relative; height: 367px; text-decoration: none; }
#name { position: absolute; top: 0; left: 0; }
#description { position: absolute; bottom: 0; left: 0; }

You could even just do a#header instead of having that extra div in there.

Also you could make the link a block element, position it absolutely inside #header, set the height and width, give it a high z-index, and place it over top of name and description with an   for the link text. ehhh

hmm yes fucked around with this message at 00:08 on Jan 23, 2010

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