Quote:
Originally Posted by Makc666
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>