PDA

View Full Version : Mini Mods - vB Screensaver


Coroner
07-25-2008, 10:00 PM
Maybe unusefull ... but funny.

What does it do.
This Mod will check the Users inactivity and after ... Seconds a Screensaver will start.
To retrun to the previews Page, simply click into the Screensaver Window.

Options:
After install, simply set the Userrights in each Usergroup to allow the Screensaver (Guests won't work - see Note).
Then under "vbulletin Options" serach for the Screensaver and set it to ON.
(I used 300 Seconds and the Standard Session-Timeout is 900).

Tested:
Tested under IE, Opera, Mozilla3 and Safari. I think WIO (Who is Online) doesn't work with the Standard Setting and what happend with a PopUP ??? Try it - don't know.

History:
v1.2
Tested and fixed the "Guest" Bug.
Better Location gets (*sorry* - what should I say ?)

v1.1
Added a "scriptchecker". You can now disable the Screensaver on some scripts.

v1.0
Works stable

Note:
I didn't test Guests, so I disabled them into the Plugin.
If you want to change it, simply modify the Product.
Search for:
if (($permissions['screenspermissions'] & $vbulletin->bf_ugp_screenspermissions['canusescreensaver']) AND $vbulletin->userinfo['userid'] AND $vbulletin->options['screensaver_onoff'] AND $screens_go)
And change into:
if (($permissions['screenspermissions'] & $vbulletin->bf_ugp_screenspermissions['canusescreensaver']) AND $vbulletin->options['screensaver_onoff'] AND $screens_go)


Screensaver and Product:
There are only 2 Templates. The 1st one extends the Headinclude. And the 2nd is the Screensaver. I'll wrote a little Javascript to set a TABLE on the whole Screen (1st I get the Width and Height of the Screen). The actually Time will shown in the Window on random Places. So, feel free to modify the Template as you like.

P.S. deutschen Support gibt es auch bei your-vb

TimberFloorAu
07-26-2008, 04:21 AM
LOL bloody funny , for a NSFW screensaver for members using forum at work, and a bloody big screensaver appears !

Good work

dreads
07-26-2008, 04:31 AM
lol i must see this :D

Q-v-n-s-Q
07-26-2008, 04:31 AM
nice, thanks

tekram
07-26-2008, 04:58 AM
Not working for me on vb 3.7.1

Coroner
07-26-2008, 05:07 AM
Do you set the Userrights and the Screensaver to ON ?
Is you Screensaver-time lower than your Session-Timeout ?
I'am using it in a vB 3.7.2 and also in vB 3.7.1 - no Problems.

TheInsaneManiac
07-26-2008, 05:52 AM
Lol, pretty cool. I like it, but not enough to keep it installed as some users may be like, what the heck?

transparent
07-26-2008, 06:02 AM
How about a demo page? I don't wanna install it on my live board until I see what It looks like.

Thank you! Very creative idea =)

ShawneyJ
07-26-2008, 06:26 AM
wtf lol this sounds cool......DEMO?? ;)

TheInsaneManiac
07-26-2008, 06:47 AM
How about a demo page? I don't wanna install it on my live board until I see what It looks like.

Thank you! Very creative idea =)
It's just a black page where the time displays and changes position on the page every couple of seconds. Then if you click anywhere on the page the screensaver disappears.

Allan
07-26-2008, 07:09 AM
Demo or screen please :)

Coroner
07-26-2008, 08:33 AM
See Posting above ! But ... I'm on Work. I will take a Picture of the Screensaver later to show you a "blank" page with the time *lol*

Coroner
07-26-2008, 11:01 AM
Demo *lol*
but ok ... here's the picture

EhsanAhmad
07-26-2008, 12:59 PM
Demo would be nice ?

rooban12
07-26-2008, 01:49 PM
can you post a demo link please

Endurer
07-26-2008, 03:55 PM
Very interesting, thanks for it.

Coroner
07-26-2008, 04:36 PM
can you post a demo link please

Sorry, I disabled Guests. When I give you a link - nothing happend. Have you seen my picture ? That's the Screensaver in action.

blind-eddie
07-26-2008, 05:46 PM
I see no setting in usergroups to set permission's.

Coroner
07-26-2008, 05:58 PM
did you upload the bitfields ?

blind-eddie
07-26-2008, 06:07 PM
Yes, sorry. I found it in usergroups. I did install, but then uninstalled.
Nice idea, I will tag it to see development's. Thank you.

GaiLoan
07-26-2008, 10:56 PM
yeah demo as a link plz ?

PoetJA-1975
07-27-2008, 06:00 AM
What would be kewl if you could edit the text that shows or even add a preselected image to show instead of just a black screen.

You could then put a big DONATE button to show as the screen saver LOL

Jacquii.

ps - Kewl idea = Thanx for the sharing.

WarLion
07-27-2008, 06:23 AM
What would be kewl if you could edit the text that shows or even add a preselected image to show instead of just a black screen.
.

thats exactly that i was thinking i hope to put a image that will make to download and installing i will follow this mod congrats

Coroner
07-27-2008, 06:45 AM
Need an Image instead of the time ? So, were's the prob ?
Simply modify the template "screensaver".

You can try this - only an example:
Replace the Template "screensaver" with this content
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
$headinclude
<title>$vbphrase[screensaver_title]</title>
</head>
<body>

<script type="text/javascript">
<!--
var myWidth = 0;
var myHeight = 0;
if (typeof (window.innerWidth) == 'number')
{
myWidth = window.innerWidth;
myHeight = window.innerHeight;
}
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
{
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
}
else if (document.body && (document.body.clientWidth || document.body.clientHeight))
{
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
// -->
</script>

<table onclick="ScreenieBack();" cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr valign="middle">
<script type="text/javascript">
<!--
document.write ("<td style=\"width:100%; height:" + myHeight + "px\">");
// -->
</script>
<center><a href="to_my_donation.php"><img src="myimage.gif" border="0" /></a></center>
</td>
</tr>
</table>

<script type="text/javascript">
<!--
var scount = 0;
var screens_url = '$screens_url';

function ScreenieBack ()
{
window.location.href = screens_url;
}
// -->
</script>

</body>
</html>

Regards
Coroner

WarLion
07-27-2008, 07:23 AM
thats what i was talking about
thanks Coroner congrats
download and install

PoetJA-1975
07-27-2008, 08:27 AM
Aha! I haven't downloaded yet to peek at the code :P
Looks interesting though - Thanx again for the share.

Jacquii.

basilrath
07-27-2008, 08:38 AM
lol ......................... novelty value is quite high and yes not a bad thing to keep the 3 'Ms' (member mouse moving)

Andyrew
07-27-2008, 09:41 AM
I just get a blank white screen. :confused:

Coroner
07-27-2008, 10:06 AM
U sure, that your template is correct installed ?

You can always test the screensaver when you add
?scs=1 or &scs=1 at your browsers forums link.

Andyrew
07-27-2008, 10:18 AM
U sure, that your template is correct installed ?

You can always test the screensaver when you add
?scs=1 or &scs=1 at your browsers forums link.

When the screensaver starts the domain turns to /forumsindex.php?scs=1
If i delete the word forums it works. :confused:

Coroner
07-27-2008, 10:22 AM
ummm, I did not add "forums" :confused:
maybe, the REQUEST_URI isn't correct.

Andyrew
07-27-2008, 10:53 AM
ummm, I did not add "forums" :confused:
maybe, the REQUEST_URI isn't correct.

My domain is .co.uk/forums/index.php

Maybe i have another hack thats causing the problem to keep adding "forums" just before index.php. :confused:

Coroner
07-27-2008, 11:54 AM
I'll check this and let u know.

l3it3r
07-27-2008, 12:43 PM
Anyway you can load another page in the screensaver? I mean, when it goes into 'screen saver' can the vaispy 'live posts' page appear? Something like that?

Coroner
07-27-2008, 01:40 PM
My domain is .co.uk/forums/index.php

Maybe i have another hack thats causing the problem to keep adding "forums" just before index.php. :confused:

Nope. It was bug and I hope, that it's fixed. See the Demo-Link (only created for Screensaver)

Coroner
07-27-2008, 01:43 PM
Anyway you can load another page in the screensaver? I mean, when it goes into 'screen saver' can the vaispy 'live posts' page appear? Something like that?

You can do anything you like. Take a look into the Product. You will find $screens_url and $screens_add.
$screens_add could be: ?scs=1 or &scs=1, so there's no need to change.

If you set $screens_url to: myhack.php&scs=1 it will jump into it.

Regards

basilrath
07-27-2008, 04:45 PM
Unless its been mentioned

Its probably worth saying if your using Vbadvanced and have modules integrated into your home or forum page the "screensaver" will only work between the modules and not a full home or forum page as its not integrated with vba.

Unless someone has changed the layout etc.........

Coroner
07-27-2008, 05:11 PM
I've got vBCMS not vBAdvanced and it works.

Animecraving
07-27-2008, 05:57 PM
hm.. can you add pictures as a background?

pspmaster93
07-27-2008, 09:33 PM
make it so you can change the screensaver to like different background colors and designs and shi* so its like a real screensaver and you can choose from different styles and it actually looks cool rather than a grey screen lol

maniacop
07-28-2008, 02:36 AM
make it so you can change the screensaver to like different background colors and designs and shi* so its like a real screensaver and you can choose from different styles and it actually looks cool rather than a grey screen lol

This is a great idea!
Imagine putting rotating pictures "Logos" of your sponsors!

That would be awesome!

Brandon Sheley
07-28-2008, 02:46 AM
pretty cool hack, I don't think I'll add it, but it's an idea we hadn't seen before :D

sockwater
08-05-2008, 10:50 PM
Another idea would be to display the time within a vBulletin class="tborder" table, so that it keeps the look & feel of the forums, along with the message "move your mouse or click to return to the forums". :)