vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Notices Options (https://vborg.vbsupport.ru/showthread.php?t=245240)

Vitaly 06-24-2010 10:00 PM

Notices Options
 
1 Attachment(s)
This mod adds new options to show forum notices:
  1. "THIS_SCRIPT" value
  2. Autorefresh time for user-dismissed notices
  3. Change position, to show before "quick reply" block (if block abcent - nothing shown).
This product is developed here: http://github.com/rcdesign/vb-notices_options . Patches are welcome.

history

0.6
- Fixed warnings/headers for attachments

0.5
- Fixed "Persistent" option

0.4
- Simpllified code

0.3
- Fixed template cache for PM

0.2
- First public release.

sulasno 06-25-2010 04:04 AM

tagged and thanks

Dr.osamA 06-29-2010 09:12 AM

1 Attachment(s)
thanxxxx dude

good MOD

installed + 5 Stars + translation to Arabic

plzz be nice and add translation to 1st post

mgurain 07-02-2010 03:03 PM

Hope to see this needed mod in 3.8.5 ?
Thanks,,

Vitaly 07-02-2010 03:39 PM

Sorry, no time. But you can reuse it's code if you wish to do vb3 version.

mgurain 11-19-2010 05:21 PM

This is great,
can you add this to ad management too ?
(Actually, notices & ads should share the same functionality).
Thanks,,

Overbr 11-19-2010 11:31 PM

Perfect ! 4 stars !
VB 4.0.8 100% rock, is very good MOD !

huuquynh 11-19-2010 11:49 PM

Where is the settings? I can not find it in Options.

Vitaly 11-19-2010 11:52 PM

In notices editor

COL NIL SATIS 11-20-2010 05:37 PM

tagged

fluidswork 11-21-2010 12:26 PM

This will help me a lot ..........

COL NIL SATIS 11-21-2010 04:14 PM

good work..installed

Konstantinos 01-01-2011 04:41 AM

need this for vb3.8 especially the 'this script' function

IRAQEDU.COM 01-01-2011 04:53 AM

very nice, i got the Arabic one.

monkeyboy1916 03-29-2011 10:39 AM

This mod is an amazing addition, but it seems to break the "Persistent" option for notices.

With this mod enabled, even with Persistent set to No, it will always display the notice. If I disable the mod though, the notice will only show once per visit like it's supposed to.

Any help? It's really bugging me that I can't use Persistent properly with this mod enabled.

Vitaly 04-02-2011 11:14 AM

Thanks for report. Updated product.

monkeyboy1916 04-04-2011 12:19 PM

Well this is strange.. Persistent works again, but now this mod is causing a problem with the Attachment system. Attachments on the CMS, Forums, and even Albums show up as just a red X (for images, I haven't checked other file types), and when accessing the attachment directly, it displays a long list of errors:

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bootstrap.php(537) : eval()'d code on line 325

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/class_bootstrap.php(537) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5403) in [path]/attachment.php on line 321

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:5403) in [path]/attachment.php on line 322
The headers already sent error continues on about 9 more times, each on different lines..

I reverted back to the older version and it seems to work fine again.

BadgerDog 04-04-2011 02:14 PM

Updated to .5 running on vBulletin 4.04 and seems to be fine so far ..

Thanks .. :)

Regards,
Doug

Vitaly 04-05-2011 06:19 PM

1 Attachment(s)
Quote:

Originally Posted by monkeyboy1916 (Post 2180723)
Well this is strange.. Persistent works again, but now this mod is causing a problem with the Attachment system. Attachments on the CMS, Forums, and even Albums show up as just a red X (for images, I haven't checked other file types), and when accessing the attachment directly, it displays a long list of errors:



The headers already sent error continues on about 9 more times, each on different lines..

I reverted back to the older version and it seems to work fine again.

Please, try attached version and tell me results.

monkeyboy1916 04-05-2011 07:33 PM

Quote:

Originally Posted by Vitaly (Post 2181207)
Please, try attached version and tell me results.

Seems to be working fine now! Persistent too~ =D

Vitaly 04-05-2011 07:41 PM

Thanks for your help. I'll recheck code tomorrow and update product

f4vn 06-26-2011 06:28 PM

This mod doesn`t work on vb 4.1.4. I can`t post a quick reply if it is enable.

Greight 07-07-2011 07:30 AM

Quote:

Originally Posted by f4vn (Post 2213123)
This mod doesn`t work on vb 4.1.4. I can`t post a quick reply if it is enable.

Confirmed. Also you get a blank page after hitting Go to Advanced reply form.

mgurain 04-19-2012 04:42 PM

Quote:

Originally Posted by Greight (Post 2217688)
Confirmed. Also you get a blank page after hitting Go to Advanced reply form.

I confirm the same, it causes a blank page after hitting quick reply,
please solve it ?

Thanks,,

Mark.B 04-19-2012 06:30 PM

Developer last online 24th Sept 2011...think you've had it!

Videx 04-20-2012 11:00 PM

At least Vitaly had the decency to mark all his mods as reusable code before he wandered off.

vbenhancer 04-21-2012 12:22 AM

i didn't notice it was reusable, i can integrate it to my own Notices Pack, so it would be debugged and supported...

JesWhite 02-06-2016 11:23 AM

Quote:

Originally Posted by Greight (Post 2217688)
Confirmed. Also you get a blank page after hitting Go to Advanced reply form.

i need to update.
blank page problem.

JesWhite 02-07-2016 08:26 AM

Quote:

Originally Posted by vbenhancer (Post 2322068)
i didn't notice it was reusable, i can integrate it to my own Notices Pack, so it would be debugged and supported...

your addon good but there isnt quick reply :(

boggseric 03-02-2016 11:36 PM

I was able to fix the blank page by modifying the rcd_n_o_additional_notices template. It had code in it for dismissing a notice which doesn't appear to be required anymore?

As a note, I do also have https://vborg.vbsupport.ru/showthread.php?t=277022 installed but I don't think that changed anything.


So I changed rcd_n_o_additional_notices from
Code:

<vb:if condition="$show['quickreply'] OR $show['quickcomment']">

        <form action="profile.php?do=dismissnotice" method="post" id="additional_notices" class="notices">

                <input type="hidden" name="do" value="dismissnotice" />

                <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />

                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />

                <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />

                <input type="hidden" name="url" value="{vb:raw return_link}" />

                <ol>

                        {vb:raw additional_notices}

                </ol>

        </form>

</vb:if>

to..

Code:

<vb:if condition="$show['quickreply'] OR $show['quickcomment']">


                        {vb:raw additional_notices}

</vb:if>

I am still able to dismiss the notice if that option is enabled and I am able to post as normal without getting the blank page.


All times are GMT. The time now is 06:43 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.01253 seconds
  • Memory Usage 1,778KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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