vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [vba_cmps] Random Clock Module (https://vborg.vbsupport.ru/showthread.php?t=112153)

puertoblack2003 04-08-2006 12:57 AM

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..:D

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:cool: 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

Moya 04-08-2006 06:34 AM

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

puertoblack2003 04-08-2006 08:36 AM

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 :D

Mastar 04-08-2006 11:01 AM

Is this possible for one who don't have cmps

Ziki 04-09-2006 02:09 PM

@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?

Ziki 04-11-2006 05:49 PM

OK I know what the prob is.....edit the forumpath AFTER importing the MODULE file or else it will show that error

puertoblack2003 04-11-2006 09:57 PM

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...:D 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..:confused:

and that did it for me.

Ziki 04-12-2006 09:23 AM

Quote:

Originally Posted by puertoblack2003
i did it the old way hard code which i'm not much of a coder...:D 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..:confused:

and that did it for me.

I have no idea what you are saying:D

Jesakos 03-01-2007 09:08 PM

works on 3.6.5 ?

wengi 04-02-2007 08:19 PM

Can this be fixed to work on 3.6.5 !!!

Regards
Wengi


All times are GMT. The time now is 10: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.01786 seconds
  • Memory Usage 1,755KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete