random number and number of post
+2
kirk
Base
6 posters
Page 1 of 1
random number and number of post
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.
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 Wed Nov 16, 2011 12:48 pm; edited 2 times in total
Guest- Guest
Re: random number and number of post
![]() | Non-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 |
Re: random number and number of post
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])
Guest- Guest
Re: random number and number of post
whats the purpose?
i don't understand?
i don't understand?
kirk- Forumaster
-
Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: random number and number of post
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.
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.
Guest- Guest
Re: random number and number of post
You mean like this? (I don't exactly understand you.)
CODE:Result :
- Code:
[rand]50,100[/rand]
- Random number (50,100) : 53
CODE:Result:
- Code:
[rand]50[/rand]
- Random number (1,50) : 3
Last edited by KateyRose on Wed Nov 16, 2011 8:18 pm; edited 1 time in total
Lillia- Forumember
-
Posts : 132
Reputation : 3
Re: random number and number of post
If you still continue to indirectly advertise your forum, you will earn yourself a warning. 

Last edited by LGforum on Fri Nov 18, 2011 2:05 pm; edited 1 time in total
LGforum- Hyperactive
-
Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: random number and number of post
Guests can see it.
Sanket- ForumGuru
-
Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: random number and number of post
^
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.
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.
Re: random number and number of post
The code can be viewed now.
Sanket- ForumGuru
-
Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: random number and number of post
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 apologise, but the codes have now become members only recently.
LGforum- Hyperactive
-
Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: random number and number of post
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- Forumaster
-
Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: random number and number of post
Its been removed. And my tutorials from now on will be like that.
The thread itself is viewable but the code blocks are not.
The thread itself is viewable but the code blocks are not.
LGforum- Hyperactive
-
Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: random number and number of post
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 

Sanket- ForumGuru
-
Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: random number and number of post
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

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- Forumaster
-
Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: random number and number of post
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?
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- Hyperactive
-
Posts : 2265
Reputation : 264
Language : English
Location : UK
kirk- Forumaster
-
Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

» Random number generator limit
» How to make number of post ,Joined date,and many other data in the post bolded and in color?
» Random Post
» How to split the number of post when you post the message?
» Random post script
» How to make number of post ,Joined date,and many other data in the post bolded and in color?
» Random Post
» How to split the number of post when you post the message?
» Random post script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum