MyBB Community Forums

Full Version: Full edit dissapeared!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having a problem with the full edit option.
It suddently dissapeared Confused

[Image: 3df315ced9f5dfd989f77c389566b7c0.png]

What may be the problem?

AdminCP -> Templates & Style -> Templates -> *Theme* -> Post Bit Templates

Does your postbit template contain:
{$post['button_edit']}

Could you post the contents of your postbit_edit template in this format:
[php]Template Content[/php]
It seems like a jQuery conflict to me. Add this code:

<script type="text/javascript">jQuery.noConflict();</script>

In the headerinclude template:

Admin CP -> Templates & Style -> Templates -> *your theme's templates* -> Ungrouped Templates -> headerinclude
(2013-02-18, 05:13 PM)JordanMussi Wrote: [ -> ]AdminCP -> Templates & Style -> Templates -> *Theme* -> Post Bit Templates

Does your postbit template contain:
{$post['button_edit']}

Could you post the contents of your postbit_edit template in this format:
[php]Template Content[/php]

Here it is:

<a href="editpost.php?pid={$post['pid']}" id="edit_post_{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_edit.gif" alt="{$lang->postbit_edit}" title="{$lang->postbit_edit}" /></a>
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" onclick="Thread.quickEdit({$post['pid']});" class="popup_item">{$lang->postbit_quick_edit}</a></div><div class="popup_item_container"><a href="editpost.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_full_edit}</a></div></div>
<script type="text/javascript">
// <!--
	if(use_xmlhttprequest == "1")
	{
		new PopupMenu("edit_post_{$post['pid']}");
	}
// -->
</script>
That seems fine. Add the no conflict code to your headerinclude template mentioned above.
(2013-02-18, 05:22 PM)Irreligious Wrote: [ -> ]It seems like a jQuery conflict to me. Add this code:

<script type="text/javascript">jQuery.noConflict();</script>

In the headerinclude template:

Admin CP -> Templates & Style -> Templates -> *your theme's templates* -> Ungrouped Templates -> headerinclude

Added it but nothing happened :/
Can you post here your headerinclude template code?
(2013-02-18, 05:26 PM)Irreligious Wrote: [ -> ]Can you post here your headerinclude template code?

<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">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
{$stylesheets} <script type="text/javascript">jQuery.noConflict();
jQuery(function($) { $(".close").click(function () {
  $(".avviso").fadeOut("slow");
  }); });</script> <script src="http://code.jquery.com/jquery-latest.js"></script> {$avvisospiti}
<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}
<script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>


I 've just noticed that the smilies are not clickable as well Confused
I've searched around and I think that this will fix the problem. Put this code instead in the headerinclude:

<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=1603"></script>
 <script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
 <script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
 <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
 {$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>
 
 <script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
    jQuery.noConflict();
    jQuery(document).ready(function($) {
        $(".close").click(function () {
            $(".avviso").fadeOut("slow");
        });
    });
</script> {$avvisospiti}
 
 {$newpmmsg}
 <script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>
(2013-02-18, 05:43 PM)Irreligious Wrote: [ -> ]I've searched around and I think that this will fix the problem. Put this code instead in the headerinclude:

<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=1603"></script>
 <script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
 <script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
 <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
 {$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>
 
 <script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
    jQuery.noConflict();
    jQuery(document).ready(function($) {
        $(".close").click(function () {
            $(".avviso").fadeOut("slow");
        });
    });
</script> {$avvisospiti}
 
 {$newpmmsg}
 <script language="javascript" type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/myadvertisements.js"></script>

YOU ARE AWESOME! Thanks a ton bro! Really appreciated Smile