toxiccosmos
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Content load on image clickThank you for your reply. I really appreciate it.
How would I set this up so that it does this when I click on one of the image links?
Here’s the basic layout… very bare bones since I haven’t been able to figure it out.
<div id="gleft"> </div> <div id="gright"> CHOOSE A VIEW MODE <br /><br /><br /> <a href="#"><img src="/images/circles.gif" /></a> <br /><br /><br /> <a href="#"><img src="/images/grid.gif" /></a> </div>
I want to get the content to load in the “gleft” div.
I did some searching and I’m starting to think I’ll need to use AJAX. I found this link, but I couldn’t get it to work. So I found this slight motification on it. That seemed to try and do something, though still nothing loaded.
I don’t know if you know any AJAX or maybe I should open a new thread for it specifically?
Anyway, continuing with what I did with AJAX, I had this in my header:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $.ajaxSetup({cache:false}); $(".thumb").click(function(){ var post_url = $(this).attr("href"); var post_id = $(this).attr("rel"); $("#left").html("loading..."); $("#left").load(post_url); window.location.hash = post_id; return false; }); }); </script>
and this on my page:
<div id="left"></div> <div id="right"> <?php query_posts( 'p=50' ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <a class="thumb" rel="<?php the_permalink();?>" href="<?php the_permalink();?>"><img src="/images/circles.gif" /></a> <?php endwhile; endif; ?> <br /> <?php query_posts( 'p=32' ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <a class="thumb2" rel="<?php the_permalink();?>" href="<?php the_permalink();?>"><img src="/images/grid.gif" /></a> <?php endwhile; endif; ?> </div>
But there is no the_content php line, so I’m not sure how it’s really supposed to work. In the links I listed it seemed like there were two pages used, the index and another. This confused me, and I’ve posted there asking for clarification (but maybe someone here might know), but I’m not using this on my index page. My index is going to be a splash page.
Maybe I’m adding too much here, but this is my process thus far. But of course, any way of getting this done would be wonderful. :]
Forum: Fixing WordPress
In reply to: Content load on image clickMaybe there’s a plugin that can do this? I’m desperate for any kind of help. :/
Forum: Plugins
In reply to: [LiveJournal Importer] [Plugin: LiveJournal Importer] comments don't showPerhaps someone knows of an alternative plugin I could use? I thought of exporting my posts through LiveJournal and then using the xml file to import them into WordPress but LiveJournal doesn’t export comments. So I’m stuck.
I’ve also searched other plugins but most are for crossposting from WordPress to LJ, which isn’t what I’m looking for.
Forum: Fixing WordPress
In reply to: Unable to log inthanks. Turns out for some reason my host wanted me to update with a patch of some kind for WordPress 3.1, even though I updated a while ago. Really odd, but it seems to have worked. Sorry for the pointless post. >_<
Forum: Fixing WordPress
In reply to: redirect single post link for search engine?That’s perfect. Thank you! :]
Forum: Fixing WordPress
In reply to: redirect single post link for search engine?Ok, your method worked nicely brasofilo. In the script I only listed “artwork” and “portfolio” as the categories to look for. My guess is that it searches all the categories, and since the posts all contain one of those, then when it finds it, it redirects it. It takes a few seconds, but it works.
Thank you. :]
Forum: Fixing WordPress
In reply to: redirect single post link for search engine?All the posts have two or three categories (artwork, portfolio, web, print, etc.), but they all belong to one of two pages (artwork, portfolio).
I basically just need to direct the posts to either varriaga.com/portfolio/ or varriaga.com/artwork/
Hmm. Is there a way to list the categories in the script but tell them where to redirect to instead of taking its name and adding it to a url?
Forum: Fixing WordPress
In reply to: redirect single post link for search engine?@brasofilo – what content, if any, in that script do I need to edit?
Forum: Fixing WordPress
In reply to: redirect single post link for search engine?All the posts go to one of three pages; portfolio, artwork, and writing – each having their own category. The writing page does use the single.php to format chapter text and whatnot. The others aren’t suppose to open into single pages, instead loading the posts in their respective pages as I stated above.
Of course search engines can find the single pages anyway and when clicked on, we end up seeing something like this https://varriaga.com/portfolio/american-river-review-2010-2/
Obviously the single.php isn’t formated for them, just for the writing posts.I know I can create another single.php file specifically for those posts, but it wasn’t my intention that they be viewed that way.
@curtiss – how would I do what you mentioned?
@brasofilo – I would definitely like to try that out. How would I add the additional clauses? Would I use what you listed as is – with || ? I’m still somewhat new to php. :]
Thanks a lot for the replies. I really appreciate the help. :]
Forum: Fixing WordPress
In reply to: redirect single post link for search engine?Thanks for the link, but I’m actually hoping to avoid having to use noindex.
Forum: Fixing WordPress
In reply to: redirect single post link for search engine?So there’s no way to do what I’m looking for?
Forum: Fixing WordPress
In reply to: Next page not working on home page and queryCan we see your code?
By the way, what are you using for the language translation?Forum: Fixing WordPress
In reply to: Not all posts showing and nav not workinghm. That’s odd. It shows 12 when I tell it to show 13.. and my navigation still isn’t working to show that there are even more.
Any thoughts? I’m thoroughly confused. haha :]
Forum: Fixing WordPress
In reply to: Permissions Errors?Thanks esmi, that was very helpful. :]
Forum: Plugins
In reply to: problem with comments in multilenguageWPML has another plugin that merges all your comments so that they show up on every translated post as well.
The problem I’m having with it is that the comments are doubling on the translated page… I’m looking for a fix right now…