1
intosia
Customize Comments?
  • 2007/5/28 14:26

  • intosia

  • Just popping in

  • Posts: 51

  • Since: 2005/7/23


Im customizing the commentsystem, but for a templated system it isnt really customizeable...

How can i remove the 'Active, and IP stuff??'
How do i change the postdate format?

Why does the comment system havent any option?
Asian Chicks for Life! ^^

2
nachenko
Re: Customize Comments?
  • 2007/5/28 15:12

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


The postdate format should be the same as specified in general preferneces.

All other objects, well, just delete them from the template.

3
intosia
Re: Customize Comments?
  • 2007/5/28 17:17

  • intosia

  • Just popping in

  • Posts: 51

  • Since: 2005/7/23


Well please show me where i can change the post date FORMAT ( like dd-mm-yy). I looked over the page 5 times...

And afcouse i deleted all the other stuff, but the 'Active' and 'IP' is added to the $comments.text automatically...
Asian Chicks for Life! ^^

4
nachenko
Re: Customize Comments?
  • 2007/5/28 17:45

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Copy here the template as you have it now.

BTW, the "Active" and "IP" are probably items that only admin can see. Have you checked a regular user doesn't see them?

5
vaughan
Re: Customize Comments?
  • 2007/5/28 17:52

  • vaughan

  • Friend of XOOPS

  • Posts: 680

  • Since: 2005/11/26


post date (xoops) format can be set by editing the language file global.php

ie. open language/english/global.php

find

//%%%%%        TIME FORMAT SETTINGS   %%%%%
define('_SECOND''1 second');
define('_SECONDS''%s seconds');
define('_MINUTE''1 minute');
define('_MINUTES''%s minutes');
define('_HOUR''1 hour');
define('_HOURS''%s hours');
define('_DAY''1 day');
define('_DAYS''%s days');
define('_WEEK''1 week');
define('_MONTH''1 month');

define("_DATESTRING","Y/n/j G:i:s");
define("_MEDIUMDATESTRING","Y/n/j G:i");
define("_SHORTDATESTRING","Y/n/j");


and set the format from there..

some modules can allow you to set it from within it's module preferences.

6
Anonymous
Re: Customize Comments?
  • 2007/5/28 17:59

  • Anonymous

  • Posts: 0

  • Since:


Quote:
intosia wrote:

Well please show me where i can change the post date FORMAT ( like dd-mm-yy). I looked over the page 5 times...


I think that the date format is set in the language files.

Look in your website_root/language/your language dir (mine is english).

There should be a file called global.php

Look for the following code (line 160-162 in my file):

define("_DATESTRING","d/m/Y G:i:s");
define("_MEDIUMDATESTRING","d/m/Y G:i");
define("_SHORTDATESTRING","d/m/Y");


Set the d/m/Y bit to what you prefer using php date codes. If you look below those lines in global.php you might find a commented-out summary of the settings.

For what you want, change the instances of d/m/Y to d-m-y.

Hope this works for you. Keep a copy of the unedited file just in case it doesn't

Edit: I see Vaughan beat me too it. Least now I know I was right

7
intosia
Re: Customize Comments?
  • 2007/5/28 20:15

  • intosia

  • Just popping in

  • Posts: 51

  • Since: 2005/7/23


Yes your right, only that admin can see that IP's. See that i half so bad. I would still like to customize it... (make it more inline with the rest).

Thx for the date format stuff, very helpfull :)

Thx guys
Asian Chicks for Life! ^^

Login

Who's Online

214 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits