The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
I cannot find any hooks in the style templates under memberslist!
However, I created a new plugin and guessed that "memberlist_complete" would be the correct location. How would I go about changing the date format of the Last Visit then? I tried the following; Quote:
|
#12
|
||||
|
||||
Look at the member.php page. That is where I am saying to look for the hooks, not in the templates.
At the top is the member_start hook. Simply set the *option* to what you want. ie. PHP Code:
(Or whatever option you want to change.) |
#13
|
|||
|
|||
Thanks for the reply.
memberlist_bit seemed to be the hook that in fact effects the date format. Sorry if this is a silly question, but what should I put for the $timestamp part? Quote:
|
#14
|
||||
|
||||
What I'm saying is.... just change the option. If you look at the vboptions page, and find where dateformat is defined, you'll see the options in the page source. For instance, if you wanted to change the Yesterday/Today option, find the option in the vBulletin Options page and look at the page source:
Code:
<tbody><tr valign="top"> <td class="optiontitle" title="$vbulletin->options['yestoday']" colspan="2"><div class="smallfont" style="float:right"> <a href="options.php?do=editsetting&varname=yestoday">[Edit]</a> <a href="options.php?do=removesetting&varname=yestoday">[Delete]</a> </div><div>Datestamp Display Option<a name="yestoday"></a></div></td> </tr> </tbody><tbody id="tbody_yestoday"> <tr valign="top"> <td class="alt1"><div class="smallfont"title="$vbulletin->options['yestoday']">This option controls the display of dates throughout your forum<br /><br />'Normal' uses the date and time formats below this option.<br /> <br /> 'Yesterday / Today' will show 'Yesterday' and 'Today' for dates that fall in those periods.<br /> <br /> 'Detailed' will show times such as '1 Minute Ago', '1 Hour Ago', '1 Day Ago', and '1 Week Ago'.</div></td> <td class="alt1"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr valign="top"><td><div class="smallfont"> <div class="ctrl_"> <label for="rb_setting[yestoday]0_73"><input type="radio" name="setting[yestoday]" id="rb_setting[yestoday]0_73" tabindex="1" value="0" title="name="setting[yestoday]" value="0"" />Normal</label><br /> <label for="rb_setting[yestoday]1_73"><input type="radio" name="setting[yestoday]" id="rb_setting[yestoday]1_73" tabindex="1" value="1" title="name="setting[yestoday]" value="1"" checked="checked" />Yesterday / Today</label><br /> <label for="rb_setting[yestoday]2_73"><input type="radio" name="setting[yestoday]" id="rb_setting[yestoday]2_73" tabindex="1" value="2" title="name="setting[yestoday]" value="2"" />Detailed</label><br /> </div> </div></td><td align="right" style="padding-left:4px"><a class="helplink" href="#" onclick="js_open_help('options', 'options', 'yestoday'); return false;"><img src="../cpstyles/vbtech/cp_help.gif" alt="" border="0" title="Click for help on this option" /></a> </td></tr></table></td> </tr> </tbody> PHP Code:
|
#15
|
|||
|
|||
All done. Many thanks for your help and patience
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|