<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PunBB Forums - [release] Favorite topic]]></title>
	<link rel="self" href="http://punbb.informer.com/forums/feed/atom/topic/20777/"/>
	<updated>2009-08-24T07:13:57Z</updated>
	<generator>PunBB</generator>
	<id>http://punbb.informer.com/forums/topic/20777/release-favorite-topic/</id>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/129882/#p129882"/>
			<content type="html"><![CDATA[<p>Very useful extension.&nbsp; Installed fine without a problem.&nbsp; Thank you.</p>]]></content>
			<author>
				<name><![CDATA[pcoxygen]]></name>
				<uri>http://punbb.informer.com/forums/user/18346/</uri>
			</author>
			<updated>2009-08-24T07:13:57Z</updated>
			<id>http://punbb.informer.com/forums/post/129882/#p129882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/128819/#p128819"/>
			<content type="html"><![CDATA[<p>Great extension.</p><p>I noticed that the search results page for favorites didn&#039;t &quot;match&quot; the subscriptions page, so I tweaked the extension as follows, and thought I&#039;d share back. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Added to manifest.xml:</p><div class="codebox"><pre><code>&lt;hook id=&quot;sf_fn_generate_search_crumbs_start&quot;&gt;&lt;![CDATA[
    if ($action == &#039;show_favorite&#039;)
    {
        if (file_exists($ext_info[&#039;path&#039;].&#039;/lang/&#039;.$forum_user[&#039;language&#039;].&#039;/&#039;.$ext_info[&#039;id&#039;].&#039;.php&#039;))
        {
            include_once $ext_info[&#039;path&#039;].&#039;/lang/&#039;.$forum_user[&#039;language&#039;].&#039;/&#039;.$ext_info[&#039;id&#039;].&#039;.php&#039;;
        }

        else
        {
            include_once $ext_info[&#039;path&#039;].&#039;/lang/English/&#039;.$ext_info[&#039;id&#039;].&#039;.php&#039;;
        }

        $forum_page[&#039;crumbs&#039;][] = $lang_favorite_topic[&#039;Favorites&#039;];
        $forum_page[&#039;items_info&#039;] = generate_items_info($lang_search[&#039;Topics found&#039;], ($forum_page[&#039;start_from&#039;] + 1), $num_hits);
        $forum_page[&#039;main_head_options&#039;][&#039;defined_search&#039;] = &#039;&lt;span&#039;.(empty($forum_page[&#039;main_head_options&#039;]) ? &#039; class=&quot;first-item&quot;&#039; : &#039;&#039;).&#039;&gt;&lt;a href=&quot;&#039;.forum_link($forum_url[&#039;search&#039;]).&#039;&quot;&gt;&#039;.$lang_search[&#039;User defined search&#039;].&#039;&lt;/a&gt;&lt;/span&gt;&#039;;

        return true;
    }
]]&gt;&lt;/hook&gt;

&lt;hook id=&quot;sf_fn_no_search_results_start&quot;&gt;&lt;![CDATA[
    if ($action == &#039;show_favorite&#039;)
    {
        if (file_exists($ext_info[&#039;path&#039;].&#039;/lang/&#039;.$forum_user[&#039;language&#039;].&#039;/&#039;.$ext_info[&#039;id&#039;].&#039;.php&#039;))
        {
            include_once $ext_info[&#039;path&#039;].&#039;/lang/&#039;.$forum_user[&#039;language&#039;].&#039;/&#039;.$ext_info[&#039;id&#039;].&#039;.php&#039;;
        }

        else
        {
            include_once $ext_info[&#039;path&#039;].&#039;/lang/English/&#039;.$ext_info[&#039;id&#039;].&#039;.php&#039;;
        }

        message($lang_favorite_topic[&#039;No favorites&#039;], $forum_page[&#039;search_again&#039;], $lang_favorite_topic[&#039;Favorites&#039;]);

        return true;
    }
]]&gt;&lt;/hook&gt;</code></pre></div><p>Added to $lang_favorite_topic in English favorite_topic.php:</p><div class="codebox"><pre><code>    &#039;Favorites&#039;       =&gt; &#039;Favorites&#039;,
    &#039;No favorites&#039;    =&gt; &#039;You have no favorite topics.&#039;,</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sunshine]]></name>
				<uri>http://punbb.informer.com/forums/user/2191/</uri>
			</author>
			<updated>2009-07-04T05:31:41Z</updated>
			<id>http://punbb.informer.com/forums/post/128819/#p128819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/124959/#p124959"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>YonasH wrote:</cite><blockquote><div class="quotebox"><cite>esupergood wrote:</cite><blockquote><p>Does version 1.2 still create stickies when you add a favourite topic?<br />I&#039;m very excited to hear that you are working on more extensions</p></blockquote></div><p>yes. my idea for this extension was to stick those topics.<br />if you want to remove that sticky part, just delete line 97 from manifest.xml:<br /></p><div class="codebox"><pre><code>$query[&#039;ORDER BY&#039;] = &#039;t.sticky DESC, favorite DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;t.posted&#039; : &#039;t.last_post&#039;).&#039; DESC&#039;;</code></pre></div></blockquote></div><br /><p>Now this is a option in users profile.<br />Check for new version in first post, or use my repository to get automatic updates prompts <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[YonasH]]></name>
				<uri>http://punbb.informer.com/forums/user/9651/</uri>
			</author>
			<updated>2009-02-22T18:29:43Z</updated>
			<id>http://punbb.informer.com/forums/post/124959/#p124959</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122522/#p122522"/>
			<content type="html"><![CDATA[<p>on default user page (viewed as admin)</p>]]></content>
			<author>
				<name><![CDATA[YonasH]]></name>
				<uri>http://punbb.informer.com/forums/user/9651/</uri>
			</author>
			<updated>2009-01-09T22:12:37Z</updated>
			<id>http://punbb.informer.com/forums/post/122522/#p122522</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122517/#p122517"/>
			<content type="html"><![CDATA[<p>Hello Yonash, thank you for Version 1.2 of Favorite topic .</p><p>In the lang file I found two links:</p><div class="quotebox"><blockquote><p>&#039;View your favorite&#039;&nbsp; &nbsp; =&gt; &#039;View all your favorite topics&#039;,<br />&nbsp; &nbsp; &#039;View user favorite&#039;&nbsp; &nbsp; =&gt; &#039;View all %s\&#039;s favorite topics&#039;</p></blockquote></div><p>But where in the profile or administration I can check the &quot;user favorite&quot;?</p><p>yours sincerely,<br />Meteolab</p>]]></content>
			<author>
				<name><![CDATA[Meteolab]]></name>
				<uri>http://punbb.informer.com/forums/user/14573/</uri>
			</author>
			<updated>2009-01-09T21:37:43Z</updated>
			<id>http://punbb.informer.com/forums/post/122517/#p122517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122493/#p122493"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>esupergood wrote:</cite><blockquote><p>Does version 1.2 still create stickies when you add a favourite topic?<br />I&#039;m very excited to hear that you are working on more extensions</p></blockquote></div><p>yes. my idea for this extension was to stick those topics.<br />if you want to remove that sticky part, just delete line 97 from manifest.xml:<br /></p><div class="codebox"><pre><code>$query[&#039;ORDER BY&#039;] = &#039;t.sticky DESC, favorite DESC, &#039;.(($cur_forum[&#039;sort_by&#039;] == &#039;1&#039;) ? &#039;t.posted&#039; : &#039;t.last_post&#039;).&#039; DESC&#039;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YonasH]]></name>
				<uri>http://punbb.informer.com/forums/user/9651/</uri>
			</author>
			<updated>2009-01-09T16:37:57Z</updated>
			<id>http://punbb.informer.com/forums/post/122493/#p122493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122483/#p122483"/>
			<content type="html"><![CDATA[<p>Does version 1.2 still create stickies when you add a favourite topic?<br />I&#039;m very excited to hear that you are working on more extensions</p>]]></content>
			<author>
				<name><![CDATA[esupergood]]></name>
				<uri>http://punbb.informer.com/forums/user/14286/</uri>
			</author>
			<updated>2009-01-09T14:02:59Z</updated>
			<id>http://punbb.informer.com/forums/post/122483/#p122483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122481/#p122481"/>
			<content type="html"><![CDATA[<p>&quot;View all your favorite topics&quot; added<br />Check first post</p>]]></content>
			<author>
				<name><![CDATA[YonasH]]></name>
				<uri>http://punbb.informer.com/forums/user/9651/</uri>
			</author>
			<updated>2009-01-09T13:38:34Z</updated>
			<id>http://punbb.informer.com/forums/post/122481/#p122481</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122477/#p122477"/>
			<content type="html"><![CDATA[<p>Rest of discussion is here: <a href="http://punbb.informer.com/forums/topic/20790/release-hide-topic/">http://punbb.informer.com/forums/topic/ &#133; ide-topic/</a> <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>I&#039;ll just add &quot;View all your favorites&quot; to user profile in few minutes.<br />I still have about 30 extensions to do on my list, so I will not work on this &quot;most favorites&quot; project right now. Fell free to modify my extension.</p>]]></content>
			<author>
				<name><![CDATA[YonasH]]></name>
				<uri>http://punbb.informer.com/forums/user/9651/</uri>
			</author>
			<updated>2009-01-09T12:24:42Z</updated>
			<id>http://punbb.informer.com/forums/post/122477/#p122477</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122449/#p122449"/>
			<content type="html"><![CDATA[<p>Did some posts get deleted from this topic?<br />Someone replied with a good idea and I followed up.</p><p>Hmmm. The suggestion was that it would be good if the favourite topics did NOT appear like stickies at the top of the forum list but were instead accessed by a link in the profile just like the current subscription topics are viewed. That would be much better for me.</p><p>And then, based on forum activity, it would be good if the following links/lists were available:<br />- most favourited today<br />- most favourited this week<br />- most favourited this month<br />- most favourited this year<br />- most favourited all time</p><p>Something along those lines ???</p>]]></content>
			<author>
				<name><![CDATA[esupergood]]></name>
				<uri>http://punbb.informer.com/forums/user/14286/</uri>
			</author>
			<updated>2009-01-09T09:16:46Z</updated>
			<id>http://punbb.informer.com/forums/post/122449/#p122449</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122278/#p122278"/>
			<content type="html"><![CDATA[<p>Not sure about this.<br />What need to be done:<br />-option in admin panel to assign some forum as &quot;top favorites&quot; (it can use &quot;redirect_url&quot; field with some special value)<br />-index.php - easy changes to mark this special forum<br />-viewforum.php - make a exception in &quot;redirect_url&quot; checking step, select topics list using favorites table. display as &quot;moved&quot;, show no. of favorite selections in some column. Lots of work.</p><p>But what for? Most popular topics will became more and more popular, and list order will be constant.<br />Maybe just some short list in admin panel?</p><p>What do you think?</p>]]></content>
			<author>
				<name><![CDATA[YonasH]]></name>
				<uri>http://punbb.informer.com/forums/user/9651/</uri>
			</author>
			<updated>2009-01-07T13:56:38Z</updated>
			<id>http://punbb.informer.com/forums/post/122278/#p122278</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122276/#p122276"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>yonash wrote:</cite><blockquote><p>Edit: I read it again. You mean new forum with most frequently favorite topics. It can be done, but I&#039;ll need to think about it.</p></blockquote></div><p>Yes that&#039;s the one. Sounds good to me.<br />It does need some thinking about though</p>]]></content>
			<author>
				<name><![CDATA[esupergood]]></name>
				<uri>http://punbb.informer.com/forums/user/14286/</uri>
			</author>
			<updated>2009-01-07T13:53:22Z</updated>
			<id>http://punbb.informer.com/forums/post/122276/#p122276</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122274/#p122274"/>
			<content type="html"><![CDATA[<p>I also think forum with most popular topics is good idea. Really allows a kind of heat map of the site to be created.... create buzz and whatnot <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[KeyDog]]></name>
				<uri>http://punbb.informer.com/forums/user/14482/</uri>
			</author>
			<updated>2009-01-07T12:28:09Z</updated>
			<id>http://punbb.informer.com/forums/post/122274/#p122274</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122272/#p122272"/>
			<content type="html"><![CDATA[<p>Style issue fixed - see first post.</p><p>Most popular topics - not too bad idea <img src="http://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /> I can modify some existing extension which is showing newest topics in index.php Is there any good?</p><p>Edit: I read it again. You mean new forum with most frequently favorite topics. It can be done, but I&#039;ll need to think about it.</p>]]></content>
			<author>
				<name><![CDATA[YonasH]]></name>
				<uri>http://punbb.informer.com/forums/user/9651/</uri>
			</author>
			<updated>2009-01-07T12:09:27Z</updated>
			<id>http://punbb.informer.com/forums/post/122272/#p122272</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [release] Favorite topic]]></title>
			<link rel="alternate" href="http://punbb.informer.com/forums/post/122269/#p122269"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>esupergood wrote:</cite><blockquote><p>This is a very nice extension. I&#039;ve installed it straight away at <a href="http://www.eRoyton.co.uk/forum&quot;">www.eRoyton.co.uk/forum</a><br />Can you take it a step further and use this extension to create a &quot;most popular&quot; topics forum. So that only the topics which have been &quot;favourited&quot; the most times are listed in a special separate forum?</p><p>Or perhaps another similar idea that achieves the same result?<br />Thanks for the extension release</p></blockquote></div><p>Yeah most popular topics + most new topics at index is good extension</p>]]></content>
			<author>
				<name><![CDATA[anggiawan]]></name>
				<uri>http://punbb.informer.com/forums/user/14303/</uri>
			</author>
			<updated>2009-01-07T11:21:45Z</updated>
			<id>http://punbb.informer.com/forums/post/122269/#p122269</id>
		</entry>
</feed>
