vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 02-08-2005, 01:37 PM
zain jaffer zain jaffer is offline
Member
 
Join Date: Oct 2004
Posts: 38
Arrow Change News Time, Date and Poster

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  
Old 02-08-2005, 07:02 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Change News Time, Date and Poster

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  
Old 02-08-2005, 07:09 PM
Tom M Tom M is offline
Senior Member
 
Join Date: Jan 2004
Posts: 1,867
Default Re: Change News Time, Date and Poster

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  
Old 02-09-2005, 02:42 AM
Zejari's Avatar
Zejari Zejari is offline
Marble Girl
 
Join Date: Jan 2005
Posts: 9
Default Re: Change News Time, Date and Poster

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  
Old 02-09-2005, 09:57 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Change News Time, Date and Poster

That if condition should do the trick. You would just put it around those phrases in the newsbits template.
  #6  
Old 02-09-2005, 03:26 PM
zain jaffer zain jaffer is offline
Member
 
Join Date: Oct 2004
Posts: 38
Question Re: Change News Time, Date and Poster

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&amp;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&amp;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&amp;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 />
Thanks a lot Brian for your help!
  #7  
Old 02-09-2005, 06:04 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Change News Time, Date and Poster

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&amp;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&amp;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&amp;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 />
Let me know how that works.
  #8  
Old 02-09-2005, 06:07 PM
zain jaffer zain jaffer is offline
Member
 
Join Date: Oct 2004
Posts: 38
Default Re: Change News Time, Date and Poster

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 01:26 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.