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)

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 04:59 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.01432 seconds
  • Memory Usage 1,792KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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