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.

random number and number of post

+2
kirk
Base
6 posters

Go down

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

Post by Guest November 15th 2011, 22:04

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, 14:48; edited 2 times in total
avatar
Guest
Guest


Back to top Go down

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

Post by Base November 15th 2011, 23:03

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
Base
Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

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

Post by Guest November 16th 2011, 14:54

help ??
avatar
Guest
Guest


Back to top Go down

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

Post by Guest November 16th 2011, 16:56

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])
avatar
Guest
Guest


Back to top Go down

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

Post by kirk November 16th 2011, 17:23

whats the purpose?
i don't understand?
kirk
kirk
Forumaster

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

Back to top Go down

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

Post by Guest November 16th 2011, 20:11

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.
avatar
Guest
Guest


Back to top Go down

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

Post by Lillia November 16th 2011, 22:17

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, 22:18; edited 1 time in total
Lillia
Lillia
Forumember

Female Posts : 132
Reputation : 3

Back to top Go down

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

Post by LGforum November 17th 2011, 00:54

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


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

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

Back to top Go down

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

Post by Guest November 17th 2011, 13:47

must login to see code.


KateyRose thanks.Smile
avatar
Guest
Guest


Back to top Go down

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

Post by Sanket November 17th 2011, 18:21

Guests can see it.
Sanket
Sanket
ForumGuru

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

Back to top Go down

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

Post by Guest November 17th 2011, 18:26

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


Back to top Go down

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

Post by Guest November 17th 2011, 23:13

help??
avatar
Guest
Guest


Back to top Go down

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

Post by Poser November 18th 2011, 04:01

^

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.
Poser
Poser
Helper
Helper

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

http://maristpress.forumotion.com/

Back to top Go down

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

Post by Sanket November 18th 2011, 10:08

The code can be viewed now.

Sanket
Sanket
ForumGuru

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

Back to top Go down

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

Post by LGforum November 18th 2011, 10:32

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.
LGforum
LGforum
Hyperactive

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

Back to top Go down

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

Post by kirk November 18th 2011, 15:36

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.
kirk
kirk
Forumaster

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

Back to top Go down

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

Post by LGforum November 18th 2011, 16:06

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

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

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

Back to top Go down

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

Post by Sanket November 18th 2011, 17:20

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
Sanket
Sanket
ForumGuru

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

Back to top Go down

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

Post by kirk November 18th 2011, 19:19

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.
kirk
kirk
Forumaster

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

Back to top Go down

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

Post by LGforum November 18th 2011, 20:16

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?
LGforum
LGforum
Hyperactive

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

Back to top Go down

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

Post by kirk November 18th 2011, 20:48

ok thumright
kirk
kirk
Forumaster

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

Back to top Go down

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

Post by Guest November 18th 2011, 21:43

my problem ????? :/
avatar
Guest
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum