Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 - 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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}> &nbsp; <{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.

Who's Online

215 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 215


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits