RELATED RT modification for 1.1 RC4

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
antonis
Posts: 35
Joined: Mon 7. Jun 2004, 14:55

RELATED RT modification for 1.1 RC4

Post 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!
antonis
Posts: 35
Joined: Mon 7. Jun 2004, 14:55

Post by antonis »

No suggestions... eh?

Is there any solution for latest versions of phpwcms?
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

hi antonis,

you already read this:

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

lars
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
antonis
Posts: 35
Joined: Mon 7. Jun 2004, 14:55

Post 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]
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post 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
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
antonis
Posts: 35
Joined: Mon 7. Jun 2004, 14:55

Post 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.
Post Reply