vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB flash clock integration hack (https://vborg.vbsupport.ru/showthread.php?t=37888)

pattox2k1 04-25-2002 10:00 PM

vB flash clock integration hack
 
well this is my first release for a vBulletin hack and it is only v1.0 and it is completlety bug free. This hack should work on any vBulletin version from 2.03-2.25 as it only requires 2 file uploads and 2 template edits. All the instructions and needed files are included in the zip file and copyrights go to macromedia for the clock that is used.

*******
UPDATE
*******
1. Fixed some writing that was left behind from previous install.
2. Fixed some things that the install said were there but weren't.

Enjoy!

ceo_tfw 04-26-2002 08:37 AM

is there a DEMO for us to see, on my forum I use a java clock that is viewed on all pages that is run from a js file, :D

pattox2k1 04-26-2002 08:39 AM

ok a demo is at:

http://www.thugnature.net/forums/clock.php

Mark Hewitt 04-26-2002 08:40 AM

It just says board is closed.

Brad 04-26-2002 08:52 AM

Demo: http://www.extremechatforums.com/vbulletin/clock.php


i dont like the look, so i dident provide a link onforum for members, really only installed it for a demo for people

Harvey 04-26-2002 10:09 AM

@Anime-loo: your demo results in
Warning: ChDir: No such file or directory (errno 2) in /home/virtual/site2/fst/var/www/html/vbulletin/clock.php on line 5

[off-topic]
I'm interested in the hack for "Unanswered Threads". Where can I find it?
[/off-topic]

Blade3 04-26-2002 10:15 AM

It's look NICE ;) !

I try it, but I have few question ?
For another Clock presentation, graphique, I'm suppose to make another Clock or you have a site to search a good swf clock ?

P.S.: Sorry my english it's not very good, I'm a french guy !

Thanks for your answer !
:alien:

Brad 04-26-2002 10:45 AM

Quote:

Originally posted by Harvey
@Anime-loo: your demo results in
Warning: ChDir: No such file or directory (errno 2) in /home/virtual/site2/fst/var/www/html/vbulletin/clock.php on line 5

[off-topic]
I'm interested in the hack for "Unanswered Threads". Where can I find it?
[/off-topic]

i know about the warning, not really worried about it, if you set the hack up right you wont get it, i did it in like a minute, fast and dirty.


as for that other hack, i think chen made it but im not sure, its here at org tho

Corbu 04-26-2002 11:26 AM

I'm sorry but...I can't see this clock on my forum !

Can we have a real screenshhoot please because i'm seraching on this web site ...

Brad 04-26-2002 11:33 AM

heh wat i get for posting a demo

Guest Unknown Location: /vbulletin/clock.php? 07:22 AM 212.138.47.15 Guest Unknown Location: /vbulletin/clock.php? 07:26 AM
Guest Unknown Location: /vbulletin/clock.php? 07:27 AM
Guest eXtreme Chat Forums Main Index 07:25 AM
Guest Unknown Location: /vbulletin/clock.php? 07:21 AM
Guest Unknown Location: /vbulletin/clock.php? 07:27 AM
Guest Unknown Location: /vbulletin/clock.php? 07:28 AM

Floris 04-26-2002 09:57 PM

It takes ages to load (demo site)
And how do you know it is 100% bug free (rofl)
Hey Anime-loo, I just noticed you installed my statements system hack :P cool! Looks great on your board dude.

BigJohnson 04-26-2002 10:14 PM

nice hack

pattox2k1 04-26-2002 10:36 PM

i know it is bug free cause i have tested it........and it works........and as for the error

Quote:

@Anime-loo: your demo results in
Warning: ChDir: No such file or directory (errno 2) in /home/virtual/site2/fst/var/www/html/vbulletin/clock.php on line 5
you must have done something wrong or your server musn't like the script because i have no errors with it.........but ill work on it and find out why......

BigJohnson 04-26-2002 11:30 PM

can u make it so it displays on front page and resize it, that would be great, im just making suggestion thanx

DWZ 04-27-2002 12:00 AM

Quote:

Originally posted by xiphoid
It takes ages to load (demo site)
yeah, i know, i gave up...

still don't know what this hack does... lol

BigJohnson 04-27-2002 12:26 AM

i waited it took me about 20-30 min but it just a big clock on a page that displays the time and the clock hands move, but overall its a nice hack, just needs the timing moved up and maybe on the front page with some resizing, nice hack thanx

JulianD 04-27-2002 02:25 AM

I'm going to download it and try it with my local board.

pattox2k1 04-27-2002 03:23 AM

Quote:

can u make it so it displays on front page and resize it, that would be great, im just making suggestion thanx
to do this in the install file where it says:

Quote:

************************************************** *****
1. Create a called template 'clock_swf' and paste the following as the content:
************************************************** *****


<OBJECT width=(desired width)(450 is good) height=(desired height)(300 is good)><PARAM NAME="Sitename Forums Flash Clock" VALUE="http://www.youraddress.com/forums/Clock.swf">
<embed src="http://www.youraddress.com/forums/Clock.swf" width="(desired width)(450 is good)"
height="(desired height)(300 is good)"></embed></OBJECT>

************************************************** *****
just put the following code in the forumhome template:

Quote:

<OBJECT width=(desired width)(450 is good) height=(desired height)(300 is good)><PARAM NAME="Sitename Forums Flash Clock" VALUE="http://www.youraddress.com/forums/Clock.swf">
<embed src="http://www.youraddress.com/forums/Clock.swf" width="(desired width)(450 is good)"
height="(desired height)(300 is good)"></embed></OBJECT>
you just gotta edit the link to the SWF file and change the sizes :)

BigJohnson 04-27-2002 01:22 PM

thanx

JTMON 04-27-2002 02:16 PM

awesome hack. We need more Flash/vbulletin hacks. It's great because you can scale the flash usually with no unwanted problems.

pattox2k1 04-29-2002 07:20 AM

ok ill take care of that then ;) ill make some more flash integration hacks :D my next idea is a flash jukebox.......i jus gotta edit the songs ;)

Snake~eyes 06-09-2002 05:23 AM

I wanna see a demo...
all the links were dead

pattox2k1 06-09-2002 06:02 AM

ok then.......go to:

http://www.thugnature.net/forums/clock.php

firewars 06-09-2002 06:43 AM

That gives me an empty page with the HTML code:

<!-- BEGIN TEMPLATE: clock -->

<!-- END TEMPLATE: clock -->

..I'm gonna upload the flash itself to see what it is like then ;)

firewars 06-09-2002 06:46 AM

Here we go.
This is what the clock looks like itself:

firewars 06-09-2002 06:59 AM

Code improvements making the installation easier:

I have changed the code a bit making the installation easier (you don't have to change that many values, you still can, of course).


clock_swf template

I changed:

PHP Code:

<OBJECT width=(desired width)(450 is goodheight=(desired height)(300 is good)><PARAM NAME="Sitename Forums Flash Clock" VALUE="http://www.youraddress.com/forums/Clock.swf">
            <
embed src="http://www.youraddress.com/forums/Clock.swf" width="(desired width)(450 is good)"             
height="(desired height)(300 is good)"></embed></OBJECT

into

PHP Code:

<OBJECT width=450 height=300><PARAM NAME="$bbtitle Flash Clock" VALUE="$bburl/Clock.swf">
            <
embed src="$bburl/Clock.swf" width="450"          
height="300"></embed></OBJECT

and thus making the script automatically know the URL to the board.

Here it is installed and not fitting my forums style nor being centered.
Nice hack, though.


All times are GMT. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01481 seconds
  • Memory Usage 1,773KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete