<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged extend</title>
<link>https://www.question2answer.org/qa/tag/extend</link>
<description>Powered by Question2Answer</description>
<item>
<title>Why can't I extend qa_html_theme in my layer plugin?</title>
<link>https://www.question2answer.org/qa/17422/why-cant-i-extend-qa_html_theme-in-my-layer-plugin</link>
<description>

&lt;p&gt;
	Why the following is impossible in my layer plugin?&lt;/p&gt;


&lt;blockquote&gt;
	

&lt;p&gt;
		&amp;lt;?php&lt;/p&gt;
	

&lt;p&gt;
		class qa_html_theme_layer extends qa_html_theme
&lt;br&gt;
		{&lt;/p&gt;
	

&lt;p style=&quot;margin-left: 40px;&quot;&gt;
		...&lt;/p&gt;
	

&lt;p&gt;
		}&lt;/p&gt;
&lt;/blockquote&gt;


&lt;p&gt;
	&lt;span style=&quot;color: rgb(255, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none;&quot;&gt;Class for layer must be declared as &quot;class qa_html_theme_layer extends qa_html_theme_base&quot;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	I have a method html() redefined in the plugin, and I want to redefine the same method in my theme. The plugin would call qa_html_theme::html();&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/17422/why-cant-i-extend-qa_html_theme-in-my-layer-plugin</guid>
<pubDate>Tue, 28 Aug 2012 06:12:28 +0000</pubDate>
</item>
<item>
<title>Plugin q2a-user-activity-plus: How to extend with Tabs?</title>
<link>https://www.question2answer.org/qa/15856/plugin-q2a-user-activity-plus-how-to-extend-with-tabs</link>
<description>

&lt;p&gt;
	I get requests from users who don't find their answers and questions listed.&lt;/p&gt;


&lt;p&gt;
	I thought it would be great to have 2 extra tabs, when they click on &quot;My Account&quot; which shows only My Details and My Favorites.&lt;/p&gt;


&lt;p&gt;
	Would it be possible to add the 2 tabs &quot;My Questions&quot; and &quot;My Answers&quot;?&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	I tried to add this to the plugin, but does not work, I do sth wrong here I guess:&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-size:11px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&lt;span style=&quot;font-family: lucida sans unicode,lucida grande,sans-serif;&quot;&gt;$this-&amp;gt;content['navigation']['sub']['useractivity'] = array(
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;'url' =&amp;gt; qa_path_html('user-activity/answers/'.$this-&amp;gt;_user_handle(), array('tab'=&amp;gt;'useractivity'), qa_opt('site_url')),
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;'label' =&amp;gt; qa_opt('user_act_list_tab'),
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;'selected' =&amp;gt; qa_get('tab')=='useractivity'?true:false
&lt;br&gt;
	);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	Thanks.&lt;/p&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/15856/plugin-q2a-user-activity-plus-how-to-extend-with-tabs</guid>
<pubDate>Thu, 14 Jun 2012 12:18:49 +0000</pubDate>
</item>
</channel>
</rss>