Space above elgg_toolbar?

Hi,

I'm not quite sure if I should be asking this question here.  If not, could someone please direct me to the proper location to ask for help?  Thanks.

Here's the problem:  I added some javascript in header.php like anyother script would be added.  Mysteriously I now have a space above the elgg_toolbar of about 10px or so.  Even after removing the javascript the space remains.  Only after removing the theme (and it doesn't matter the theme used) and reuploading can that theme be used without the space above the toolbar.  Not using any theme there is no space.  Of course I haven't messed with the core files at all under views/default/page_elements which would explain why I have no space above the toolbar when not using a theme.  Any ideas about this?  I've looked and looked and can't find how the problem exists or why and in what file it might be.

I hope I have written this as succinctly as possible with enough information.  I suppose the only other thing to do would be to take a snapshot of the page.  This is on my local server on my computer so it's not a live site anywhere otherwise I would give the web address for someone to take a look at.

Please advise.  Thank you,

Rene

  • do a view source of the bad javascript spaces page and post entire code here..

    (yes i know it will be lot but seems the quickest way way to probe..)

  • Okay this is from http://127.0.0.1/elgg/pg/admin/statistics

    The look is the same on every page.  You'll notice the "?" before the <!doctype....>  There is some additional whitespace but when copied from view source it did not past it.

    ?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <meta name="ElggRelease" content="1.5" />

    <meta name="ElggVersion" content="2009031301" />

    <title>Test Site: Statistics</title>

     

    <script type="text/javascript" src="http://127.0.0.1/elgg/vendors/jquery/jquery-1.2.6.pack.js"></script&gt;

     

    <script type="text/javascript" src="http://127.0.0.1/elgg/vendors/jquery/jquery-ui-personalized-1.5.3.packed.js"></script&gt;

    <script type="text/javascript" src="http://127.0.0.1/elgg/_css/js.php?lastcache=1252214808&js=initialise_elgg&viewtype=default"></script&gt;

    <script type="text/javascript">

     

    /***********************************************

    * Contractible Headers script- © Dynamic Drive (www.dynamicdrive.com)

    * This notice must stay intact for legal use. Last updated Mar 23rd, 2004.

    * Visit http://www.dynamicdrive.com/ for full source code

    ***********************************************/

     

    var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)

    var collapseprevious="no" //Collapse previously open content when opening present? (yes/no)

     

    if (document.getElementById){

    document.write('<style type="text/css">')

    document.write('.switchcontent{display:none;}')

    document.write('</style>')

    }

     

    function getElementbyClass(classname){

    ccollect=new Array()

    var inc=0

    var alltags=document.all? document.all : document.getElementsByTagName("*")

    for (i=0; i<alltags.length; i++){

    if (alltags[i].className==classname)

    ccollect[inc++]=alltags[i]

    }

    }

     

    function contractcontent(omit){

    var inc=0

    while (ccollect[inc]){

    if (ccollect[inc].id!=omit)

    ccollect[inc].style.display="none"

    inc++

    }

    }

     

    function expandcontent(cid){

    if (typeof ccollect!="undefined"){

    if (collapseprevious=="yes")

    contractcontent(cid)

    document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"

    }

    }

     

    function revivecontent(){

    contractcontent("omitnothing")

    selectedItem=getselectedItem()

    selectedComponents=selectedItem.split("|")

    for (i=0; i<selectedComponents.length-1; i++)

    document.getElementById(selectedComponents[i]).style.display="block"

    }

     

    function get_cookie(Name) { 

    var search = Name + "="

    var returnvalue = "";

    if (document.cookie.length > 0) {

    offset = document.cookie.indexOf(search)

    if (offset != -1) { 

    offset += search.length

    end = document.cookie.indexOf(";", offset);

    if (end == -1) end = document.cookie.length;

    returnvalue=unescape(document.cookie.substring(offset, end))

    }

    }

    return returnvalue;

    }

     

    function getselectedItem(){

    if (get_cookie(window.location.pathname) != ""){

    selectedItem=get_cookie(window.location.pathname)

    return selectedItem

    }

    else

    return ""

    }

     

    function saveswitchstate(){

    var inc=0, selectedItem=""

    while (ccollect[inc]){

    if (ccollect[inc].style.display=="block")

    selectedItem+=ccollect[inc].id+"|"

    inc++

    }

     

    document.cookie=window.location.pathname+"="+selectedItem

    }

     

    function do_onload(){

    uniqueidn=window.location.pathname+"firsttimeload"

    getElementbyClass("switchcontent")

    if (enablepersist=="on" && typeof ccollect!="undefined"){

    document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0" 

    firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load

    if (!firsttimeload)

    revivecontent()

    }

    }

     

     

    if (window.addEventListener)

    window.addEventListener("load", do_onload, false)

    else if (window.attachEvent)

    window.attachEvent("onload", do_onload)

    else if (document.getElementById)

    window.onload=do_onload

     

    if (enablepersist=="on" && document.getElementById)

    window.onunload=saveswitchstate

     

    </script>

    <!-- include the default css file -->

    <link rel="stylesheet" href="http://127.0.0.1/elgg/_css/css.css?lastcache=1252214808&viewtype=default" type="text/css" />

    <link rel="alternate" type="application/rss+xml" title="RSS" href="http://127.0.0.1/elgg/pg/admin/statistics/?view=rss" />

     

    <link rel="alternate" type="application/odd+xml" title="OpenDD" href="http://127.0.0.1/elgg/pg/admin/statistics/?view=opendd" />

    <script type="text/javascript">

    jQuery(document).ready(function($) {

     $('a[rel*=facebox]').facebox()

    });

    </script>

    <script type="text/javascript" src="http://127.0.0.1/elgg/mod/embed/jquery.form.js"></script&gt; <script type="text/javascript" src="http://127.0.0.1/elgg/pg/groupextended/js"></script&gt;

     

    <script type="text/javascript" src="http://127.0.0.1/elgg/mod/chat/chat.js"></script&gt;

    </head>

     

    <body>

    <div id="elgg_topbar">

     

    <div id="elgg_topbar_container_left">

    <div class="toolbarimages">  

    <a href="http://www.elgg.org" target="_blank"><img src="http://127.0.0.1/elgg/_graphics/elgg_toolbar_logo.gif" /></a>

    <a href="http://127.0.0.1/elgg/pg/profile/admin"><img class="user_mini_avatar" src="http://127.0.0.1/elgg/mod/profile/icondirect.php?lastcache=1249588803&username=admin&size=topbar" /></a>

    </div>

    <div class="toolbarlinks">

    <a href="http://127.0.0.1/elgg/pg/dashboard/" class="pagelinks">Dashboard</a>

    </div>

     

    <ul class="topbardropdownmenu">

        <li class="drop"><a href="#" class="menuitemtools">Tools</a>

     <ul>

          <li><a href="http://127.0.0.1/elgg/pg/blog/admin">Blogs</a></li><li><a href="http://127.0.0.1/elgg/pg/bookmarks/admin/items">Bookmarks</a></li><li><a href="http://127.0.0.1/elgg/pg/ad/admin">Classifieds</a></li><li><a href="http://127.0.0.1/elgg/pg/file/admin">Files</a></li><li><a href="http://127.0.0.1/elgg/pg/friends/admin">Friends</a></li><li><a href="http://127.0.0.1/elgg/pg/groups/world/">Groups</a></li><li><a href="http://127.0.0.1/elgg/mod/members/index.php">Members</a></li><li><a href="http://127.0.0.1/elgg/mod/MyPages">Stuff 2</a></li><li><a href="http://127.0.0.1/elgg/mod/customeyes">Stuff</a></li><li><a href="http://127.0.0.1/elgg/pg/pages/owned/admin">Pages</a></li><li><a href="http://127.0.0.1/elgg/pg/photos/owned/admin">Photos</a></li><li><a href="http://127.0.0.1/elgg/mod/thewire/everyone.php">The wire</a></li><li><a href="http://127.0.0.1/elgg/mod/vanillaforum/vanilla">Vanilla forum</a></li>      </ul>

     

        </li>

    </ul>

     

    <script type="text/javascript">

      jQuery(function() {

        jQuery('ul.topbardropdownmenu').elgg_topbardropdownmenu();

      });

    </script>

     

    <div class="toolbarlinks2">

     

    <a href="http://127.0.0.1/elgg/pg/messages/admin" class="privatemessages" >&nbsp;</a>

    <a href="#" onclick="chat_open('http://127.0.0.1/elgg/pg/chat')" id="chat_open_chat_link" class="chat_open usersettings" title="Open chat">Chat</a> <a href="http://127.0.0.1/elgg/pg/settings/" class="usersettings">Settings</a>

     

    <a href="http://127.0.0.1/elgg/pg/admin/" class="usersettings">Administration</a>

    </div>

    <ul class="topbardropdownmenu" id="helpmenu">

    <li class="drop"><a href="#" class="menuitemtools">Help</a>

    <ul>

    <li><a href="http://127.0.0.1/elgg/pg/help/overview">Overview</a></li><li><a href="http://127.0.0.1/elgg/pg/help/faq">Frequently Asked Questions</a></li> </ul>

    </li>

     

    </ul></div>

    <div id="elgg_topbar_container_right">

    <a href="http://127.0.0.1/elgg/action/logout"><small>Log out</small></a>

    </div>

    <div id="elgg_topbar_container_search">

    <form id="searchform" action="http://127.0.0.1/elgg/pg/search/" method="get">

    <input type="text" size="21" name="tag" value="Search" onclick="if (this.value=='Search') { this.value='' }" class="search_input" />

    <input type="submit" value="search " class="search_submit_button" />

    </form>

    </div>

    </div><!-- /#elgg_topbar -->

    <div class="clearfloat"></div>

     

    <div id="page_container">

    <div id="page_wrapper">

     

    <div id="layout_header">

    <div id="wrapper_header">

    <!-- display the page title 

    <h1><a href="http://127.0.0.1/elgg/">Test Site</a></h1>

    -->

     

    <div id="site_logo">

    <a href="http://127.0.0.1/elgg/"&gt;

    <img src="http://127.0.0.1/elgg/mod/darkelgg/graphics/logo.png" border="0" /> </a>

    </div>

     

     

     

    <div id="navigation-bar">

    <ul>

    <li class="navlist"><a class="groups-icon" href="http://127.0.0.1/elgg/pg/groups/world/"></a></li&gt;

    <li class="navlist"><a class="blogs-icon" href="http://127.0.0.1/elgg/pg/mod/blog/everyone.php"></a></li&gt;

    <li class="navlist"><a class="friends-icon" href="http://127.0.0.1/elgg/pg/friends/"></a></li&gt;

    <li class="navlist"><a class="settings-icon" href="http://127.0.0.1/elgg/pg/settings/"></a></li&gt;

    <li class="navlist"><a class="mail-icon" href="http://127.0.0.1/elgg/pg/messages/"></a></li&gt;

    <li class="navlist"><a class="myprofile-icon" href="http://127.0.0.1/elgg/pg/profile/admin"></a></li&gt;

    <li class="navlist"><a class="home-icon" href="http://127.0.0.1/elgg/"></a></li&gt;

     

    </ul>

    </div>

    </div><!-- /#wrapper_header -->

    </div><!-- /#layout_header -->

     

     

    <!-- main contents -->

     

     

    <!-- display any system messages -->

     

     

    <!-- canvas -->

    <div id="layout_canvas">

     

    <!-- left sidebar -->

    <div id="two_column_left_sidebar">

     

        <div id="owner_block">

    <div id="owner_block_rss_feed"><a href="http://127.0.0.1/elgg/pg/admin/statistics/?view=rss" rel="nofollow">Subscribe to feed</a></div>

    <!-- <div id="owner_block_odd_feed"><a href="http://127.0.0.1/elgg/pg/admin/statistics/" rel="nofollow"></a></div> -->

     

    <div id="owner_block_bookmark_this"><a href="javascript:location.href='http://127.0.0.1/elgg/mod/bookmarks/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)">Bookmark this</a></div><div id="owner_block_report_this"><a href="javascript:location.href='http://127.0.0.1/elgg/mod/reportedcontent/add.php?address='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)">Report this</a></div><div id="owner_block_submenu"><div class="submenu_group"><div class="submenu_group_a"><ul><li class="selected"><a href="http://127.0.0.1/elgg/pg/admin/statistics/" >Statistics</a></li><li ><a href="http://127.0.0.1/elgg/pg/admin/site/" >Site Administration</a></li><li ><a href="http://127.0.0.1/elgg/pg/admin/user/" >User Administration</a></li><li ><a href="http://127.0.0.1/elgg/pg/admin/plugins/" >Tool Administration</a></li><li ><a href="http://127.0.0.1/elgg/mod/categories/settings.php" >Set site categories</a></li><li ><a href="http://127.0.0.1/elgg/pg/defaultwidgets/profile" >Default profile widgets</a></li><li ><a href="http://127.0.0.1/elgg/pg/defaultwidgets/dashboard" >Default dashboard widgets</a></li><li ><a href="http://127.0.0.1/elgg/mod/custom_index/approveAd.php" >Ads to be included in Home</a></li><li ><a href="http://127.0.0.1/elgg/pg/diagnostics/" >System diagnostics</a></li><li ><a href="http://127.0.0.1/elgg/pg/logbrowser/" >Log browser</a></li><li ><a href="http://127.0.0.1/elgg/pg/defaultprofile/edit/" >Replace profile fields</a></li><li ><a href="http://127.0.0.1/elgg/pg/reportedcontent/" >Reported content</a></li><li ><a href="http://127.0.0.1/elgg/mod/tidypics/admin.php" >Tidypics Administration</a></li><li ><a href="http://127.0.0.1/elgg/mod/form/manage_all_forms.php" >Manage forms</a></li><li ><a href="http://127.0.0.1/elgg/mod/customspotlight/settings.php" >Set default spotlight</a></li><li ><a href="http://127.0.0.1/elgg/pg/expages/" >External pages</a></li><li ><a href="http://127.0.0.1/elgg/pg/siteaccess/activate" >Site Access</a></li><li ><a href="http://127.0.0.1/elgg/mod/adcategories/settings.php" >Create Ad categories</a></li><li ><a href="http://127.0.0.1/elgg/mod/userpoints/admin.php" >Userpoints</a></li></ul></div></div></div></div><div id="owner_block_bottom"></div>

     

     

    </div><!-- /two_column_left_sidebar -->

     

    <!-- main content -->

    <div id="two_column_left_sidebar_maincontent">

     

    <div id="content_area_user_title"><h2>Statistics</h2></div><div class="admin_statistics">

        <h3>Basic site statistics</h3>

        <table>

         <tr class="odd">

                <td class="column_one"><b>Elgg version :</b></td>

     

                <td>Release - 1.5, Version - 2009031301</td>

            </tr>

            <tr class="even">

                <td class="column_one"><b>Number of users :</b></td>

                <td>4 Active / 4 Total</td>

            </tr>

     

        </table> 

     

    </div>  <div class="admin_statistics">

        <h3>Entities on site</h3>

        <table>

                                    <tr class="odd">

                                <td class="column_one">Sites:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Users:</td>

                                <td>4</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">Widgets:</td>

                                <td>94</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Photos:</td>

                                <td>62</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">Form field choice definitions:</td>

                                <td>30</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Plugin configuration settings:</td>

                                <td>15</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">Form/field maps:</td>

                                <td>10</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Form field definitions:</td>

                                <td>10</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">User Points:</td>

                                <td>9</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Files:</td>

                                <td>5</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">Albums:</td>

                                <td>5</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">item:object:siteaccess_email:</td>

                                <td>4</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:vanillaforum_notify:</td>

                                <td>4</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Top-level pages:</td>

                                <td>3</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">Messages:</td>

                                <td>3</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Classified posts:</td>

                                <td>2</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">Blog posts:</td>

                                <td>2</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Wire posts:</td>

                                <td>2</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:contactme:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Site messages:</td>

                                <td>1</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:form:config:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">item:object:spotlight_nolog:</td>

                                <td>1</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:faq:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">item:object:contact:</td>

                                <td>1</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:about:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Form definitions:</td>

                                <td>1</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:terms:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">item:object:elggchat_session:</td>

                                <td>1</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">DefaultWidgets settings:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Pages welcome blocks:</td>

                                <td>1</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:privacy:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Front page items:</td>

                                <td>1</td>

                            </tr>                        <tr class="odd">

                                <td class="column_one">item:object:spotlight:</td>

                                <td>1</td>

                            </tr>                        <tr class="even">

     

                                <td class="column_one">Groups:</td>

                                <td>2</td>

                            </tr>    </table>

    </div>

    <div class="admin_users_online">

        <h3>Users online now</h3>

     

    <div class="search_listing">

    <div class="search_listing_icon">

     

    <div class="usericon">

    <div class="avatar_menu_button"><img src="http://127.0.0.1/elgg/_graphics/spacer.gif" border="0" width="15px" height="15px" /></div>

     

    <div class="sub_menu">

    <a href="http://127.0.0.1/elgg/pg/profile/admin"><h3>Admin</h3></a&gt;

    <p class="user_menu_friends">

    <a href="http://127.0.0.1/elgg/pg/friends/admin/">Friends</a&gt;

    </p>

    <p class="user_menu_friends_of">

     

    <a href="http://127.0.0.1/elgg/pg/friendsof/admin/">Friends of</a>

    </p> </div>

    <a href="http://127.0.0.1/elgg/pg/profile/admin" class="icon" ><img src="http://127.0.0.1/elgg/mod/profile/icondirect.php?lastcache=1249588803&username=admin&size=small" border="0"  title="Admin"  /></a>

    </div>

     

    </div>

    <div class="search_listing_info">

    <p><b><a href="http://127.0.0.1/elgg/pg/profile/admin" rel="">Admin</a></b></p><div class="profile_status">Just here testing! <a class="status_update" href="http://127.0.0.1/elgg/pg/thewire/admin">update</a><span&gt; (24 days ago)</span></div><p class="owner_timestamp">Location: <a rel="tag" href="http://127.0.0.1/elgg/tag/Somewhere">Somewhere</a></p&gt; </div>

    </div>

     

    </div>

     

    </div><!-- /two_column_left_sidebar_maincontent -->

     

     

    <div class="clearfloat"></div>

    <br />

    <div style="floar:none; border:1px solid #ccc; background:#333; width:950px; height:90px; color:#FFFFFF; padding:5px; -webkit-border-radius: 4px; 

    -moz-border-radius: 4px; text-align:center;">

     

    <img src="http://127.0.0.1/elgg/mod/darkelgg/graphics/bottom-banner.jpg" border="0" width="950" height="90">

     

    </div>

    </div><!-- /#layout_canvas -->

     

    <!-- spotlight -->

     

    <center>

    <div id="layout_spotlight">

    <div id="wrapper_spotlight">

    <div class="collapsable_box no_space_after">

    <div class="collapsable_box_header">

    <a href="javascript:void(0);" class="toggle_box_contents" 

    onClick="$.post('http://127.0.0.1/elgg/action/user/spotlight?closed=true')">-</a>

    <h1>Spotlight</h1>

    </div>

    <div class="collapsable_box_content" >

     

    <div id="spotlight_table">

     

    <div id="spotlight_table"><!-- spotlight RHS content -->

    <div class="spotlightRHS">

    <h2 style="color:white;">MORE of what you'll SEE Here!!</h2>

    <p><img src="/elgg/pic.jpg" border="0" alt="test pic" width="238" height="197" style="border:0pt none; float: left; margin-left: 10px; margin-right: 10px;" /></p>

    </div>

    <!-- spotlight RHS content --> <!-- spotlight LHS content -->

    <div class="spotlightLHS">

    <h2 style="text-align:left; color:white;">Welcome to Test Site<br /></h2>

    <p><img src="/elgg/2618.jpg" border="0" alt="test site" title="test site" width="295" height="196" style="border: 0pt none; float: left; margin-left: 5px; margin-right: 5px;" /></p>

    <p style="color:white;">Testing my test site</p>

     

    </div>

    <!-- /spotlight LHS content --></div>

     

     

     

     

     

     

            <div class="clearfloat"></div>

    </div>

     

    </div><!-- /.collapsable_box_content -->

    </div><!-- /.collapsable_box -->

    </div><!-- /#wrapper_spotlight -->

     

    </div><!-- /#layout_spotlight -->

     

    <br /></center>

    <br />

    <!-- footer -->

     

    <div class="clearfloat"></div>

     

    <div id="layout_footer">

    <table width="100%" height="79" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>

    <td width="50%" height="28" valign="middle">

    <p align="left" class="footer_toolbar_links">

     

            <div style="floar:none; border:1px solid #ccc; background:#333; width:728px; height:90px; color:#FFFFFF; padding:5px; -webkit-border-radius: 4px;-moz-border-radius: 4px; text-align:center; vertical-align:middle; margin-top:-10px;">

     

    <img src="http://127.0.0.1/elgg/conners-728x90.gif" border="0" width="728" height="90">

     

    </div>

    <div align="right"></div></td>

            <td width="50%" valign="middle"><p align="right" class="footer_toolbar_links">

     

    <div class="footer_toolbar_links">| 

    <a href="http://127.0.0.1/elgg/pg/expages/read/About/">About</a&gt; |

    <a href="http://127.0.0.1/elgg/pg/expages/read/Terms/">Terms</a&gt; |

    <a href="http://127.0.0.1/elgg/pg/expages/read/Privacy/">Privacy</a&gt; |

     

    <a href="http://127.0.0.1/elgg/pg/expages/read/FAQ/">FAQ</a&gt; |

    <a href="http://127.0.0.1/elgg/pg/expages/read/Contact/">Contact</a&gt; |        </p>

            <p align="right" class="footer_toolbar_links">Theme Designed by : <a href="http://www.edesignerz.net">EDESIGNERZ.NET</a></p></td&gt;

    </tr>

    </table>

    </div><!-- /#layout_footer -->

    <div class="clearfloat"></div>

     

    </div><!-- /#page_wrapper -->

     

    </div><!-- /#page_container -->

    <!-- insert an analytics view to be extended -->

    </body>

    </html>

  • goto
    \mod\<ThemeName>\views\default\page_elements\header.php

    look for this code

            $version = get_version();
            $release = get_version(true);
    ?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>

    remove the (blue highlighted above) "?" you wiil see...
    so that the code becomes

            $version = get_version();
            $release = get_version(true);
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>

     

     

  • See, that's where I initially went to look but what's in header.php of the theme is:

    $version = get_version();

    $release = get_version(true);

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>

    The "?" is there but has the closeing ">" as it should for php.  Right?

  • hmmmm oopsss ;-)
    correct
    the ?> stays
    (1) try restoring your views/default folder first

    (2) the 10cm would be coming from something like the "?" that I illustrated with..
    If you cannot find the "?", zip up that theme & your view/default folder and message me for my email -
    i will scan and look at the code in there..

     

  • That stray "?" must be somewhere else.  When I "view source" in firefox brower, html tidy tells me that there is a missing <!DOCTYPE>declaration and then more errors stating that for instance plain text is not allowed in <head> elements.  So, my pages would never validate with this error.  Don't know if this additional "information" helps in anyway or not.

    Rene

  • Hey,

    I don't think it can be in the views/default folder as when not using a theme it's just fine (no space above the elgg_toolbar) since I haven't added any javascript(s) to the header.php file in views/default/page_elements.  It almost seems as if it's in cache somewhere, but I have refreshed, don't have cache turned on, and have disabled/enabled theme several times.  I've even looked in the database but nothing of any consequence appears to be stored there.  And, if I install a new theme without adding any javascript, there is no space above the toolbar.  Hope that all makes sense.

  • Try turning simple cache back on then up grade

    Just a thought

  • @Rene.. If you still havent solved the probem, can we have a url so that we can have a look..?

    This shouldn't be a complicated thing to fix, but we first need to have a look at a live page.

    Chhers.

    -Carlos

  • This can be terribly difficult to track down because what's happening is this:

    Somewhere, in some file, there has been a chunk of PHP that didn't get "turned on" correctly, so it is causing a stray ? to be output.  This could be in any PHP file--not just views.

    I'd recommend re-uploading Elgg, turning off simplecache, then adding your modified files one at a time to see which one it is.  Tedious, but effective.

    Also, http://pastebin.org is your friend for long chunks of code ;)