May 22 2012 00:33:45
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 8

· Members Online: 0

· Total Members: 494
· Newest Member: budisantoso
Last Seen Users
· budisantoso16:45:41
· lidaer16:56:13
· Yodix 1 day
· mr-casino 1 day
· dos5 3 days
· Machello93 3 days
· Leonardo_master 3 days
· ezgi 3 days
· xxyy 4 days
· lilin0402 5 days

Login
 Username  Password  
View Thread: banners
Who is here? 2 Guests
 Print Thread
banners
jebajseti
hi,

i have noticed this error before with other banner but now i tried to add smokemans menu and it is the same error


Parse error: syntax error, unexpected '"', expecting T_STRING in E:\xampp\htdocs\includes\theme_functions_include.php(77) : eval()'d code on line 3

theme_functions_include.php (line 77 is here line 8). If i remove <?php ?> tags in arround both eval codes and then i get error undefined < at line... it seems it needs to be in html but it doesnt work

PHP
  1. function showbanners() {
  2.     global $settings;
  3.     ob_start();
  4.     if ($settings['sitebanner2']) {
  5.         eval("?><div style='float: right;'>".stripslashes($settings['sitebanner2'])."</div>\n<?php ");
  6.     }
  7.     if ($settings['sitebanner1']) {
  8.         eval("?>".stripslashes($settings['sitebanner1'])."\n<?php ");
  9.     } elseif ($settings['sitebanner']) {
  10.         echo "<a href='".$settings['siteurl']."'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' style='border: 0;' /></a>n";
  11.     } else {
  12.         echo "<a href='".$settings['siteurl']."'>".$settings['sitename']."</a>n";
  13.     }    
  14.     $output = ob_get_contents();
  15.     ob_end_clean();
  16.     return $output;
  17. }
  18.  

i have added in banners this code

PHP
  1. <?php
  2. echo "<table cellspacing='0' cellpadding='0' border='0' style='padding-top: 3px;' width='auto' align='center'>\n<tr>\n
  3. <td align='left'>\n";
  4. include INFUSIONS."css_dropdown_menu/menu.php";
  5. echo "</td>\n</tr>\n
  6. </table>\n";
  7. ?>


regards
 
slaughter
try to upload this file in administration/banners.php and tell use your result Wink
slaughter attached the following file:
banners.zip [1.52 kB, 58 Downloads]
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Promotion Banners General Questions 1 22-02-2012 03:59
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.11 seconds - 89 Queries 994,351 unique visits