IPB

( Zaloguj | Zarejestruj )

 
Reply to this topicStart new topic
> Problem - Slide Facebook LikeBox, Problem z wtyczką GL Facebook LikeBox
milek1243
post 19.7.2011 - 03:28
Post #1





Grupa: Bloger
Postów: 3

Nr: 10 281



Witam

Na swojej stronie: http://www.krokiewka.pl zainstalowałem wtyczkę GL Facebook LikeBox ( http://wordpress.org/extend/plugins/gl-facebook-likebox/ ).
Sugerowałem się opisem na tej stronie: http://echlebek.pl/wordpress-kolejna-ciekawa-wtyczka/

Wszystko byłoby dobrze, gdyby nie to, że likebox wysuwa się ze środka strony, a nie zza prawej krawędzi, jak to jest na większości stronach z taką ramką.

Być może jest to związane z query 1.4.4 którą nie wiem czy poprawnie zainstalowałem.

Męczę się z tym już 2 dni. Bardzo proszę o pomoc.
Go to the top of the page
 
+Quote Post
amistad18
post 19.7.2011 - 04:17
Post #2


aktywność:
*********

Grupa: Redakcja
Postów: 4 254

Nr: 5 919



Problem jest z ładowaniem się stopki, do tego boxa z facebookiem, albo na odwrót. Jak dokładnie dodałeś kod tego samego okna, i gdzie?
Go to the top of the page
 
+Quote Post
milek1243
post 19.7.2011 - 04:59
Post #3





Grupa: Bloger
Postów: 3

Nr: 10 281



W edycji wtyczki wpisałem tylko link do mojej strony na facebooku, kod okienka likebox, rozmiar okienka i położenie (z prawej strony).

Kod źródłowy gl-facebook-likebox.php

KOD
<?php
/*
Plugin Name: GL Facebook Likebox
Plugin URI: http://simivar.net/plugins/gl-facebook-likebox/
Description: Adds a great-lookin' Facebook Likebox to Your site.
Author: Krystian 'Simivar' Marcisz
Author URI: http://www.simivar.net/
Version: 1.0.2
Text Domain: glfl
Domain Path: /lang/
*/

## Define author and plugin version
define('GLFL_VERSION', '1.0.2');
define('GLFL_AUTHOR', 'Krystian "Simivar" Marcisz');

if ( !function_exists( 'glfl_show' ) ) :
function glfl_show() {
    ## These are our own options
    $options = get_option("glfl_show");
    $pageurl = $options['pageurl'];
    $colorscheme = $options['colorscheme'];
    $faces = $options['faces'];
    $stream = $options['stream'];
    $header = $options['header'];
    $position = $options['position'];
    $icon = $options['icon'];
    
    if (!is_array( $options ))
        $options = array(
            'pageurl' => 'http://www.facebook.com/Krokiewka',
            'colorscheme' => 'light',
            'faces' => 'true',
            'stream' => 'false',
            'header' => 'false',
            'position' => 'glflright',
            'icon' => '0'
        );
        
    ## Our 'widget' content
    echo '<div id="facebook-'.$position.'">';
    echo '<div id="facebook-icon" class="icon_'.$icon.'"></div>';
    echo '<div id="facebook-app">';
    echo '<iframe src="http://www.facebook.com/plugins/likebox.php?id=116564625052109&width=237&connections=20&stream=false&header=false&height=475 href='.$pageurl.'&amp;width=237&amp;colorscheme='.$colorscheme.'&amp;show_faces='.$faces.'&amp;stream='.$stream.'&amp;header='.$header.'&amp;height=475" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:237px; height:475px;" allowTransparency="true"></iframe>';
    echo '</div>';
}    
endif;

## Take the plugin dir
$plugin_directory = basename( dirname( __FILE__ ) );

## Take a URL to plugin dir
$pluginurl = WP_PLUGIN_URL . '/' . $plugin_directory . '/';

if ( !function_exists( 'glfl_jqueryinit' ) ) :
## Include newest jQuery & our script
function glfl_jqueryinit() {
    global $pluginurl;
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js');
        wp_enqueue_script( 'jquery' );
    wp_register_script( 'glfljs', $pluginurl . 'js/script.js');
    wp_enqueue_script( 'glfljs' );
}
endif;

if ( !function_exists( 'glfl_AdminStyles' ) ) :
## Register and include .css files
## - admin page
function glfl_AdminStyles(){
    global $pluginurl;
    wp_register_style( "glfl-adminstyle",  $pluginurl . 'css/admin.css', null, '1.0.2');
    wp_enqueue_style( 'glfl-adminstyle' );
}
endif;

if ( !function_exists( 'glfl_styles' ) ) :
## - blog page
function glfl_styles(){
    global $pluginurl;
    wp_register_style( "glfl-styles",  $pluginurl . 'css/style.css', null, '1.0.2');
    wp_enqueue_style( 'glfl-styles' );
}
endif;

if ( !function_exists( 'glfl_optionsmenu' ) ) :
## Function for custom options menu
function glfl_optionsmenu() {
    ## create new menu
    add_options_page('GL Facebook Likebox options', 'GL Facebook Likebox', 'manage_options', 'glfl', 'glfl_settings_page');
}
endif;

if ( !function_exists( 'glfl_settings_page' ) ) :
function glfl_settings_page() {
    ## Get options
    $options = get_option("glfl_show");
    ## options exist? if not set defaults
    if ( !is_array( $options ) )
        $options = array(
            'pageurl' => 'http://www.facebook.com/Krokiewka',
            'colorscheme' => 'light',
            'faces' => 'true',
            'stream' => 'false',
            'header' => 'false',
            'position' => 'glflright',
            'icon' => '0'
        );
        
    ## form posted?
    if (isset($_POST['Glflsubmit']))
    {
        $options['pageurl'] = strip_tags(stripslashes($_POST['pageurl']));
        $options['colorscheme'] = strip_tags(stripslashes($_POST['colorscheme']));
        $options['faces'] = strip_tags(stripslashes($_POST['faces']));
        $options['stream'] = strip_tags(stripslashes($_POST['stream']));
        $options['header'] = strip_tags(stripslashes($_POST['header']));
        $options['position'] = strip_tags(stripslashes($_POST['position']));
        update_option("glfl_show", $options);
    }
    
    if (isset($_POST['Glflsubmit-icon']))
    {
        $options['icon'] = $_POST['icon'];
        update_option("glfl_show", $options);
    }
    
    $pageurl = htmlspecialchars($options['pageurl'], ENT_QUOTES);
    $colorscheme = htmlspecialchars($options['colorscheme'], ENT_QUOTES);
    $faces = htmlspecialchars($options['faces'], ENT_QUOTES);
    $stream = htmlspecialchars($options['stream'], ENT_QUOTES);
    $header = htmlspecialchars($options['header'], ENT_QUOTES);
    $position = $options['position'];
    $icon = $options['icon'];
?>
<div class="wrap glfl">
        <div class="icon32" id="icon-options-general"><br></div>
        <h2><?php _e('GL Facebook Likebox options', 'glfl'); ?></h2>
        <div id="column-main">
            <?php include 'php/main.php'; ?>
        </div>
        <div id="column-side">
            <?php include 'php/side.php'; ?>
        </div>
</div>
<?php }
endif;

## Add custom options menu and load admin stylesheet
add_action('admin_menu', 'glfl_optionsmenu');
add_action( 'admin_init', 'glfl_AdminStyles' );

if (!is_admin()){
    add_action('init', 'glfl_jqueryinit');
}

add_action('wp_footer', 'glfl_show');
add_action('init', 'glfl_styles');

// Load plugin translation
global $plugin_directory;
load_plugin_textdomain('glfl', null, $plugin_directory . '/lang/');
?>


Właśnie nie wiem o co chodzi z tą stopką.

Kod źródłowy stopki (footer.php):
KOD
</div>  
<?php if ( !get_option('gan_footer')) {?>
<div id="footer" class="clearfloat">

<div id="footerleft" class="clearfloat">
<?php echo linkme_pokaz(0); ?>
<?php echo linkme_pokaz(1); ?>

<h4>Media o nas:</h4>

<? query_posts($query_string . '&cat=9'); ?>
     <?php $my_query = new WP_Query('posts_per_page=2');
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<ul><li>
    <div>    
    <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></div>    
    <div class="stats">
        <span><?php edit_post_link('(Edytuj)', '', ''); ?></span>
        <span><?php the_time('j F Y'); ?></span>        
        
    </div>
    <div class="story">
    <?php if ( !get_option('gan_thumbnail')) {?>
    <?php get_thumbnail($post->ID); ?>    
    <?php } ?>
    <?php the_excerpt();?>
    </div>
    <div class="tags"><small><?php the_tags( 'Tagi: [', ', ', ']'); ?></small></div>    
    </div>

    </ul></li>
<?php endwhile; ?>

</div>         


</div>

<div id="footerbottom"> <?php wp_footer(); ?><?php echo linkme_pokaz(2); ?> Copyright &copy;<?php echo date('Y');?> <?php bloginfo('name'); ?>, wszystkie prawa zastrzeżone.|Powered by <a href="http://wordpress.org/">WordPress</a>| Modified by <a href="http://toppozycja.pl/" target="_blank">toppozycja.pl</a><!-- Prosimy o nieusuwanie linków -->
</div>
<?php } else {?>

<div id="footercopy" align="center" class="clearfloat"><?php wp_footer(); ?><?php echo linkme_pokaz(2); ?> Copyright &copy;<?php echo date('Y');?> <?php bloginfo('name'); ?>, wszystkie prawa zastrzeżone.| Powered by <a href="http://wordpress.org/">WordPress</a>| Modified by <a href="http://toppozycja.pl/" target="_blank">toppozycja.pl</a><!-- Prosimy o nieusuwanie linków -->
</div>
<?php }?>
</body>
</html>
Go to the top of the page
 
+Quote Post
amistad18
post 19.7.2011 - 15:51
Post #4


aktywność:
*********

Grupa: Redakcja
Postów: 4 254

Nr: 5 919



Spróbuj ten kod:

KOD
</div>

<div id="footerbottom"> <?php wp_footer(); ?><?php echo linkme_pokaz(2); ?> Copyright &copy;<?php echo date('Y');?> <?php bloginfo('name'); ?>, wszystkie prawa zastrzeżone.|Powered by <a href="http://wordpress.org/">WordPress</a>| Modified by <a href="http://toppozycja.pl/" target="_blank">toppozycja.pl</a><!-- Prosimy o nieusuwanie linków -->
</div>
<?php } else {?>

<div id="footercopy" align="center" class="clearfloat"><?php wp_footer(); ?><?php echo linkme_pokaz(2); ?> Copyright &copy;<?php echo date('Y');?> <?php bloginfo('name'); ?>, wszystkie prawa zastrzeżone.| Powered by <a href="http://wordpress.org/">WordPress</a>| Modified by <a href="http://toppozycja.pl/" target="_blank">toppozycja.pl</a><!-- Prosimy o nieusuwanie linków -->
</div>
<?php }?>


Zamienić na:


KOD
</div>

<div id="footerbottom"><?php echo linkme_pokaz(2); ?> Copyright &copy;<?php echo date('Y');?> <?php bloginfo('name'); ?>, wszystkie prawa zastrzeżone.|Powered by <a href="http://wordpress.org/">WordPress</a>| Modified by <a href="http://toppozycja.pl/" target="_blank">toppozycja.pl</a><!-- Prosimy o nieusuwanie linków -->
</div>
<?php } else {?>

<div id="footercopy" align="center" class="clearfloat"><?php echo linkme_pokaz(2); ?> Copyright &copy;<?php echo date('Y');?> <?php bloginfo('name'); ?>, wszystkie prawa zastrzeżone.| Powered by <a href="http://wordpress.org/">WordPress</a>| Modified by <a href="http://toppozycja.pl/" target="_blank">toppozycja.pl</a><!-- Prosimy o nieusuwanie linków -->
</div>
<?php }?>
<?php wp_footer(); ?>


Oraz w pierwszej linijce masz </div> - to zamień na </div></strong> - bo masz gdzieś tagi nie zamknięte.
Go to the top of the page
 
+Quote Post
milek1243
post 19.7.2011 - 16:03
Post #5





Grupa: Bloger
Postów: 3

Nr: 10 281



amistad18, jesteś wielki! Dzięki!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



: 23 05 12 - 01:32