www.mamboteam.com
Jx Development
Home arrow Support Forum
Saturday, 04 July 2009
 
 
Main Menu
Home
FAQs
Portfolio
File Archive
Bug Reports
Support Forum
Development Update
Work in Progress
Web Links
Contact Me
Component Demos
Jobline Demo
Mamblog Demo
Jambook Demo
Login Form





Lost Password?
No account yet? Register
Who's Online
We have 18 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.

External links
www.ledutveckling.com - The Yard - Utvecklaren - Rollspel.nu - Spelwebben - Gardener's Game Garage - My Pet Peeves - PSPnuts

Interesting Sites
Joomla!
Joomlahut
Netshine Joomla Tutorial
JX extensions on JED
Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Showing Date posted in jxshowjob (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Showing Date posted in jxshowjob
#5087
partha06 (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Showing Date posted in jxshowjob 2 Years 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5088
godwin (Moderator)
Moderator
Posts: 60
graphgraph
User Offline Click here to see the profile of this user
Re:Showing Date posted in jxshowjob 2 Years 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 &quot;&lt;br /&gt;$row-&gt;created&quot;; }
. And see whether it is working or not. OR Just replace the field name 'showcreated' to 'showdate' or something like that...and test.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#5089
partha06 (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Showing Date posted in jxshowjob: solved 2 Years 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:

&lt;param name=&quot;showcreated&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;Date Posted&quot; description=&quot;Show the number of Created to this item (default no)&quot;&gt; &lt;option value=&quot;0&quot;&gt;No&lt;/option&gt; &lt;option value=&quot;1&quot;&gt;Yes&lt;/option&gt; &lt;/param&gt;
is working now for me without deleting.. Thnaks Partha Thanks <br><br>Post edited by: partha06, at: 2007/06/08 10:17
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5090
partha06 (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Showing Date posted in jxshowjob: solved 2 Years ago Karma: 0  
hi geg,

from this code, it is also create options in admin, so u can want to show &quot; Date Posted&quot; or not in frontend. one thing is happeing there that, it also, show &quot; Time of post&quot;. along with date.. I donot know, how to disable it.. any idea?



thanks

partha
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5091
godwin (Moderator)
Moderator
Posts: 60
graphgraph
User Offline Click here to see the profile of this user
Re:Showing Date posted in jxshowjob: solved 2 Years ago Karma: 2  
Hi,

I think you can do it by formating the 'created' field using using the function -
Code:

mxFormatDate( $row-&gt;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
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#5092
partha06 (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Re:Showing Date posted in jxshowjob: solved 2 Years 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Advertisement
Polls
Is Joomla 1.0 support needed in future releases of our extensions?
 
Latest News
Most Read
Latest Commented
Mamblog - User blog component (61 comments)
The road to Jobline v1.2 (5 comments)
Export vBulletin users to Mambo (6 comments)
Jobline Documentation (4 comments)
Usage instructions for Mamblog (16 comments)
Latest Posts

More...
 
Top! Top!