<div dir="ltr"><div>thank u all for comments, this really helped. But I'm still curios how I can really do this anyway? There's a lot of other tokens I can use exept date.</div><br><div class="gmail_quote">On Wed, May 25, 2011 at 5:46 AM, Lee Rowlands <span dir="ltr"><<a href="mailto:contact@rowlandsgroup.com">contact@rowlandsgroup.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
in your preprocess_node hook set the date time how you want it with<br>
$vars['mydate'] = format_date($vars['node']->updated, 'custom', 'd/m/Y');<br>
change the d/m/Y to suit<div><div class="h5"><br>
<br>
<br>
On Wed, 2011-05-25 at 05:39 +0430, Pooya wrote:
<blockquote type="CITE">
Thank u :) I want to have "node submit time" the exact way I want, so I checked out tokens available in devel(when viewing story node type) and found out there are already enough details I need in tokens(like small day, long day name,...). All I want is to <span> some of these tokens the way I want in template, I'm gonna check out this token_replace() to see what I can do with. maybe finish the job in preprocess and then use it in node-story.tpl.php <br>
<br>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
Never done this before, not sure if it's even possible to use tokens passed to node.
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
If I'm missing sth or there's anything u can help me with share, It's a lot time saver at this point. Thanks for your time :)
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<blockquote type="CITE">
<br>
</blockquote>
<blockquote type="CITE">
On Wed, May 25, 2011 at 5:10 AM, Michael Favia <<a href="mailto:michael.favia@gmail.com" target="_blank">michael.favia@gmail.com</a>> wrote:
</blockquote>
<blockquote type="CITE">
<blockquote>
On 05/24/11 18:08, Pooya wrote:<br>
> Is it possible to print tokens( I can see in Token tab of devel module<br>
> in a node) in theme? like simple echo or something?<br>
> I want to use it in node-story.tpl.php<br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<blockquote>
While you can probably call a token replacement function token_replace()<br>
they are usually reserved for plaintext user input in the UI. You have<br>
direct access to most variables required inside the template or<br>
preprocess function. If you elaborate a little further about your goal<br>
id be happy to help you do this ina more "drupalesque" fashion itll also<br>
give you more power in your regular theming.<br>
<br>
<font color="#888888">--</font><br>
<font color="#888888">Michael Favia <a href="mailto:michael@favish.com" target="_blank">michael@favish.com</a></font><br>
<font color="#888888">tel. 512.669.5650 <a href="http://www.favish.com" target="_blank">http://www.favish.com</a></font><br>
<br>
</blockquote>
</blockquote>
<blockquote type="CITE">
<br>
<br>
<br>
--
</blockquote>
<blockquote type="CITE">
Pooya Sanooei
</blockquote>
<blockquote type="CITE">
<a href="http://twitter.com/sourcesoft" target="_blank">Twitter</a> - <a href="http://facebook.com/pooya.sanooei" target="_blank">Facebook</a> - <a href="http://www.javabgoo.com" target="_blank">Website</a>
</blockquote>
<blockquote type="CITE">
<br>
<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Pooya Sanooei<br><div><a href="http://twitter.com/sourcesoft" target="_blank">Twitter</a> - <a href="http://facebook.com/pooya.sanooei" target="_blank">Facebook</a> - <a href="http://www.javabgoo.com" target="_blank">Website</a></div>
</div><br>
</div>