random number and number of post Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+2
kirk
Base
6 posters

    random number and number of post

    avatar
    Guest
    Guest


    random number and number of post Empty random number and number of post

    Post by Guest November 15th 2011, 9:04 pm

    Hello,

    I want a code for the subjects to select a random number

    Eg

    Between 2 and 9 to get a random number.




    I also want right of each Post to have the number of such Post (# 1, # 2, # 3 ...).

    I have phpbb2.


    Last edited by Respect_Me on November 16th 2011, 1:48 pm; edited 2 times in total
    Base
    Base
    Forumaster


    Male Posts : 10386
    Reputation : 1695
    Language : English and French
    Location : United Kingdom, England

    random number and number of post Empty Re: random number and number of post

    Post by Base November 15th 2011, 10:03 pm

    random number and number of post ParcheminNon-Explicit Title: Hello, can you please change the title of your problem from something like “Help, Urgent, Few questions, Problems, SOS” to something more related to your query/problem.

    Your changing the title to something related to the problem will help users who will use the search feature on this forum to solve a similar problem. This way, your problem will be a solution for someone else’s problem.

    Please confirm with the requirement to get help from members as well as staff.
    Members are advised to confirm with this requirement & avoid helping unless the title is changed.

    Your co-operation will help us in making this forum efficient. Thank you.

    Staff
    avatar
    Guest
    Guest


    random number and number of post Empty Re: random number and number of post

    Post by Guest November 16th 2011, 1:54 pm

    help ??
    avatar
    Guest
    Guest


    random number and number of post Empty Re: random number and number of post

    Post by Guest November 16th 2011, 3:56 pm

    Hah, try:
    Code:
    var quotes=new Array()

    quotes[0]='2'

    quotes[1]='3'

    quotes[2]='3'

    quotes[3]='4'

    quotes[4]='5'

    quotes[5]='6'

    quotes[6]='7'

    quotes[7]='8'

    quotes[8]='9'


    var whichquote=Math.floor(Math.random()*(quotes.length))
    document.write(quotes[whichquote])
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    random number and number of post Empty Re: random number and number of post

    Post by kirk November 16th 2011, 4:23 pm

    whats the purpose?
    i don't understand?
    avatar
    Guest
    Guest


    random number and number of post Empty Re: random number and number of post

    Post by Guest November 16th 2011, 7:11 pm

    does not work ...

    Kirk would like to Post saying the number of such Post 1st, 2nd (# 1, # 2)

    and I want a code that gives a random number, somewhere I had seen but I do not remember.
    Lillia
    Lillia
    Forumember


    Female Posts : 132
    Reputation : 3

    random number and number of post Empty Re: random number and number of post

    Post by Lillia November 16th 2011, 9:17 pm

    You mean like this? (I don't exactly understand you.)
    CODE:
    Code:
    [rand]50,100[/rand]
    Result :
    Random number (50,100) : 53

    CODE:
    Code:
    [rand]50[/rand]
    Result:
    Random number (1,50) : 3


    Last edited by KateyRose on November 16th 2011, 9:18 pm; edited 1 time in total
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    random number and number of post Empty Re: random number and number of post

    Post by LGforum November 16th 2011, 11:54 pm

    If you still continue to indirectly advertise your forum, you will earn yourself a warning. Smile


    Last edited by LGforum on November 18th 2011, 3:05 pm; edited 1 time in total
    avatar
    Guest
    Guest


    random number and number of post Empty Re: random number and number of post

    Post by Guest November 17th 2011, 12:47 pm

    must login to see code.


    KateyRose thanks.Smile
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    random number and number of post Empty Re: random number and number of post

    Post by Sanket November 17th 2011, 5:21 pm

    Guests can see it.
    avatar
    Guest
    Guest


    random number and number of post Empty Re: random number and number of post

    Post by Guest November 17th 2011, 5:26 pm

    the link says "Log In to see this code"
    avatar
    Guest
    Guest


    random number and number of post Empty Re: random number and number of post

    Post by Guest November 17th 2011, 10:13 pm

    help??
    Poser
    Poser
    Helper
    Helper


    Male Posts : 413
    Reputation : 43
    Language : English, Filipino
    Location : @ohmpawatt

    random number and number of post Empty Re: random number and number of post

    Post by Poser November 18th 2011, 3:01 am

    ^

    I think you must check the guests" "view and read" so that they will see it.
    I hope I'm on the right track here.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    random number and number of post Empty Re: random number and number of post

    Post by Sanket November 18th 2011, 9:08 am

    The code can be viewed now.

    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    random number and number of post Empty Re: random number and number of post

    Post by LGforum November 18th 2011, 9:32 am

    LGforum wrote:If you still continue to indirectly advertise your forum, you will earn yourself a warning. Smile


    When I posted this, all content and codes were viewable to guests.
    Now however the code blocks will say 'Log in to see this code'
    I apologise, but the codes have now become members only recently.
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    random number and number of post Empty Re: random number and number of post

    Post by kirk November 18th 2011, 2:36 pm

    LGforum wrote:
    LGforum wrote:If you still continue to indirectly advertise your forum, you will earn yourself a warning.


    When I posted this, all content and codes were viewable to guests.
    Now however the code blocks will say 'Log in to see this code'
    I apologies, but the codes have now become members only recently.

    Well are you going to change it back for guest to view or do we have to remove the link?
    We only allow links to tutorials that are open to the public/guest to view. Because if it's not and you have to register to the forum in order to see it, it's considered advertising your forum. And FM support only allows promoting/advertising your forum in your profile link and on the promotions board.
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    random number and number of post Empty Re: random number and number of post

    Post by LGforum November 18th 2011, 3:06 pm

    Its been removed. And my tutorials from now on will be like that.

    The thread itself is viewable but the code blocks are not.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    random number and number of post Empty Re: random number and number of post

    Post by Sanket November 18th 2011, 4:20 pm

    LGforum, if you want to help someone do it here. If you do not wish to help here on this board, please ignore the posts of members Smile
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    random number and number of post Empty Re: random number and number of post

    Post by kirk November 18th 2011, 6:19 pm

    LGforum wrote:Its been removed. And my tutorials from now on will be like that.

    The thread itself is viewable but the code blocks are not.

    yeah i am not trying to sound like a bad guy, but you will not be able to post your link to the tutorials then.

    You have to understand, if FM support was to allow someone to do this then we would have to let everyone, Then you would get people posting tutorials with the link leading to their forum, just so they can get people to register and gain members. It's promoting/adverting their forum,and some what forcing them to register if they want to see the answers for their problems. Then it would be a matter of time before people just start making fake so called tutorials and use as a way to lure people in to their sites, and believe me i seen it all and it would happen,

    So i mean if they are open for all to see, then if they decide they would like to join your site or anyone else's , Then thats fine, but that is after the fact that they was able to see and get the information they needed to help resolve whatever problem or question they may have.

    And i mean many members share a lot of different links to things to help with support, But it's rare that someone would post something that you would have to register to see, And it would not matter if it was a forumotion forum or any other site or forum. If it's something you have to register to see then FM support will not allow it,

    So i just want to try to clarify why we have this rule in place. I mean we are here to help with all we possibly can, and if people are going to post links to something members here have to register first in order to see, well thats not really helping and presents it self as being nothing more then a way to gain members.

    Even if that is not the intention, So i am sure you can understand what i mean Smile
    And we do allow forum links in your profile and do have a promotions board as well, But if FM support was allow members to post their forums link, then this whole support forum would be flooded with nothing but peoples links.
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    random number and number of post Empty Re: random number and number of post

    Post by LGforum November 18th 2011, 7:16 pm

    I am perfectly aware of the rule. Like i explained to Sanket 3 times through PM, when i posted the link the tutorial AND codes were viewable.

    I have only recently added this to my board.
    So once again, when i posted the link, it WAS available to guests. SINCE posting it i have added a block on the codes to guests. After i added the feature i didn't remember i had posted this, and so i didnt come back and edit it.

    So ONCE AGAIN, when i posted my post, it WAS helpful. It WAS a tutorial for guests.
    It NOW is not.

    Understand?
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    random number and number of post Empty Re: random number and number of post

    Post by kirk November 18th 2011, 7:48 pm

    ok thumright
    avatar
    Guest
    Guest


    random number and number of post Empty Re: random number and number of post

    Post by Guest November 18th 2011, 8:43 pm

    my problem ????? :/