Page 1 of 1

RELATED RT modification for 1.1 RC4

Posted: Tue 30. Jan 2007, 10:30
by antonis
Hi!

I am using a heavily modified 1.1 RC4 and I am currently not willing to update to a newer version, until v.2 is out (whenever...).

I am using the RELATED tag and I would like to modify it in such way, so that it also shows the DATE and TIME an article was created.

i.e:

Article title blah blah blah blah blah blah
20-1-2007 :: 22:18:45


Any suggestions on how could this be achieved would be greatly appreciated. Thank you very much in advance!

Posted: Sat 3. Feb 2007, 19:15
by antonis
No suggestions... eh?

Is there any solution for latest versions of phpwcms?

Posted: Sat 3. Feb 2007, 23:48
by Klappstuhl28
hi antonis,

you already read this:

http://www.phpwcms-docu.de/article_tags.phtml ?

lars

Posted: Sun 4. Feb 2007, 11:27
by antonis
Dearc Lars,

Thanks for your reply, but this isn't what I meant.

Maybe I did not explain my question very well... here it is againQ

I am using the RELATED tag normally and everything is OK. I now want to use this tag and have it display not only the Title of the article, but the date and time as well.

i.e {RELATED:3:somecategory}

Article 1 title tiltle tiltle tiltle tiltle tiltle tiltle
25-1-2007 :: 16:24:32

Article 2 title tiltle tiltle tiltle tiltle tiltle tiltle
25-1-2007 :: 16:24:32

Article 3 title tiltle tiltle tiltle tiltle tiltle tiltle
25-1-2007 :: 16:24:32[/b]

Posted: Sun 4. Feb 2007, 15:11
by Klappstuhl28
hi antonis
antonis wrote:Dearc Lars,

Thanks for your reply, but this isn't what I meant.

Maybe I did not explain my question very well...
You did. You wan´t to customize the related-tag but 1.1 RC4 is far, far away and i just know that the tags as written above will create the date and time of the article
antonis wrote:Hi!

I am using a heavily modified 1.1 RC4 and I am currently not willing to update to a newer version, until v.2 is out (whenever...).
I understand that you aren´t willing to change all the hacks and modifications. But there are other reasons why you should:

http://www.phpwcms.de/forum/viewtopic.p ... ght=hacked
http://www.phpwcms.de/forum/viewtopic.p ... ite+hacked
http://www.phpwcms.de/forum/viewtopic.p ... ite+hacked

The tag stuff you have to change in front.func.inc.php as
you´ll find it here.
http://www.phpwcms.de/forum/viewtopic.p ... elated+tag

Maybe you can edit the {new}-tag
http://www.phpwcms-docu.de/index.php?link_tags

lars

Posted: Mon 5. Feb 2007, 12:34
by antonis
Lars, thank you very much for your help and guidance! I really apreciate it.

I 've already patched my version, so there are not any known security problem.

I tried the solution found here: http://www.phpwcms.de/forum/viewtopic.p ... elated+tag
as you proposed and it partially works.

The problem is that all articles show the same date instead of each showing it's own date. I think that the date displayed for all articles is the date that the first article was created when the scipt was initially installed.

I tried reading (sql query) the date from other fields like article_tstamp, article_begin, etc but I get the same problem... it seems like there is a problem with "reading" and distinguishing the correct article_id for each different article... or something like that.

Posted: Tue 6. Feb 2007, 02:43
by DeXXus