Everything posted by silvers
-
wordpress issue please help (probably easy)
hi guys i am using the the standard 2010 theme in wordpress, and as far as i can remember i haven't done anything much to the loop but if you click on "older entries" - it goes to page 2 but still displays the same post as the homepage. so basically it's not going to the older posts. it only displays the most recent. you can see it here... www.fifanews.co.uk if anyone could please help me i would be so grateful! my code is... <?php /** * The loop that displays posts. * * The loop displays the posts and the post content. See * http://codex.wordpress.org/The_Loop to understand it and * http://codex.wordpress.org/Template_Tags to understand * the tags used in it. * * This can be overridden in child themes with loop.php or * loop-template.php, where 'template' is the loop context * requested by a template. For example, loop-index.php would * be used if it exists and we ask for the loop with: * <code>get_template_part( 'loop', 'index' );</code> * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-above" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-above --> <?php endif; ?> <?php /* If there are no posts to display, such as an empty archive page */ ?> <?php if ( ! have_posts() ) : ?> <div id="post-0" class="post error404 not-found"> <h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1> <div class="entry-content"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyten' ); ?></p> <?php get_search_form(); ?> </div><!-- .entry-content --> </div><!-- #post-0 --> <?php endif; ?> <?php /* Start the Loop. * * In Twenty Ten we use the same loop in multiple contexts. * It is broken into three main parts: when we're displaying * posts that are in the gallery category, when we're displaying * posts in the asides category, and finally all other posts. * * Additionally, we sometimes check for whether we are on an * archive page, a search page, etc., allowing for small differences * in the loop on each template without actually duplicating * the rest of the loop that is shared. * * Without further ado, the loop: */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* How to display posts in the Gallery category. */ ?> <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php twentyten_posted_on(); ?> </div><!-- .entry-meta --> <div class="entry-content"> <?php if ( post_password_required() ) : ?> <?php the_content(); ?> <?php else : ?> <?php $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) ); if ( $images ) : $total_images = count( $images ); $image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); ?> <div class="gallery-thumb"> <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-thumb --> <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ), 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', $total_images ); ?></em></p> <?php endif; ?> <?php the_excerpt(); ?> <?php endif; ?> </div><!-- .entry-content --> <div class="entry-utility"> <a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> <span class="meta-sep">|</span> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div><!-- .entry-utility --> </div><!-- #post-## --> <?php /* How to display posts in the asides category */ ?> <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-utility"> <?php twentyten_posted_on(); ?> <span class="meta-sep">|</span> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div><!-- .entry-utility --> </div><!-- #post-## --> <?php /* How to display all other posts. */ ?> <?php else : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php twentyten_posted_on(); ?> </div><!-- .entry-meta --> <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <div class="entry-utility"> <?php if ( count( get_the_category() ) ) : ?> <span class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> </span> <span class="meta-sep">|</span> <?php endif; ?> <?php $tags_list = get_the_tag_list( '', ', ' ); if ( $tags_list ): ?> <span class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> </span> <span class="meta-sep">|</span> <?php endif; ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div><!-- .entry-utility --> </div><!-- #post-## --> <?php comments_template( '', true ); ?> <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?> <?php endwhile; // End the loop. Whew. ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $wp_query->max_num_pages > 1 ) : ?> <div id="nav-below" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-below --> <?php endif; ?>
-
does anyone have an age verification script?
Hi guys, thanks to everyone who responded... unfortunately the two scripts that you guys posted, require you to put your age. whereas i am looking for one where you just click to to agree that you are old enough. also the link to the tutorial doesn't have enough information and is too complicated to understand. i just need one that people can click to say that they are old enough or not. but it does need to php rather than javascript! please help!! x x x
-
does anyone have an age verification script?
hi guys, i am making a website that sells wine and i am trying to get a script for age verification... i have searched for hours but haven't found anything that works properly! i just need it to be something like "are you of legal drinking age?" they click yes and go through to the site... or they click no and the go to google or whatever. i need it for a joomla website. i have looked in to extensions but they were expensive. i need it to save the cookie for a while as well. if someone could save my life i would be soooo grateful. my brain hurts from the over complication, i just need something simple and easy to use! thanks x x x
-
change currency of the virtumart by choosing a country on the front page?!
Hi guys, this is a crazy situation! i am using joomla and virtumart for an ecommerce website selling wine... the client wants a verification page where you have to confirm you are old enough to enter the site. i have found a few scripts and i will give them a go... BUT he also wants to have a drop down menu where you choose which country you are in, and that will change the currency in virtuemart to the correct currency!!! is that even possible? luckily he only wants australian and singapore currency. the default is australian. but i need the functionality that if you choose singapore on the first page, that it sends this info to virtuemart and changes the currency. if a php legend can help me i will pay you! seriously dudes i'll paypal it straight to you if you can help me out! please help me. thanks
-
change currency of the virtumart by choosing a country on the front page?!
Hi guys, this is a crazy situation! i am using joomla and virtumart for an ecommerce website selling wine... the client wants a verification page where you have to confirm you are old enough to enter the site. i have found a few scripts and i will give them a go... BUT he also wants to have a drop down menu where you choose which country you are in, and that will change the currency in virtuemart to the correct currency!!! is that even possible? luckily he only wants australian and singapore currency. the default is australian. but i need the functionality that if you choose singapore on the first page, that it sends this info to virtuemart and changes the currency. if a php legend can help me i will pay you! seriously dudes i'll paypal it straight to you if you can help me out! please help me. thanks
-
please help me with IE issues
Hi guys, I have built a site and it looks good in firefox etc... it even looks ok in IE 7 & 8 but in IE 5 and 6 it looks horrible, and i don't even know where to begin! the guy i made it for, shows his clients the website and they keep telling him how crap i am. so he's giving me a lot of crap for it. my website is www.procurehealth.co.uk please can someone help me with this? it's such a mess and i am panicking a bit! i would be soo grateful if you guys can help! thanks
-
certain pics won't show in IE!
Hi, i have been making a website for a friend, and he wanted rounded corners. so i have some rounded pics that show up properly in firefox. but in IE the two images that display the top of the main content and the bottom - don't show up. this makes it look horrible. i am using .png with transparency, but i have also tried jpgs and that hasn't solved the problem. plus other pngs are showing fine. i don't get why this is just happening to those two pics? please can someone help me out. i am stressing as i have just sent him a preview, and then realised it looks so bad!! my site is... http://silvermanwebdesign.co.uk/procurehealth/ this is my css - it looks fine to me! .top {background: url(images/top.png)no-repeat;width:910px;height:18px;margin:0 auto;text-align:center;display:block;} .bottom {background: url(images/bottom.png)no-repeat;width:912px;height:18px;margin:0 auto;} i even added display:block to one of them as well as text-align:center thinking it might help but it doesn't Thanks in advance
-
anyone know how to replace an image with text, with jquery?
yes dude that's definitely what i am looking for! I am sorry though. I am not versed enough with jquery to do that. I am not asking for you to spoon feed me though, but i wondered if you knew any tutorials i could run through to do it? that would be absolutely ideal for what i am trying to do!
-
anyone know how to replace an image with text, with jquery?
sorry for the poor explanation... my client wants to have a picture of manchester on the page, and when you click that picture, it will reveal the contact details for the manchester branch. i have no idea how to do this. i was looking on google for some kinda plugins or something, but i haven't found anything. so, quite simply, i need to have a pic on the screen, and when you click it, it either slides away, or disappears to reveal the text behind it.. here is the page i am talking about... it's just the details at the moment, so they would need to be hidden by the pictures and then appear when they are clicked! http://silvermanwebdesign.co.uk/star/our-team/ if you guys could help me out you would make my week for sure!!! THANKS!!!
-
how do u stop pics stacking before jquery loads?
hey guys thanks for all the replies! especially andyl - that's exactly what i was looking for. THANK YOU. i am very grateful for that! yeah i also seem to have a bad ass virus on my website which is freaking me out. i need to get that sorted out! i have soooo many issues to take care of at the moment! and thanks for letting me know what it is and stuff. basically thanks to everyone
-
how do u stop pics stacking before jquery loads?
hi, i am currently using that type of code but it waits till the document is ready till it loads... that is the problem. i need it to work before the page loads in some respects. i was really hoping there might be some css to stop it showing outside the normal area. my website is... www.allthebestvids.com
-
how do u stop pics stacking before jquery loads?
Hi, you know if you are using a jquery picture slider. there is this annoying second or 2 when you load your page and the pics stack on top of each other before the jquery loads and puts them neatly in to the slide show... is there any trick to stop this happening? it doesn't look very nice and i am hoping that a bit of code will sort me out? :roll: thanks x x x
-
can you fill tabbed menus with dynamic content?
dude you rule! thank you so much... I have it working now! i have been wondering how to do it for about 3 months now and you have really helped me. thanks loads Dizi, i REALLY appreciate it!
-
really simple problem with jquery slider
wow that is a problem on it's own! how would i go about sorting that out guys?
-
really simple problem with jquery slider
Hi guys, I am so freaking frustrated at the moment. i have put a jquery slider on my blog. i have experience with jquery and i have copied the files over, but all the pics are stacked on top of each other as if the jquery isn't working... but the words that come up alongside the pics are coming through via jquery and thats;s working fine. please help me before i melt!! my site is allthebestvids i am using the slider from this page and this is how it should look... jquery slider Thanks, Silvers xxx
-
can you fill tabbed menus with dynamic content?
hi dizi, thanks for your reply, i think i am begining to understand... i am using wordpress.. so say for example that i use the tabbed menu that you linked... would i just use a simple loop to display the title of each post like... <?php if (have_posts()) : while (have_posts()) : the_post();?> <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php endif; ?> my php isn't all that great. but would that work in order to show recent posts by title? thanks in advance
-
can you fill tabbed menus with dynamic content?
Hi, Do you know where i can find this code? that's what i am looking for. Thanks
-
can you fill tabbed menus with dynamic content?
hiya, I like tabbed jquery menus (they are all over the place in sidebars of blogs)... there are loads of free downloads and tutorials out there, but all of the ones i have seen, seem to have static lists in there. i was wondering if there was any way of putting dynamic content in there... so for example you could have a "recent posts" tab, which would be populated by the most recent posts, and then a "recent comments" tab, so when someone makes a new comment it shows up in the tabbed menu? i think this would be such an awesome way of showing dynamic content but havent seen any tutorials anywhere. can anyone help please? i'll be your best friend! xxx
-
I have a problem in IE!
^ no it's additional css that adds to the normal css. it has nothing to do with this issue. ANYONE ELSE THAT CAN HELP?
-
I have a problem in IE!
Hiya, My site is fine in Firefox, but in IE 6 it has this problem... when you scroll only the header moves. the rest of the content just sits there overflowing and ugly you can see it here... (works fine in some IE i believe, but defo has a problem in IE6) http://silvermanwebdesign.co.uk/star/category/news/ If anyone could help me out i would be massively gratef
-
my site is messing up in IE!
Hiya, this is my website... http://www.silvermanwebdesign.co.uk/star as you can see, it's fine in Firefox, but if you look at it in IE it messes up and jumps when the picture on the slider changes. so every 4 or 5 seconds the bar below the picture spazzes out. does anyone know what i can do to fix this? please, i'll be your best friend!! thanks x x x
-
Can i add new posts in WP like they were posted ages ago?
Hi, I am making a website for a client with wordpress. his old website has posts as far back as 2007. i wanted to copy all his posts over to the new website but want them to look like they were posted back in those dates. i was wondering if it was possible to do this at all? or is it just a case where if i add a post today, it's gonna say it was posted today? is there any way to get round this problem? i don't mind if it's just something i have to deal with, i'd just like to know either way! thanks guys! this is the website that i will be taking the posts from http://star-signings.com/en/news_archive.html
-
* Edit post * Delete post * Report this post * Reply with quote looking for a news ticker that can show my recent posts!
Hiya, I am looking to get a news ticker that scrolls along HORIZONTALLY and shows my recent post titles. i am using wordpress and i have tried some of the plugins although they don't seem to be working. i think this is a situation where the plugins aren't working with my relatively new version of wordpress. so what i think i have to do is go old skool and do it myself! i want it to slide from right to left like a television news ticker style. i'm really looking for some tutorial on how to do this if you guys could hook me up? i was hoping that someone had covered this before. please help me! love you xxx
-
i'm using jquery for 2 different things on 1 page = problem?
hi i have just sorted it out so i am gonna post my code here incase anyone reads this if they have a similar problem <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>New Dwell</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="templatemo_style.css" rel="stylesheet" type="text/css" /> <link href="fullsize/fullsize.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/easySlider1.5.js"></script> <script type="text/javascript" src="js/jquery.fullsize.minified.js"></script> <script type="text/javascript" charset="utf-8"> // <![CDATA[ jQuery(document).ready(function(){ jQuery("#slider").easySlider({ controlsBefore: '<p id="controls">', controlsAfter: '</p>', auto: true, continuous: true }); }); jQuery.noConflict(); // ]]> </script> <script language="javascript" type="text/javascript"> function clearText(field) { if (field.defaultValue == field.value) field.value = ''; else if (field.value == '') field.value = field.defaultValue; } jQuery(function(){ jQuery("div.templatemo_gallery img").fullsize(); }); jQuery.noConflict(); </script> <style type="text/css"> .gallery { float:right; width:537px; height:224px; margin:0px 25px 0 0; } #slider { margin:0; padding:0; list-style:none; padding-top: 3px; } #slider ul, #slider li { margin:0; padding:0; height:224px; list-style:none; } /* define width and height of list item (slide) entire slider area will adjust according to the parameters provided here */ #slider li { width:537px; height:244px; overflow:hidden; } p#controls { margin:0; position:relative; } #prevBtn, #nextBtn { display:block; margin:0; overflow:hidden; width:30px; height:299px; position:absolute; left:0 !important; left:-327px; top:-299px; } #nextBtn { left:307px !important; left:-20px; } #prevBtn a { display:block; width:30px; height:278px; background:url(images/spacer.gif) no-repeat 0 0; } #nextBtn a { display:block; width:30px; height:278px; background:url(images/spacer.gif) no-repeat 0 0; } .templatemo_section_1_contentarea .templatemo_img #slider ul li img { margin-left: 30px; margin-top: 28px; } </style> </head> <body> <div id="templatemo_container"> <div id="templatemo_header"> <div id="templatemo_header_logo"></div> <div id="templatemo_menu"> <ul> <li><a href=" " class="current">Home</a></li> <li><a href="/gallery.html">Gallery</a></li> <li><a href="/services.html">Sevices</a></li> <li><a href="/flat-roof-specialists.html">Flat Roof Specialists</a></li> <li><a href="/contact.html" class="last">Contact</a></li> </ul> </div> </div> <div class="templatemo_section_1"> <div class="templatemo_section_1_contentarea"> <div class="templatemo_text"> <h1>NEW DWELL CONSTRUCTION</h1> <p>Based in Castlerea, Co. Roscommon, we have 20 years experience in the construction services.<br /> </p> <p>We take great interest and pride in all our projects from start to finish, the company is vat & c2 registered. <br /> </p> <p>We offer a total building service for all your requirements whether you are looking for a major renovation to your home, extending your home or undertaking a new build . <br /> </p> <p>The key to good construction work is experience, quality craftsmen, research, best practice and constant education on new developments in construction.<br /> </p> <p>When you know you are ready to get started on your project, it is of vital importance to put time and research into selecting the right company for the job.<br /> </p> <p>Setting up an appointment to meet and discuss your project is easy through our contact page or just call if you need friendly advice.<br /> </p> <p>By meeting the builder face to face, you can get an idea about their communication and work styles and determine if they bond with your own.<br /> </p> <p>Many people do not consider this an important step and end up being disappointed by personality conflicts.<br /> </p> <p>As you will need a good working relationship with the builder that you select it is helpful to know that you are hiring someone with whom you can get along with and communicate expectations clearly.<br /> </p> <p>We here at New Dwell look forward to hearing from you to get your project off the ground.</p> </div><p> <div class="templatemo_img"> <div id="slider"> <ul> <li><img src="images/222.gif" alt="screen 3" width="444" height="224" border="0" /></li> <li><img src="images/333.jpg" alt="screen 2" width="444" height="224" border="0" /></li> <li><img src="images/g.gif" alt="screen 3" width="444" height="224" border="0" /></li> </ul> </div> </div><p> <div class="templatemo_section_1"> <div class="templatemo_section_1_contentarea 2"> <div class="templatemo_text"> <h2>Projects</h2> <div align="center" class="templatemo_gallery mid"> <img src="images/21t.jpg" class="left" longdesc="images/21b.jpg" title="Inside Building" alt="Inside Building" /> <img src="images/22t.jpg" class="mid" longdesc="images/22b.jpg" title="Inside Building" alt="Building" /> <img src="images/9t.jpg" class="right" longdesc="images/9b.jpg" title="Inside Building" alt="Building" /></div> <div align="center" class="templatemo_gallery mid"> <img src="images/8t.jpg" class="left" longdesc="images/8b.jpg" title="Inside Building" alt="Inside Building" /> <img src="images/13t.jpg" class="mid" longdesc="images/13b.jpg" title="Building" alt="Building" /> <img src="images/18t.jpg" class="right" longdesc="images/18b.jpg" title="Building" alt="Building" /></div> </div> <div class="cleaner"></div> </div> <div class="cleaner"></div> <div class="templatemo_section_1_bottom"> </div> </div> <div class="cleaner"></div> <div id="templatemo_footer">Copyright © 2010 <a href="#">New Dwell Construction Ltd</a> </div> </div><!-- End Of Container --> </body> </html> i put all the 3 js files together. the main jquery library | slider jquery | minfied pic jquery it works!!! http://newdwell.com/ thanks for everyone's help!!!
-
i'm using jquery for 2 different things on 1 page = problem?
hi thanks very much for the reply and i have tried to do what you said... this is the site now... but still doesn't work http://newdwell.com/ i have cleaned it up a bit i think! anyone know what i can do? THANK YOU!!! xxx