1
indream
if member show image in news - if not member not show.
  • 2005/5/14 13:05

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


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.

2
pod
Re: if member show image in news - if not member not show.
  • 2005/5/14 13:46

  • pod

  • Quite a regular

  • Posts: 301

  • Since: 2003/4/19


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:

<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">

<{if 
$xoops_isuser == false}> &nbsp
<{else}> 
    <{
$story.imglink}>
<{/if}> 

    <
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 :)

3
indream
Re: if member show image in news - if not member not show.
  • 2005/5/14 16:44

  • indream

  • Not too shy to talk

  • Posts: 170

  • Since: 2004/9/21


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

Login

Who's Online

407 user(s) are online (346 user(s) are browsing Support Forums)


Members: 0


Guests: 407


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits