Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[vba_cmps] Random Clock Module Details »»
[vba_cmps] Random Clock Module
Version: 1.00, by Moya Moya is offline
Developer Last Online: Aug 2009 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-03-2006 Last Update: Never Installs: 7
Uses Plugins
Additional Files  
No support by the author.

Currently, I have 4 different clocks in swf format and are called randomly on adv cmps. It comes in modules format and requires a little editing. Do you want this mod?

1 Clock is in regular rotation and regular time format
1 Clock is in reverse rotation and regular time format
1 Clock is in binary format
1 Clock is in base 10 format

Here is the instruction:

1) Create a folder under your forum directory called : Clocks

2) Upload those flash files into this new folder

3) Open currenttime.module with notepad

-> look for

PHP Code:
$path 'c:/inetpub/wwww/foldername/forum/' $foldername
and change c:/inetpub/wwww/foldername/forum to your physical forum location. Keep the ending slash

Save and import your module


NOTE: If you have more flash clocks, just upload them under the clocks directory. They will be pulled in automatically.

Have fun

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-08-2006, 01:57 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i wanted this hack that i went back to his old one here:
Code:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=71256
Even though i'm not a coder but a curious person to get things done and this happen to be easy to me so far:banana:

ok this is what i did to help everyone out and hope you can understand my chicken scratch as i have no sleep yet..

i open his module files and did everything manually created the php files and template seperated like the old days..

PHP Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS 2.1.0                                                   ||
// || Random Clock Module By Stitch / Moya @ Vietsaga.com                      ||
// ++ ========================================================================++
  //directory here (relative to script)
$foldername="clocks";
$path 'c:/inetpub/wwww/foldername/forum/' $foldername;
$urlswf=$vbulletin->options['bburl'] . '/' $foldername;
$clock_name='';
$i 0;
$swfDir opendir ($path);
    while ( 
$file readdir$swfDir ) )
    {    
        
//checks that file is an image
        
$file_type strrchr$file"." );
        
$is_clock eregi"swf",$file_type );
        
        if ( 
$file != '.' && $file != '..' && $is_clock )
        { 
$clocks[$i++] = $file; }
    }
closedir ($swfDir);

srand( (double) microtime()*1000000 );
$clock_name $urlswf '/' $clocks[rand0,sizeof$clocks ) -)];
//ends script if no swf found
if ( $i == )
{
    die();
}

//okie spit out the whole thang
eval('$home["$mods[modid]"][\'content\'] = "' fetch_template('adv_portal_clocks') . '";');

unset(
$clock_name);

  

?>
now after that as stated above name the template adv_portal_clocks

and follow his instructions

Code:
<tr>
<td class="alt2" align="center" width="100%">
<object width="150" height="150">
<param name="movie" value="$clock_name">
<embed src="$clock_name" width="150" height="150">
</embed>
</object>
</td>
</tr>
and import all .swf to forum directory in the clocks file that you were suppose to create and that's it also i had problem figuring out the path as i said not a coder for those that don't know i used
Code:
/home/username/mysite.com/
yours will probably be different so go admin control panel and under php info everything you will need will be there.

I'M NOT TAKING CREDIT FOR ANY HACK ,THIS IS TO HELP MEMBERS OUT WITH THE ISSUE WITH THE MODULE NOT UPLOADING CORRECTLY AND HAD TO REVERT BACK TO OLD HACKING METHOD....:bunny:


edited; you can check it out on my site http://www.puertotech.com
Reply With Quote
  #13  
Old 04-08-2006, 07:34 AM
Moya's Avatar
Moya Moya is offline
 
Join Date: May 2004
Posts: 356
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

puertoblack2003,

Thanks for taking time to do this for me. I couldn't get to work on this one due some issues at my site and work.

Thanks
Reply With Quote
  #14  
Old 04-08-2006, 09:36 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Moya
puertoblack2003,

Thanks for taking time to do this for me. I couldn't get to work on this one due some issues at my site and work.

Thanks

hey, no problem..lol i'm surprise it came out right
Reply With Quote
  #15  
Old 04-08-2006, 12:01 PM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this possible for one who don't have cmps
Reply With Quote
  #16  
Old 04-09-2006, 03:09 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Mastar
no it isn't
@hack maker

How should I install it then?IT says is not a valid MODULE file....how did you do it puertoblack2003?
Reply With Quote
  #17  
Old 04-11-2006, 06:49 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I know what the prob is.....edit the forumpath AFTER importing the MODULE file or else it will show that error
Reply With Quote
  #18  
Old 04-11-2006, 10:57 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZIKI-SET
@Mastar
no it isn't
@hack maker

How should I install it then?IT says is not a valid MODULE file....how did you do it puertoblack2003?
i did it the old way hard code which i'm not much of a coder... but ii open his module into text and compared it to the hack he had done on 3. version look up on post 10 or 11 and i guess try to read that chicken scratch..

and that did it for me.
Reply With Quote
  #19  
Old 04-12-2006, 10:23 AM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by puertoblack2003
i did it the old way hard code which i'm not much of a coder... but ii open his module into text and compared it to the hack he had done on 3. version look up on post 10 or 11 and i guess try to read that chicken scratch..

and that did it for me.
I have no idea what you are saying
Reply With Quote
  #20  
Old 03-01-2007, 09:08 PM
Jesakos's Avatar
Jesakos Jesakos is offline
 
Join Date: Nov 2005
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works on 3.6.5 ?
Reply With Quote
  #21  
Old 04-02-2007, 09:19 PM
wengi's Avatar
wengi wengi is offline
 
Join Date: Aug 2006
Location: Malta
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be fixed to work on 3.6.5 !!!

Regards
Wengi
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04534 seconds
  • Memory Usage 2,333KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete