Root :: Developments :: Tutorials and programming :: Code : Listing news in the block with newimage..
Moderated by:
| |
Code : Listing news in the block with newimage.. | |
|---|---|---|
| viking | Posted: 12.06.2006, 11:09 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
Hi.. Yes it`s me again, asking about script.. This script for listing the news in the block.. And I get this (xstories block)to include image for new today & week.. And dont know how to combine this two script.. Just asking, maybe someone could help me here.. or give me another solution ?.. :D Thanks.. |
|
|
|
|
|
| Chestnut | Posted: 13.06.2006, 11:05 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
You want a block with that you you already have a working block and want to add the image ? Insert the second part between line 10 and 12 and add an img tag to the content. Chestnut ! ![]() Site Admin |
|
|
|
|
|
| viking | Posted: 15.06.2006, 15:25 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
Thanks.. but forget about it.. I back to use script that U give me last year.. and make some change.. but `newimage' still not show correctly.. it just show blank.gif even for today added News.. Here`s the code.. edited by: viking, Jun 15, 2006 - 02:27 AM |
|
|
|
|
|
| Chestnut | Posted: 18.06.2006, 14:03 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
Problem is that you are comparing a date in readable format against a UNIX timestamp. Might work better. Chestnut ! ![]() Site Admin |
|
|
|
|
|
| viking | Posted: 19.06.2006, 11:15 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
I`m really appreciate you help.. but still can make it happend.. The last code ; |
|
|
|
|
|
| Chestnut | Posted: 19.06.2006, 11:33 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
$stime intead of $time... My bad, your first post was using "time" but not the others... Chestnut ! ![]() Site Admin |
|
|
|
|
|
| viking | Posted: 19.06.2006, 19:26 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
Fix it.. but still with no luck.. It`s still just showing blank.gif for all news in the list.. |
|
|
|
|
|
| Chestnut | Posted: 21.06.2006, 11:36 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
Yea well....... another one of my bad... That should be it I think... Chestnut ! ![]() Site Admin |
|
|
|
|
|
| viking | Posted: 25.06.2006, 05:14 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
Thanks lot Chestnut for your help.. But sad to say that it`s also give the same result.. Last code try :: |
|
|
|
|
|
| Chestnut | Posted: 27.06.2006, 10:55 | |
|
Site Admin
registered: Jun 02, 2002
Posts: 1320
Status: offline last visit: 07.02.08 |
I'll take one last attempt... The stime is already in a YYYY-MM-DD HH:MM:SS so there is no need to put it in a date function... so the final if should be : Chestnut ! ![]() Site Admin |
|
|
|
|
|
| viking | Posted: 02.07.2006, 06:52 | |
Noob
registered: Jul 02, 2003
Posts: 12
Status: offline last visit: 13.03.08 |
Yeah.. !! Congratulation.. * To FRANCE to reach semi-final.. * to Chestnut to make this script work !! |
|
|
|
|
|
Powered by pnForum Version 2.0.1


