Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Can't move up/down my panels

Asked Modified Viewed 1,502 times
N
Nelutzu
N
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

I have a problem with my panels in administration section.
I can't move panels up/down.

I use bootstrap component in my theme, so in templates/footer.php i load bootstrap.min.js and jquery.min.js from googleapis.
But i think this is not a problem becaus all the rest of functionalities are working properly.

Sorry for my bad english.
0 replies

3 posts

K
KasteR
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

Here is what's happening, and an available workaround.

PHPFusion is already loaded with jQuery. However, bootstrap requires a different version in order for it to work.
You end up loading both, and there are conflicts between the two versions.

I would suggest adding your code to your theme.php file, rather than modifying the templates/footer.php core content.
Typically it's good practice to include your CSS to the head of your site, and JS to the footer. Here's how.

theme.php
   $path = $_SERVER['REQUEST_URI'];
   $find = '/administration/';
   $pos = strpos($path, $find);
   echo $pos;
   if ($pos !== 0){
      add_to_footer('<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script><script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>');
   }
   add_to_head('<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">');


Just include the snippet above inside of the render_page function in the theme.php file.

This will cause the newer version of jQuery to be loaded to your site's content. And not including it to the administration panel. Hope that makes sense to you.
0 replies
N
Nelutzu
N
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

It doesn't works.. i tried even without bootstrap.min.js, just with phpfusion's js.
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Does a standard installation work on your server? try back track to identify the reason slowly incrementing back on.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
K
K
KasteR 10
  • Senior Member, joined since
  • Contributed 290 posts on the community forums.
  • Started 1 thread in the forums
N
N
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet