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?

My Custom Panel codes does not work on 08.00.70

Asked Modified Viewed 681 times
H
HenningS
H
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hey guys.

Sorry for my bad English, but I miss help with php script which has worked until version 8.23 but does not work any more script inserted below.

// User settings - change as appropriate
$title = "Foto";
$no = 25; // No of pictures

// Query data
$query = "SELECT tp.photo_id AS photo_id, tp.photo_title AS photo_title, tp.album_id AS album_id, tp.photo_thumb1 AS photo_thumb1 FROM ".DB_PHOTOS." AS tp LEFT JOIN ".DB_PHOTO_ALBUMS." AS ta ON tp.album_id = ta.album_id ORDER BY photo_datestamp DESC LIMIT ".$no;

$result = dbquery($query);

// Output
openside($title);
echo("<MARQUEE BEHAVIOR='SCROLL' ALIGN='CENTER' WIDTH='100%' VALIGN='BOTTOM' DIRECTION='LEFT' SCROLLAMOUNT='2' SCROLLDELAY='1' ONMOUSEOVER='this.stop()' ONMOUSEOUT='this.start()'>
<table align='center'>\n<tr>\n"wink;

while($data = dbarray($result))
{
  $file = PHOTOS.(!@ini_get("safe_mode"wink? "album_".$data['album_id']."/" : ""wink.$data['photo_thumb1'];
  if (!file_exists($file)) $file =IMAGES."imagenotfound.jpg";

  echo("<td><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."'><img src='".$file."' alt='".$data['photo_title']."' border='0' />  </a></td>"wink;
}

echo("</tr>\n</table>\n</MARQUEE>"wink;
closeside();

Thank you in advance for your help

HenningS
Edited by Falk on 01-01-2021 10:23,
0 replies

1 post

R
Anonymous User
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions
answered
Veteran Member

You can enable "Allow PHP Execution" in Security settings, but I do not recommend allowing it.

Here you can generate panel https://www.php-fusion.co.uk/addon_ge...generator/  Yes title says for v9, but panels are the same in all versions.

Paste your code in panel and enable it in Panels settings.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

H
H
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
R
R
Anonymous User 367
  • Veteran Member, joined since
  • Contributed 939 posts on the community forums.
  • Started 2 threads in the forums
  • Answered 20 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet