vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Show post externally. (https://vborg.vbsupport.ru/showthread.php?t=209725)

Lynne 03-30-2009 09:42 PM

What defines if it's been updated? Do you mean the user hasn't read it? Or that it was changed since they were last online? Or since they last read the thread? Or ??? I think you'd have to write some code based on your definition of 'updated' to figure out if it's been updated. (And forum_new and forum_old has to do with whether there is an unread post in any of the 'below' forums, it isn't thread specific.)

Xtrato 03-31-2009 05:20 PM

Hi Lynne , yes, pretty much that , if a user hasnt read it , new post has been made , just for a Certain topic ( my 5 latest post ) .

i think that would be very helpful..

Thank you !

Xtrato 04-02-2009 11:01 PM

i have been trying , i cant find my solution , any coders ? im sure it easy.

Regards

Xtrato 04-12-2009 05:33 AM

whoa tetra bump lol, can anyone help me out here , had almost forgotten.

Regards

Mr-Moo 04-12-2009 02:34 PM

Lynne is correct, you need to define your variables on who, what, when, etc... the item gets updated. There are standards that must be followed.

As for the preview, it looks good, I do not see anything wrong with it. Can you clarify on how you would like it updated by 'image' for us?

Lynne 04-12-2009 03:10 PM

I posted a query which may be useful in another thread about this same topic - Adding 'New' next to threadtitle

Xtrato 04-13-2009 05:35 PM

Hi Lynne , you posted :

Quote:

Originally Posted by Lynne (Post 1787782)
It is the threadbit template that he would need to modify. Like I said, you'll need a plugin to define what is 'new'. Something like:

PHP Code:

$new false;
if (
$bbuserinfo['lastactivity'] < $thread['dateline'] ) $new=true

Then in the threadbit, if $new is true, then post the New image. Or set the image path in the plugin also.

(Not tested at all.)

what would be the query for bbuserinfo , to pull out from database
?

thanks

Lynne 04-13-2009 05:49 PM

I'm not sure exactly. You'd use the forumdisplay_query hook location to hook into the $threads query and add the field there. But, you'll have to add a JOIN there and I don't like to write those for people.

Xtrato 04-13-2009 06:47 PM

ah lol , any pre-made one you might have somewhere, besides your my friend :D , lol

Lynne 04-13-2009 08:16 PM

You can look for another mod that does something similar and use their query. I'm sure there is one somewhere.


All times are GMT. The time now is 02:03 AM.

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.00999 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete