vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   End-User Options - Mark All Forums Read Confirmation (https://vborg.vbsupport.ru/showthread.php?t=142376)

Dismounted 03-19-2007 04:44 AM

Quote:

Originally Posted by bitdefuser (Post 1206284)
Installed. :D

EDIT: Search $vbphrase[mark_forums_read] in your styles and replace the whole <a href> tag with the one he gave.
Why? You might have multiple places that has the "Mark Forums Read" button, such as the Welcome Panel Rewrite mod or in your ForumHome template near the footer.
(I had three places.)

EDIT2: Dismounted, you might want to add that into your readme. :)

Hmmm, I might. Depends
Quote:

Originally Posted by Tralala (Post 1206601)
Actually, this works for me everywhere, except the QuickLinks pulldown in the standard vBulletin skin. I select the "Mark Forums Read" menu option, confirm the dialog that pops up, then nothing happens; no page refresh like I am used to.

(Ironically enough it works fine in my custom skin, in the QuickLinks pulldown, and all the other spots.)

Any clues?

EDIT: Code removed, as I'm told by Ziki below that it won't work, don't want to confuse future readers

You have to change the plugin location to global_complete. I made it at forumhome_complete because it was originally design to be only used for the link on the index.

Doctor Death 03-19-2007 10:31 AM

Clicks Uninstall until it is debugged

Dismounted 03-19-2007 10:56 AM

What is there to debug? The hack is working as designed, it's just that people make modifications to the original usage which creates bugs.

TrIn@dOr 03-19-2007 11:13 AM

Working in the command of the footer, but not in the navbar!

Triky 03-19-2007 11:20 AM

Jelsoft should add this to the next releases, in my opinion. :)

Smoothie 03-19-2007 02:05 PM

Quote:

You have to change the plugin location to global_complete. I made it at forumhome_complete because it was originally design to be only used for the link on the index.
Has anyone done this and had success? Without thinking I tried global_start instead of global_complete and of course it did not work.

Smoothie 03-19-2007 02:06 PM

Hey Dismounted,

Any chance of getting this to work with forum markers too?

Tralala 03-19-2007 02:35 PM

Quote:

Originally Posted by Dismounted (Post 1207224)
What is there to debug? The hack is working as designed, it's just that people make modifications to the original usage which creates bugs.

While I agree with what you are saying here, if that's the stance you plan to take, you may want to explicitly state in the first post here that "this mod only provides a confirmation dialog when users click the 'Mark Forums Read' link on Forum Home, and nowhere else."

Because otherwise, one would assume the functionality is extended to every instance of "Mark Forums Read." Why would it not, from a UI standpoint? Why would one "Mark Forums Read" command differ from another?

Clearly there's a desire for consistency with this enhancement. It can be confusing if it works as expected in one place but not another -- especially when it comes to this sort of command where data (read/unread markers) is about to be effectively lost. That's the point of this mod, to give some security and warning back.

And so, as annoying as it may be that folks have begun to "run with" your mod and add stuff and then complain about bugs, I'd look at it as a compliment. Folks really like what you've started here! And so, may I respectfully request that you enhance this a tiny bit to work globally? Pretty please? :)

Quote:

Originally Posted by Dismounted (Post 1207115)
You have to change the plugin location to global_complete. I made it at forumhome_complete because it was originally design to be only used for the link on the index.

Quote:

Originally Posted by Smoothie (Post 1207333)
Has anyone done this and had success? Without thinking I tried global_start instead of global_complete and of course it did not work.

I tried changing it to global_complete and it did not work for me. I'd previously changed the other instances of the "Mark All Forums Read" command to call on the Javascript, but changing the plugin as suggested still didn't bring up the Confirmation dialog. :(

Still, regardless of what happens with this mod, I want to thank Dismounted for stepping up to the bat and offerring this up. vBulletin has needed this for a long while, and no one else cared to share. So, thanks, Dismounted!

Smoothie 03-20-2007 01:05 AM

That's a shame it does not work globally. It may confuse members in it's present state. As mentioned above, it's an awesome mod. Maybe Dismounted can help us out here and get this to work on all pages.

Dismounted 03-20-2007 06:51 AM

Hack Updated!

20/03/2007 - Version 1.1
- Extended Functionality Globally


All times are GMT. The time now is 03:19 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.01145 seconds
  • Memory Usage 1,741KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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