Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
dino
New Member
New Member



Joined: Sep 01, 2005
Posts: 9

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

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: 9457
Location: Arizona

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

Dino, I am helping you already over my site. Why don't we continue the discussion there. Thanks.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
dino







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

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.
 
montego







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

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...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

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 ©