Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:41:28 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155553 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: remove date/time in post please help  (Read 417 times)
wentys

Offline Offline

Posts: 5


« on: October 03, 2011, 01:43:43 AM »

hi,
i need to remove three things:
1.Date/time in short
and
2.Posted by Administrator (admin) on xxxxxxxx
3.Last changed:xxxxxxxxx
on long (after click "read more")
template 1024px
ver.2.8.2

sorry for bad english
Logged
sky writer

Offline Offline

Posts: 285



« Reply #1 on: October 03, 2011, 02:14:59 AM »

Hi there,

Go to your News Page.  Click "Settings" in the menu (Add Post | Add Group | Settings)

Comment out the appropriate lines in the "Post Loop" code:
Code:
<tr class="post-top">
<td class="post-title"><a href="[LINK]">[TITLE]</a></td>
<td class="post-date"><!--[PUBLISHED_DATE], [PUBLISHED_TIME]--></td>
</tr>
<tr>
<td class="post-short" colspan="2">
[SHORT]
<p><span style="visibility:[SHOW_READ_MORE];"><a href="[LINK]">[TEXT_READ_MORE]</a></span></p>
</td>
</tr>

And in "Post Header":
Code:
<table cellpadding="0" cellspacing="0" class="post-header">
<tr>
<td class="post-header">[TITLE]</td>
<td rowspan="3" style="display: [DISPLAY_IMAGE]">[GROUP_IMAGE]</td>
</tr>
<tr>
<td class="public-info"><!--Published <b>[TEXT_POSTED_BY] [DISPLAY_NAME] ([USERNAME]) [TEXT_ON] [PUBLISHED_DATE]</b>--></td>
</tr>
<tr style="display: [DISPLAY_GROUP]">
<td class="group-page"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
</tr>
</table>

And "Post Footer":
Code:
<!--<p>[TEXT_LAST_CHANGED]: [MODI_DATE] [TEXT_AT] [MODI_TIME]</p>-->
<p><a href="[BACK]">[TEXT_BACK]</a></p>

Hope this helps.
Logged
wentys

Offline Offline

Posts: 5


« Reply #2 on: October 03, 2011, 12:36:04 PM »

im blind or what? many times I looked at it and did not see Sad
tnx SkyWriter

And i have another problem.
How to display posts alfabetical?
an example: i add post A C B and they display B C A in addTime order.
How change it?

 Arrows up down is the solution for few posts per day not for hundreds
Logged
sky writer

Offline Offline

Posts: 285



« Reply #3 on: October 03, 2011, 02:32:26 PM »

Alphabetic listing?  I'm unclear what you mean.  Are you really wanting to order your news items by the first letter of the first word of the News Title?  Can you be more specific?
Logged
wentys

Offline Offline

Posts: 5


« Reply #4 on: October 03, 2011, 02:51:32 PM »

i want posts sort alfabetical no by "add time"
sorry to unclear.
A B C are title of three different post.
When I added post with title A leter add post with title C and title B
Display B C A - last added on top.
Logged
sky writer

Offline Offline

Posts: 285



« Reply #5 on: October 03, 2011, 07:23:42 PM »

I searched for News alphabetical order and turned up this

At line 135 in view.php

Code:
// Query posts (for this page)
$query_posts = $database->query("SELECT * FROM ".TABLE_PREFIX."mod_news_posts
WHERE section_id = '$section_id' AND active = '1' AND title != ''$query_extra
AND (published_when = '0' OR published_when <= $t) AND (published_until = 0 OR published_until >= $t)
ORDER BY position DESC".$limit_sql);
Change the ORDER BY position DESC to whatever you need, for example
ORDER BY title ASC -> sorted on title ascending


Have fun and good luck updating!

John

 
Logged
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #6 on: October 04, 2011, 07:31:48 AM »

The News module shows the items on the frontend already like you want: the newest one on top, then the previous one, then the item before that, etc. No need to change code.

The sorting in the backend is just the other way round indeed (which is quite silly I think).
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
wentys

Offline Offline

Posts: 5


« Reply #7 on: October 05, 2011, 04:58:10 PM »

thanks for reply, method ORDER BY title ASC work perfectly. Exactly what i want.

I have 2 another stupid questions:
look below:
http://zapodaj.net/e3496edb4d86.jpg.html
title is good
and here (after click read more):
http://zapodaj.net/9233787f2ff7.jpg.html
how lowe second line of title?

and second Q:
is possible add same text to all posts?
or to selected post?

sory for stupid question but my english is poooor and usually i dont understand description of faq, addons etc
Logged
sky writer

Offline Offline

Posts: 285



« Reply #8 on: October 05, 2011, 08:56:27 PM »

You can do everything you want:
Go to your News Page.  Click "Settings" in the menu (Add Post | Add Group | Settings)

To fix the title, click the "Edit CSS" button in the top right.

Add text to all posts...  Depends on where you want to add it.
Logged
wentys

Offline Offline

Posts: 5


« Reply #9 on: October 05, 2011, 10:09:40 PM »

SkyWriter as always helpful.
CSS sloved

add same text to all posts I solved add text to Settings->Post Footer. Its working and i hope that will no problems in the future beacouse this text is not part of post only part of config or something.
Logged
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #10 on: October 05, 2011, 10:12:18 PM »

add same text to all posts I solved add text to Settings->Post Footer. Its working and i hope that will no problems in the future beacouse this text is not part of post only part of config or something.
What do you mean problems in the future. This is exactly what the post footer field is for  grin
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!