PostNuke Help "Flash"

  • ladydiamond44
  • Born
  • Born
  • ladydiamond44
  • Posts: 4

Post 3+ Months Ago

I've made a couple of flashes that I would like to input into my postnuke themes. I've searched other forums, taken advice and tried as many ways that I can think of to put the Flash code into PHP. And I still get errors and I'm afraid that I'm not familiar enough with PHP to fix them. I really need someone to take a look at my theme.php and see what I'm doing wrong. I've checked the paths so I know that isn't it. It's something in the php I've done. Here are the errors I keep getting:

Parse error: parse error, expecting `','' or `';'' in /home/dogs-cat/public_html/postnuke/themes/Dezina_Amor/theme.php on line 93

Fatal error: Call to undefined function: themeheader() in /home/dogs-cat/public_html/postnuke/header.php on line 188

I can't find what these errors are referring to or I don't recognize the problem. Can someone please take a look at my theme.php and see what I'm doing wrong...

I have no other recourse. :oops:

Thank You

LadyDiamond44
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5738
  • Loc: Sub-level 28

Post 3+ Months Ago

Well, the PHP themes just output HTML. So you basically just need to echo out the HTML code to include flash.

If you could post the themeheader() function here (please use [php] tags), and the HTML code you wish to use to include your flash (using [code] tags), I'll have a look at it for you :)
  • ladydiamond44
  • Born
  • Born
  • ladydiamond44
  • Posts: 4

Post 3+ Months Ago

Thank You so much, I've been web designing for 5 years and I'm proficient in HTML, XHTML, JAVA, JAVA Script, CGI, Flash, etc.. I just started using PHP in the last year and I love it but I can't make heads or tails of it at the moment as far as doing the programming myself.

Again Thank You,

This is what I tried to do below: (PHP)


PHP Code: [ Select ]
<?
function themeheader() {
   global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index, $blocks;
 
   $slogan = pnConfigGetVar('slogan');
   $sitename = pnConfigGetVar('sitename');
   $banners = pnConfigGetVar('banners');
   $startpage = pnConfigGetVar('startpage');
   $currentlang = pnConfigGetVar('language');
   $bgcolor_body_flash = "#CCCCCC";
   $pn_flash = "1";
 
   echo "<body bgcolor=\"$bgcolor_body_flash\" background=\"themes/Dezina_Amor/images/background.gif\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
   ."<br>\n";
// Banner Display
   echo "<p align=\"center\">\n";
      pnBannerDisplay();
   echo "<!----- PLEASE DO NOT REMOVE COPYRIGHT NOTICE ----->\n";
      echo "<!----- Copyright (c) 2002 Dezina (http://www.dezina.com<!-- m -->) ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
      echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"97%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
   ."<tr>\n"
      ."<!----- Logo Area ----->\n"
 
   echo "\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"750\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
   ."<tr>\n"
   ."<td bgcolor=\"#ffffff\" width=\"750\">\n"
   ."<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\"
WIDTH=\"750\" HEIGHT=\"275\" id=\"Dezina_Amor\" ALIGN=\"\">
 
<PARAM NAME=movie VALUE=\"themes/Dezina_Amor/flash/dogscatstitle.swf?themename=$themename&sitename=$sitename&slogan=$slogan&pn_flash=$pn_flash\">
<PARAM NAME=quality VALUE=best>
<PARAM NAME=bgcolor VALUE=$bgcolor_body_flash>
<EMBED src=\"themes/Dezina_Amor/flash/dogscatstitle.swf?themename=$themename&sitename=$sitename&slogan=$slogan&pn_flash=$pn_flash\" quality=best bgcolor=$bgcolor_body_flash WIDTH=\"750\" HEIGHT=\"275\" NAME=\"Dezina_Amor\" ALIGN=\"\"
TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>
</OBJECT></td>\n"
   ."</tr>\n"
   
 
      ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"98%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
      ."<tr>\n"
      ."<td bgcolor=\"#FFFFFF\" colspan=\"4\"><IMG src=\"themes/Dezina_Amor/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
      ."</tr>\n"
 
// User Login and Register
      ."<tr valign=\"middle\" bgcolor=\"#FFFFFF\">\n"
      ."<td width=\"15%\" nowrap><b>\n";
   if (!pnUserLoggedIn()) {
   $username = pnConfigGetVar('anonymous');
   echo "&nbsp;&nbsp;<b><a href=\"user.php\"><img src=\"themes/Dezina_Amor/images/icon_community.gif\" border=0 ALT=\"Create an Account\"width=\"20\" height=\"20\"></a>\n";
   } else {
   $username = pnUserGetVar('uname');
   echo "&nbsp;&nbsp;Welcome $username!";
   }
   echo "</b></td>\n"
 
?>
  1. <?
  2. function themeheader() {
  3.    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index, $blocks;
  4.  
  5.    $slogan = pnConfigGetVar('slogan');
  6.    $sitename = pnConfigGetVar('sitename');
  7.    $banners = pnConfigGetVar('banners');
  8.    $startpage = pnConfigGetVar('startpage');
  9.    $currentlang = pnConfigGetVar('language');
  10.    $bgcolor_body_flash = "#CCCCCC";
  11.    $pn_flash = "1";
  12.  
  13.    echo "<body bgcolor=\"$bgcolor_body_flash\" background=\"themes/Dezina_Amor/images/background.gif\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
  14.    ."<br>\n";
  15. // Banner Display
  16.    echo "<p align=\"center\">\n";
  17.       pnBannerDisplay();
  18.    echo "<!----- PLEASE DO NOT REMOVE COPYRIGHT NOTICE ----->\n";
  19.       echo "<!----- Copyright (c) 2002 Dezina (http://www.dezina.com<!-- m -->) ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
  20.       echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"97%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
  21.    ."<tr>\n"
  22.       ."<!----- Logo Area ----->\n"
  23.  
  24.    echo "\n"
  25.    ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"750\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
  26.    ."<tr>\n"
  27.    ."<td bgcolor=\"#ffffff\" width=\"750\">\n"
  28.    ."<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
  29. codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\"
  30. WIDTH=\"750\" HEIGHT=\"275\" id=\"Dezina_Amor\" ALIGN=\"\">
  31.  
  32. <PARAM NAME=movie VALUE=\"themes/Dezina_Amor/flash/dogscatstitle.swf?themename=$themename&sitename=$sitename&slogan=$slogan&pn_flash=$pn_flash\">
  33. <PARAM NAME=quality VALUE=best>
  34. <PARAM NAME=bgcolor VALUE=$bgcolor_body_flash>
  35. <EMBED src=\"themes/Dezina_Amor/flash/dogscatstitle.swf?themename=$themename&sitename=$sitename&slogan=$slogan&pn_flash=$pn_flash\" quality=best bgcolor=$bgcolor_body_flash WIDTH=\"750\" HEIGHT=\"275\" NAME=\"Dezina_Amor\" ALIGN=\"\"
  36. TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>
  37. </OBJECT></td>\n"
  38.    ."</tr>\n"
  39.    
  40.  
  41.       ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"98%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
  42.       ."<tr>\n"
  43.       ."<td bgcolor=\"#FFFFFF\" colspan=\"4\"><IMG src=\"themes/Dezina_Amor/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
  44.       ."</tr>\n"
  45.  
  46. // User Login and Register
  47.       ."<tr valign=\"middle\" bgcolor=\"#FFFFFF\">\n"
  48.       ."<td width=\"15%\" nowrap><b>\n";
  49.    if (!pnUserLoggedIn()) {
  50.    $username = pnConfigGetVar('anonymous');
  51.    echo "&nbsp;&nbsp;<b><a href=\"user.php\"><img src=\"themes/Dezina_Amor/images/icon_community.gif\" border=0 ALT=\"Create an Account\"width=\"20\" height=\"20\"></a>\n";
  52.    } else {
  53.    $username = pnUserGetVar('uname');
  54.    echo "&nbsp;&nbsp;Welcome $username!";
  55.    }
  56.    echo "</b></td>\n"
  57.  
  58. ?>

I'll get the Original theme header PHP to you and the Flash HTML code to you as quickly as I can.

Again thanks,

LadyDiamond44
  • ladydiamond44
  • Born
  • Born
  • ladydiamond44
  • Posts: 4

Post 3+ Months Ago

Ooops I didn't know that it would interact on your site like that...

I should have realized that would happen. How would you like me to send it to you or post it. What code do I need to use so that you can view it without it interacting.

I know that people like you just love interacting with newbies like me.

:oops:
  • ladydiamond44
  • Born
  • Born
  • ladydiamond44
  • Posts: 4

Post 3+ Months Ago

Here is the Flash HTML Code:

Code: [ Select ]
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width=750 height=275>
<param name=movie value="dogscatstitle.swf">
<param name=loop value=false>
<param name=quality value=best>
<param name=scale value=exactfit>
<param name=bgcolor value=#FFFFFF>
<embed src="dogscatstitle.swf" loop=false quality=best scale=exactfit bgcolor=#FFFFFF width=750 height=275 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
  1. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  2. codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
  3. width=750 height=275>
  4. <param name=movie value="dogscatstitle.swf">
  5. <param name=loop value=false>
  6. <param name=quality value=best>
  7. <param name=scale value=exactfit>
  8. <param name=bgcolor value=#FFFFFF>
  9. <embed src="dogscatstitle.swf" loop=false quality=best scale=exactfit bgcolor=#FFFFFF width=750 height=275 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
  10. </embed>
  11. </object>


Here is the Original Header PHP for the Theme that I want to use and put the Flash into it:


PHP Code: [ Select ]
<?
/************************************************************/
 
function themeheader() {
   global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index, $blocks;
 
   $slogan = pnConfigGetVar('slogan');
   $sitename = pnConfigGetVar('sitename');
   $banners = pnConfigGetVar('banners');
   $startpage = pnConfigGetVar('startpage');
   $currentlang = pnConfigGetVar('language');
 
 
   echo "<body bgcolor=\"#FFFFFF\" background=\"themes/Dezina_Amor/images/background.gif\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
   ."<br>\n";
// Banner Display
   echo "<p align=\"center\">\n";
      pnBannerDisplay();
   echo "<!----- PLEASE DO NOT REMOVE COPYRIGHT NOTICE ----->\n";
      echo "<!----- Copyright (c) 2002 Dezina (http://www.dezina.com<!-- m -->) ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
      echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"97%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
   ."<tr>\n"
      ."<!----- Logo Area ----->\n"
      ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"98%\" border=\"0\" bgcolor=\"#ffffff\">\n"
      ."<tr>\n"
      ."<td width=\"100%\" bgcolor=\"#ffffff\" valign=\"top\">\n"
      ."&nbsp;<a href=\"index.php\" style=\"text-decoration: none; FONT-SIZE: 22px; FONT-WEIGHT: bold;\">$sitename</a>\n"
      ."</td>\n"
      ."</tr>\n"
 
      ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"98%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
      ."<tr>\n"
      ."<td bgcolor=\"#FFFFFF\" colspan=\"4\"><IMG src=\"themes/Dezina_Amor/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
      ."</tr>\n"
 
// User Login and Register
      ."<tr valign=\"middle\" bgcolor=\"#FFFFFF\">\n"
      ."<td width=\"15%\" nowrap><b>\n";
   if (!pnUserLoggedIn()) {
   $username = pnConfigGetVar('anonymous');
   echo "&nbsp;&nbsp;<b><a href=\"user.php\"><img src=\"themes/Dezina_Amor/images/icon_community.gif\" border=0 ALT=\"Create an Account\"width=\"20\" height=\"20\"></a>\n";
   } else {
   $username = pnUserGetVar('uname');
   echo "&nbsp;&nbsp;Welcome $username!";
   }
   echo "</b></td>\n"
?>
  1. <?
  2. /************************************************************/
  3.  
  4. function themeheader() {
  5.    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index, $blocks;
  6.  
  7.    $slogan = pnConfigGetVar('slogan');
  8.    $sitename = pnConfigGetVar('sitename');
  9.    $banners = pnConfigGetVar('banners');
  10.    $startpage = pnConfigGetVar('startpage');
  11.    $currentlang = pnConfigGetVar('language');
  12.  
  13.  
  14.    echo "<body bgcolor=\"#FFFFFF\" background=\"themes/Dezina_Amor/images/background.gif\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
  15.    ."<br>\n";
  16. // Banner Display
  17.    echo "<p align=\"center\">\n";
  18.       pnBannerDisplay();
  19.    echo "<!----- PLEASE DO NOT REMOVE COPYRIGHT NOTICE ----->\n";
  20.       echo "<!----- Copyright (c) 2002 Dezina (http://www.dezina.com<!-- m -->) ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
  21.       echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"97%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
  22.    ."<tr>\n"
  23.       ."<!----- Logo Area ----->\n"
  24.       ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"98%\" border=\"0\" bgcolor=\"#ffffff\">\n"
  25.       ."<tr>\n"
  26.       ."<td width=\"100%\" bgcolor=\"#ffffff\" valign=\"top\">\n"
  27.       ."&nbsp;<a href=\"index.php\" style=\"text-decoration: none; FONT-SIZE: 22px; FONT-WEIGHT: bold;\">$sitename</a>\n"
  28.       ."</td>\n"
  29.       ."</tr>\n"
  30.  
  31.       ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"98%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
  32.       ."<tr>\n"
  33.       ."<td bgcolor=\"#FFFFFF\" colspan=\"4\"><IMG src=\"themes/Dezina_Amor/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
  34.       ."</tr>\n"
  35.  
  36. // User Login and Register
  37.       ."<tr valign=\"middle\" bgcolor=\"#FFFFFF\">\n"
  38.       ."<td width=\"15%\" nowrap><b>\n";
  39.    if (!pnUserLoggedIn()) {
  40.    $username = pnConfigGetVar('anonymous');
  41.    echo "&nbsp;&nbsp;<b><a href=\"user.php\"><img src=\"themes/Dezina_Amor/images/icon_community.gif\" border=0 ALT=\"Create an Account\"width=\"20\" height=\"20\"></a>\n";
  42.    } else {
  43.    $username = pnUserGetVar('uname');
  44.    echo "&nbsp;&nbsp;Welcome $username!";
  45.    }
  46.    echo "</b></td>\n"
  47. ?>


If there is anything else that you need let me know and I will get it to you pronto.

Thanks.

LadyDiamond44

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 42 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.