MyBB Community Forums

Full Version: argg..my forum messed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
(2010-12-30, 01:57 PM)TheGodFather Wrote: [ -> ]@yaldaram, whats wrong with javascript logout confirmation plugin?

@killer, check your headerinclude file.

what should i check in header include?
you must see few lines on top as like

<link .....
<link ....
<meta ....
<script ....

and so. check whether the headerinclude have them.
if you have localhost, you can check the contents of default template.
(2010-12-30, 02:45 PM)TheGodFather Wrote: [ -> ]you must see few lines on top as like

<link .....
<link ....
<meta ....
<script ....

and so. check whether the headerinclude have them.
if you have localhost, you can check the contents of default template.

all it have
{$metadescription}
{$metakeywords}
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<script type="text/javascript" src="{$mybb->settin
replace it with

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />  
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<script type="text/javascript">
<!--
	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}

there is your problem. you have missing template lines.
well I think this is the problem of javascript logout plugin..

see this in default template in headerinclude

{$metadescription}
{$metakeywords}
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
	   <script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/grey_out.js"></script>
       <script type="text/javascript">       
       function logout_confirmation()
       {
	        grayOut(true);
	        if (confirm('{$lang->logout_confirmation}'))
         	{
				grayOut(false);
				return true;
			}
		else
			{
				grayOut(false);
				return false;
			}


Rolleyes


(2010-12-30, 02:54 PM)TheGodFather Wrote: [ -> ]replace it with

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />  
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<script type="text/javascript">
<!--
	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}

there is your problem. you have missing template lines.

im pasted this in headerinclude but still no result..
perhaps i will have to restore backup Sad
you said, you have deactivated that plugin?
when ever you deactivate it will remove all the instances of the plugin code.
Ahh... i see that you have codepress ON, right?
(2010-12-30, 03:06 PM)TheGodFather Wrote: [ -> ]you said, you have deactivated that plugin?
when ever you deactivate it will remove all the instances of the plugin code.

I plugin is deactivated

(2010-12-30, 03:06 PM)TheGodFather Wrote: [ -> ]Ahh... i see that you have codepress ON, right?
I'm not sure what is it? How to off it?
acp->home->preferences
turn off
code press

i made the plugins by taking the code from the templates while the codepress is off.
(2010-12-30, 03:18 PM)TheGodFather Wrote: [ -> ]acp->home->preferences
turn off
code press

i made the plugins by taking the code from the templates while the codepress is off.
ok, i off it but still no result.
is there any solution other then restoring my backup?
if you have made a backup yesterday or before doing the edits, install a local host mybb copy and restore. you will have all the previous edits.
Pages: 1 2 3 4