2012-11-30, 02:24:07
@tf2 - It seems that the version of the plugin in extend is not the most recent. You can download v1.4.2 from the GitHub repository: https://github.com/mikehenken/getsimple-blog
(2012-11-30, 02:24:07)influxweb Wrote: [ -> ]@tf2 - It seems that the version of the plugin in extend is not the most recent. You can download v1.4.2 from the GitHub repository: https://github.com/mikehenken/getsimple-blog
(2012-12-02, 03:28:46)shawn_a Wrote: [ -> ]Then that would be a multi user bug not a blog bug.
(2012-12-02, 10:18:29)shawn_a Wrote: [ -> ]that is weird, i guess i missed the release that updated it to work with multi.
<h3 class="blog_post_title"><a href="http://somelink" class="blog_post_link">some link</a></h3>
# add in this plugin's language file
if(file_exists(BLOGSETTINGS))
{
$settings_lang = getXML(BLOGSETTINGS);
$LANG = $settings_lang->lang;
}
else
{
$LANG = "en_US";
}
(2012-12-10, 08:52:24)Tzvook Wrote: [ -> ]The problem with the language being reset to Eng is from the file blog.php
first function don't actually function as it should:
Code:# add in this plugin's language file
if(file_exists(BLOGSETTINGS))
{
$settings_lang = getXML(BLOGSETTINGS);
$LANG = $settings_lang->lang;
}
else
{
$LANG = "en_US";
}
I had to set it manually to fix the issue of half the site being reset ... to Eng.
So it's officially a bug :-)
# add in this plugin's language file
if(file_exists(BLOGSETTINGS))
{
$settings_lang = getXML(BLOGSETTINGS);
$LANG = $settings_lang->lang;
}
else
{
$LANG = "en_US";
}
# add in this plugin's language file
if(file_exists(BLOGSETTINGS))
{
$settings_lang = getXML(BLOGSETTINGS);
$LANG = "he_IL";
}
else
{
$LANG = "he_IL";
}
{if condition="isset($post.id)"} <!-- SINGLE BLOG POST -->
{if condition="$config.postadtop == 'Y'"}
<div class="blog_all_posts_ad">
{$config.addata}
</div>
{/if}
{if condition="$config.disquscount == 'Y'"}
<a href="{$post.url}/#disqus_thread" data-disqus-identifier="{$post.id}" style="float:right"></a>
{/if}
<div class="blog_post_container">
<h3 class="blog_post_title">
<a href="{$post.url}" class="blog_post_link">
{$post.title}
</a>
</h3>
{if condition="$config.displaydate == 'Y'"}
<p class="blog_post_date">{$post.date}</p>
{/if}
<p class="blog_post_content">
{if condition="$post.thumb_src"}
<img src="{$post.thumb_src}" alt="{$post.title}" style="width: 200px;height: auto; "/>
{/if}{$post.content}
{if condition="$config.displayreadmore == 'Y'"}{$config.readmore}{/if}
</div>
{if condition="!empty($tags)"}
<p class="blog_tags"><b>{$i18n.TAGS} :</b>
{loop="tags"}
<a href="{$tag_url}{$value}">{$value}</a>
{/loop}
</p>
{/if}
<p class="blog_go_back"><a href="javascript:history.back()"><< {$i18n.GO_BACK}</a></p>
{if condition="$config.addthis == 'Y'"}
{function="addThisTool()"}
{/if}
{if condition="$config.sharethis == 'Y'"}
{function="shareThisTool()"}
{/if}
{if condition="$config.comments == 'Y'"}
{function="disqusTool()"}
{/if}
{if condition="$config.postadbottom == 'Y'"}
<div class="blog_all_posts_ad">
{$config.addata}
</div>
{/if}
{else} <!-- BLOG POSTS LOOP -->
<div class="blog_post_container">
<h3 class="blog_post_title">
<a href="{$post.url}" class="blog_post_link">
{$post.title}
</a>
</h3>
{if condition="$config.displaydate == 'Y'"}
<p class="blog_post_date">{$post.date}</p>
{/if}
<p class="blog_post_content">
{if condition="$post.thumb_src"}
<img src="{$post.thumb_src}" alt="{$post.title}" style="width: 200px;height: auto; "/>
{/if}{$post.content}
{if condition="$config.displayreadmore == 'Y'"}
<a href="{$post.url}">
{if condition="$config.readmore != ''"}
{$config.readmore}
{else}
{$i18n.READ_FULL_ARTICLE}
{/if}
»</a>
{/if}
</div>
{if condition="!empty($tags)"}
<p class="blog_tags"><b>{$i18n.TAGS} :</b>
{loop="tags"}
<a href="{$tag_url}{$value}">{$value}</a>
{/loop}
</p>
{/if}
{/if}
ððððððððððððð
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec this is code venenatis augue. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenae
ыыыыыыыыыыы
<p>
<img alt="" src="/data/uploads/1.jpg" style="width: 100px; height: 100px;" />Lorem ipsum dolor sit amet, consecte
ßþúуÿðõü ÑÂтøûьýую þôõöôу ýõôþрþóþ
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec this is code venenatis augue. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenae
public function rssFeed() {
header("Content-Type: application/rss+xml; charset=ISO-8859-1");
$system = $this->getSystemSettings();
$rssfeed = '<?xml version="1.0" encoding="ISO-8859-1"?>';
$rssfeed .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">';
$rssfeed .= '<channel>';
$rssfeed .= '<atom:link href="http://'.$system['url'].'/feed/" rel="self" type="application/rss+xml" />';
$rssfeed .= '<title>'.$system['title'].'</title>';
$rssfeed .= '<link>http://'.$system['url'].'</link>';
$rssfeed .= '<description>'.$system['description'].'</description>';
$rssfeed .= '<language>'.$system['language'].'</language>';
$rssfeed .= '<copyright>Copyright (C) '.date("Y", time()).' '.$system['url'].'</copyright>';
//40 items seems to be the limit that some Feed Readers will accept
$query = "SELECT title, body, log_time FROM entries ORDER BY log_time DESC LIMIT 20";
$result = sqlite_query($query) or die ("Could not execute query");
while($row = sqlite_fetch_array($result)) {
$title = $this->cleanString($row['title']);
$body = $this->cleanString($row['body']);
$rssfeed .= '<item>';
$rssfeed .= '<title>' . $title . '</title>';
$rssfeed .= '<link>http://'.$system['url'].'/#!' . $row['log_time'] . '</link>';
$rssfeed .= '<description>' . $body . '</description>';
$rssfeed .= '<guid>http://'.$system['url'].'/#!' . $row['log_time'] . '</guid>';
$rssfeed .= '<pubDate>' . date("D, d M Y H:i:s O", $row['log_time']) . '</pubDate>';
$rssfeed .= '</item>';
}
$rssfeed .= '</channel>';
$rssfeed .= '</rss>';
echo $rssfeed;
}
public function podcastFeed($feedName) {
$query_string="SELECT * FROM podcasts WHERE tag='".$feedName."' limit 1";
if (!$result_string = sqlite_query($query_string)) {
// Display error since this is the only one that can be seen live
trigger_error("Cannot complete your search request (".sqlite_error_string().") Query=".$query_string);
}else{
while ($feed = sqlite_fetch_all($result_string)) {
$system = $this->getSystemSettings();
$url = $system['url'];
$query_string="SELECT log_time FROM entries, podcasts WHERE podcasts.tag='".$feedName."' AND entries.podcast_id=podcasts.id ORDER BY entries.id DESC LIMIT 1";
if (!$result_string = sqlite_query($query_string)) {
// Display error since this is the only one that can be seen live
trigger_error("Cannot complete your search request (".sqlite_error_string().") Query=".$query_string);
}else{
while ($row = sqlite_fetch_all($result_string)) {
$pubDate = $row['log_time'];
}
}
header("Content-Type: application/rss+xml; charset=UTF-8");
$podcastfeed = '<?xml version="1.0" encoding="UTF-8"?>';
$podcastfeed .= '<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom">';
$podcastfeed .= '<channel>';
$podcastfeed .= '<atom:link href="http://'.$system['url'].'/feed/podcast.php?name='.$feedName.'" rel="self" type="application/rss+xml" />';
// $podcastfeed .= '<atom:link href="http://www.stevenjaycohen.com/feed/podcast.php?name='.$feedName.'" rel="self" type="application/rss+xml" />';
$podcastfeed .= '<title>'.$feed['title'].'</title>';
$podcastfeed .= '<description>'.$feed['description'].'</description>';
$podcastfeed .= '<link>http://'.$system['url'].'</link>';
$podcastfeed .= '<language>'.$system['language'].'</language>';
$podcastfeed .= '<copyright>Copyright (C) '.date("Y", time()).' '.$system['url'].'</copyright>';
$podcastfeed .= '<lastBuildDate>'.date("D, d M Y H:i:s O", time()).'</lastBuildDate>';
$podcastfeed .= '<pubDate>'.date("D, d M Y H:i:s", $pubDate).' GMT</pubDate>';
$podcastfeed .= '<docs>http://'.$system['url'].'/feed/podcast/?name='.$feedName.'</docs>';
$podcastfeed .= '<webMaster>'.$system['email'].' ('.$system['owner'].')</webMaster>';
$podcastfeed .= '<itunes:author>'.$system['owner'].'</itunes:author>';
$podcastfeed .= '<itunes:subtitle>'.$feed['itunes_subtitle'].'</itunes:subtitle>';
$podcastfeed .= '<itunes:summary>'.$feed['itunes_summary'].'</itunes:summary>';
$podcastfeed .= '<itunes:owner>';
$podcastfeed .= '<itunes:name>'.$system['owner'].'</itunes:name>';
$podcastfeed .= '<itunes:email>'.$system['email'].'</itunes:email>';
$podcastfeed .= '</itunes:owner>';
$podcastfeed .= '<itunes:explicit>'.$feed['itunes_explicit'].'</itunes:explicit>';
$podcastfeed .= '<itunes:image href="http://'.$system['url']."/".$feed['itunes_image'].'"/>';
$podcastfeed .= '<itunes:category text="'.$feed['itunes_category_1'].'">';
$podcastfeed .= '<itunes:category text="'.$feed['itunes_category_2'].'"/>';
$podcastfeed .= '</itunes:category>';
$podcastfeed .= '<itunes:new-feed-url>http://'.$system['url'].'/feed/podcast.php?name=drwho</itunes:new-feed-url>';
//40 items seems to be the limit that some Feed Readers will accept
$query = "SELECT entries.title, body, log_time, podcast_file, podcast_length, itunes_duration FROM entries, podcasts WHERE podcasts.tag='".$feedName."' AND podcast_id=podcasts.id ORDER BY log_time DESC";
$result = sqlite_query($query) or die ("Could not execute query");
while($row = sqlite_fetch_array($result)) {
$title = $this->cleanString($row['title']);
$body = $this->cleanString($row['body']);
$subtitle = $body;
if (strlen($body)>255){
$subtitle = substr($body, 0, 250)."...";
}else{
$subtitle = $body;
}
$podcastfeed .= '<item>';
$podcastfeed .= '<title>' . $title . '</title>';
$podcastfeed .= '<link>http://'.$system['url'].'/#!' . $row['log_time'] . '</link>';
$podcastfeed .= '<guid>http://'.$system['url'].'/' . $row['podcast_file'] . '</guid>';
$podcastfeed .= '<description>' . $body . '</description>';
$podcastfeed .= '<enclosure url="http://'.$system['url'].'/'.$row['podcast_file'].'" length="'.$row['podcast_length'].'" type="audio/mpeg"/>';
$podcastfeed .= '<category>Podcasts</category>';
$podcastfeed .= '<pubDate>' . date("D, d M Y H:i:s O", $row['log_time']) . ' </pubDate>';
$podcastfeed .= '<itunes:author>'.$system['owner'].'</itunes:author>';
$podcastfeed .= '<itunes:explicit>'.$feed['itunes_explicit'].'</itunes:explicit>';
$podcastfeed .= '<itunes:subtitle>'.$subtitle.'</itunes:subtitle>';
$podcastfeed .= '<itunes:summary>'.$body.'</itunes:summary>';
$podcastfeed .= '<itunes:duration>'.$row['itunes_duration'].'</itunes:duration>';
$podcastfeed .= '<itunes:keywords>'.$feed['itunes_keywords'].'</itunes:keywords>';
$podcastfeed .= '</item>';
}
$podcastfeed .= '</channel>';
$podcastfeed .= '</rss>';
echo $podcastfeed;
}
}
}
<div class="blog_post_content">
<?php
if(!isset($_GET['post']) && $blogSettings["postthumbnail"] == 'Y' && !empty($post->thumbnail))
{
echo '<p><a href="'.$url.'" class="read_more_link"><img src="'.$SITEURL.'data/uploads/'.$post->thumbnail.'" style="" class="blog_post_thumbnail" /></a>';
}
if($excerpt == false || $excerpt == true && $blogSettings["postformat"] == "Y")
{
echo html_entity_decode($post->content);
}
else
{
if($excerpt == true && $blogSettings["postformat"] == "N")
{
if($blogSettings["excerptlength"] == '')
{
$excerpt_length = 250;
}
else
{
$excerpt_length = $blogSettings["excerptlength"];
}
echo $Blog->create_excerpt(html_entity_decode($post->content), 0, $excerpt_length);
{
echo '...<a href="'.$url.'" class="read_more_link">'.$blogSettings['readmore'].'</a></p>';
}
}
}
?>
</div>