Links anordnen 2er Codes - DokuOne - 30.09.2013 21:57
Hallo!
Ich möchte gerne 2 Plugin Codes Nebeneinander haben, bekomme es einfach nicht hin. Und zwar sind das diese 2:
<?=function_exists('thumbs_rating_getlink') ? thumbs_rating_getlink() : ''?>
und
<script language="JavaScript"> function selectText(textField) { textField.focus(); textField.select(); } </script><b>Doku URL:</b> <input type="text" name="sometext" size="20" value="<?php echo wp_get_shortlink(); ?>" onClick='selectText(this);'>
So sieht es jetzt aus:
http://imageshack.us/a/img197/9000/bzj.gif(!https)
Ich hätte es gerne so:
http://imageshack.us/a/img703/9183/t8d5.gif(!https)
Wie kann ich das machen, wäre super wenn mir jemand helfen kann.
Gruß
RE: Links anordnen 2er Codes - Mr-Trust - 30.09.2013 22:02
Einfach mit CSS die Elemente floaten.
Leg einfach ein div um den Doku Teil da und floate diesen left.
Müsste schon reichen.
MfG
RE: Links anordnen 2er Codes - DokuOne - 30.09.2013 22:17
scheint nicht zu funktionieren...
RE: Links anordnen 2er Codes - Nilss - 30.09.2013 22:27
Du sollst ja auch die BEIDEN in ein Div packen. Nicht nur das 2.
Könnte dir morgen, dabei helfen. Heute werde ich es nicht mehr schaffen.
RE: Links anordnen 2er Codes - DokuOne - 30.09.2013 22:31
Würde mich freuen, wenn Du mir da helfen könntest, dann bis morgen
pushlive - push - 01.10.2013 16:50
pushmessage
RE: Links anordnen 2er Codes - Schwester Wombat - 01.10.2013 17:48
<div style="float:left"> <?=function_exists('thumbs_rating_getlink') ? thumbs_rating_getlink() : ''?> </div>
<div> <script language="JavaScript"> function selectText(textField) { textField.focus(); textField.select(); } </script><b>Doku URL:</b> <input type="text" name="sometext" size="20" value="<?php echo wp_get_shortlink(); ?>" onClick='selectText(this);'> </div>
So. Müsste funktionieren. Das nachfolgende Element sollte aber noch nen: style="clear:both;" bekommen.
RE: Links anordnen 2er Codes - DokuOne - 01.10.2013 18:01
mmmh leider wird es so auch untereinander angezeigt...
RE: Links anordnen 2er Codes - Aaron - 01.10.2013 18:08
schick mal bitte den Link wo man sich das anschauen kann ..
RE: Links anordnen 2er Codes - DokuOne - 01.10.2013 18:16
Ok hier der Link:
[Link: Registrierung erforderlich]
Gruß
RE: Links anordnen 2er Codes - Schwester Wombat - 01.10.2013 18:25
Aus
<div class="thumbs-rating-container" id="thumbs-rating-4731" data-content-id="4731">
Machst du:
<div class="thumbs-rating-container" id="thumbs-rating-4731" data-content-id="4731" style="float:left;">
Und aus dem <p> direkt unter dem input-Feld machst du:
Das funktioniert auf jeden Fall.
RE: Links anordnen 2er Codes - DokuOne - 01.10.2013 18:41
Sorry habe leider keine ahnung vom coden, aber ein <p>, sehe ich in der php Seite nicht:
Das ist die komplette Seite:
<?php /** * The Template for displaying all single video posts with standard layout. * * @package deTube * @subpackage Template * @since deTbue 1.1 */
get_header(); ?>
<div id="main"><div class="wrap cf singlevideo"> <div id="headline" class="cf"> <button id="RBL_Element" style="background: none; border: none;"> <img src="http://www.doku-one.de/bilder/email_icon1.png"/></button> <div id="dialog" style="display:none;"> <span><?=get_option('RBL_Mail');?> :</span><br /> <input type="text" name="RBL_Mail" size="24"/><br />
<span><?=get_option('RBL_Desc');?> :</span><br /> <textarea name="RBL_Desc" cols="26" rows="10"></textarea><br /> <button id="RBL_Send"><?=get_option('RBL_Submit');?></button> </div> <div class="inner"> <h1 id="title"><?php if (strlen($post->post_title) > 62) { echo substr(the_title($before = '', $after = '', FALSE), 0, 62) . '...'; } else { the_title(); } ?></h1> <div id="actions"> <?php if (function_exists('video_width')) { video_width(); }; ?> <?php if (function_exists('turn_the_lights_off')) { turn_the_lights_off(); }; ?> <?php dp_like_post(); ?>
</div> </div><!-- end #headline>.inner --> </div><!-- end #headline --> <?php if (function_exists('video_width')) { ?> <div id="video"> <div id="screen"> <?php dp_video($post->ID, get_option('dp_single_video_autoplay')); ?> </div><!-- end #screen --> </div><!-- end #video--> <?php }; ?> <div id="content" role="main"> <?php while (have_posts()) : the_post(); global $post;?> <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <?php if (!function_exists('video_width')) { ?> <div id="video"> <div id="screen"> <?php dp_video($post->ID, get_option('dp_single_video_autoplay')); ?> </div><!-- end #screen --> </div><!-- end #video--> <?php }; ?> <div id="details" class="section-box"> <div class="section-content"> <div id="info" data-height="150"> <div class="entry-content rich-content"> <?=function_exists('thumbs_rating_getlink') ? thumbs_rating_getlink() : ''?> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<p class="entry-nav pag-nav"><span>'.__('Pages:', 'dp').'</span> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div><!-- end .entry-content --> <div id="extras"> <h4><?php _e('Category:', 'dp'); ?></h4> <?php the_category(', '); ?> <?php the_tags('<h4>'.__('Tags:', 'dp').'</h4>', ', ', ''); ?> </div> </div><!-- end #info --> </div><!-- end .section-content --> <div class="info-toggle"> <a href="#" class="info-more"><?php _e('Show more', 'dp'); ?></a> <a href="#" class="info-less"><?php _e('Show less', 'dp'); ?></a> </div> </div><!--end #deatils--> </div><!-- end #post-<?php the_ID(); ?> -->
<?php comments_template('', true); ?>
<?php endwhile; ?> </div><!-- end #content -->
<?php get_sidebar(); ?>
</div></div><!-- end #main --> <?php get_footer(); ?>
Den anderen Code habe ich reingesetz:
<?php /** * The Template for displaying all single video posts with standard layout. * * @package deTube * @subpackage Template * @since deTbue 1.1 */
get_header(); ?>
<div id="main"><div class="wrap cf singlevideo"> <div id="headline" class="cf"> <button id="RBL_Element" style="background: none; border: none;"> <img src="http://www.doku-one.de/bilder/email_icon1.png"/></button> <div id="dialog" style="display:none;"> <span><?=get_option('RBL_Mail');?> :</span><br /> <input type="text" name="RBL_Mail" size="24"/><br />
<span><?=get_option('RBL_Desc');?> :</span><br /> <textarea name="RBL_Desc" cols="26" rows="10"></textarea><br /> <button id="RBL_Send"><?=get_option('RBL_Submit');?></button> </div> <div class="inner"> <h1 id="title"><?php if (strlen($post->post_title) > 62) { echo substr(the_title($before = '', $after = '', FALSE), 0, 62) . '...'; } else { the_title(); } ?></h1> <div id="actions"> <?php if (function_exists('video_width')) { video_width(); }; ?> <?php if (function_exists('turn_the_lights_off')) { turn_the_lights_off(); }; ?> <?php dp_like_post(); ?>
</div> </div><!-- end #headline>.inner --> </div><!-- end #headline --> <?php if (function_exists('video_width')) { ?> <div id="video"> <div id="screen"> <?php dp_video($post->ID, get_option('dp_single_video_autoplay')); ?> </div><!-- end #screen --> </div><!-- end #video--> <?php }; ?> <div id="content" role="main"> <?php while (have_posts()) : the_post(); global $post;?> <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> <?php if (!function_exists('video_width')) { ?> <div id="video"> <div id="screen"> <?php dp_video($post->ID, get_option('dp_single_video_autoplay')); ?> </div><!-- end #screen --> </div><!-- end #video--> <?php }; ?> <div id="details" class="section-box"> <div class="section-content"> <div id="info" data-height="150"> <div class="entry-content rich-content"> <?=function_exists('thumbs_rating_getlink') ? thumbs_rating_getlink() : ''?><script language="JavaScript"> function selectText(textField) { textField.focus(); textField.select(); } </script><b>Doku URL:</b> <input type="text" name="sometext" size="20" value="<?php echo wp_get_shortlink(); ?>" onClick='selectText(this);'> <?php the_content(); ?> <?php wp_link_pages(array('before' => '<p class="entry-nav pag-nav"><span>'.__('Pages:', 'dp').'</span> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div><!-- end .entry-content --> <div id="extras"> <h4><?php _e('Category:', 'dp'); ?></h4> <?php the_category(', '); ?> <?php the_tags('<h4>'.__('Tags:', 'dp').'</h4>', ', ', ''); ?> </div> </div><!-- end #info --> </div><!-- end .section-content --> <div class="info-toggle"> <a href="#" class="info-more"><?php _e('Show more', 'dp'); ?></a> <a href="#" class="info-less"><?php _e('Show less', 'dp'); ?></a> </div> </div><!--end #deatils--> </div><!-- end #post-<?php the_ID(); ?> -->
<?php comments_template('', true); ?>
<?php endwhile; ?> </div><!-- end #content -->
<?php get_sidebar(); ?>
</div></div><!-- end #main --> <?php get_footer(); ?>
Gruß
|