fatalx
Forum Replies Created
-
all plugins have been disabled and it still doesn’t work.
Forum: Fixing WordPress
In reply to: Main Post Loop Shows Latest Post Twicehere 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(' ...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>'; } }
Forum: Fixing WordPress
In reply to: Main Post Loop Shows Latest Post Twicehey,
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.
nope nothing “(
Forum: Fixing WordPress
In reply to: Adding to AdminCP Header OnlyThank You!
Forum: Fixing WordPress
In reply to: Custom Plugin – Getting Code to run on WP_ADMIN Loginso 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?
Forum: Fixing WordPress
In reply to: Custom Plugin – Getting Code to run on WP_ADMIN Loginok cool I’ll give it a shot
Forum: Fixing WordPress
In reply to: Vbulletin Login in SidebarAfter 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.
Forum: Fixing WordPress
In reply to: Vbulletin Login in SidebarI 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?
Forum: Fixing WordPress
In reply to: Passing Shortcode Param to different Functionanyone?
Forum: Fixing WordPress
In reply to: Getting Previous URLis it possible for it to just display the url of the previous page and not have a button?
Forum: Fixing WordPress
In reply to: Automatically Resize Videohey,
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.
Forum: Fixing WordPress
In reply to: Automatically Resize Videohow would I have the CSS apply to only the video and not the entire excerpt?
Forum: Fixing WordPress
In reply to: Automatically Resize Videoanyone?…………..
Forum: Fixing WordPress
In reply to: Pagination on Two Loops (Pagination Per Loop)Anyone……….. I have yet to have a question answered or helped on this forum……