<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Make news editable on homepage</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 16:18:24 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[I use Cotonti 0.6.5, that is the latest version. Here you can see for yourself:<br />
<br />
<div style="text-align:center"><a href="http://www.armaholic.com/datas/users/4-cotonti_admin_main.png" rel="nofollow"><img src="http://www.armaholic.com/datas/thumbs/4-cotonti_admin_main.png" alt="" /></a>  <a href="http://www.armaholic.com/datas/users/4-cotonti_admin_other.png" rel="nofollow"><img src="http://www.armaholic.com/datas/thumbs/4-cotonti_admin_other.png" alt="" /></a></div>
<br />
<br />
[edit]<br />
To explain.<br />
Our live site is still running Seditio, that is where I converted the DB from (or can pick a new one from any time I want to convert that one).<br />
The DB which is currently used is a few months old. Converting the DB is a very long process for me so I choose not to do it every week <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" /><br />
<br />
We never went live yet with our Cotonti site since we are reworking our whole site as well at the same time, its just a test site running on Cotonti nobody has acces to.]]></description>
			<pubDate>Thu, 26 Лис 2009 03:56:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21212]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[So are you using Seditio or Cotonti then? If Cotonti what version?]]></description>
			<pubDate>Thu, 26 Лис 2009 03:17:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21211]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=21195#21195">#</a> <strong>Kilandor :</strong>
Goto Others &gt; Disk Cache and Delete the templates cache see if that helps.<br />
</blockquote>
<br />
Something must be really wrong here, I do not have that option under &quot;other&quot;. The only thing I can choose is &quot;Internal cache&quot;.<br />
However, I always just manually empty the templates cache (in datas), I guess thats the same right?<br />
<br />
I am going to take someones offer and ask him to convert our Seditio DB to Cotonti. Somewhere during the process things go wrong but I have no idea why (I followed the tuts every time step by step to the letter).]]></description>
			<pubDate>Ср, 25 Лис 2009 17:53:20 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21199]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Goto Others &gt; Disk Cache and Delete the templates cache see if that helps.]]></description>
			<pubDate>Ср, 25 Лис 2009 13:57:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21195]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[I have just logged into my website with the main admin account (user 1). I checked all rights and this user has all rights set to allow.<br />
If I than add the <pre class="code">&lt;!-- IF {PHP.usr.isadmin} --&gt;
	&lt;a href=https://www.cotonti.com/&quot;page.php?m=edit&amp;id={PAGE_ROW_ID}&amp;r=list&quot;&gt;Edit&lt;/a&gt;
&lt;!-- ENDIF --&gt;</pre>
to my news.tpl there still is no way to edit the news directly.<br />
<br />
I am using the latest version of cotonti. Site is not public though, its in maintenance mode.<br />
<br />
If you want I can give you acces to the site so you can see it for yourself, you can get the head admin acces info if you want. Just so you can check all rights.]]></description>
			<pubDate>Вт, 24 Лис 2009 20:35:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21179]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[Just tested <pre class="code">&lt;!-- IF {PHP.usr.isadmin} --&gt;
	&lt;a href=https://www.cotonti.com/&quot;page.php?m=edit&amp;id={PAGE_ROW_ID}&amp;r=list&quot;&gt;Edit&lt;/a&gt;
&lt;!-- ENDIF --&gt;</pre>in plugins/news.tpl on a live site under 0.6.5. Works fine (as it should).<br />
1. Try to login as admin<br />
or<br />
2. Group &quot;42&quot; has no admin privileges]]></description>
			<pubDate>Вт, 24 Лис 2009 19:22:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21176]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[Thanks so much for all replies <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
<br />
But, none of the above works, I added both ways to my news.tpl in the /skins/Blaster07/plugins/ folder but still there is no edit option for admins.<br />
And before anyone asks. Yes, I am an admin there. <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
<br />
Here is how the tpl looks now: <pre class="code">&lt;!-- BEGIN: NEWS --&gt;
&lt;!--Seditio Skin T3 Blaster 07 Copyright © 2007 T3-Design.Com. All rights Reserved. --&gt;

&lt;!-- BEGIN: PAGE_ROW --&gt;

&lt;div class=&quot;{PAGE_ROW_AUTHOR}&quot;&gt;
	&lt;div id=&quot;{PAGE_ROW_KEY}&quot; &gt;
		&lt;div style=&quot;float:left; height:25px; padding:4px 0 3px 57px&quot;&gt;&amp;nbsp; &lt;a href=https://www.cotonti.com/&quot;{PAGE_ROW_URL}&quot;&gt;{PAGE_ROW_SHORTTITLE}&lt;/a&gt; &lt;/div&gt;&lt;div style=&quot;float:right; height:25px; padding:4px 0 3px 0px&quot;&gt;{PAGE_ROW_CATICON}&lt;/div&gt;&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;
	&lt;div id=&quot;fondonews&quot;&gt;
		&lt;div style=&quot;float:left;&quot;&gt; {PAGE_ROW_CATPATH} &lt;/div&gt;
		&lt;div style=&quot;float:right&quot;&gt;{PAGE_ROW_COMMENTS} {PAGE_ROW_ADMIN}&lt;/div&gt;
	&lt;/div&gt;
&lt;br&gt;{PAGE_ROW_TEXT}&lt;br&gt;&lt;br&gt;
	&lt;div id=&quot;fondonews&quot;&gt;
		&lt;span style=&quot;float:left;&quot;&gt;Written on {PAGE_ROW_DATE} by {PAGE_ROW_OWNER}&lt;/span&gt;
		&lt;span style=&quot;float:right&quot;&gt;test2&lt;/span&gt;
&lt;!-- IF {PHP.usr.isadmin} --&gt;
	&lt;a href=https://www.cotonti.com/&quot;page.php?m=edit&amp;id={PAGE_ROW_ID}&amp;r=list&quot;&gt;Edit&lt;/a&gt;
&lt;!-- ENDIF --&gt;

&lt;!-- IF {PHP.usr.profile.user_maingrp} == '42' --&gt;
	&lt;a href=https://www.cotonti.com/&quot;page.php?m=edit&amp;id={PAGE_ROW_ID}&amp;r=list&quot;&gt;Edit&lt;/a&gt;
&lt;!-- ENDIF --&gt;
		
		
		
	&lt;/div&gt;
&lt;/div&gt;

&lt;!-- END: PAGE_ROW --&gt;
&lt;!-- BEGIN: HEADLINES_ROW --&gt;
&lt;div class=&quot;{PAGE_ROW_ODDEVEN}&quot;&gt;{PAGE_ROW_DATE} : {PAGE_ROW_CATPATH_IDX} {PHP.cfg.separator} &lt;a href=https://www.cotonti.com/&quot;{PAGE_ROW_URL_IDX}&quot;&gt;{PAGE_ROW_SHORTTITLE}&lt;/a&gt;&lt;/div&gt;
&lt;!-- END: HEADLINES_ROW --&gt;

&lt;div class=&quot;paging&quot;&gt;{PAGE_PAGEPREV} {PAGE_PAGENAV} {PAGE_PAGENEXT}&lt;/div&gt;

&lt;!--Seditio Skin T3 Blaster 07 Copyright © 2007 T3-Design.Com. All rights Reserved. --&gt;
&lt;!-- END: NEWS --&gt;
</pre>
<br />
<br />
<br />
[edit]<br />
&quot;Test2&quot; is only just there for making sure to me I am editing the correct tpl. Same as the location, this is just to see if i can get it to work, after that I put it in a &lt;div&gt;<br />
<br />
<br />
[edit2]<br />
Uhm, no idea, but now it works correct.<br />
But only by using the way how musiconly told how he did it. That default &quot;isadmin&quot; block does not work. Maybe for that one you need to be user=1?]]></description>
			<pubDate>Вт, 24 Лис 2009 16:49:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21173]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<pre class="code">&lt;!-- IF {PHP.usr.isadmin} --&gt;
	&lt;a href=https://www.cotonti.com/&quot;page.php?m=edit&amp;id={PAGE_ROW_ID}&amp;r=list&quot;&gt;Edit&lt;/a&gt;
&lt;!-- ENDIF --&gt;</pre>]]></description>
			<pubDate>Вт, 24 Лис 2009 05:47:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21170]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[I love logic blocks. You can almost everything you want.<br />
Only finding the right variable is my problem.<br />
<br />
Is there a list with the variables? <br />
Also is there a lost of all TPL tags?<br />
Because in <a href="http://www.cotonti.com/plug.php?e=tpltags">http://www.cotonti.com/plug.php?e=tpltags</a> there are some missing.<br />
Like news.tpl, index.tpl, ..]]></description>
			<pubDate>Вт, 24 Лис 2009 02:39:24 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21165]]></link>
		</item>
		<item>
			<title>musiconly</title>
			<description><![CDATA[I solved this the easiest way I knew <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
skins/yourkin/plugins/news.tpl<br />
<br />
add somewhere in it, between &lt;!-- BEGIN: PAGE_ROW --&gt; &lt;!-- END: PAGE_ROW --&gt;:<br />
<pre class="code">&lt;!-- IF {PHP.usr.profile.user_maingrp} == '5' --&gt;
	&lt;a href=https://www.cotonti.com/&quot;page.php?m=edit&amp;id={PAGE_ROW_ID}&amp;r=list&quot;&gt;Edit&lt;/a&gt;
&lt;!-- ENDIF --&gt;</pre>
<br />
Power of logic blocks  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/grin.gif" alt=":D" />]]></description>
			<pubDate>Вт, 24 Лис 2009 01:47:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21162]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[I am trying to edit the news plugin which comes with Cotonti so that there is again the possibility for admins to edit any articles which are displayed on the homepage. So, you do not have to go to the page itself first.<br />
So, at the moment I am editing the news.function.php in the news plugin folder and added this (and a lot of other tries but I think this is the best and I should almost be there): <div class="highlight"><pre class="php">
	// Added to enable editing of pages on homepage
	if ($usr&#091;'isadmin'&#093; || $usr&#091;'id'&#093; == $pag&#091;'page_ownerid'&#093;)
	{
	$news-&gt; assign(&quot;PAGE_ROW_ADMIN_EDIT&quot;, &quot;&lt;a href=https://www.cotonti.com/\&quot;&quot;.sed_url('page', 'm=edit&amp;id='.$pag&#091;'page_id'&#093;.'&amp;r=list').&quot;\&quot;&gt;&quot;.$L&#091;'Edit'&#093;.'&lt;/a&gt;');
	}</pre></div>
<br />
But, it generates an error:<br />
Fatal error: Call to a member function assign() on a non-object in /home/armaholi/public_html/testers/armaholictest/plugins/news/inc/news.functions.php on line 55<br />
<br />
So, after some more tinkering I figured I needed to add this: <div class="highlight"><pre class="php">	// Added to enable editing of pages on homepage
	list($usr&#091;'auth_read'&#093;, $usr&#091;'auth_write'&#093;, $usr&#091;'isadmin'&#093;) = sed_auth('page', 'any');
sed_block($usr&#091;'auth_read'&#093;);

	// Added to enable editing of pages on homepage
	list($usr&#091;'auth_read'&#093;, $usr&#091;'auth_write'&#093;, $usr&#091;'isadmin'&#093;, $usr&#091;'auth_download'&#093;) = sed_auth('page', $pag&#091;'page_cat'&#093;, 'RWA1'); </pre></div> As it is refering to a member (rights?).<br />
But still no joy, the admin can still not edit the news on the homepage.<br />
Anyone able and willing to tell me what I am doing wrong?]]></description>
			<pubDate>Нд, 22 Лис 2009 23:17:44 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=4988&d=0#post21141]]></link>
		</item>
	</channel>
</rss>