WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
4 Add the following code to a wysiwyg section on your pageExample:<p>[[jQueryInclude?preset=twitter]]</p><div id="tweet"><p><a href="http://twitter.com/yourdomain" target="_blank"><img alt="" border="0" src="http://domain.tld/modules/jqueryadmin/plugins/twitterbadge/img/twitter.png" /></a></p></div>5 Include the following code in your template or a code section or a wsiwyg section on your page: [[jQueryInclude?preset=twitterbadge]]
Do you get any JS Errors? Can we see the page for analyzing?
Quote from: BlackBird on March 09, 2011, 02:21:00 PMDo you get any JS Errors? Can we see the page for analyzing?No JS ErrorsURL: http://houston.active-web.nl/heldcreatiesusername: testpw: test
<script language="JavaScript" type="text/javascript">var URL = '<?php echo WB_URL ?>';var WB_URL = '<?php echo WB_URL ?>';var TEMPLATE_DIR = '<?php echo TEMPLATE_DIR; ?>';var UTC_TIME = '<?php echo gmdate('H:i:s'); ?>';</script><script src="<?php echo WB_URL; ?>/include/jquery/jquery-min.js" type="text/javascript"></script><script src="<?php echo WB_URL; ?>/include/jquery/jquery-ui-min.js" type="text/javascript"></script><script src="<?php echo WB_URL; ?>/include/jquery/jquery-insert.js" type="text/javascript"></script>
Firebug says "Fehler: missing ; before statementQuelldatei: http://houston.active-web.nl/heldcreaties/templates/Held_Creaties/jquery_api.jsZeile: 7, Spalte: 1The content of that file is HTML, not JS, so remove it or put the contents into the head directly.
There are also 2 jQuery Core files loaded - 1 by jQueryAdmin, 1 from the include's folder. Remove the second one.
And least, I cannot find the twitterbadge.js in the header. (Only the css.) So check the preset file you created.
<!-- position: head --><link rel="stylesheet" type="text/css" href="{WB_URL}/modules/jqueryadmin/plugins/twitterbadge/twitterbadge.css" media="screen" /><!-- please edit these vars: --><script type="text/javascript">var twitterdomain = 'http://www.twitter.com/heldcreaties';var num = '5';</script><!-- position: body --><!-- settings below --> <script type="text/javascript">$(document).ready(function(){ var tweeturl = "http://twitter.com/status/user_timeline/"+twitterdomain+".json?count="+num+"&callback=?"; $.getJSON(tweeturl, function(data){ $.each(data, function(i, item) { var txt = item.text .replace(/(https?:\/\/[-a-z0-9._~:\/?#@!$&\'()*+,;=%]+)/ig,'<a href="$1">$1</a>') .replace(/@+([_A-Za-z0-9-]+)/ig, '<a href="http://twitter.com/$1">@$1</a>') .replace(/#+([_A-Za-z0-9-]+)/ig, '<a href="http://search.twitter.com/search?q=$1">#$1</a>'); $('<p></p>').addClass(i%2 ? 'even' : 'odd').html(txt).prependTo('#tweet'); }); });});</script>
.prependTo('#tweet')
.appendTo('#tweet')
<p><a target="_blank" href="http://twitter.com/twitterID"><img border="0" alt="" src="{WB_URL}/modules/jqueryadmin/plugins/twitterbadge/img/Twitter_Button_10.png" /></a></p>
document.getElementById('image').innerHTML ='<p><a target="_blank" href="http://twitter.com/heldcreaties"><img border="0" alt="" src="{WB_URL}/modules/jqueryadmin/plugins/twitterbadge/img/Twitter_Button_10.png" /></a></p>';