vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Live Topic (https://vborg.vbsupport.ru/showthread.php?t=201228)

nso 01-17-2009 12:18 PM

1 Attachment(s)
Great hack, and I've gone live with this on my ~400 online users forum.

I notice that posts are fetched again when they are edited, but it's not reflected on the actual post. Could you add the "edited by"?

Also; I think you should add an option to display a message/gfx in the pulled post. This will make it clearer for the reader what exactly happended. I hacked it myself, but I think this is something that should be in the product.

There should also be an indicator in the thread telling the user that this thread is a live thread, and the thread should also be updated to reflect that the user is no longer active or the thread is no longer active if this should occur while the user is idling on the thread.

For those interested, this is what I added.
The english might be bad, the styles should be in classes in the style and the text should be in phrases -- but you get what you pay for :p

---

In postbit_legacy (if you are not using this you are on your own):
Code:

---- after:
                <!-- message -->
                <div id="post_message_$post[postid]">

---- add:
                <if condition="$post['livetopic']">
                                <fieldset style=" padding: 5px; margin-bottom: 20px; background-color: #FFF8DD; border: 1pt dashed red;">
                                                <img alt="live topic" src="/forum/images/statusicon/thread_livetopic.gif" title="live topic"/>&nbsp; <span style="font-weight: bold;">This post has been added by another user.</span> <br /><br />
                                                Since this is an active topic, this post has been automatically added to the thread while you were reading it. If you are replying to this thread you might want to read this post before doing so.
                                </fieldset>
                </if>

In <forumdir>/includes/livetopic_hooks.php
Code:

---- before:
        if ($post['attach'])
        {

---- add:
                $post['livetopic'] = 1;

---

Screenshot-text in Norwegian, but I'm assuming you all read that flawlessly.

KevinL 01-17-2009 12:39 PM

I like that idea :)

BlackJacket 01-17-2009 01:50 PM

Installed!

Great tool! I love it. Adds some character to your forum!

adhmwagde 01-17-2009 03:15 PM

omg that is great add i have going to be a member in your forum but how i can see the live post ?

this mean if i have more members inside the post in the same time anyone replay i can see the live post .. ?

thanks again for your good work

mcyates 01-17-2009 03:21 PM

Quote:

Originally Posted by nso (Post 1715673)
Great hack, and I've gone live with this on my ~400 online users forum.

I notice that posts are fetched again when they are edited, but it's not reflected on the actual post. Could you add the "edited by"?

Also; I think you should add an option to display a message/gfx in the pulled post. This will make it clearer for the reader what exactly happended. I hacked it myself, but I think this is something that should be in the product.

There should also be an indicator in the thread telling the user that this thread is a live thread, and the thread should also be updated to reflect that the user is no longer active or the thread is no longer active if this should occur while the user is idling on the thread.

For those interested, this is what I added.
The english might be bad, the styles should be in classes in the style and the text should be in phrases -- but you get what you pay for :p

---

In postbit_legacy (if you are not using this you are on your own):
Code:

---- after:
                <!-- message -->
                <div id="post_message_$post[postid]">

---- add:
                <if condition="$post['livetopic']">
                                <fieldset style=" padding: 5px; margin-bottom: 20px; background-color: #FFF8DD; border: 1pt dashed red;">
                                                <img alt="live topic" src="/forum/images/statusicon/thread_livetopic.gif" title="live topic"/>&nbsp; <span style="font-weight: bold;">This post has been added by another user.</span> <br /><br />
                                                Since this is an active topic, this post has been automatically added to the thread while you were reading it. If you are replying to this thread you might want to read this post before doing so.
                                </fieldset>
                </if>

In <forumdir>/includes/livetopic_hooks.php
Code:

---- before:
        if ($post['attach'])
        {

---- add:
                $post['livetopic'] = 1;

---

Screenshot-text in Norwegian, but I'm assuming you all read that flawlessly.

great addition, hope it gets put into the main product.

Theater 01-17-2009 03:22 PM

Are there any server side restrictions in particular that I should ask my web host about to see if they are enabled? I like this mod so much that I uninstalled my Ultimate Side Column mod, and tried re-installing both 1.03b and 1.04b but with no success. I tried to also disable practically every other mod too just in case...

Grats to those who have this working!! It does look like a truly sexy mod for your board.

nascartr 01-17-2009 03:26 PM

Quote:

Originally Posted by nso (Post 1715673)
Great hack, and I've gone live with this on my ~400 online users forum.

I notice that posts are fetched again when they are edited, but it's not reflected on the actual post. Could you add the "edited by"?

Also; I think you should add an option to display a message/gfx in the pulled post. This will make it clearer for the reader what exactly happended. I hacked it myself, but I think this is something that should be in the product.

There should also be an indicator in the thread telling the user that this thread is a live thread, and the thread should also be updated to reflect that the user is no longer active or the thread is no longer active if this should occur while the user is idling on the thread.

For those interested, this is what I added.
The english might be bad, the styles should be in classes in the style and the text should be in phrases -- but you get what you pay for :p

---

In postbit_legacy (if you are not using this you are on your own):
Code:

---- after:
        <!-- message -->
        <div id="post_message_$post[postid]">
 
---- add:
        <if condition="$post['livetopic']">
                <fieldset style=" padding: 5px; margin-bottom: 20px; background-color: #FFF8DD; border: 1pt dashed red;">
                        <img alt="live topic" src="/forum/images/statusicon/thread_livetopic.gif" title="live topic"/>&nbsp; <span style="font-weight: bold;">This post has been added by another user.</span> <br /><br />
                        Since this is an active topic, this post has been automatically added to the thread while you were reading it. If you are replying to this thread you might want to read this post before doing so.
                </fieldset>
        </if>

In <forumdir>/includes/livetopic_hooks.php
Code:

---- before:
        if ($post['attach'])
        {
 
---- add:
        $post['livetopic'] = 1;

---

Screenshot-text in Norwegian, but I'm assuming you all read that flawlessly.

Thanks, added that to mine. Very good idea.

nso 01-17-2009 03:42 PM

I got a 404 for the file /forum/clientscript/vbulletin_css/images/misc/comment_add.png.
I changed the path for the image in livetopic.css so it had /forum/ in front of it, but I can't seem to find where #presence-container div.presence-contents is being utilized. Is it a stale definition?

Mr. Baws 01-17-2009 03:48 PM

is there any way to disable avatars and signatures in live threads?

adhmwagde 01-17-2009 03:50 PM

can someone explain to me what is the Idea for ' live post ' i have been to test in beasttoast forum i try to put the last modifications the coder give but i can't see that work in my forum i can see the icon in the address of the post only .. this like the hot post i don't understand good :) sorry


All times are GMT. The time now is 08:48 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.01993 seconds
  • Memory Usage 1,760KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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