[2023-01-23] 4images 1.10 released
0 Members and 1 Guest are viewing this topic.
Is there a way of only displaying the title when visitors are logged out and when they log in to show the full post?I use this MOD at a site where confidential data gets posted in the news section. It would be great to hide the actual news block from non-members ..
<tr> <td class="row2" ><div align="right"><small>(Date Posted: {news_comment_date})</small></div><b>Headline: {news_comment_headline}</b></td></tr>{if user_loggedin}<tr> <td class="row1" align="left">{news_comment_text}</td></tr>{endif user_loggedin}
I have not tried it.
Step 1. Create simple image to be used to as your Latest_news image as you would any other image. You can use this one if you want http://www.newman.d2g.com/Code_help_files/Latest_News.jpg
<table border="0" cellpadding="0" cellspacing="0" class="ttb"><tr><td><img src="{template_url}/images/tt12_l.gif" width="10" height="12" alt="" /></td><td class="tt12bkg"><img src="{template_url}/images/spacer.gif" width="200" height="12" alt="" /></td><td><img src="{template_url}/images/tt12_r.gif" width="10" height="12" alt="" /></td></tr></table><table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"><tr><td class="cat">{lang_categories}</td></tr><tr><td class="row1" width="100%">{categories}</td></tr></table><table border="0" cellpadding="0" cellspacing="0" class="ttb"> <tr> <td><img src="{template_url}/images/tb12_l.gif" width="10" height="12" alt="" /></td> <td class="tb12bkg"><img src="{template_url}/images/spacer.gif" width="200" height="12" alt="" /></td> <td><img src="{template_url}/images/tb12_r.gif" width="10" height="12" alt="" /></td> </tr></table>
{news_comments}
<a href="./index.php?newstype=latestnewsall">News</a>
$templates_used = 'news,news_comment_bit';$main_template = 'news';...
$link_arg = $site_sess->url(ROOT_PATH."index.php?newstype=latestnewsall");
$link_arg = $site_sess->url(ROOT_PATH."news.php?newstype=latestnewsall");
//--- Print Out ----...
"url_home" => $site_sess->url(ROOT_PATH."index.php"),
"url_news" => $site_sess->url(ROOT_PATH."news.php"),
<a href="{url_news}">News</a>