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?

Custom Footer Editing Javascript Bug

Asked Modified Viewed 2,586 times
S
shaythong
S
Test cool
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
asked
Junior Member

I need help with my footer in my custom theme, I have all that are in the code below, but after I've added the javascript scroll up script, it keeps saying,

Quote

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in [all theme links and areas or subdictionarys (private by me)]


function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='50' background='".THEME."images/fbc.jpg' align='center' class='footer'><div><a href=\"javascript:window.scrollTo(0,0);\"><img src='".THEME."images/up.gif' title='Scroll Up' align='left'></a><a href=\"javascript:window.scrollTo(0,0);\"><img src='".THEME."images/up.gif' title='Scroll Up' align='right'></a>.stripslashes($settings['footer'])."</div>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}
0 replies

3 posts

H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

try this (untested):

EDIT

see Matonor's post below for correct code
Edited by helmuth on 31-10-2006 12:58,
0 replies
M
Matonor
M
Impossible things are there to be made possible
  • Veteran Member, joined since
  • Contributed 1,022 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

or this:
function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td height='50' background='".THEME."images/fbc.jpg' align='center' class='footer'><div><a href=\"javascript:window.scrollTo(0,0);\"><img src='".THEME."images/up.gif' title='Scroll Up' align='left'></a><a href=\"javascript:window.scrollTo(0,0);\"><img src='".THEME."images/up.gif' title='Scroll Up' align='right'></a>".stripslashes($settings['footer'])."</div>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}
0 replies
S
shaythong
S
Test cool
  • Junior Member, joined since
  • Contributed 37 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Junior Member

Alright, thank you Matonor, it works perfectly!
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

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

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet