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)
-   -   Private Messages Enhancements - Cyb - PM System Enhancements (https://vborg.vbsupport.ru/showthread.php?t=141838)

scoles15 03-16-2007 05:00 PM

Quote:

Originally Posted by scoles15 (Post 1203552)
Also new problem. PM Notification boxes, the links go to blank page except for "File not found"

Sorry about that. Installed your hack another at same and I got confused about which did what:o

NeRilkA 03-17-2007 11:49 PM

Hi Cybernetec,

thanks for this hack :) I test it while I translate it into French ;)
everything works fine except the menu in navbar.. when I click on the arrow it does not occur anything
and it doesn't blink when you have a new mp

I checked several times but I made as you said

can you help me please thanks

Mudvayne 03-18-2007 05:30 AM

Hey Cyb. Nice hack. But the private message drop down menu doesn't work for me as I'm using a modified header & navbar template. So can you make an option so I can put it on my modified template?

fishhub 03-18-2007 05:13 PM

wow! this is great! I hope it will work for 3.5.x too!:)

bluechris 03-18-2007 06:37 PM

Sorry m8 but i am forced to disable it till i found a way to bypass my problem with my users choosing postibit view as i explain in my previus thread.... it is great mod and i love it but i cannot bypass the problem i get :-(

accessdeniedzzz 03-18-2007 09:21 PM

10x installed ;)

foulplay 03-19-2007 02:25 AM

Cool Mod, I can't wait until you release it to be compatible with vbadvanced.:)

PoetJA-1975 03-20-2007 08:09 AM

Very nice = Thanx for the share
Question: is there a variable I should add to the Portal Output Global Variables to get this to work with vBAdvanced?

Thanx again -

Jacquii.

Gizmo5h1t3 03-20-2007 08:58 AM

any ideas on the errors yet?
nice to know its not only me seein em.....

tehPARADOX 03-22-2007 03:58 PM

Quote:

Warning: array_search() [function.array-search]: Wrong datatype for second argument in /private.php(1723) : eval()'d code on line 20

Warning: implode() [function.implode]: Bad arguments. in /private.php(1723) : eval()'d code on line 22

These errors only appear on Internet Explorer. Also has nothing to do with Moderation Auto-PM v2.0.1, because I don't have it installed.

wolfe 03-22-2007 04:48 PM

im getting this error on firefox 2.0.0.2

Warning: array_search() [function.array-search]: Wrong datatype for second argument in /private.php(1723) : eval()'d code on line 20

Warning: implode() [function.implode]: Bad arguments. in /private.php(1723) : eval()'d code on line 22

Makc666 03-22-2007 05:05 PM

Quote:

Originally Posted by wolfe (Post 1209673)
im getting this error on firefox 2.0.0.2


Warning: array_search() [function.array-search]: Wrong datatype for second argument in /private.php(1723) : eval()'d code on line 20

Warning: implode() [function.implode]: Bad arguments. in /private.php(1723) : eval()'d code on line 22

Quote:

Originally Posted by tehPARADOX (Post 1209634)
These errors only appear on Internet Explorer. Also has nothing to do with Moderation Auto-PM v2.0.1, because I don't have it installed.

You can temporally disable "Reply To All" function to avoid those errors.
I hope Cybernetec will look into this problem in near future.

Gizmo5h1t3 03-22-2007 07:25 PM

can confirm RE: above thread, if you disable "reply to all" in admin cp settings, it works fine.

bacanze 03-22-2007 08:32 PM

Installing now, hope it works

edit: nothing has changed, any ideas?

Doctor Death 03-22-2007 09:11 PM

Quote:

Originally Posted by Gizmo5h1t3 (Post 1201533)
also seein this at the top of the page when i view a PM....otherwise, it works flawlessly..



and prolly due to this error at the top of the page, it pushes the tables off the right of the screen.......

once the pm has been read, and deleted, the error goes on page refresh, and the tables are back to normal..
i expect its something that Cybernetec can sort out with no probs, his hacks are the best on here for reliability normally.

This is precisely the error I get... I did get a Vbulletin expert to tell me it was caused by:
Quote:

This is caused by a modification that executes a plugin at the 'private_complete' hook location. Remove or disable the plugin and contact the author for an update.
Here is a copy of the error screen:

http://www.ddsog.com/images/ddsog_web_error.png

I checked the plugin and it is this one that connects to the private_complete location.

Can someone please comment on this?

This error only is caused when a PM is machine generated (like mass PM users or double registration from a single IP)

Thanks much.

Doc
www.ddsog.com

tehPARADOX 03-22-2007 09:16 PM

Quote:

Originally Posted by Makc666 (Post 1209689)
You can temporally disable "Reply To All" function to avoid those errors.
I hope Cybernetec will look into this problem in near future.

Quote:

Originally Posted by Gizmo5h1t3 (Post 1209833)
can confirm RE: above thread, if you disable "reply to all" in admin cp settings, it works fine.

Thanks guys for the reply.

Valter 03-23-2007 12:26 AM

v1.3 - Mar 23. 2007.
-Fixed bug (array_search error when viewing PMs sent by bots)
-Fixed bug (PM menu links not working on some forums)
-Hack compatible with vBadvanced CMPS (variable to globalize: cybpmmenu)

To upgrade: Import XML, allow overwrite.

Doctor Death 03-23-2007 01:22 AM

you rock. Nicely done.

Doctor Death 03-23-2007 01:37 AM

FYI: I just tested this and it works great.. no more array errors in private.php.

Thanks again for such great work.

tehPARADOX 03-23-2007 01:41 AM

Quote:

Originally Posted by Cybernetec (Post 1210014)
v1.3 - Mar 23. 2007.
-Fixed bug (array_search error when viewing PMs sent by bots)
-Fixed bug (PM menu links not working on some forums)
-Hack compatible with vBadvanced CMPS (variable to globalize: cybpmmenu)

To upgrade: Import XML, allow overwrite.

Cyb always the best.

dbirosel 03-23-2007 01:43 AM

Hmmm... installed and then tested it. The private message link disappeared

edit: n/m i got it! thank you. love the hack

dbirosel 03-23-2007 01:56 AM

IE = dropdown arrow looks great.
Firefox= looks great.
Opera = dropdown is in the wrong place. It's right next to the "Private Messages:" text

bluechris 03-23-2007 06:21 AM

Thx m8 for the update . I reinstalled the 1.3 version and my problem with postbit choose dissapeared... 1 thing only... the 1.3 says that is compatible with CMPS... but i dont see the arrow in CMPS ... i need to add something extra anywhere to show it?

Mudvayne 03-23-2007 07:31 AM

Cyb cool hack. I want to use this. But I have customized header & navbar template. Is there any way to use this with my customized template?

Makc666 03-23-2007 08:59 AM

Quote:

Originally Posted by Icy (Post 1210174)
Cyb cool hack. I want to use this. But I have customized header & navbar template. Is there any way to use this with my customized template?

Maybe open "Cyb-CPMSE.xml" and replace origianl code here:
PHP Code:

            if ($vbulletin->options['cyb_pme_newpm_recpt'])
            {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[receipt]'),'checked=\"checked\"',$vbulletin->templatecache['pm_newpm']);
            } else {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[receipt]'),'',$vbulletin->templatecache['pm_newpm']);
            }

            if (
$vbulletin->options['cyb_pme_newpm_copy'])
            {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[savecopy]'),'checked=\"checked\"',$vbulletin->templatecache['pm_newpm']);
            } else {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[savecopy]'),'',$vbulletin->templatecache['pm_newpm']);
            }

            if (
$vbulletin->options['cyb_pme_newpm_urls'])
            {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[parseurl]'),'checked=\"checked\"',$vbulletin->templatecache['pm_newpm']);
            } else {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[parseurl]'),'',$vbulletin->templatecache['pm_newpm']);
            } 

with what you need?
Of course you must know how it works.

PoetJA-1975 03-23-2007 09:35 AM

Thanx for the update - Very nice modification!

Jacquii.

bluechris 03-23-2007 12:08 PM

Anyone managed to have the arrow in CMPS?

obmob 03-24-2007 02:39 AM

wow, seems powerful! OO

tuanluu 03-24-2007 02:47 AM

Wow nice application, Can you add a feature to purge old pm x days.

Tulsa 03-24-2007 06:28 AM

Quote:

Originally Posted by bluechris (Post 1210313)
Anyone managed to have the arrow in CMPS?

You're answer is in post #58

bluechris 03-24-2007 08:21 AM

Ok got it thx...

dbirosel 03-30-2007 02:36 PM

Hey Cyb, a member pointed out that on my CMPS page, the private messages point to /private.php where it suppose to point to /forum/private.php

I disabled your mod and then rechecked and got fixed. But then enabled it again and still points to /private.php.

Works fine on my Forum index though.

TrIn@dOr 03-30-2007 03:06 PM

Excellent, will be perfect if u add a auto-prune by amount size :D

Thanks.

Mudvayne 04-09-2007 05:03 PM

Quote:

Originally Posted by Makc666 (Post 1210197)
Maybe open "Cyb-CPMSE.xml" and replace origianl code here:
PHP Code:

            if ($vbulletin->options['cyb_pme_newpm_recpt'])
            {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[receipt]'),'checked=\"checked\"',$vbulletin->templatecache['pm_newpm']);
            } else {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[receipt]'),'',$vbulletin->templatecache['pm_newpm']);
            }

            if (
$vbulletin->options['cyb_pme_newpm_copy'])
            {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[savecopy]'),'checked=\"checked\"',$vbulletin->templatecache['pm_newpm']);
            } else {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[savecopy]'),'',$vbulletin->templatecache['pm_newpm']);
            }

            if (
$vbulletin->options['cyb_pme_newpm_urls'])
            {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[parseurl]'),'checked=\"checked\"',$vbulletin->templatecache['pm_newpm']);
            } else {
                
$vbulletin->templatecache['pm_newpm'] = str_replace(('$checked[parseurl]'),'',$vbulletin->templatecache['pm_newpm']);
            } 

with what you need?
Of course you must know how it works.

Thanks for your suggestion. I've fixed the problem. Actually I'm using custom skin what had login option only on forum home. So I need to change the header to add the login option. Now it appears on every page. Anyway I have edited Cyb - PM System Enhancements - MN plugin.
PHP Code:

if ($vbulletin->options['cyb_pme_enable_global'])
        {
            if ((
$vbulletin->options['cyb_pme_newpmsig_color']!='') OR $vbulletin->options['cyb_pme_enable_pmmenu'])
            {
                eval(
'$cybpmmenu = "' fetch_template('cyb_pme_pmmenu') . '";');
                
$vbulletin->templatecache['header'] = str_replace('$vbphrase[private_messages_nav]','$cybpmmenu',$vbulletin->templatecache['header']);
            }

            if ((
$vbulletin->userinfo['pmunread'] > 0) AND ($vbulletin->options['cyb_pme_newpmsig_bgcolor']!=''))
            {
                
$vbulletin->templatecache['header'] = str_replace(('<td class=\"alt2\" valign=\"top\" nowrap=\"nowrap\">'),'<td valign=\"top\" nowrap=\"nowrap\" style=\"background-color:'.$vbulletin->options['cyb_pme_newpmsig_bgcolor'].';\">',$vbulletin->templatecache['header']);
            }

            if (
$vbulletin->options['cyb_pme_newpm_smil'] AND (THIS_SCRIPT=='private') AND ($_REQUEST['do']=='newpm'))
            {
                
$vbulletin->templatecache['newpost_disablesmiliesoption'] = str_replace(('$checked[disablesmilies]'),'checked=\"checked\"',$vbulletin->templatecache['newpost_disablesmiliesoption']);
            } else {
                
$vbulletin->templatecache['newpost_disablesmiliesoption'] = str_replace(('$checked[disablesmilies]'),'',$vbulletin->templatecache['newpost_disablesmiliesoption']);
            }

            if (
$vbulletin->options['cyb_pme_pm_sig_dis'] AND (THIS_SCRIPT=='private') AND $_REQUEST['do']=='showpm')
            {
                
$cyb_pme_sigrems = array('__________________<br />''$post[signature]');
                
$vbulletin->templatecache['postbit'] = str_replace($cyb_pme_sigrems,'',$vbulletin->templatecache['postbit']);
                
$vbulletin->templatecache['postbit_legacy'] = str_replace($cyb_pme_sigrems,'',$vbulletin->templatecache['postbit_legacy']);
            }
        } 

I just replace the navbar template with header template. Then again as I'm using <td align="$stylevar[right]"></td> for my login box so I got drop down menu text on right side :S. So I need to edit the template also. Just added.
HTML Code:

                                        <td class="vbmenu_option" align="$stylevar[left]"><a href="private.php?$session[sessionurl]&folderid=0" accesskey="4" rel="nofollow">$vbphrase[inbox]</a></td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option" align="$stylevar[left]"><a href="private.php?$session[sessionurl]&folderid=-1" accesskey="4" rel="nofollow">$vbphrase[sent_items]</a></td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option" align="$stylevar[left]"><a href="private.php?$session[sessionurl]do=newpm" accesskey="4" rel="nofollow">$vbphrase[send_new_message]</a></td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option" align="$stylevar[left]"><a href="private.php?$session[sessionurl]do=trackpm" accesskey="4" rel="nofollow">$vbphrase[track_messages]</a></td>
                                </tr>
                                <tr>
                                        <td class="vbmenu_option" align="$stylevar[left]"><a href="private.php?$session[sessionurl]do=editfolders" accesskey="4" rel="nofollow">$vbphrase[edit_folders]</a></td>


odie3 04-10-2007 12:44 AM

Thanks! Works great [as far as I can tell]! :)

Deadly Assassin 04-10-2007 04:10 AM

Brilliant as always :up:

Installed

dbirosel 04-10-2007 04:17 AM

Does this work with CMPS yet? Members can't access there private messages through CMPS. They keep getting the 404 error. Is there a solution to this?

Mudvayne 04-10-2007 05:47 AM

Try adding full URL to your CSS. Though I don't use CMPS now but once I got problem with this. Then I did change all the CSS URL from 'forum/blabla/blabla' to 'http://mydomain/forum/blabla/blabla' in ACP > Styles & Templates > Style Manager > Select a skin & go to All Style Option. Thats all :). I hope this 'll fix your problem too.

Sjakie 04-10-2007 06:27 AM

What a great mod! Keep up the good work man!

itsblack 04-11-2007 09:25 PM

To get it work with CMPS, there is no need to edit CSS. There is an easier way, just simply edit the product xml file, find
Quote:

private.php
before that add following thing
Quote:

/forum/
or something more, for line 186, before
Quote:

clear.gif
you should also add
Quote:

/forum/
And reinstall the product. That's it.


All times are GMT. The time now is 11:44 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.01531 seconds
  • Memory Usage 1,893KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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