PDA

View Full Version : Miscellaneous Hacks - Notices Options


Vitaly
06-24-2010, 10:00 PM
This mod adds new options to show forum notices:
"THIS_SCRIPT" value
Autorefresh time for user-dismissed notices
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
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:


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
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
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
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
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
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
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

<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..


<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.