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?

Panel Help?

Asked Modified Viewed 2,011 times
B
BombJe
B
BombJe 10
  • Member, joined since
  • Contributed 119 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
asked
Member

Hello guys, I've a problem with my panel it gives me an error but actually I can't see the fault!

My code:
if (iGUEST) {
openside("FIFA 12 Actie");
echo "<center>\n";
echo "<a href="http://codspelen.nl/articles.php?article_id=1"><img src="http://codspelen.nl/images/FIFA12-Tournooi-Ultimate-Team.gif"></a>\n";
echo "</center>\n";
closeside(); }


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /customers/2/5/e/codspelen.nl/httpd.www/administration/panel_editor.php(150) : eval()'d code on line 4 
0 replies

2 posts

H
HaYaLeT
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

if (iGUEST) {
 openside("FIFA 12 Actie");
 echo "<center>\n";
 echo "<a href='http://codspelen.nl/articles.php?article_id=1'><img src='http://codspelen.nl/images/FIFA12-Tournooi-Ultimate-Team.gif2' alt='' /></a>\n";
 echo "</center>\n";
 closeside();
}
else {
echo "";
}
0 replies
P
PHPist
P
PHPist 10
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

Where i can find radio_panel for PHPFusion v7.02.04 ? or how i can stoped centered with IE looks, Thanks!
<SCRIPT>
function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}
</SCRIPT>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: new_infusion_panel.php
| Author: INSERT NAME HERE
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

include INFUSIONS."radio_panel/infusion_db.php";

// Check if locale file is available matching the current site locale setting.
if (file_exists(INFUSIONS."radio_panel/locale/".$settings['locale'].".php")) {
   // Load the locale file matching the current site locale setting.
   include INFUSIONS."radio_panel/locale/".$settings['locale'].".php";
} else {
   // Load the infusion's default locale file.
   include INFUSIONS."radio_panel/locale/English.php";
}
openside($locale['RAP202']);

include INFUSIONS."radio_panel/radio_set.php";

      echo "<center>".$locale['RAP506']."<br /><br />";


echo'
<script type="text/javascript" src="'.INFUSIONS.'radio_panel/ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>';
?>
<script type="text/javascript">
ddaccordion.init({
   headerclass: "expandable", //Shared CSS class name of headers group that are expandable
   contentclass: "categoryitems", //Shared CSS class name of contents group
   collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
   defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
   animatedefault: false, //Should contents open by default be animated into view?
   persiststate: true, //persist state of opened contents within browser session?
   toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
   togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
   animatespeed: "normal", //speed of animation: "fast", "normal", or "slow"
   oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
      //do nothing
   },
   onopenclose:function(header, index, state, isclicked){ //custom code to run whenever a header is opened or closed
      //do nothing
   }
})
</script>
<?php
echo'

<style type="text/css">
.arrowlistmenu{
width: 130px; /*width of accordion menu*/
}
.arrowlistmenu .menuheader{ /*CSS class for menu headers in general (expanding or not!)*/
font: bold 14px Arial;
color: white;
background: black url('.INFUSIONS.'radio_panel/titlebar.png) repeat-x center left;
margin-bottom: 10px; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
padding: 4px 0 4px 10px; /*header text is indented 10px*/
cursor: hand;
cursor: pointer;
}

.arrowlistmenu .openheader{ /*CSS class to apply to expandable header when it\'s expanded*/
background-image: url('.INFUSIONS.'radio_panel/titlebar-active.png);
}

.arrowlistmenu ul{ /*CSS for UL of each sub menu*/
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
}

.arrowlistmenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}

.arrowlistmenu ul li a{
color: #A70303;
background: url('.INFUSIONS.'radio_panel/arrowbullet.png) no-repeat center left; /*custom bullet list image*/
display: block;
padding: 2px 0;
padding-left: 19px; /*link text is indented 19px*/
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #dadada;
font-size: 90%;
}

.arrowlistmenu ul li a:visited{
color: #A70303;
}

.arrowlistmenu ul li a:hover{ /*hover state CSS*/
color: #A70303;
background-color: #F3F3F3;
}

</style>


<div class="arrowlistmenu">';


$result1 = dbquery("SELECT * FROM ".$db_prefix."radio_parent");

while ($data1 = dbarray($result1)) {

echo'
<h3 class="menuheader expandable">'.$data1['radio_parent'].'</h3>
<ul class="categoryitems">';
$filur = $data1['radio_id'];


$result01 = dbquery("SELECT * FROM ".$db_prefix."radio WHERE radio_parent = $filur");
if (dbrows($result1) != 0) {
while ($data01 = dbarray($result01)) {
$radiolink = $data01['radio_ch'];
$radioid = $data01['radio_id'];

echo"
<SCRIPT language='JavaScript'>
<!--hide
function newwindow$radioid(){
window.open('".INFUSIONS."radio_panel/radio.php?radio_id=".$radioid."','jav','width=350,height=200,resizable=yes');
}
//-->
</SCRIPT>

<li>
<A HREF='javascript:newwindow$radioid()' >".$data01['radio_dcp']."</A>
</li>";
}
 echo'</ul>';

}

}
echo"</div>";
closeside();
?>


i think here:

echo "<center>".$locale['RAP506']."<br /><br />";
where must close this center?

Merged on Feb 07 2012 at 13:35:42:
No answers yet???
Edited by PHPist on 07-02-2012 14:35,
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

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

3 participants

B
B
BombJe 10
  • Member, joined since
  • Contributed 119 posts on the community forums.
  • Started 27 threads in the forums
  • Started this discussions
P
P
PHPist 10
  • Junior Member, joined since
  • Contributed 25 posts on the community forums.
  • Started 2 threads in the forums
H
H
  • Senior Member, joined since
  • Contributed 262 posts on the community forums.
  • Started 28 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet