Cricket Betting Site Betway
Results 1 to 13 of 13

Thread: Forum Bug

  1. #1
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190

    Forum Bug

    Ok when you refresh the Forum by pressing F5 the board shows the following error at the top of the page

    Beware it's long (sorry very long)

    : functions_bbcode --> defmode = "normalmode"; // default mode. either normalmode, advmode, or helpmode if (defmode == "advmode") { helpmode = false; normalmode = false; advmode = true; } else if (defmode == "helpmode") { helpmode = true; normalmode = false; advmode = false; } else { helpmode = false; normalmode = true; advmode = false; } function chmode(swtch){ if (swtch == 1){ advmode = false; normalmode = false; helpmode = true; alert("Help Mode\nClick on any of the formatting buttons for a description and instructions."); } else if (swtch == 0) { helpmode = false; normalmode = false; advmode = true; alert("Advanced Mode\nThe BB Code will be inserted without options as soon as you hit the button."); } else if (swtch == 2) { helpmode = false; advmode = false; normalmode = true; alert("Normal Mode\nPopups will bring you step by step through the process of inserting BB Code."); } } function AddText(NewCode) { if(document.all){ insertAtCaret(document.input.message,NewCode); setfocus(); }else{ document.input.message.value+=NewCode; setfocus(); } } function storeCaret (textEl){ if(textEl.createTextRange){ textEl.caretPos = document.selection.createRange().duplicate(); } } function insertAtCaret (textEl, text){ if (textEl.createTextRange && textEl.caretPos){ var caretPos = textEl.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; }else{ textEl.value = text; } } function email() { if (helpmode) { alert("Email Tag\nTurns an email address into a mailto hyperlink.\nUsage: someone@anywhere.com\nUsage: link text"); } else if (advmode) { AddTxt=""; AddText(AddTxt); } else { txt2=prompt("What name should be shown\nIf this field is empty the email address will be visible",""); if (txt2!=null) { txt=prompt("Please enter an email address.","name@domain.com"); if (txt!=null) { if (txt2=="") { AddTxt=""+txt+""; } else { AddTxt=""+txt2+""; } AddText(AddTxt); } } } } function chsize(size) { if (helpmode) { alert("0"); } else if (advmode) { AddTxt="[size="+size+"] [/size]"; AddText(AddTxt); } else { txt=prompt("Please enter the text to be size "+size,"Text"); if (txt!=null) { AddTxt="[size="+size+"]"+txt+"[/size]"; AddText(AddTxt); } } } function chfont(font) { if (helpmode){ alert("Font Tag\nSets the font face for the enclosed text.\nUsage: [font="+font+"]The font of this text is"); } else if (advmode) { AddTxt=""; AddText(AddTxt); } else { txt=prompt("Please enter the text to be in "+font,"Text"); if (txt!=null) { AddTxt=""+txt+""; AddText(AddTxt); } } } function bold() { if (helpmode) { alert("Bold Tag\nMakes the enlosed text bold.\nUsage: This is some bold text"); } else if (advmode) { AddTxt=""; AddText(AddTxt); } else { txt=prompt("Please enter the text that should be bolded.","Text"); if (txt!=null) { AddTxt=""+txt+""; AddText(AddTxt); } } } function italicize() { if (helpmode) { alert("Italicize Tag\nMakes the enlosed text italicized.\nUsage: This is some italicized text"); } else if (advmode) { AddTxt=""; AddText(AddTxt); } else { txt=prompt("Please enter the text that should be italicized.","Text"); if (txt!=null) { AddTxt=""+txt+""; AddText(AddTxt); } } } function quote() { if (helpmode){ alert("Quote tag\nQuotes the enclosed text to reference something specific that someone has posted.\nUsage:
    This is a quote
    "); } else if (advmode) { AddTxt="\r
    \r
    "; AddText(AddTxt); } else { txt=prompt("Please enter the text you want quoted.","Text"); if(txt!=null) { AddTxt="\r
    \r"+txt+"\r
    "; AddText(AddTxt); } } } function chcolor(color) { if (helpmode) { alert("Color Tag\nSets the text color. Any named color can be used.\nUsage: [color="+color+"]This is some "+color+" text[/color]"); } else if (advmode) { AddTxt="[color="+color+"] [/color]"; AddText(AddTxt); } else { txt=prompt("Please enter the text that should be "+color,"Text "+color,"Text"); if(txt!=null) { AddTxt="[color="+color+"]"+txt+"[/color]"; AddText(AddTxt); } } } function center() { if (helpmode) { alert("Centered tag\nCenters the enclosed text.\nUsage: [align=center]This text is centered[/align]"); } else if (advmode) { AddTxt="[align=center] [/align]"; AddText(AddTxt); } else { txt=prompt("Please enter the text that should be centered.","Text"); if (txt!=null) { AddTxt="\r[align=center]"+txt+"[/align]"; AddText(AddTxt); } } } function hyperlink() { if (helpmode) { alert("Hyperlink Tag\nTurns an url into a hyperlink.\nUsage: http://www.anywhere.com\nUsage: link text"); } else if (advmode) { AddTxt=""; AddText(AddTxt); } else { txt2=prompt("What name should be shown?\nIf this Field is blank the URL would be visible",""); if (txt2!=null) { txt=prompt("Please enter the url for the hyperlink.","http://"); if (txt!=null) { if (txt2=="") { AddTxt=""+txt+""; AddText(AddTxt); } else { AddTxt=""+txt2+""; AddText(AddTxt); } } } } } function image() { if (helpmode){ alert("Image Tag\nInserts an image into the post.\nUsage: [img]http:\www.anywhere.comimage.gif[/img]"); } else if (advmode) { AddTxt="[img] [/img]"; AddText(AddTxt); } else { txt=prompt("Please enter the URL to the image you wish to insert.","http://"); if(txt!=null) { AddTxt="\r[img]"+txt+"[/img]"; AddText(AddTxt); } } } function code() { if (helpmode) { alert("Code Tag\nBlockquotes the text you reference and preserves the formatting.\nUsefull for posting code.\nUsage:
    Code:
    This is formated text
    "); } else if (advmode) { AddTxt="\r
    Code:
    \r
    "; AddText(AddTxt); } else { txt=prompt("Please enter the text you wanted blockquoted.",""); if (txt!=null) { AddTxt="\r
    Code:
    "+txt+"
    "; AddText(AddTxt); } } } function list() { if (helpmode) { alert("List Tag\nBuilds a bulleted, numbered, or alphabetical list.\nUsage:
    • \n
    • item1\n
    • item2\n
    • item3\n
    "); } else if (advmode) { AddTxt="\r
    • \r
    • \r
    • \r
    • \r
    "; AddText(AddTxt); } else { txt=prompt("Please select your list type\n ('A' for aplhabetic, '1' for nummeric) You can leave this field blank",""); while ((txt!="") && (txt!="A") && (txt!="a") && (txt!="1") && (txt!=null)) { txt=prompt("ERROR!\nThe only possible values for type of list are blank 'A' and '1'.",""); } if (txt!=null) { if (txt=="") { AddTxt="\r[list]\r\n"; } else { AddTxt="\r
    1. \r"; } txt="1"; while ((txt!="") && (txt!=null)) { txt=prompt("List Item:\nLeave it blank to End the List",""); if (txt!="") { AddTxt+="
    2. "+txt+"\r"; } } AddTxt+="
    \r\n"; AddText(AddTxt); } } } function underline() { if (helpmode) { alert("Underline Tag\nUnderlines the enclosed text.\nUsage: This text is underlined"); } else if (advmode) { AddTxt=""; AddText(AddTxt); } else { txt=prompt("Please enter the text that should be underlined.","Text"); if (txt!=null) { AddTxt=""+txt+""; AddText(AddTxt); } } } function setfocus() { document.input.message.focus(); }

  2. #2
    Cricket Web Owner James's Avatar
    Join Date
    Oct 2001
    Location
    Sydney, Australia
    Posts
    25,816
    I don't personally experience this.

    Does anyone else?


  3. #3
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190
    Originally posted by James
    I don't personally experience this.

    Does anyone else?
    Some refreshes it just has a few lines other times it has that whole list.

    Also when this happens it changes all the colour of visited links etc and some of the bold font changes to normal font

    I'll just click on the forum index's links at the top insted (doesn't happen then)

  4. #4
    Cricket Web Owner James's Avatar
    Join Date
    Oct 2001
    Location
    Sydney, Australia
    Posts
    25,816
    Can you take a screenprint of the error please and I'll follow it up with XMB

    Attach the image to this post. Use the Attachment feature


  5. #5
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190
    Originally posted by James
    Can you take a screenprint of the error please and I'll follow it up with XMB

    Attach the image to this post. Use the Attachment feature
    Well i'll see how much I can fit in as you can see from above it's rather long, but will give it a go

  6. #6
    Cricket Web Owner James's Avatar
    Join Date
    Oct 2001
    Location
    Sydney, Australia
    Posts
    25,816
    Press PrintScrn on your keyboard, go into Paint, press paste, save the graphic as *.jpg and upload it using the attachment feature

  7. #7
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190
    Here's the part showing the colour change in the links. There's a slight colour difference anyway from the format I saved it in....

    Sorry forgot I need to upload it to the WCC site before it will show up here, will do it ASAP

    [Edited on 22/9/02 by Rich2001]

  8. #8
    Cricket Web Owner James's Avatar
    Join Date
    Oct 2001
    Location
    Sydney, Australia
    Posts
    25,816
    Can you post a screen print of the huge error you get please Rich?

  9. #9
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190
    Originally posted by James
    Can you post a screen print of the huge error you get please Rich?
    Yes, but as I said I need to upload it to a web sever don't I, and the file manager for the WCC site won't work (page can't be found)

  10. #10
    Cricket Web Owner James's Avatar
    Join Date
    Oct 2001
    Location
    Sydney, Australia
    Posts
    25,816
    No, attach the screenprint like you did with the last one.

    With the attachment feature

    I'll send you a U2U with the file manager link.

  11. #11
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190
    Here you go, 2nd time lucky.

  12. #12
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190
    Part 2


  13. #13
    International Captain
    Join Date
    Mar 2002
    Location
    Kent, UK
    Posts
    7,190
    right they do work, if they don't show up just right click and then click "show picture"




Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •