Forums / Cotonti / Extensions / Support / Make news editable on homepage

foxhound
#21173 2009-11-24 16:49
Thanks so much for all replies :)

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.
And before anyone asks. Yes, I am an admin there. :)

Here is how the tpl looks now:
<!-- BEGIN: NEWS -->
<!--Seditio Skin T3 Blaster 07 Copyright © 2007 T3-Design.Com. All rights Reserved. -->

<!-- BEGIN: PAGE_ROW -->

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

<!-- IF {PHP.usr.profile.user_maingrp} == '42' -->
	<a href="page.php?m=edit&id={PAGE_ROW_ID}&r=list">Edit</a>
<!-- ENDIF -->
		
		
		
	</div>
</div>

<!-- END: PAGE_ROW -->
<!-- BEGIN: HEADLINES_ROW -->
<div class="{PAGE_ROW_ODDEVEN}">{PAGE_ROW_DATE} : {PAGE_ROW_CATPATH_IDX} {PHP.cfg.separator} <a href="{PAGE_ROW_URL_IDX}">{PAGE_ROW_SHORTTITLE}</a></div>
<!-- END: HEADLINES_ROW -->

<div class="paging">{PAGE_PAGEPREV} {PAGE_PAGENAV} {PAGE_PAGENEXT}</div>

<!--Seditio Skin T3 Blaster 07 Copyright © 2007 T3-Design.Com. All rights Reserved. -->
<!-- END: NEWS -->



[edit]
"Test2" 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 <div>


[edit2]
Uhm, no idea, but now it works correct.
But only by using the way how musiconly told how he did it. That default "isadmin" block does not work. Maybe for that one you need to be user=1?
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
This post was edited by foxhound (2009-11-24 16:58, 14 years ago)