vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Put the time in a quote. (https://vborg.vbsupport.ru/showthread.php?t=65891)

sjaakie 06-06-2004 07:50 AM

Put the time in a quote.
 
Hello,

When I get my forum online I want that posts that are quoted get the time of that post in the quote. something like this:

Quote:

Posted by: Sjaakie @ 14:34 12 june 2004

Yeah yeah yeah
How can this be done?

Xenon 06-06-2004 11:57 AM

well, actually it woud just need a very tiny edit of newreply.php

BUT: the time would be stored hardcoded into the post's pagetext, that means, if you have different timezone users on your board, it will always show the wrong time for a part of your users..

sjaakie 06-06-2004 12:33 PM

All of our users are in the same timezone, so that's not a problem. (Only dutch people. :))

sjaakie 06-09-2004 09:56 AM

*kick*

Someone has an idea?

sjaakie 06-20-2004 09:37 AM

One more kick, i'm very interested in this.. :)

Xenon 06-20-2004 06:54 PM

actually it's easier than i thought ^^

just edit the newpost_quote template and add $posttime and or $postdate into it ;)

Boofo 06-21-2004 05:07 AM

Quote:

Originally Posted by Xenon
actually it's easier than i thought ^^

just edit the newpost_quote template and add $posttime and or $postdate into it ;)

That works great unless you have a multi-quote hack installed. ;)

sjaakie 06-21-2004 11:49 AM

Okay, thanks! :) So I have to take some care when I want to install the multi-quote hack? Well, I rather like to have the time into the quote. ;)

Boofo 06-21-2004 11:59 AM

Quote:

Originally Posted by sjaakie
Okay, thanks! :) So I have to take some care when I want to install the multi-quote hack? Well, I rather like to have the time into the quote. ;)

It's an easy fix to work with the multi-quote hack. To lines of code added to the hack and it works fine with it. ;)

Xenon 06-21-2004 02:30 PM

you're welcome :)


@bob: maybe you should tell the author what to to ;)

sjaakie 06-22-2004 06:52 AM

Quote:

Originally Posted by Xenon
you're welcome :)


@bob: maybe you should tell the author what to to ;)

That would be nice yes. :up:

Boofo 07-04-2004 07:46 AM

Stefan, that doesn't show up right in pms. What would you need to put for pms?

colicab-d 07-04-2004 08:30 AM

now this is interesting :) hope you guys figure it out :)

why-not 07-04-2004 09:25 AM

Hi

My idea would be to make it dynamic, this way the time is alway shown in the current users time. It would work for ant type of multi quote system too! More importantly it would not allow the person quoting a post to change the time of the original poster! Which would really defeat the purpose of having time in the quote in the first place!

I wrote like this for a client sometime ago. It used something like 'multi quote', but with not using cookies and it also has checkboxes for 'multi quote'...

The code side of it effect...

new_reply, newpm templates!

It adds (1) hidden field with the (time) of each quote....

Then in the include (bb code phrase) it has a simple function to convert the time in the users current time!

F!

Boofo 07-04-2004 09:56 AM

Quote:

Originally Posted by why-not
Hi

My idea would be to make it dynamic, this way the time is alway shown in the current users time. It would work for ant type of multi quote system too! More importantly it would not allow the person quoting a post to change the time of the original poster! Which would really defeat the purpose of having time in the quote in the first place!


I wrote like this for a client sometime ago. It used something like 'multi quote', but with not using cookies and it also has checkboxes for 'multi quote'...

The code side of it effect...

new_reply, newpm templates!

It adds (1) hidden field with the (time) of each quote....

Then in the include (bb code phrase) it has a simple function to convert the time in the users current time!




F!

I already did a hack for the original poster's current time in the postbit. I am talking about the time the message was posted that is being qouted in pms. ;)


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01095 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete