Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
zacklk
Regular
Regular


Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat Apr 24, 2010 12:37 am Reply with quote

I had video stream in my php-nuke 8.0. but when i added da same module to raven nuke layout tables going crazy. i mean its not where its supposed to be. if someone can help me to fix this i really appreciate it. tnx in advance. i only need the fix in watch.php, random videos thumbs.


here is the link to module.
Only registered users can see links on this board! Get registered or login!

please help.
 
View user's profile Send private message
hicuxunicorniobestbuildpc
Life Cycles Becoming CPU Cycles


Joined: Aug 13, 2009
Posts: 967
Location: Netherland

PostPosted: Sat Apr 24, 2010 7:54 am Reply with quote

Hi zacklk

Of course it is going to be crazy. This module still use old abstraction. RavenNuke is using the new abstraction $db and other new things


Code:
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {

   die ("You can't access this file directly...");
}
global $dbi, $user, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;


I just open one file from the plugin folder.

Change to

Code:
if ( !defined('MODULE_FILE') )

{
    die('You can\'t access this file directly...');
}

global $db, $user, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4;


If you want I can make it compatible with RavenNuke but you need to give me time. I need to change some things so you dont get errors.

Source
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message Visit poster's website
zacklk
PostPosted: Sat Apr 24, 2010 8:25 am Reply with quote

ok thank you. take your time. this module is very impotent for me. coz there is lot of hits for this. thanks again for helping me out.
 
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Apr 24, 2010 8:32 am Reply with quote

unicornio wrote:
Hi zacklk

Of course it is going to be crazy. This module still use old abstraction. RavenNuke is using the new abstraction $db and other new things



It does not use the old db layer.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
hicuxunicorniobestbuildpc
PostPosted: Sat Apr 24, 2010 8:53 am Reply with quote

Am I missing something here Palbin?

Isnt this old abstraction?

Instead of

global $dbi

Should be

global $db
 
Palbin
PostPosted: Sat Apr 24, 2010 9:00 am Reply with quote

I didn't see that globalization, but all the db calls use $db->. I think all the issues are CSS related.
 
hicuxunicorniobestbuildpc
PostPosted: Sat Apr 24, 2010 9:23 am Reply with quote

In the plugin folder there are some files which have that globalizacion.
 
zacklk
PostPosted: Fri May 07, 2010 2:56 am Reply with quote

so is there no way to fix this issue?
 
maribelajar
New Member
New Member


Joined: Oct 17, 2007
Posts: 2

PostPosted: Wed May 12, 2010 12:56 pm Reply with quote

Hi,

You can try this
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©