Support » Fixing WordPress » What does this mean

  • I was inserting a dropdown menu that a friend uses, when I copied and pasted this code into my blog which is sportstunner.com

    <form name=”form2″><select name=”select2″ size=”1″ style=”background-color:#CCCCFF” onChange=”displaydesc(document.form2.select2, thetext2, ‘textcontainer2’)”>

    <option selected value=””>Gooner Links
    <option value=””></option>
    <option value=”http://www.allgoonerdup.com/index.html” target=”newwin”>All Goonered Up</option>
    <option value=”http://www.arseblog.com/” target=”newwin”>Arseblog</option>
    <option value=”http://arsenal.rivals.net/default.asp?sid=880″ target=”newwin”>Arseoneline</option>
    <option value=”http://www.arseweb.org/” target=”newwin”>Arseweb</option>
    <option value=”http://arsenalamerica.com/new/index.php” target=”newwin”>Arsenal America</option>

    <option value=”http://www.arsenalimages.co.uk/” target=”newwin”>Arsenal Images</option>
    <option value=”http://www.arsenal-land.co.uk/” target=”newwin”>Arsenal Land</option>
    <option value=”http://www.arsenal-life.com/” target=”newwin”>Arsenal-Life</option>
    <option value=”http://www.arsenal-mania.com/” target=”newwin”>Arsenal-Mania</option>
    <option value=”http://www.arsenal-mansion.uk.tt/” target=”newwin”>Arsenal Mansion</option>
    <option value=”http://www.arsenalshorts.com/” target=”newwin”>Arsenal Shorts</option>

    <option value=”http://antithesis98.blogspot.com/” target=”newwin”>Arsenal, WTF?</option>
    <option value=”http://www.freewebs.com/arsenalunlimited/” target=”newwin”>Arsenal Unlimited</option>
    <option value=”http://www.goonernews.com/” target=”newwin”>Gooner News</option>
    <option value=”http://www.gunnerblog.com/” target=”newwin”>Gunnerblog</option>
    <option value=”http://www.apoge67.iwarp.com/” target=”newwin”>The Gunners Zone</option>
    <option value=”http://www.tufftalk.com/” target=”newwin”>Tuff Talk Arsenal</option>

    <option value=””></option>
    <option value=”http://www.soccernet.com/” target=”newwin”>ESPN Soccernet</option>
    <option value=”http://www.itv-football.co.uk/” target=”newwin”>ITV Football</option>
    <option value=”http://www.megasoccer.com” target=”newwin”>MegaSoccer</option>
    <option value=”http://www.www.shoot.co.uk/” target=”newwin”>Shoot Monthly</option>
    <option value=”http://www.thefa.com” target=”newwin”>The FA</option>

    <option value=”http://www.premierleague.com/fapl.rac?command=forwardOnly&nextPage=homepage” target=”newwin”>Premiership</option>
    <option value=”http://www.uefa.com/Competitions/ucl/index.html” target=”newwin”>UEFA</option>
    </select>
    <input type=”button” value=”Go”
    onClick=”jumptolink(document.form2.select2)”>

    I was just going to change there links with mine, but tjhe links were there but didnt take me to the sites, so when I went back to delete that code, I lost my blogroll and archives and this is what it sayson my sidebar

    Parse error: syntax error, unexpected $end in /home/nathanev/public_html/wp-content/themes/black-letterhead/sidebar.php on line 106

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Matt Mullenweg

    (@matt)

    Troublemaker

    Look at line 106 of that file and the ones preceding it. It sounds like you may have misplaced PHP tags.

    Here is what the sidebar looks like:

    <?php /* If this is a monthly archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    You are currently browsing the “><?php echo bloginfo(‘name’); ?> weblog archives.

    <form name=”form2″><select name=”select2″ size=”1″ style=”background-color:#CCCCFF” onChange=”displaydesc(document.form2.select2, thetext2, ‘textcontainer2’)”>

    <option selected value=””>Gooner Links
    <option value=””></option>
    <option value=”http://www.allgoonerdup.com/index.html” target=”newwin”>All Goonered Up</option>
    <option value=”http://www.arseblog.com/” target=”newwin”>Arseblog</option>
    <option value=”http://arsenal.rivals.net/default.asp?sid=880″ target=”newwin”>Arseoneline</option>
    <option value=”http://www.arseweb.org/” target=”newwin”>Arseweb</option>
    <option value=”http://arsenalamerica.com/new/index.php” target=”newwin”>Arsenal America</option>

    <option value=”http://www.arsenalimages.co.uk/” target=”newwin”>Arsenal Images</option>
    <option value=”http://www.arsenal-land.co.uk/” target=”newwin”>Arsenal Land</option>
    <option value=”http://www.arsenal-life.com/” target=”newwin”>Arsenal-Life</option>
    <option value=”http://www.arsenal-mania.com/” target=”newwin”>Arsenal-Mania</option>
    <option value=”http://www.arsenal-mansion.uk.tt/” target=”newwin”>Arsenal Mansion</option>
    <option value=”http://www.arsenalshorts.com/” target=”newwin”>Arsenal Shorts</option>

    <option value=”http://antithesis98.blogspot.com/” target=”newwin”>Arsenal, WTF?</option>
    <option value=”http://www.freewebs.com/arsenalunlimited/” target=”newwin”>Arsenal Unlimited</option>
    <option value=”http://www.goonernews.com/” target=”newwin”>Gooner News</option>
    <option value=”http://www.gunnerblog.com/” target=”newwin”>Gunnerblog</option>
    <option value=”http://www.apoge67.iwarp.com/” target=”newwin”>The Gunners Zone</option>
    <option value=”http://www.tufftalk.com/” target=”newwin”>Tuff Talk Arsenal</option>

    <option value=””></option>
    <option value=”http://www.soccernet.com/” target=”newwin”>ESPN Soccernet</option>
    <option value=”http://www.itv-football.co.uk/” target=”newwin”>ITV Football</option>
    <option value=”http://www.megasoccer.com” target=”newwin”>MegaSoccer</option>
    <option value=”http://www.www.shoot.co.uk/” target=”newwin”>Shoot Monthly</option>
    <option value=”http://www.thefa.com” target=”newwin”>The FA</option>

    <option value=”http://www.premierleague.com/fapl.rac?command=forwardOnly&nextPage=homepage” target=”newwin”>Premiership</option>
    <option value=”http://www.uefa.com/Competitions/ucl/index.html” target=”newwin”>UEFA</option>
    </select>
    <input type=”button” value=”Go”
    onClick=”jumptolink(document.form2.select2)”>

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php get_links_list(); ?>

    <?php if (function_exists(‘wp_theme_switcher’)) { ?>

  • <h2><?php _e(‘Themes’); ?></h2>
    <?php wp_theme_switcher(); ?>
  • <?php } ?>

  • <h2><?php _e(‘Archives’); ?></h2>
      <?php wp_get_archives(‘type=monthly’); ?>
  • <?php } ?>

    </div>

Have you checked the file like matt said to do?
Look at line 106 of that file and the ones preceding it. It sounds like you may have misplaced PHP tags.

Also, rather then posting 5 miles worth of codes in here, you could/should use http://pastebin.com/ to post the codes in, and then post the URL of it..here.

What are you using this dropdown for by the way? Archives, Catagories or just for Links… Just curious… =P

spencerp

Links.. Sorry new to this..

Still have no clue.. I went to like 106 and see nothing wrong.. In fact its blank..

I’m not sure my eyes are ok or not, or maybe I’m just overlooking something or not knowing the layout of that “dropdown”…but I didn’t notice a closing tag for the “form”.

I see this in the beginning:
<form name="form2"><select name="select2" size="1" style="background-color:#CCCCFF" onChange="displaydesc(document.form2.select2, thetext2, 'textcontainer2')">

But no: </form> tag, any wheres in the sidebar.php file. =/ Is it supposed to be like that or something, I was thinking that might be the “problem” lol..I dunno, maybe I need some beer or vodka. =P

Also, go here and find the 17 errors and fix them throughout your posts or files.. Just click on the “blue number” link type there by the word: “Line” and it will take you down the page, right to where the errors are at. I hope this helps..

spencerp

All that is fine.. It looks fine.. The problem occured when I took oit the code for the dropdown menu..

I still dont know how to fix it..

look at http://www.sportstunner.com and on the right side.

Yeah, I had seen it already lol. Try taking out the “dropdown” thing once… just the codes you added to it, see what happens once… ok.. Then we’ll go from there..

spencerp

Where’s a dropdown “Professional” when you need them lmao!!

hahaha.. I know

I did delete the code and it still is showing this in the sidebar

Parse error: syntax error, unexpected $end in /home/nathanev/public_html/wp-content/themes/black-letterhead/sidebar.php on line 70

Parse error: syntax error, unexpected $end in /home/nathanev/public_html/wp-content/themes/black-letterhead/sidebar.php on line 70

Hmmm…gerd damn things… [slaps the]sidebar.php file, work damn it!! Work!! Haha.. I dunno.. do you have a “backup” copy of the sidebar.php file, without anything changed in it..?

If so, maybe just upload a “virgin” copy of it, ya know..one that hasn’t been molested yet by you..and see what happens once.. lol!!

spencerp

I wish.. I even changed templates and changed back and still nothing..

It appears, you might be just missing an: endif close tag or something..

Cause I think you have the two for the Theme Switcher, and the “Get Links” function.. example: <?php } ?>

Ya just seem to be missing an: endif tag or something.. for this *I think*. I’m not a PHP Professional…so don’t quote me lmao!!
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>

spencerp

I dunno…I’m kinda thinking about giving up on this though sigh..dang I wish I had a case of beer or something.. maybe I’d stick at it..

Thanks Spencer.. you are a great guy..

I actually have a PHP expert looking at it now..

Thanks Spencer.. you are a great guy..

I actually have a PHP expert looking at it now..

I try to be “great”, but we all have our bad days lol!! Glad to hear you have PHP “Professional” looking at it now. =) Hopefully they can find the answers and fixes to the problem.. 😉

spencerp

Now I gotta go and edit 240 some posts, and remove crappy <font> tags within the posts and stuff..thanks to PLOG (Lifetype).. sigh..

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘What does this mean’ is closed to new replies.