![]() |
|
#1
|
|||
|
|||
|
This is a very trivial problem, but it would be very neat if someone can help sort it out.
I want the first article on that page to NOT display the poster, number of replies, date or time however, the rest should be able to: The page is http://www.juicyduff.com I've applied the modification in this thread: http://www.vbadvanced.com/forum/showthread.php?t=5362 I really appreciate all the help. Thanks in advance... Zain Jaffer
|
|
#2
|
||||
|
||||
|
Add <if condition="$news['threadid'] == X">Date & Time here</if> around whatever you want to disable in your 'adv_portal_newsbits' template. Oh, and be sure to replace 'X' there with the threadid.
|
|
#3
|
|||
|
|||
|
Another way to do this would be to use the dynamic content module if you don't want the first post to be "news" but do want it to come from a post.
__________________
Tom Morris Porsche Boxster discussion forum. Today's Conservative discussion forum. |
|
#4
|
||||
|
||||
|
i actually have a similar question.. but my initial "guesses" didn't work.. i only want to show {# Replies | # Views} if the forumid != 25...
is this the correct syntax? <if condition="$news['forumid'] != 25">......</if> where would i put it?.. i keep getting parsing errors. |
|
#5
|
||||
|
||||
|
That if condition should do the trick. You would just put it around those phrases in the newsbits template.
|
|
#6
|
|||
|
|||
|
I'm really sorry, but i don't understand exactly where to add or to replace (please forgive me ... i don't understand this too well - it's all weird looking code to me :/
What I want to do is make thread id 1716 not display the date, time, username, replies or views (basically the purple bits on www.juicyduff.com - the first article) Here is the code below: Code:
<table align="center" border="0" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%">
<tr>
<td align="$stylevar[left]" class="tcat" colspan="2">
<if condition="$news['subscribed']">
<span style="float:$stylevar[right]"><img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" title="$vbphrase[you_are_subscribed_to_this_thread]" /> </span>
</if>
<if condition="$show['threadicon']">
<img alt="" border="0" src="$news[threadiconpath]" title="$news[threadicontitle]" />
</if>
<strong><a href="$vboptions[bburl]/showthread.php?t=$news[threadid]">$news[title]</a></strong>
</td>
</tr>
<tr>
<td class="alt2" colspan="2">
<if condition="$vba_options['portal_news_showrating'] AND $news['votenum'] > 0">
<span style="float:$stylevar[right]"><img alt="" src="$stylevar[imgdir_rating]/rating_$news[rating].gif" title="<phrase 1="$news[votenum]" 2="$news[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span>
</if>
<span class="smallfont">- <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$news[postuserid]" 2="$news[postusername]">$vbphrase[by_x]</phrase> $vbphrase[on] $dateposted</span>
</td>
</tr>
<tr>
<td align="$stylevar[left]" class="alt1" valign="top" colspan="2">
<if condition="$vba_options['portal_news_showavatar'] AND $newsavatarurl">
<table align="$stylevar[left]" cellspacing="4"><tr><td><img alt="" border="0" src="$newsavatarurl" title="$news[postusername]'s $vbphrase[a_avatar]" /></td></tr></table>
</if>
<if condition="$news['attachmentid']">
<tr class="alt1">
<td align="justify" width="100%">
<table border="0" align="left"
valign="top">
<tr>
<td>$attachment</td>
</tr>
</table>
$news[message]
</td>
</tr>
<else />
$news[message]
</if>
</tr>
<if condition="$show['signature']">
<div>__________________<br />
$news[signature]</div>
</if>
</td>
</tr>
<tr class="alt2" valign="middle">
<td valign="middle" colspan="2">
<span style="float:right">
<if condition="$bbuserinfo['usergroupid'] == 6">
<a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&p=$news[postid]"><img alt="$vbphrase[edit_this_post]" border="0" src="$stylevar[imgdir_button]/edit.gif" /></a>
</if>
<if condition="$vba_options['portal_news_allowreplies']">
<a href="$vboptions[bburl]/newreply.php?$session[sessionurl]do=newreply&t=$news[threadid]"><img alt="$vbphrase[reply_to_this_post]" border="0" src="$stylevar[imgdir_button]/reply_small.gif" /></a>
</if>
<if condition="$vba_options['portal_news_showsendfriend']">
<a href="$vboptions[bburl]/sendmessage.php?$session[sessionurl]do=sendtofriend&t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/sendtofriend.gif" title="$vbphrase[send_to_friend]" /></a>
</if>
<if condition="$vba_options['portal_news_showprintable']">
<a href="$vboptions[bburl]/printthread.php?$session[sessionurl]t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/printer.gif" title="$vbphrase[show_printable_version]" /></a>
</if>
</span>
<span class="smallfont">
<if condition="$vba_options['portal_news_allowreplies']">
<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$news[threadid]">$news[replycount] <if condition="$news['replycount'] == 1">$vbphrase[reply]<else />$vbphrase[replies]</if></a> |
</if> $news[views] $vbphrase[views]</span>
</td>
</tr>
</table>
<br />
|
|
#7
|
||||
|
||||
|
Code:
<table align="center" border="0" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%">
<tr>
<td align="$stylevar[left]" class="tcat" colspan="2">
<if condition="$news['subscribed']">
<span style="float:$stylevar[right]"><img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" title="$vbphrase[you_are_subscribed_to_this_thread]" /> </span>
</if>
<if condition="$show['threadicon']">
<img alt="" border="0" src="$news[threadiconpath]" title="$news[threadicontitle]" />
</if>
<strong><a href="$vboptions[bburl]/showthread.php?t=$news[threadid]">$news[title]</a></strong>
</td>
</tr>
<if condition="$news['threadid'] != 1716">
<tr>
<td class="alt2" colspan="2">
<if condition="$vba_options['portal_news_showrating'] AND $news['votenum'] > 0">
<span style="float:$stylevar[right]"><img alt="" src="$stylevar[imgdir_rating]/rating_$news[rating].gif" title="<phrase 1="$news[votenum]" 2="$news[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span>
</if>
<span class="smallfont">- <phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$news[postuserid]" 2="$news[postusername]">$vbphrase[by_x]</phrase> $vbphrase[on] $dateposted</span>
</td>
</tr>
</if>
<tr>
<td align="$stylevar[left]" class="alt1" valign="top" colspan="2">
<if condition="$vba_options['portal_news_showavatar'] AND $newsavatarurl">
<table align="$stylevar[left]" cellspacing="4"><tr><td><img alt="" border="0" src="$newsavatarurl" title="$news[postusername]'s $vbphrase[a_avatar]" /></td></tr></table>
</if>
<if condition="$news['attachmentid']">
<tr class="alt1">
<td align="justify" width="100%">
<table border="0" align="left"
valign="top">
<tr>
<td>$attachment</td>
</tr>
</table>
$news[message]
</td>
</tr>
<else />
$news[message]
</if>
</tr>
<if condition="$show['signature']">
<div>__________________<br />
$news[signature]</div>
</if>
</td>
</tr>
<if condition="$news['threadid'] != 1716">
<tr class="alt2" valign="middle">
<td valign="middle" colspan="2">
<span style="float:right">
<if condition="$bbuserinfo['usergroupid'] == 6">
<a href="$vboptions[bburl]/editpost.php?$session[sessionurl]do=editpost&p=$news[postid]"><img alt="$vbphrase[edit_this_post]" border="0" src="$stylevar[imgdir_button]/edit.gif" /></a>
</if>
<if condition="$vba_options['portal_news_allowreplies']">
<a href="$vboptions[bburl]/newreply.php?$session[sessionurl]do=newreply&t=$news[threadid]"><img alt="$vbphrase[reply_to_this_post]" border="0" src="$stylevar[imgdir_button]/reply_small.gif" /></a>
</if>
<if condition="$vba_options['portal_news_showsendfriend']">
<a href="$vboptions[bburl]/sendmessage.php?$session[sessionurl]do=sendtofriend&t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/sendtofriend.gif" title="$vbphrase[send_to_friend]" /></a>
</if>
<if condition="$vba_options['portal_news_showprintable']">
<a href="$vboptions[bburl]/printthread.php?$session[sessionurl]t=$news[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/printer.gif" title="$vbphrase[show_printable_version]" /></a>
</if>
</span>
<span class="smallfont">
<if condition="$vba_options['portal_news_allowreplies']">
<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$news[threadid]">$news[replycount] <if condition="$news['replycount'] == 1">$vbphrase[reply]<else />$vbphrase[replies]</if></a> |
</if> $news[views] $vbphrase[views]</span>
</td>
</tr>
</if>
</table>
<br />
|
|
#8
|
|||
|
|||
|
That's perfect ... did anyone ever tell you - your a genius? :P
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I remove the poster name on the News Module | joeychgo | Troubleshooting / "How do I..." Questions | 5 | 06-20-2006 03:47 PM |
| Left column + date change | smolie | Troubleshooting / "How do I..." Questions | 10 | 01-31-2005 09:45 AM |
| Group News Posts by Date | ragintajin | Feedback & Suggestions | 3 | 01-25-2005 08:15 AM |
| Date and Time Format | Garamond | Troubleshooting / "How do I..." Questions | 2 | 07-20-2004 03:40 AM |
| How do I change the width of the news? | DarknessDivine | Troubleshooting / "How do I..." Questions | 4 | 07-12-2004 01:39 PM |