Need help with External Vote Button Please!

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2008, 12:01 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 784
Hi I own Blog Engage / Published Blogs I have tried to install many external vote buttons and I continue to have placement issues with blogs. I was wondering if anyone would consider creating one for me site?

This is what I have right now but when I add it to the bottom left or bottom right of a blog sites it's not aligned and out of place!

Right now I'm using this EVB http://forums.pligg.com/pligg-mods/5085-my-evb.html

with this plugin, Blog Engage Forums View topic - External Vote Button EVB (Worod Press Plugin Added, "NEW")

Demo's of it in action can be found here,

iknownil

Search Engine Optimization Marketing - SEOMKT

Blog Engage Blog

When I add the EVB button to the bottom right and or left I see it the following ways,





Here is the plugin if you want to D/L it and try it out. I'm sure it's just the word press plugin not adding the vote button in the right spot but I'm not sure how I can fix that?

Blog Engage Forums View topic - External Vote Button EVB (Worod Press Plugin Added, "NEW")
Reply With Quote
  #2 (permalink)  
Old 01-30-2008, 12:06 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
It looks like you are trying to add it to .postmetadata

The CSS is for that is:

Quote:
{

padding-top: 2px;

padding-right: 15px;

padding-bottom: 0px;

padding-left: 15px;

background-color: transparent;

background-image: url(images/meta.png);

background-repeat: no-repeat;

background-attachment: scroll;

background-x-position: left;

background-y-position: top;

font-family: Verdana,Arial,sans-serif;

font-style: normal;

font-variant: normal;

font-weight: normal;

font-size: 12px;

line-height: normal;

font-size-adjust: none;

font-stretch: normal;

text-align: right;

height: 34px;

}
The problem is the height for that class. Try removing the height attribute all together or increasing it to 71px which is the height of your EVB.

Geoserv.
Reply With Quote
  #3 (permalink)  
Old 01-30-2008, 12:10 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 784
Geoserv where did you see this style sheet information? what file?
Reply With Quote
  #4 (permalink)  
Old 01-30-2008, 12:12 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
Its located in:


Geoserv.
Reply With Quote
  #5 (permalink)  
Old 01-30-2008, 12:13 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 784
ok I see, so this would be a fix for my blog but I can't expect all members to do this right? Is there anyway I can change this file so it works on all blogs without modifications?

Code:
<?php

/*

Plugin Name: WP-Blogengage
Version: 1.0.1
Plugin URI: General Marketing Blog
Description: Adds a Blogengage vote button to your posts.


Author: David Hobson
Author URI: General Marketing Blog
*/

$message = "";

if (!function_exists('blogeng_request_handler')) {
    function blogeng_request_handler() {
        global $message;

        if ($_POST['blogeng_action'] == "update options") {
            $blogeng_align_v = $_POST['blogeng_align_sl'];

    		if(get_option("blogeng_box_align")) {
    			update_option("blogeng_box_align", $blogeng_align_v);
    		} else {
    			add_option("blogeng_box_align", $blogeng_align_v);
    		}

            $message = '<br clear="all" /> <div id="message" class="updated fade"><p><strong>Option saved. </strong></p></div>';
        }
    }
}

if(!function_exists('blogeng_add_menu')) {
    function blogeng_add_menu () {
        add_options_page("Blogengage Options", "Blogengage Options", 8, basename(__FILE__), "blogeng_displayOptions");
    }
}

if (!function_exists('blogeng_displayOptions')) {
    function blogeng_displayOptions() {

        global $message;
        echo $message;

		print('<div class="wrap">');
		print('<h2>Blogengage Options</h2>');

        print ('<form name="blogeng_form" action="'. get_bloginfo("wpurl") . '/wp-admin/options-general.php?page=wp-blogengage.php' .'" method="post">');
?>

		<p>Align:
        <select name="blogeng_align_sl" id="blogeng_align_sl">
			<option value="Top Left"   <?php if (get_option("blogeng_box_align") == "Top Left") echo " selected"; ?> >Top Left</option>
			<option value="Top Right"   <?php if (get_option("blogeng_box_align") == "Top Right") echo " selected"; ?> >Top Right</option>
			<option value="Bottom Left"  <?php if (get_option("blogeng_box_align") == "Bottom Left") echo " selected"; ?> >Bottom Left</option>
			<option value="Bottom Right"  <?php if (get_option("blogeng_box_align") == "Bottom Right") echo " selected"; ?> >Bottom Right</option>
			<option value="None"  <?php if (get_option("blogeng_box_align") == "None") echo " selected"; ?> >None</option>
		</select><br /><br /> </p>

<?php
		print ('<p><input type="submit" value="Save &raquo;"></p>');
		print ('<input type="hidden" name="blogeng_action" value="update options" />');
		print('</form></div>');

    }
}


if (!function_exists('blogeng_blogengagehtml')) {
	function blogeng_blogengagehtml($float) {
		global $wp_query;
		$post = $wp_query->post;
		$permalink = get_permalink($post->ID);
        $title = urlencode($post->post_title);
		$blogengagehtml = <<<CODE

    <span style="margin: 0px 6px 0px 0px; float: $float;">

	<script type="text/javascript">
	submit_url = "$permalink";
	</script>
    <script type="text/javascript" src="http://blogengage.com/evb/button.php"></script>
	</span>
CODE;
	return  $blogengagehtml;
	}
}


if (!function_exists('blogeng_addbutton')) {
	function blogeng_addbutton($content) {

		if ( !is_feed() && !is_page() && !is_archive() && !is_search() && !is_404() ) {
    		if(! preg_match('|<!--sphinnit-->|', $content)) {
    		    $blogeng_align = get_option("blogeng_box_align");
    		    if ($blogeng_align) {
                    switch ($blogeng_align) {
                        case "Top Left":
        		              return blogeng_blogengagehtml("left").$content;
                              break;
                        case "Top Right":
        		              return blogeng_blogengagehtml("Right").$content;
                              break;
                        case "Bottom Left":
        		              return $content.blogeng_blogengagehtml("left");
                              break;
                        case "Bottom Right":
        		              return $content.blogeng_blogengagehtml("right");
                              break;
                        case "None":
        		              return $content;
                              break;
                        default:
        		              return blogeng_blogengagehtml("left").$content;
                              break;
                    }
                } else {
        		      return blogeng_blogengagehtml("left").$content;
                }

    		} else {
                  return str_replace('<!--blogengage-->', blogeng_blogengagehtml(""), $content);
            }
        } else {
			return $content;
        }
	}
}

if (!function_exists('show_blogengage')) {
	function show_blogengage($float = "left") {
        global $post;
		$permalink = get_permalink($post->ID);
		echo <<<CODE

    <span style="margin: 0px 6px 0px 0px; float: $float;">

	<script type="text/javascript">
	submit_url = "$permalink";
	</script>
    <script type="text/javascript" src="http://blogengage.com/evb/check_url.js.php"></script>
	</span>
CODE;
    }
}

add_filter('the_content', 'blogeng_addbutton', 999);
add_action('admin_menu', 'blogeng_add_menu');
add_action('init', 'blogeng_request_handler');

?>
Reply With Quote
  #6 (permalink)  
Old 01-30-2008, 01:32 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 784
I'm pretty sure it has something to do with the following code. I've been playing around with it and can move the button but not where I want it to be.

When I remove this,

Code:
<span style="margin: 0px 0px 0px 0px; float: $float;">
The button will NOT display top or bottom right. But will display Top Bottom Left!

I'll keep playing with it
Reply With Quote
  #7 (permalink)  
Old 01-30-2008, 01:44 PM
Constant Pligger
Pligg Version: 9.9.0
Pligg Template: yget
 
Join Date: Jan 2008
Posts: 159
Quote:
Originally Posted by bbrian017 View Post
I'm pretty sure it has something to do with the following code. I've been playing around with it and can move the button but not where I want it to be.

When I remove this,

Code:
<span style="margin: 0px 0px 0px 0px; float: $float;">
The button will NOT display top or bottom right. But will display Top Bottom Left!

I'll keep playing with it


Try this
Code:
<span style="padding: 15px 0px 0px 0px; margin: 0px 0px 0px 0px; float: $float;">
play around with padding.. leave margins
Reply With Quote
  #8 (permalink)  
Old 01-30-2008, 01:57 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 784
Geoserv what does each 0 stand for? each specific one, 1st, 2nd, 3rd, and 4th, ?

left right up and down or something?
Reply With Quote
  #9 (permalink)  
Old 01-30-2008, 03:09 PM
Constant Pligger
Pligg Version: 9.9.0
Pligg Template: yget
 
Join Date: Jan 2008
Posts: 159
Quote:
Originally Posted by bbrian017 View Post
Geoserv what does each 0 stand for? each specific one, 1st, 2nd, 3rd, and 4th, ?

left right up and down or something?
1. top
2. right
3. bottom
4. left
Reply With Quote
  #10 (permalink)  
Old 01-30-2008, 05:15 PM
Banned
Pligg Version: 9.8.
Pligg Template: Custom
 
Join Date: Feb 2007
Location: Canada
Posts: 796
When you see CSS styling in that format its clock-wise.

Geoserv.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
External Vote Button (EVB) Yankidank Questions and Comments 70 10-09-2010 03:08 PM
Vote button not updating dynamically aufotookbigfoot Questions and Comments 5 04-18-2008 04:16 PM
External Vote Button and Google mankal Questions and Comments 1 03-27-2008 12:27 PM
External Vote Button Bug pornlord Questions and Comments 4 05-15-2007 10:59 AM
Vote button links to story page after voted canadaka Questions and Comments 1 04-02-2007 12:12 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development