<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[ProText Themes Forum — Boast]]></title>
	<link rel="self" href="http://protextthemes.info/feed-atom-forum12.xml" />
	<updated>2012-12-22T22:20:04Z</updated>
	<generator>PunBB</generator>
	<id>http://protextthemes.info/</id>
		<entry>
			<title type="html"><![CDATA[Twitter Widget]]></title>
			<link rel="alternate" href="http://protextthemes.info/topic55-twitter-widget-new-posts.html" />
			<summary type="html"><![CDATA[<p>I noticed that the Twitter Widget on the Boast demo had decided to stop working which isn&#039;t entirely surprising considering how much Twitter has been messing about with it&#039;s API. Anyway I fixed it. If yours has stopped working you can replace the code in the &quot;boast_widget_twitter&quot; form template with the following:-</p><div class="codebox"><pre><code>&lt;div id=&quot;twitter&quot; class=&quot;widget widget_twitter&quot;&gt;
&lt;h3&gt;Twitter&lt;/h3&gt;

&lt;div class=&quot;inner&quot;&gt;
&lt;div class=&quot;innerholder&quot;&gt;

&lt;ul id=&quot;twitter_update_list_woo_twitter-3&quot;&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;/div&gt; &lt;!-- /.innerholder --&gt;
&lt;/div&gt; &lt;!-- /.inner --&gt;

&lt;span class=&quot;shadow&quot;&gt;&amp;nbsp;&lt;/span&gt;
&lt;div class=&quot;controls&quot;&gt;
&lt;a class=&quot;down&quot; href=&quot;#&quot; title=&quot;Up/Down&quot;&gt;DOWN&lt;/a&gt;
&lt;/div&gt; &lt;!-- /.controls --&gt;
    
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--//--&gt;&lt;![CDATA[//&gt;&lt;!--
    
    function twitterCallback2(twitters) {

      var statusHTML = [];
      for (var i=0; i&lt;twitters.length; i++){
        var username = twitters[i].user.screen_name;
        var status = twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^&quot;\s\&lt;\&gt;]*[^.,;&#039;&quot;&gt;\:\s\&lt;\&gt;\)\]\!])/g, function(url) {
          return &#039;&lt;a href=&quot;&#039;+url+&#039;&quot;&gt;&#039;+url+&#039;&lt;/a&gt;&#039;;
        }).replace(/\B@([_a-z0-9]+)/ig, function(reply) {
          return  reply.charAt(0)+&#039;&lt;a href=&quot;http://twitter.com/&#039;+reply.substring(1)+&#039;&quot;&gt;&#039;+reply.substring(1)+&#039;&lt;/a&gt;&#039;;
        });
        statusHTML.push( &#039;&lt;li&gt;&lt;span class=&quot;content&quot;&gt;&#039;+status+&#039;&lt;/span&gt; &lt;a style=&quot;font-size:85%&quot; class=&quot;time&quot; href=&quot;http://twitter.com/&#039;+username+&#039;/statuses/&#039;+twitters[i].id_str+&#039;&quot;&gt;&#039;+relative_time(twitters[i].created_at)+&#039;&lt;/a&gt;&lt;/li&gt;&#039; );
      }
      document.getElementById( &#039;twitter_update_list_woo_twitter-3&#039;).innerHTML = statusHTML.join( &#039;&#039; );
    }

    function relative_time(time_value) {
      var values = time_value.split( &quot; &quot; );
      time_value = values[1] + &quot; &quot; + values[2] + &quot;, &quot; + values[5] + &quot; &quot; + values[3];
      var parsed_date = Date.parse(time_value);
      var relative_to = (arguments.length &gt; 1) ? arguments[1] : new Date();
      var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
      delta = delta + (relative_to.getTimezoneOffset() * 60);

      if (delta &lt; 60) {
        return &#039;less than a minute ago&#039;;
      } else if(delta &lt; 120) {
        return &#039;about a minute ago&#039;;
      } else if(delta &lt; (60*60)) {
        return (parseInt(delta / 60)).toString() + &#039; minutes ago&#039;;
      } else if(delta &lt; (120*60)) {
        return &#039;about an hour ago&#039;;
      } else if(delta &lt; (24*60*60)) {
        return &#039;about &#039; + (parseInt(delta / 3600)).toString() + &#039; hours ago&#039;;
      } else if(delta &lt; (48*60*60)) {
        return &#039;1 day ago&#039;;
      } else {
        return (parseInt(delta / 86400)).toString() + &#039; days ago&#039;;
      }
    }
//--&gt;!]]&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://api.twitter.com/1/statuses/user_timeline/&lt;txp:variable name=&quot;widget_twitter_user_name&quot; /&gt;.json?callback=twitterCallback2&amp;amp;count=&lt;txp:variable name=&quot;widget_twitter_qty&quot; /&gt;&amp;amp;include_rts=t&quot;&gt;&lt;/script&gt;

&lt;/div&gt; &lt;!-- /#twitter --&gt;</code></pre></div><p>No it doesn&#039;t look a lot different does it? It&#039;s all in the detail. ;-)</p>]]></summary>
			<author>
				<name><![CDATA[thebombsite]]></name>
				<uri>http://protextthemes.info/user2.html</uri>
			</author>
			<updated>2012-12-22T22:20:04Z</updated>
			<id>http://protextthemes.info/topic55-twitter-widget-new-posts.html</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Image problems]]></title>
			<link rel="alternate" href="http://protextthemes.info/topic37-image-problems-new-posts.html" />
			<summary type="html"><![CDATA[<p>I have just installed Boast into a pre-existing site.<br />I&#039;m having several problems with images.</p><p>1. In the Articles section, (<a href="http://rynne.org/articles/">http://rynne.org/articles/</a>), I find that each articles that don&#039;t have a defined Article Image display every single image in the site. I can fix this by designating an Article Image for each article, but it shouldn&#039;t be happening.</p><p>2. In one article where I have half a dozen images (<a href="http://rynne.org/articles/136/">http://rynne.org/articles/136/</a>), I am getting images beside each other, rather than a vertical structure of text, then image, then text.</p><p>TIA for any help.</p><p>John</p>]]></summary>
			<author>
				<name><![CDATA[jonur]]></name>
				<uri>http://protextthemes.info/user37.html</uri>
			</author>
			<updated>2011-08-23T06:12:39Z</updated>
			<id>http://protextthemes.info/topic37-image-problems-new-posts.html</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Working calendar]]></title>
			<link rel="alternate" href="http://protextthemes.info/topic31-working-calendar-new-posts.html" />
			<summary type="html"><![CDATA[<p>Hi,<br />Very happy with the Boast theme, it installed without any hassle and is proving easy to work with.<br />One thing I would like to see in a theme is a working calendar using the smd_calendar plugin that has some dummy events<br />set up, both single and spanning a few days as it&#039;s the one part of the theme that I&#039;m struggling to get working.</p>]]></summary>
			<author>
				<name><![CDATA[simoin]]></name>
				<uri>http://protextthemes.info/user41.html</uri>
			</author>
			<updated>2011-06-07T14:54:24Z</updated>
			<id>http://protextthemes.info/topic31-working-calendar-new-posts.html</id>
		</entry>
</feed>
