The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

random number and number of post

View previous topic View next topic Go down

random number and number of post

Post by Guest on 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

Guest
Guest


Back to top Go down

Re: random number and number of post

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

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

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

Re: random number and number of post

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

help ??

Guest
Guest


Back to top Go down

Re: random number and number of post

Post by Guest on 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])

Guest
Guest


Back to top Go down

Re: random number and number of post

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

whats the purpose?
i don't understand?

kirk
Forumaster

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

Back to top Go down

Re: random number and number of post

Post by Guest on 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.

Guest
Guest


Back to top Go down

Re: random number and number of post

Post by Lillia on 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

Lillia
Forumember

Female Posts : 132
Reputation : 3

Back to top Go down

Re: random number and number of post

Post by LGforum on 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

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: random number and number of post

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

must login to see code.


KateyRose thanks.Smile

Guest
Guest


Back to top Go down

Re: random number and number of post

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

Guests can see it.

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: random number and number of post

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

the link says "Log In to see this code"

Guest
Guest


Back to top Go down

Re: random number and number of post

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

help??

Guest
Guest


Back to top Go down

Re: random number and number of post

Post by Poser on 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.

Poser
Forum Reviewer
Forum Reviewer

Male Posts : 391
Reputation : 40
Language : English and Filipino
Location : Whale Island

http://www.bowtieblogs.forumotion.com

Back to top Go down

Re: random number and number of post

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

The code can be viewed now.


Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: random number and number of post

Post by LGforum on 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.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: random number and number of post

Post by kirk on 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.

kirk
Forumaster

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

Back to top Go down

Re: random number and number of post

Post by LGforum on 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.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: random number and number of post

Post by Sanket on 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

Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: random number and number of post

Post by kirk on 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.

kirk
Forumaster

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

Back to top Go down

Re: random number and number of post

Post by LGforum on 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?

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: random number and number of post

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

ok thumright

kirk
Forumaster

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

Back to top Go down

Re: random number and number of post

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

my problem ????? :/

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top


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