Hallo,
Ik heb een vraagje wat betreft mijn 'social-news' plugin van Wordpress. Dit werkt (gedeeltelijk) met PHP. Als je naar Gevoelloos.nl gaat en daar op een artikel klikt, zie je onder de Adsense-advertenties een aantal logo's (o.a. nujij en ekudos). De logo's moeten naast elkaar, maar door mijn nieuwe thema, komen ze onderelkaar te staan. Hoe kan ik dit oplossen? Alvast bedankt voor jullie reacties!
Page:
<?php get_header(); ?>
<!-- Container -->
<div id="content-wrap">
<!-- single post content -->
<div id="singlepost">
<div class="post">
<!-- single post loop -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- title of the single pot -->
<h3><?php the_title(); ?></h3>
<!-- content -->
<?php the_content(__('')); ?>
<!-- Single Post Details -->
</div>
<div id="comment-wrapper">
<?php comments_template(); ?>
</div>
<!-- End of Loop fore single post -->
<?php endwhile; else : ?>
<?php endif; ?>
</div>
<!-- /singlepost -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>En de plugin:
/* SHOW 'add Social News ' AUTOMAGIC */
function ml_add_socialnews($content) {
global $wp_social_news_nl;
if($wp_social_news_nl['autoplacement']==1){
if (((is_single('')) && $wp_social_news_nl['single']=='1')
or ((is_page()) && $wp_social_news_nl['page']=='1')
or ((is_home()) && $wp_social_news_nl['home']=='1')
or ((is_search()) && $wp_social_news_nl['search']=='1')
or ((is_category()) && $wp_social_news_nl['category']=='1')
or ((is_date()) && $wp_social_news_nl['date']=='1')
)
{
return $content.ml_get_socialnews();
}
else {
return $content;
}
}
else {
return $content;
}
}
/* SHOW 'add Social News' MANUALLY */
function ml_show_socialnews(){
echo ml_get_socialnews();
}
/* GET 'add Social News' MANUALLY */
function ml_get_socialnews(){
global $wp_query, $post, $wp_social_news_nl;
$blogname = urlencode(get_bloginfo('wpurl'));
$oPost = $wp_query->post;
$permalink = urlencode(get_permalink($oPost->ID));
$permalink_unc = get_permalink($oPost->ID);
$title = urlencode($oPost->post_title);
if($wp_social_news_nl['metadescription']=='1'){
$description = urlencode(stripslashes(get_post_meta($post->ID, "description", true)));
}
$plugin_dir = get_option('siteurl').'/wp-content/plugins/social_news_nl/';
if($wp_social_news_nl['feed_url']==''){
$wp_social_news_nl['feed_url'] = get_bloginfo('rss2_url');
}
if($wp_social_news_nl['symbaloo_button_url']==''){
$wp_social_news_nl['symbaloo_button_url'] = $plugin_dir.'sn-symbaloo-icoon.gif';
}
if($wp_social_news_nl['css']=='1'){
$opmaak = 'class="bookmark"';
} else {
$opmaak = 'style="'.$wp_social_news_nl['opmaak'].'"';
}
if($wp_social_news_nl['new-tab']=='1'){
$tab = 'target="_blank" ';
}
$html .= "\n<!-- Begin Social News Nederland WP-plugin code: social_news_nl 3.3 (leave this for stats) -->\n";
$html .= '<div style="'.$wp_social_news_nl['kader'].'">';
$html .= $wp_social_news_nl['helptxtvoor'];
if($wp_social_news_nl['helpicon']=='1'){
$html .= '<a href="http://www.marketingland.nl/docs/soc...s-help-nl.html" title="Uitleg over het gebruik van deze icons" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-help.gif" width="16" height="16" alt="Uitleg over het gebruik van deze icons" /></a>';
$html .= "\n";
}
$html .= $wp_social_news_nl['helptxtna'];
if($wp_social_news_nl['css']=='0'){ $html .= " "; } // ff quick and dirty layout fix
if($wp_social_news_nl['nujij']=='1'){
$html .= '<a href="http://nujij.nl/jij.lynkx?t='.$title.'&u='.$permalink.'&b= '.$description.'" title="Plaatsen/stemmen op NUjij" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-nujij.gif" style="padding-left: 12px;" width="16" height="16" alt="Plaatsen/stemmen op NUjij" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['ekudos']=='1'){
$html .= '<a href="http://www.ekudos.nl/artikel/nieuw?url='.$permalink.'&title='.$title.'& desc='.$description.'" title="Plaatsen/stemmen op eKudos" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-ekudos.gif" width="16" height="16" alt="Plaatsen/stemmen op eKudos" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['msn-nl']=='1'){
$html .= '<a href="http://reporter.msn.nl/?fn=contribute&Title='.$title.'&URL='.$per malink.'&cat_id=6&tag_id=31&Remark='.$ description.'" title="Plaatsen/stemmen op MSN Reporter" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-msnreporter.gif" width="16" height="16" alt="Plaatsen/stemmen op MSN Reporter" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['geenredactie']=='1'){
$html .= '<a href="http://www.geenredactie.nl/submit?url='.$permalink.'&title='.$title.'" title="Plaatsen/stemmen op GeenRedactie" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-gr.gif" width="16" height="16" alt="Plaatsen/stemmen op GeenRedactie" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['grubb']=='1'){
$html .= '<a href="http://www.grubb.nl/directlink?source='.$permalink.'&title='.$titl e.'&body='.$description.'" title="Plaatsen/stemmen op Grubb" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-grubb.gif" width="16" height="16" alt="Plaatsen/stemmen op Grubb" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['tipt']=='1'){
$html .= '<a href="http://www.tipt.nl/new_tip.php?title='.$title.'&url='.$permalink. '" title="Tip dit artikel!" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-tipt.png" width="16" height="16" alt="Tip dit artikel!" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['bligg-nl']=='1'){
$html .= '<a href="http://www.bligg.nl/submit.php?url='.$permalink.'" title="Plaatsen/stemmen op Bligg.nl" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-bligg.gif" width="16" height="16" alt="Plaatsen/stemmen op Bligg.nl" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['wvwo']=='1'){
$html .= '<a href="http://watvindenwijover.nl/notes/new?nextaction=home&url='.$permalink.'&title=' .$title.'&text='.$description.'&commit=Verder" title="Wat vinden wij over..." '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-wvwo.gif" width="16" height="16" alt="Wat vinden wij over..." /></a>';
$html .= "\n";
}
if($wp_social_news_nl['tagmos']=='1'){
$html .= '<a href="http://www.tagmos.nl/bookmarks.php/?action=add&noui=yes&jump=close&address='.$permali nk.'&title='.$title.'&description='.$descr iption.'" title="Voeg toe aan TagMos.nl" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-tagmos.gif" width="16" height="16" alt="Voeg toe aan TagMos.nl" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['msn-be']=='1'){
$html .= '<a href="http://reporter.be.msn.com/?fn=contribute&Title='.$title.'&URL='.$per malink.'&cat_id=6&tag_id=31&Remark='.$ description.'" title="Plaatsen/stemmen op MSN Reporter" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-msnreporter.gif" width="16" height="16" alt="Plaatsen/stemmen op MSN Reporter" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['bligg-be']=='1'){
$html .= '<a href="http://www.bligg.be/submit.php?url='.$permalink.'" title="Plaatsen/stemmen op Bligg.be" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-bligg.gif" width="16" height="16" alt="Plaatsen/stemmen op Bligg.be" /></a>';
$html .= "\n";
} if($wp_social_news_nl['netjes']=='1'){
$html .= '<a href="http://www.netjes.be/toevoegen.php?url='.$permalink.'&titel='.$titl e.'&beschrijving='.$description.'" title="Plaatsen/stemmen op Netjes.be" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-netjes.gif" width="16" height="16" alt="Plaatsen/stemmen op Netjes.be" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['digg']=='1'){
$html .= '<a href="http://digg.com/submit?phase=2&url='.$permalink.'&title='. $title.'&bodytext='.$description.'" title="Plaatsen/stemmen op Digg" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-digg.gif" width="16" height="16" alt="Plaatsen/stemmen op Digg" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['symbaloo']=='1'){
$html .= '<a href="http://www.symbaloo.com/nl/add/url='.$permalink_unc.'&title='.$title.'&ic on='.$wp_social_news_nl['symbaloo_button_url'].'" title="Toevoegen aan Symbaloo" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-symbaloo.gif" width="16" height="16" alt="Toevoegen aan Symbaloo" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['stumble']=='1'){
$html .= '<a href="http://www.stumbleupon.com/submit?url='.$permalink.'&title='.$title.'& ;language=NL" title="Stumble it!" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-su.gif" width="16" height="16" alt="Stumble it!" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['delicious']=='1'){
$html .= '<a href="http://del.icio.us/post?v=4;url='.$permalink.';title='.$title.'" title="Voeg dit artikel toe aan Del.icio.us" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-delicious.gif" width="16" height="16" alt="Voeg dit artikel toe aan Del.icio.us" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['furl']=='1'){
$html .= '<a href=" http://furl.net/storeIt.jsp?t='.$title.'&u='.$permalink. '" title="Toevoegen aan Furl" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-furl.gif" width="16" height="16" alt="Toevoegen aan Furl" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['technorati']=='1'){
$html .= '<a href="http://www.technorati.com/faves?add='.$permalink.'" title="Voeg toe aan je favorieten op Technorati" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-technorati.gif" width="16" height="16" alt="Voeg toe aan je favorieten op Technorati" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['google']=='1'){
$html .= '<a href="http://www.google.com/bookmarks/mark?op=add&bkmk='.$permalink.'&title='.$t itle.'&annotation='.$description.'" title="Voeg toe aan je Google bladwijzers" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-google.gif" width="16" height="16" alt="Voeg toe aan je Google bladwijzers" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['facebook']=='1'){
$html .= '<a href="http://www.facebook.com/sharer.php?u='.$permalink.'&t='.$title.'" title="Voeg toe aan je Facebook-profiel" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-fb.gif" width="16" height="16" alt="Voeg toe aan je Facebook-profiel" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['rss']=='1'){
$html .= '<a href="'.$wp_social_news_nl['feed_url'].'" title="Abonneer je op de RSS-feed van deze site" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-rss.gif" width="16" height="16" alt="Abonneer je op de RSS-feed van deze site" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['email']=='1'){
$html .= '<a href="http://www.feedburner.com/fb/a/emailFlare?itemTitle='.$title.'&uri='.$permali nk.'" title="Verstuur deze pagina per e-mail via Feedburner" '.$tab.'rel="nofollow">';
$html .= '<img '.$opmaak.' src="'.$plugin_dir.'sn-email.png" width="16" height="16" alt="Verstuur deze pagina per e-mail via Feedburner" /></a>';
$html .= "\n";
}
if($wp_social_news_nl['twitter']=='1'){
$html .= '<script type="text/javascript" src="http://webwidget.fleck.com/?v=link_only"></script><img src="'.$plugin_dir.'sn-fleck.gif" '.$opmaak.' width="16" height="16" alt="Maak een notitie op deze pagina met Fleck" /></a>';
$html .= "\n";
}
$html .= "</div>";
$html .= "\n<!-- End of Social News Nederland code -->\n";
- Klein probleempje met PHP...
-
20-12-2008, 09:01 #1
- Berichten
- 979
- Lid sinds
- 17 Jaar
Klein probleempje met PHP...
-
20-12-2008, 09:21 #2
- Berichten
- 31
- Lid sinds
- 16 Jaar
float = left;
-
10-01-2009, 22:16 #3
- Berichten
- 979
- Lid sinds
- 17 Jaar
Ik heb alles geprobeerd, maar wil niet lukken. Op mijn vorige thema deed het wel normaal (horizontaal), maar nu (met mijn nieuwe thema) is het verticaal. Kan iemand mij helpen?
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic