like you already know, a lot of us are using CyberAliens guest sessions MOD. I wanted to try out a mod that requires to alter just a bit the guest sessions MOD. [BETA]Search Bot Indexing MOD v1.3.0.
well actually since the MOD already takes care of SID's, I asked if it could still work if I kept the Guest sessions MOD. turns out I would need to at least modify a bit of CyberAliens code.
The mod author came up with this:
- Code: Select all
#-----[ OPEN ]------------------------------------------
#
includes/sessions.php
#
#-----[ FIND ]------------------------------------------
#
//
// Create or update the session
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$robot = ( ( defined('IS_ROBOT') ) ? IS_ROBOT : 0 );
#
#-----[ FIND ]------------------------------------------
#
$sql_ip = $user_id == ANONYMOUS ? " AND session_ip = '$user_ip'" : '';
$sql = "UPDATE " . SESSIONS_TABLE . "
SET session_ip = '$user_ip', session_start = $current_time, session_time = $current_time, session_page =
$page_id, session_logged_in = $login, session_admin = $admin
WHERE session_id = '" . $session_id . "' $sql_ip
AND session_user_id = '$user_id'";
#
#-----[ IN-LINE FIND ]------------------------------------------
#
session_page = $page_id, session_logged_in = $login
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, is_robot = '$robot'
#
#-----[ FIND ]------------------------------------------
#
$sql = "INSERT INTO " . SESSIONS_TABLE . "
(session_id, session_user_id, session_start, session_time, session_ip, session_page,
session_logged_in, session_admin)
#
#-----[ IN-LINE FIND ]------------------------------------------
#
session_page, session_logged_in
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, is_robot
#
#-----[ FIND ]------------------------------------------
#
VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login, $admin)";
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'$user_ip', $page_id, $login
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, '$robot'
#
#-----[ FIND ]------------------------------------------
#
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
#
#-----[ REPLACE WITH ]------------------------------------------
#
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) && !IS_ROBOT )
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
#
#EOM
From this post over at phpbb.com
I'm wondering what your feedback on this would be? well my question would be not so much about the guest sessions MOD, but would it have any negative affect on the SEO advanced MOD? i'm thinking as long as SID's are taken care of, then its "ok for the SEO MOD...
Thanks.

English |
French


