PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
dino
New Member
New Member


Joined: Sep 01, 2005
Posts: 9

PostPosted: Sun Aug 03, 2008 6:30 am Reply with quote Back to top

I have an old version of phpnuke: 6.9.
I have served only 2 or 3 modules in html.
After a long search I opted for GT_Nextgens: installing everything ok.
"But I have a problem: modules Monitor does not count more visits to the modules in html (example: Encyclopedia.html) Crying or Very sad Crying or Very sad Crying or Very sad
I have checked the code, but I can not make the change.
Help.

Monitor.php Code be amended:

Code:
//Analiza la URL para saber si es un Modulo o otro tipo de pagina
function analiURL($url){
   if ($url == "/")  $pagina = "Home";
   else if (ereg ("index.php", $url)) $pagina = "Home";
   else if (ereg ("modules.php", $url)) $pagina = analiMod($url);
....
return $pagina;
}

function analiMod($url){
   $modulo = stristr ($url, 'name=');
   $modulo = substr ($modulo, 5);
   $tok = strtok ($modulo,"&");
   $modulo = $tok;
   if ($modulo == ""){
       $modulo = "???";
   }
return $modulo;
}


How can I change these codes?
Someone can help me?
Thank you very much.
Dino.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7452
Location: Arizona

PostPosted: Sun Aug 03, 2008 9:07 am Reply with quote Back to top

Dino, I am helping you already over my site. Why don't we continue the discussion there. Thanks.
View user's profile Send private message Visit poster's website
dino
New Member
New Member


Joined: Sep 01, 2005
Posts: 9

PostPosted: Sun Aug 10, 2008 11:42 am Reply with quote Back to top

Update:
Monitor is a module of statistics similar to MS-Analysis.
For MS-Analysis is used "GT-NExtGEn Conversion Pack for MS_Analysis 2.0" (GT-NExtGEn_CP_MS_Analysis_20); readme is present in this change:

Code:
#
#-----[ OPEN ]------------------------------------------
#
  /modules/MS_Analysis/mstrack.php
#
#-----[ FIND ]------------------------------------------
#

// Get Module Name
$MSAdata[module] = substr( stristr( $_SERVER['REQUEST_URI'], 'name='), 5 );
$tok = strtok( $MSAdata[module], "&" );
$MSAdata[module] = trim( eregi_replace( "_", " ", $tok ) );
$MSAarray = explode( "%", $MSAdata[module] );
$MSAdata[module] = $MSAarray[ 0 ];

#
#-----[ REPLACE WITH ]----------------------------------
#

//Start GT-NExtGEn mod
// Get Module Name
$MSAdata[module] = substr( stristr( $_SERVER['REQUEST_URI'], 'name='), 5 );
$tok = strtok( $MSAdata[module], "&" );
$MSAdata[module] = trim( eregi_replace( "_", " ", $tok ) );
if ( $MSAdata[module] == "" ) {
           $istapped = substr( stristr( $_SERVER['REQUEST_URI'], '.'), 1 );
           if ( $istapped == "html" OR $istapped == "php" ) {
           $MSAdata[module] = substr( stristr( $_SERVER['REQUEST_URI'], '/'), 1 );
           }
       }
$MSAarray = explode( "%", $MSAdata[module] );
$MSAdata[module] = $MSAarray[ 0 ];
//End GT-NExtGEn mod


Unfortunately montegoscripts on the issue was not resolved.

I think that such an change should also be made in the file includes / monitor.php code written in previous posts. I have made many tests but there are not successful.

Embarassed Hoping you can help me .....
Hello, Thank you very much. Dino.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7452
Location: Arizona

PostPosted: Mon Aug 11, 2008 6:36 am Reply with quote Back to top

dino, my apologies on not being able to help you at the moment as this would require more time than I have available. I have never used MS Analysis, so it would take quite a bit of research. I have not forgotten you...
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum