View Full Version : Latest Forum Topics - Date Time Stamp
moviemaker
06-04-2005, 04:28 PM
I've turned off the Date/Time stamp in the appropriate section of the home page file, and the date and time data is still showing up...
All I want is to display the thread title...
For some reason it's not turning off my date/time stamp for the cmps "Latest Forum Topics" module...
Any ideas?
Brian
06-04-2005, 07:30 PM
I assume you're talking about the last post date? Turning the date off is working fine for me. To fix the problem with the last post date though you can replace the content of your 'adv_portal_latesttopicbits' template with this:
<if condition="$mods['modcol'] == 1">
<tr>
<if condition="$mod_options['portal_threads_showicon']">
<td class="alt2"><if condition="$show['threadicon']"><img alt="" border="0" src="$thread[threadiconpath]" title="$thread[threadicontitle]" /></if></td>
</if>
<td class="alt1">
<if condition="$thread['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>
<b><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" title="$thread[preview]">$thread[title]</a></b>
<if condition="$thread['rating']">
<span style="float:$stylevar[right]"><img alt="" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" title="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span>
</if>
<div class="smallfont"><span style="cursor:pointer" onclick="window.open('$vboptions[bburl]/member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
</div>
</td>
<if condition="$show['lastpost']">
<td class="alt2">
<div class="smallfont" style="text-align:right; white-space:nowrap">$thread[lastpostdate] <span class="time">$thread[lastposttime]</span><br /><phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="$vboptions[bburl]/showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/lastpost.gif" title="$vbphrase[go_to_last_post]" /></a></div>
</td>
</if>
<td align="center" class="<if condition="$show['lastpost']">alt1<else />alt2</if>"><span class="smallfont">$thread[replycount]</span></td>
<td align="center" class="<if condition="$show['lastpost']">alt2<else />alt1</if>"><span class="smallfont">$thread[views]</span></td>
<if condition="$mod_options['portal_threads_showforum']">
<td class="<if condition="$show['lastpost']">alt1<else />alt2</if>"><span class="smallfont"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></span></td>
</if>
</tr>
<else />
<tr>
<td class="$bgclass">
<if condition="$show['threadicon']">
<img alt="" src="$thread[threadiconpath]" border="0" title="$thread[threadicontitle]" />
</if>
<if condition="$thread['subscribed']">
<img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" title="$vbphrase[you_are_subscribed_to_this_thread]" />
</if>
<span class="smallfont"><strong><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" title="<if condition="$thread[preview]">$thread[preview]
</if>$vbphrase[by] $thread[postusername] <if condition="$mod_options['portal_threads_showdate']">$thread[postdate] $thread[posttime]</if>">$thread[title]</a></strong></span>
<if condition="$thread['rating']">
<div style="margin-top:4px"><img alt="" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" title="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></div>
</if>
<if condition="$show['lastpost']">
<div class="smallfont" style="margin-top:4px"><a href="$vboptions[bburl]/showthread.php?$session[sessionurl]goto=lastpost&t=$thread[threadid]"><img alt="" border="0" src="$stylevar[imgdir_button]/lastpost.gif" title="$vbphrase[go_to_last_post]" /></a> $vbphrase[last_post_by] <a href="$vboptions[bburl]/member.php?find=lastposter&t=$thread[threadid]">$thread[lastposter]</a></div>
<div class="smallfont">$thread[lastpostdate] <span class="time">$thread[lastposttime]</span></div>
</if>
<if condition="$mod_options['portal_threads_showforum']">
<div class="smallfont"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></div>
</if>
<div class="smallfont">$thread[replycount] $vbphrase[replies], $thread[views] $vbphrase[views]</div></td>
</tr>
</if>
moviemaker
06-04-2005, 09:22 PM
Hey Brian, it seemed to be happening with version 1.0. I was hoping the 2.0 upgrade might have fixed the issue, but it seems there might be a bug in my setup...
Can I just confirm that:
6th Annual WYSISYG Film Festival
Yesterday 06:30 PM
0 Replies, 6 Views
When I switch off the date and time stamp that it should look like:
6th Annual WYSISYG Film Festival ?
I'm hoping to be able to switch back and forwards when I'd like to, I'm assuming the code above would be a permanent change? Or is that actually a fix ;) ?
moviemaker
06-04-2005, 09:37 PM
Okay I've got:
Show Date & Time - Shows the time and date the thread was created.
turned off under the edit homepage menu... But it's having no effect on the recent topics module...
(edit) tried the code above and while it removes the date etc, it still shows views and replies data... The switches on/off just don't seem to work in the CMPS menu... :(
Brian
06-04-2005, 10:19 PM
The date and time are shown along with the thread preview. The other date you're seeing should be the last post time, and should be corrected by modifying the template to what I posted above.
moviemaker
06-05-2005, 12:50 AM
Thanks Brian.... I'll live with it for now and when I get a chance later on I'll try and pick up a little on the PHP code stuff ;)
I just accidentally nuked my board while cleaning up my forum threads so now I need to go back to my PHP board again and start the whole porting process again :-S
This is starting to become fun though as I'm learning how to tweak stuff to my own needs and desires... Thanks for all your help... Next paycheck :) The gallery software :):):)
Thanks again mate :)
ptourvi1@twcny.
07-07-2005, 05:52 AM
I have an issue with the latest threads on a fresh install where it shows:
» Recent Threads
Title, Username, & Date
Where title Username and Date should be the values but I just get the text above..tried searching but didn't see this one anywhere.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.