| |
|
Who's Online |
|
We have 5153 guests online |
|
Newsletter |
|
Subscribe to our newsletter.
|
|
Donate |
If you use and like my scripts, and would like further developments, please consider donating a few bucks.
|
|
Showing Date posted in jxshowjob (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Showing Date posted in jxshowjob
|
partha06 (User)
Junior Boarder
Posts: 26
|
|
Showing Date posted in jxshowjob 2 Years, 9 Months ago
|
Karma: 0
|
Hi all,
I want to show, Date Posted, function. in jxshowjob module.
I did Follwing changes, in mod_jxshowjob.php file, & mod_jxshowjob.xml file
Chage in mod_jxshowjob.php file,
| Code: |
// add row name ,
$query = "SELECT id, title, hits, description,created"
// add follwing line
<td width="11"><?php if ( $params->get( 'showcreated') ) { echo "<br />$row->created"; } ?></td>
// add following line in get params definitions
$params->def( 'showcreated', 0 );
|
And in xml file;
| Code: |
<param name="showcreated" type="radio" default="0" label="Date Posted" description="Show the created with each item (default no)">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
|
But it does not showing.. Please help me..
Thanks
Partha
Post edited by: partha06, at: 2007/06/07 22:57
Post edited by: partha06, at: 2007/06/07 22:58<br><br>Post edited by: partha06, at: 2007/06/07 22:59
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
godwin (Moderator)
Moderator
Posts: 60
|
|
Re:Showing Date posted in jxshowjob 2 Years, 9 Months ago
|
Karma: 2
|
Hi,
After going thru the code modifications, i feel everything is right and fine.
for debugging purpose just delete then code you added in the xml file and the 'if' conditional clause from corresponding php file like and go for a plain code | Code: |
{ echo "<br />$row->created"; }
|
. And see whether it is working or not.
OR
Just replace the field name 'showcreated' to 'showdate' or something like that...and test.
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
partha06 (User)
Junior Boarder
Posts: 26
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 0
|
Hi , greg,
Issue solved..
There was some error, in my system .so it was not working, now i keep Same xml file,
| Code: |
<param name="showcreated" type="radio" default="0" label="Date Posted" description="Show the number of Created to this item (default no)">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
|
is working now for me without deleting..
Thnaks
Partha
Thanks  <br><br>Post edited by: partha06, at: 2007/06/08 10:17
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
partha06 (User)
Junior Boarder
Posts: 26
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 0
|
|
hi geg,
from this code, it is also create options in admin, so u can want to show " Date Posted" or not in frontend. one thing is happeing there that, it also, show " Time of post". along with date.. I donot know, how to disable it.. any idea?
thanks
partha
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
godwin (Moderator)
Moderator
Posts: 60
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 2
|
Hi,
I think you can do it by formating the 'created' field using using the function - | Code: |
mxFormatDate( $row->created, $cfgjl['dateformat'] )
|
where the second parameter is the format in which you want to dipaly the date. And for specifying your format use the strftime() syntax.
Hope, may be this will help you(not sure, anyway give a try. cheers) 
Bye 
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
partha06 (User)
Junior Boarder
Posts: 26
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 0
|
|
Hi geg,
Ok.. But where which file, I will put it? Give me ur email pls.. I made huge modification I will send u that file..
Bye..
Partha
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
godwin (Moderator)
Moderator
Posts: 60
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 2
|
Hi,
Make change in the file 'mod_jxshowjob.php' file, where replace your code | Code: |
<td width="11"><?php if ( $params->get( 'showcreated') ) { echo "<br />$row->created"; } ?></td>
|
with say,
| Code: |
<td width="11"><?php if ( $params->get( 'showcreated') ) { echo ' <br /> '. mosFormatDate( $row->created, '%B %d, %Y' ); } ?></td>
|
that's all, Try and check it...
Hope your problem will be solved 
Bye  <br><br>Post edited by: godwin, at: 2007/06/08 13:41
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
partha06 (User)
Junior Boarder
Posts: 26
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 0
|
|
Hi, geg,
Thanks.. Its done & working.. I am going to publish whole module here. so any users will get help. What do u think?
Bye
Partha
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
godwin (Moderator)
Moderator
Posts: 60
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 2
|
Hi,
Yes, that's a good thing. New features are always encouraging....
Thanks 
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
partha06 (User)
Junior Boarder
Posts: 26
|
|
Re:Showing Date posted in jxshowjob: solved 2 Years, 9 Months ago
|
Karma: 0
|
Hi, geg,
Here is Modified version of jxshowjob Module. I am giving it, all users. I hope it will help..
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|
|
|
|
|
|