| Re: if member show image in news - if not member not show. |
| by indream on 2005/5/14 16:44:47 ops i think this not. i need a code for not show images to visitors and show members and admins. sample if not member not show this image: http://www.zindan.net/uploads/img427e519362265.jpg in this article: http://www.zindan.net/modules/news/article.php?storyid=806 but showing text's if member show image and text |
| Re: if member show image in news - if not member not show. |
| by pod on 2005/5/14 13:46:18 Clone a custom template set if you havent already, set it as your default template set in admin > preferences, then generate the News templates. Choose Edit News Templates > news_item.html Then, use this: le="color: #000000"><?php <div class="item"> <div class="itemHead"><span class="itemTitle"><{$story.title}></span></div> <div class="itemInfo"> <span class="itemPoster"><{$lang_postedby}> <{$story.poster}></span> <span class="itemPostDate"><{$lang_on}> <{$story.posttime}></span> (<span class="itemStats"><{$story.hits}> <{$lang_reads}></span>) </div> <div class="itemBody"> <!-- start altering --> <{if $xoops_isuser == false}> <{else}> <{$story.imglink}> <{/if}> <!-- end altering --> <p class="itemText"><{$story.text}></p> </div> <div class="itemFoot"> <span class="itemAdminLink"><{$story.adminlink}></span> <span class="itemPermaLink"><{$story.morelink}></span> </div> </div> Hope this helps :) |
| if member show image in news - if not member not show. |
| by indream on 2005/5/14 13:05:02 hi i need any hack or code for if visitor is not member not show news images if member show news images. (i'm need this a bandwith :( ) thanks. |