Random tease

This is the place for general discussions on fetishes, sexuality and anything else. What's on your mind right now?
Post Reply
User avatar
DailyTwo
Explorer
Explorer
Posts: 31
Joined: Fri Nov 15, 2013 12:10 am
Gender: Male
Sexual Orientation: Straight

Random tease

Post by DailyTwo »

Hey guys and gals,

I often thought about a random tease button or script to include either in a session or an online tease or even a forum tease.

So I just got an idea how to solve this, as there isnt a random function on milovana itself :)

I just did a short php-code with test a maximum of 50000 teases. Right now there are almost 30000 teases so the script should work for some time.

All you have to do is either copy the script onto your local webserver or upload it somewhere, where you can run a php script.
Spoiler: show

Code: Select all

<?php$num_teases = 50000;$searchString1 = 'Sorry. The requested tease could not be displayed.';$searchString2 = 'The requested tease could not be found in our database';$searchString3 = 'The requested tease has been removed';$hit = false;while($hit == false){    $test = rand(1,$num_teases);    $content = file_get_contents("http://www.milovana.com/webteases/showtease.php?id=".$test);    if( !strpos( $content, $searchString1 ) && !strpos( $content, $searchString2 ) && !strpos( $content, $searchString3 ) ){        $hit = true;    }}header('Location: http://www.milovana.com/webteases/showtease.php?id='. $test); ?>
This script is still beta and it took me like 15 mins to write. So please tell me if you find any bugs.
I'd also like the milovana team to add this script. Just replace the 50000 with you current maximum of teases.
Ghingis
Explorer At Heart
Explorer At Heart
Posts: 141
Joined: Mon Oct 24, 2011 4:55 pm

Re: Random tease

Post by Ghingis »

Thanks for the script.

But actualy there's a way (or sort of) to get a random tease.
(You can even use the filters.)

http://www.milovana.com/webteases/#pp=1&sort=random
Chico
Explorer At Heart
Explorer At Heart
Posts: 311
Joined: Tue May 08, 2007 11:25 am
Location: UK Manchester

Re: Random tease

Post by Chico »

............or on the webtease page where the random tease appears, just hit the "refresh" button :-D
User avatar
DailyTwo
Explorer
Explorer
Posts: 31
Joined: Fri Nov 15, 2013 12:10 am
Gender: Male
Sexual Orientation: Straight

Re: Random tease

Post by DailyTwo »

thx Ghingis

didnt know about that option :D

Only difference with my script is that the random tease is immediately opened
User avatar
Trusfrated
Explorer At Heart
Explorer At Heart
Posts: 450
Joined: Mon Nov 08, 2010 8:41 am
Gender: Male

Re: Random tease

Post by Trusfrated »

...and here is a way to show a random tease that is marked as one of your Favorites!

http://www.milovana.com/webteases/#favs ... ort=random

:wave:
ImageImage
tkct78
Explorer
Explorer
Posts: 36
Joined: Sat Jun 26, 2021 12:47 pm

Re: Random tease

Post by tkct78 »

This is an old thread that's worth revisiting...

Sadly these links don't actually generate the random tease like they used to. Does anyone know how to fix this?
Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests