News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

list option misbehaving

Started by glennk, November 09, 2008, 10:38:52 AM

Previous topic - Next topic

glennk

    Sorry guys hers another one for you.

    I've noted that the list option is missbehaving. In a recent topic I opened and closed the list tag around my list. Howevere right at the end of the post another
appears. Obviously as the list is already closed this shows up in the post.

greyknight17

Has this always been happening or just recently? What code did you use exactly (post the entire list code here)?

glennk

#2
No matter how many times I dlete this it still puts a closing list tag where the stars are right at the end of this code.


[list][b][url=http://www.whitbyanglingsupplies.com/]Whitby Angling Supplies - Heaviest Fish Of The Month Competition[/url][/b]

[i]Competition Open To All Current Forum Members[/i]

[img width=500 height=66]http://www.whitbyseaanglers.co.uk/images/600waslogo.jpg[/img]

[color=red][list type=decimal][/color]
[li]Catch A fish[/li]
[li]Weigh It[/li]
[li]Photograph It[/li]
[li]Make A Post into this topic including your photograph, the weight of the fish, and some details of how you caught it. If you have made a post eleswhere on the forum about your catch please link to it from here.[/li][color=red][/list][/color]

The winner each month will be the captor of the heaviest fish. Each monthly winner will recieve a £20 tackle voucher to spend at Whitby Angling Supplies.


[b]Winners To Date[/b]

OCTOBER 2007 - North Bay Otter with a 7 pounds 7 ounce cod caught on 18th October 2007 at Scarborough.

[IMG]http://i24.photobucket.com/albums/c5/big_cod/nbocod2.jpg[/img]

NOVEMBER 2007 - Paul Kilpatrick -16 pounds, officially weighed at Whitby Angling Supplies.

[img width=500 height=375]http://www.whitbyseaanglers.co.uk/images/600-killers-cod-with-copyright.jpg[/img]

DECEMBER 2007 - Glenn Kilpatrick - 8 pounds 10 onces weighed at the cloughton festive sweepstake

[img width=500 height=375]http://i24.photobucket.com/albums/c5/big_cod/700-sweepstake006.jpg[/img]

January 2008 - Swordfish -10 pounds 14 ounces cod from Cowbar

[img width=500 height=375]http://i24.photobucket.com/albums/c5/big_cod/swordfishcod1.jpg[/img]


February Mart Wilding - 9 pounds 12 ounces from Robin Hoods Bay

[img width=500 height=375]http://i10.photobucket.com/albums/a135/mwwukswff/DSCN1830.jpg[/img]

March - 9 Pounder for cps - shore cod

[img width=500 height=375]http://www.whitbyseaanglers.co.uk/images/billet-scar-cod.jpg[/img]

[b]
In April the comp switched from shore fishing to kayak fishing.

Spawney Dave with a 2 pound kayak cod from Holderness[/b]

[img]http://April 2008 A Spawney Cod For Dave[/img]

[img width=500 height=375]http://i16.photobucket.com/albums/b21/Golf94/Kayak/P1010677.jpg[/img]

[b]May 2008 Kayak Cod - 5 Pounder for Lindisfarne[/b]

[img width=500 height=375]http://i132.photobucket.com/albums/q18/asc2007/IMGP0399.jpg[/img]

[b]June 2008 Kayak Cod - 12 Pounder For Sambo[/b]

[img width=500 height=375]http://i138.photobucket.com/albums/q279/fudgemonkey758/IMG_3873.jpg[/img]

[b]July 2008 Kayak Tope For Bassy ken - Estimated at 25 pounds[/b]

[img width=500 height=375]http://i197.photobucket.com/albums/aa201/newdave/tope.jpg[/img]

[b]August Kayak Winner - A nice 8 pound bass for Quint[/b]

[img width=500 height=375]http://i197.photobucket.com/albums/aa201/newdave/bass/P8260008.jpg[/img]

[b]September 2008 Runswick Kayak Cod For Spawney Bass - 5 pounds 12 ounces[/b]

[img width=500 height=375]http://i24.photobucket.com/albums/c5/big_cod/spawney-git1_7.jpg[/img]

[b]October 2008 Port Mulgrave Shore Cod 8 Pounds 6 Ounces For Lobbers[/b]

[img width=375 height=500]http://i428.photobucket.com/albums/qq6/lobbers/001.jpg[/img]*******

greyknight17

That's because you don't have a closing list tag at the end. Why do you even have the begin list tag there in the first line? Eliminate that tag and you should get a better outcome as a list is not needed there.

glennk

Hi grey knight. The closing list tag comes after the last [/li][/list]

greyknight17

Not quite sure I understand you there. The code you posted, is that the original? If so, you are not closing them properly and using them unnecessarily. That includes the second list code you posted where it ended with the color tag intertwined with the closing list tag.

Deprecated

#6
No, Glenn, you seem to misunderstand how to encode your BBCodes, which work the same way as HTML tags.


For a list you need to do it this way:
[list]
[li]item 1[/li]
[li]item 2[/li]
[li]item 3[/li]
[/list]

What you have done is this instead:

[list]
<---- some stuff here ---->
[list][li]item 1[/li]
[li]item 2[/li]
[li]item 3[/li]
[/list]

The only thing you can have between the [list] [/list] codes is pairs of [list][li] [/li][/list] tags. You can have anything you want between the [list][li] and [/li][/list] tags, but there can be only the  pairs inside the  pair.

To put it in the more usual terms, the  container can contain only  groups. In other words, that material between your [list] and the first [list][li] is screwing things up.


Note also, you have other improperly nested tags like this: [/li]
[/list][/color] ... you cannot have one tag pair half-nested inside another tag pair.[/list][/list]

[/nobbc]

Deprecated

I hate to say it, but despite the nobbc tags I cannot get that damned thing to format correctly. SMF keeps adding LIST tag pairs around my LI tags in some of the examples.

NOBBC should mean NO BBCode interpretation!!!

Anyway I hope my point came across even with SMF mucking up what I was trying to say.



Looking at my post above, it's ALL messed up!!! And I'm so damned frustrated that no matter how many times I edit the post, SMF just screws up again.

glennk

The penny has dropped. Thanks guys and sorry for wasting your time. That first list tag right at the very start shouldnt be there, and I arent sure how it got their. Sorry about that


Deprecated

Aw don't worry about it. Grey and I are just part of the gang who wants SMF to have the best support possible. The fact that you had a problem we could help you with is all that is important, and that now you understand how to get things to work for you. :)

I'm marking this topic solved.

glennk

Thanks for that. Seen as though your such top guys O:), could I be cheeky :o and ask you to have a look at this ?  ;D

http://www.simplemachines.org/community/index.php?topic=272616.0

Advertisement: