Forum Replies Created

Viewing 15 replies - 31 through 45 (of 51 total)
  • Thread Starter fatalx

    (@fatalx)

    all plugins have been disabled and it still doesn’t work.

    Thread Starter fatalx

    (@fatalx)

    here is my loop

    <?php
      $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
      query_posts("cat=4&posts_per_page=10&paged=$paged");
     ?>
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>" >
    <h1 class="mma"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
    <hr></hr>
    <h2 class="mma"><?php the_time('F jS, Y') ?> at <?php the_time('g:i') ?> EST - by <?php the_author()?></h2>
    <div class="resizer">
    
    <?php the_content('&nbsp;&nbsp;&nbsp;...Continue Reading'); ?>
    </div>
    <div class="floatright">
    <img src="<?php bloginfo('template_directory'); ?>/images/balloon.png" alt="Comment(s)" />
    <?php
    if (function_exists('Comment_Handler')) {
    	$vbridge = Comment_Handler($post->ID);
    	global $vbulletin;
    }
    
    if ($vbridge[id] > 0) {
    ?>
    <a style="text-align: right;" href='<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>'><?php echo intval($vbridge[count]) ?> Comment(s)</a>
    <?php
    			}
    ?>
    </div>
    </div>
    <?php endwhile; ?>
    <?php else: ?>

    and here is my plugin code

    ...
    wp_reset_query();
    
    if(is_home())
    {
    return '<div id="'.$mediaspace.'">Please Refresh or Download <a href="https://get.adobe.com/flashplayer/" target="_blank">Adobe Flash Player</a></div>
            <script type="text/javascript">
            var so = new SWFObject("'.$swfplayer.'","'.$random.'","'.$width.'","'.$height.'","9","#ffffff");
            so.addParam("allowfullscreen","true");
            so.addParam("allowscriptaccess","always");
            so.addParam("wmode","opaque");
    		so.addVariable("screencolor","#000000");
            so.addVariable("file","'.$flvurl.'");
    		so.addVariable("skin","'.$swfskin.'");
            so.addVariable("type", "video");
    		so.write("'.$mediaspace.'");
    		</script>';
    }
    else
    {
    return '<div id="'.$mediaspace.'">Please Refresh or Download <a href="https://get.adobe.com/flashplayer/" target="_blank">Adobe Flash Player</a></div>
            <script type="text/javascript">
            var so = new SWFObject("'.$swfplayer.'","'.$random.'","'.$width.'","'.$height.'","9","#ffffff");
            so.addParam("allowfullscreen","true");
            so.addParam("allowscriptaccess","always");
            so.addParam("wmode","opaque");
    		so.addVariable("plugins", "ltas");
    		so.addVariable("ltas.cc", "code");
    		so.addVariable("screencolor","#000000");
            so.addVariable("file","'.$flvurl.'");
    		so.addVariable("skin","'.$swfskin.'");
            so.addVariable("type", "video");so.addVariable("screencolor","#000000");
    		so.write("'.$mediaspace.'");
    		</script>';
    }
    }
    Thread Starter fatalx

    (@fatalx)

    hey,

    sorry I have no link its on a test bed. But the most recent post appears twice right after itself. haha sry if its confusing. Just imagine the default wordpress theme and the most recent post appearing on that two times at the top of the page.

    Thread Starter fatalx

    (@fatalx)

    nope nothing “(

    Thread Starter fatalx

    (@fatalx)

    Thank You!

    Thread Starter fatalx

    (@fatalx)

    so im trying to create a cookie and im having some trouble

    here is my code so far

    function set_cookie()
    {
    setcookie(“RandomName”, “RandomValue”, time()+2592000,”/”,”localhost”);
    }

    add_action(‘admin_menu’,’set_cookie’);

    all I want is for the cookie to be created or update when an admin logs in (or the dashboard load)via wp_admin

    what am I doing wrong here?

    Thread Starter fatalx

    (@fatalx)

    ok cool I’ll give it a shot

    Thread Starter fatalx

    (@fatalx)

    After many hours of trying to figure this out I got the desired results. Here is what I did to get a Vbulletin login box on my wordpress page that includes a welcome message.

    In the wp-config.php file I add this code to the bottom

    $root = $_SERVER['DOCUMENT_ROOT'];
    $curdir = getcwd ();
    chdir("$root/forums/");
    require("$root/forums/global.php");
    chdir ($curdir);

    Then in my sidebar file I added this code

    <?php
    global $vbulletin;
    if ($vbulletin->userinfo['userid']!=0) {
    
    $username= $vbulletin->userinfo['username'];
    echo ("<p>Welcome back, $username!</p>");
    }
    
     else { echo "LOGIN STUFF GOES HERE!";
    }
    ?>

    I hope this helps other people out, and hopefully I don’t run into anymore major issues.

    Thread Starter fatalx

    (@fatalx)

    I was able to get rid of the errors by moving the top code

    $root = $_SERVER['DOCUMENT_ROOT'];
    $curdir = getcwd ();
    chdir("$root/forums/");
    require("$root/forums/global.php");
    chdir ($curdir);

    Into WP_CONFIG but now they calling of vbulletin->userinfo[‘userid’]
    and $vbulletin->userinfo[‘username’] doesn’t do anything.

    where should I go from here?

    Thread Starter fatalx

    (@fatalx)

    anyone?

    Thread Starter fatalx

    (@fatalx)

    is it possible for it to just display the url of the previous page and not have a button?

    Thread Starter fatalx

    (@fatalx)

    hey,

    that code didn’t work but you lead me along the right path. This code did the trick

    .post object{
    width: 75%;
    height: 75%;
    }

    It does exactly what I need, and its amazingly simple, I didn’t know that CSS could effect object attributes.

    Thanks esmi you helped me out alot.

    Thread Starter fatalx

    (@fatalx)

    how would I have the CSS apply to only the video and not the entire excerpt?

    Thread Starter fatalx

    (@fatalx)

    anyone?…………..

    Thread Starter fatalx

    (@fatalx)

    Anyone……….. I have yet to have a question answered or helped on this forum……

Viewing 15 replies - 31 through 45 (of 51 total)