News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Googlebot & Spiders

Started by Omar Bazavilvazo, June 06, 2005, 06:17:35 PM

Previous topic - Next topic

1MileCrash

that's all i ever pick up to. One msn spider. You cant expect an army of spiders all over your forums. Im sure it's normal
The only thing php can't do is tell you how much milk is left in the fridge.



Davilac

Fixed all my problems.

Nice mod I like it. I saw working for Googlebot and so... good  :D

If anyone's wants it in spanish just add this into its Modifications.spanish.php (at forum-url/Themes/default/languages/)

Quote// OB - Googlebot - Begin

// Strings dle índice del foro
$txt['ob_googlebot_modname'] = 'Googlebot & Robots';
$txt['ob_googlebot_spider'] = 'Robot';
$txt['ob_googlebot_spiders'] = 'Robots';
$txt['ob_googlebot_spiders_last_active'] = 'Robots activos en los últimos ' . $modSettings['lastActive'] . ' minutos';

// Opciones y configuración del foro
$txt['ob_googlebot_count_all_instances'] = 'Contar todas las instancias del mismo robot';
$txt['ob_googlebot_display_all_instances'] = 'Mostrar todas las instancias del mismo robot <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" debe de estar seleccionado)</div>';
$txt['ob_googlebot_display_agent'] = 'Mostrar agente al lado del nombre';
$txt['ob_googlebot_display_own_list'] = 'Mostar robots en su propia lista';
$txt['ob_googlebot_count_most_online'] = 'Contar en máximo de conectados"';

// Permisos
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'Ver Googlebot y Robots';

// OB - Googlebot - End

thanks!

Omar Bazavilvazo

#82
Quote from: robone on June 14, 2005, 12:09:06 PM
Must one use Owdy's mod?

All I am picking up is MSN spider at this stage, so I was wondering if I was missing something?
Is not really needed... (but is cool to have it also) I based my mod on his mod, to detect the spiders :P

Quote from: Naiden on June 14, 2005, 12:32:58 PM
If anyone's wants it in spanish just add this into its Modifications.spanish.php (at forum-url/Themes/default/languages/)
Gracias por la traduccion :)

ja ne!




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

WTFBA

#83
Quote from: Omar Bazavilvazo on June 13, 2005, 01:15:36 AM
check Modifications.english.php

there should have all needed strings...

The $languagedir and $themedir in the install.xml file are not pointing to the correct theme.   They only seem to point to the "default" theme and I am not using the default theme.   Any way to change this without modifying the install.xml file and re-uploading the zip file?

This will also help me with the problems I'm having with other modifications!

Omar Bazavilvazo

you will need to change the string by hand on the theme you are using.




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

WTFBA

#85
Thanks!!  Got it working! ;)

Omar Bazavilvazo

Uploaded version for 1.1 beta 3 :)

Enjoy!

ja ne!




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

1MileCrash

The only thing php can't do is tell you how much milk is left in the fridge.



[Unknown]

That's the name of Yahoo!'s crawler.

-[Unknown]

revgreed

#89
Hello,

I'm using SMF v1.0.4 running the default theme.  I just recently installed this mod, however, it appears there's a problem with the permissions.

Only administrators can see the following new "spiders" online:



And not only that, but the feature is only displayed when there is a spider on the forum (as shown in the picture above).  Meaning, when a spider is NOT on the forum the "Online Users" portion only displays "Guests" and "User". (as shown in the picture below).  And, again, this is only admins.



Plus, the following permissions options are not found under the "permissions" category in the admin section.  I noticed that these options should be available after reading this thread:



Also, I do have the options under "Edit Features and Options" such as:

Count all instances of same spider  
Display all instances of same spider
("Count all instances of same spider" must be selected)  
Display agent instead of name  
Display spiders in its own list
------------------------------------------------------------

Here's the code to the relevant parts of my ManagePermissions.php:



// Switch a board from local to global permissions or v.v.
function SwitchBoard()
{
global $db_prefix;

// Security above all.
checkSession('get');
validateSession();
$_GET['boardid'] = (int) $_GET['boardid'];

// Make sure the board exists and can be switched to $_GET['to'].
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE ID_BOARD = $_GET[boardid]
AND use_local_permissions = " . ($_GET['to'] == 'local' ? '0' : '1') . "
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) != 1)
{
if ($_GET['to'] == 'local')
PermissionIndex();
else
redirectexit('action=permissions');
return;
}
mysql_free_result($request);

// Copy the global permissions to the specific board.
if ($_GET['to'] == 'local')
{
$request = db_query("
SELECT ID_GROUP, permission, addDeny
FROM {$db_prefix}board_permissions
WHERE ID_BOARD = 0", __FILE__, __LINE__);
$insertRows = array();
while ($row = mysql_fetch_assoc($request))
$insertRows[] = "($row[ID_GROUP], $_GET[boardid], '$row[permission]', $row[addDeny])";
mysql_free_result($request);

// Reset the current local permissions.
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);

if (!empty($insertRows))
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_GROUP, ID_BOARD, permission, addDeny)
VALUES " . implode(",
", $insertRows), __FILE__, __LINE__);
}

// Switch back to inherited permissions (delete all local permissions).
else
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);

// Update the board setting.
db_query("
UPDATE {$db_prefix}boards
SET use_local_permissions = " . ($_GET['to'] == 'local' ? '1' : '0') . "
WHERE ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);

if ($_GET['to'] == 'local')
PermissionIndex();
else
redirectexit('action=permissions');
}

function ModifyMembergroup()
{
global $db_prefix, $context, $txt;

$context['group']['id'] = (int) $_GET['id'];

loadAllPermissions();

if ($context['group']['id'] > 0)
{
$result = db_query("
SELECT groupName
FROM {$db_prefix}membergroups
WHERE ID_GROUP = {$context['group']['id']}
LIMIT 1", __FILE__, __LINE__);
list ($context['group']['name']) = mysql_fetch_row($result);
mysql_free_result($result);
}
elseif ($context['group']['id'] == -1)
$context['group']['name'] = &$txt['membergroups_guests'];
else
$context['group']['name'] = &$txt['membergroups_members'];

$context['board']['id'] = empty($_GET['boardid']) ? 0 : (int) $_GET['boardid'];
$context['local'] = !empty($_GET['boardid']);

if ($context['local'])
{
$request = db_query("
SELECT name
FROM {$db_prefix}boards
WHERE ID_BOARD = {$context['board']['id']}
AND use_local_permissions = 1", __FILE__, __LINE__);
// Either the board was not found or the permissions are set to global.
if (mysql_num_rows($request) == 0)
fatal_lang_error('smf232');
list ($context['board']['name']) = mysql_fetch_row($request);
mysql_free_result($request);
}

// Fetch the current permissions.
$permissions = array(
'membergroup' => array('allowed' => array(), 'denied' => array()),
'board' => array('allowed' => array(), 'denied' => array())
);
if ($context['group']['id'] != 3 && !$context['local'])
{
$result = db_query("
SELECT permission, addDeny
FROM {$db_prefix}permissions
WHERE ID_GROUP = $_GET[id]", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
$permissions['membergroup'][empty($row['addDeny']) ? 'denied' : 'allowed'][] = $row['permission'];
mysql_free_result($result);
$context['permissions']['membergroup']['show'] = true;
}
else
$context['permissions']['membergroup']['show'] = false;

// Fetch current board permissions.
$result = db_query("
SELECT permission, addDeny
FROM {$db_prefix}board_permissions
WHERE ID_GROUP = {$context['group']['id']}
AND ID_BOARD = {$context['board']['id']}", __FILE__, __LINE__);

while ($row = mysql_fetch_assoc($result))
$permissions['board'][empty($row['addDeny']) ? 'denied' : 'allowed'][] = $row['permission'];
mysql_free_result($result);
$context['permissions']['board']['show'] = true;

// Loop through each permission and set whether it's checked.
foreach ($context['permissions'] as $permissionType => $tmp)
{
foreach ($tmp['columns'] as $position => $permissionGroups)
{
foreach ($permissionGroups as $permissionGroup => $permissionArray)
{
foreach ($permissionArray['permissions'] as $perm)
{
// Create a shortcut for the current permission.
$curPerm = &$context['permissions'][$permissionType]['columns'][$position][$permissionGroup]['permissions'][$perm['id']];
if ($perm['has_own_any'])
{
$curPerm['any']['select'] = in_array($perm['id'] . '_any', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_any', $permissions[$permissionType]['denied']) ? 'denied' : 'off');
$curPerm['own']['select'] = in_array($perm['id'] . '_own', $permissions[$permissionType]['allowed']) ? 'on' : (in_array($perm['id'] . '_own', $permissions[$permissionType]['denied']) ? 'denied' : 'off');
}
else
$curPerm['select'] = in_array($perm['id'], $permissions[$permissionType]['denied']) ? 'denied' : (in_array($perm['id'], $permissions[$permissionType]['allowed']) ? 'on' : 'off');
}
}
}
}
$context['sub_template'] = 'modify_group';
$context['page_title'] = $txt['permissions_modify_group'];
}

function ModifyMembergroup2()
{
global $db_prefix;

checkSession();

$_GET['id'] = (int) $_GET['id'];
$_GET['boardid'] = (int) $_GET['boardid'];

$givePerms = array('membergroup' => array(), 'board' => array());

// Prepare all permissions that were set or denied for addition to the DB.
foreach ($_POST['perm'] as $perm_type => $perm_array)
foreach ($perm_array as $permission => $value)
if ($value == 'on' || $value == 'deny')
$givePerms[$perm_type][] = "$permission', " . ($value == 'on' ? '1' : '0');

// Insert the general permissions.
if ($_GET['id'] != 3 && empty($_GET['boardid']))
{
db_query("
DELETE FROM {$db_prefix}permissions
WHERE ID_GROUP = $_GET[id]", __FILE__, __LINE__);
if (!empty($givePerms['membergroup']))
db_query("
INSERT IGNORE INTO {$db_prefix}permissions
(ID_GROUP, permission, addDeny)
VALUES ($_GET[id], '" . implode("),
($_GET[id], '", $givePerms['membergroup']) . ")", __FILE__, __LINE__);
}

// Insert the boardpermissions.
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_GROUP = $_GET[id]
AND ID_BOARD = $_GET[boardid]", __FILE__, __LINE__);
if (!empty($givePerms['board']))
db_query("
INSERT IGNORE INTO {$db_prefix}board_permissions
(ID_GROUP, ID_BOARD, permission, addDeny)
VALUES ($_GET[id], $_GET[boardid], '" . implode("),
($_GET[id], $_GET[boardid], '", $givePerms['board']) . ")", __FILE__, __LINE__);

redirectexit('action=permissions;boardid=' . $_GET['boardid']);
}

// Set the permission level for a specific board, group, or group for a board.
function setPermissionLevel($level, $group, $board = 'null')
{
global $db_prefix;

// Levels by group... restrict, standard, moderator, maintenance.
$groupLevels = array(
'board' => array('inherit' => array()),
'group' => array('inherit' => array())
);
// Levels by board... standard, publish, free.
$boardLevels = array('inherit' => array());

// Restrictive - ie. guests.
$groupLevels['global']['restrict'] = array(
'search_posts',
'calendar_view',
'view_stats',
'who_view',
'profile_view_own',
'profile_identity_own',
);
$groupLevels['board']['restrict'] = array(
'poll_view',
'post_new',
'post_reply_own',
'post_reply_any',
'remove_own',
'modify_own',
'mark_any_notify',
'mark_notify',
'report_any',
'send_topic',
);

// Standard - ie. members.  They can do anything Restrictive can.
$groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(
'view_mlist',
'karma_edit',
'pm_read',
'pm_send',
'profile_view_any',
'profile_extra_own',
'profile_remote_avatar',
'profile_remove_own',
'arcade_play',
));
$groupLevels['board']['standard'] = array_merge($groupLevels['board']['restrict'], array(
'poll_vote',
'poll_edit_own',
'poll_post',
'poll_add_own',
'post_attachment',
'lock_own',
'delete_own',
'view_attachments',
));

// Moderator - ie. moderators :P.  They can do what standard can, and more.
$groupLevels['global']['moderator'] = array_merge($groupLevels['global']['standard'], array(
'calendar_post',
'calendar_edit_own',
));
$groupLevels['board']['moderator'] = array_merge($groupLevels['board']['standard'], array(
'make_sticky',
'poll_edit_any',
'remove_any',
'modify_any',
'lock_any',
'delete_any',
'move_any',
'merge_any',
'split_any',
'poll_lock_any',
'poll_remove_any',
'poll_add_any',
));

// Maintenance - wannabe admins.  They can do almost everything.
$groupLevels['global']['maintenance'] = array_merge($groupLevels['global']['moderator'], array(
'manage_attachments',
'manage_smileys',
'manage_boards',
'moderate_forum',
'manage_membergroups',
'manage_bans',
'admin_forum',
'manage_permissions',
'edit_news',
'calendar_edit_any',
'profile_identity_any',
'profile_extra_any',
'profile_title_any',
));
$groupLevels['board']['maintenance'] = array_merge($groupLevels['board']['moderator'], array(
));

// Standard - nothing above the group permissions. (this SHOULD be empty.)
$boardLevels['standard'] = array(
);

// Locked - just that, you can't post here.
$boardLevels['locked'] = array(
'poll_view',
'mark_notify',
'report_any',
'send_topic',
'view_attachments',
);

// Publisher - just a little more...
$boardLevels['publish'] = array_merge($boardLevels['locked'], array(
'post_new',
'post_reply_own',
'post_reply_any',
'remove_own',
'modify_own',
'mark_any_notify',
'remove_replies',
'modify_replies',
'poll_vote',
'poll_edit_own',
'poll_post',
'poll_add_own',
'poll_remove_own',
'post_attachment',
'lock_own',
'delete_own',
));

// Free for All - Scary.  Just scary.
$boardLevels['free'] = array_merge($boardLevels['publish'], array(
'poll_lock_any',
'poll_edit_any',
'poll_add_any',
'poll_remove_any',
'make_sticky',
'lock_any',
'delete_any',
'remove_any',
'split_any',
'merge_any',
'modify_any',
));

// Setting group permissions.
if ($board === 'null' && $group !== 'null')
{
$group = (int) $group;

if (empty($groupLevels['global'][$level]))
return;

db_query("
DELETE FROM {$db_prefix}permissions
WHERE ID_GROUP = $group", __FILE__, __LINE__);
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_GROUP = $group
AND ID_BOARD = 0", __FILE__, __LINE__);

db_query("
INSERT INTO {$db_prefix}permissions
(ID_GROUP, permission)
VALUES ($group, '" . implode("'),
($group, '", $groupLevels['global'][$level]) . "')", __FILE__, __LINE__);
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES (0, $group, '" . implode("'),
(0, $group, '", $groupLevels['board'][$level]) . "')", __FILE__, __LINE__);
}
// Setting board permissions for a specific group.
elseif ($board !== 'null' && $group !== 'null')
{
$group = (int) $group;
$board = (int) $board;

if (!empty($groupLevels['global'][$level]))
{
db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_GROUP = $group
AND ID_BOARD = $board", __FILE__, __LINE__);
}

if (!empty($groupLevels['board'][$level]))
{
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES ($board, $group, '" . implode("'),
($board, $group, '", $groupLevels['board'][$level]) . "')", __FILE__, __LINE__);
}
}
// Setting board permissions for all groups.
elseif ($board !== 'null' && $group === 'null')
{
$board = (int) $board;

db_query("
DELETE FROM {$db_prefix}board_permissions
WHERE ID_BOARD = $board", __FILE__, __LINE__);

if (empty($boardLevels[$level]))
return;

// Get all the groups...
$query = db_query("
SELECT ID_GROUP
FROM {$db_prefix}membergroups
WHERE ID_GROUP > 3
ORDER BY minPosts, IF(ID_GROUP < 4, ID_GROUP, 4), groupName", __FILE__, __LINE__);
while ($row = mysql_fetch_row($query))
{
$group = $row[0];

db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES ($board, $group, '" . implode("'),
($board, $group, '", $boardLevels[$level]) . "')", __FILE__, __LINE__);
}
mysql_free_result($query);

// Add permissions for ungrouped users.
db_query("
INSERT INTO {$db_prefix}board_permissions
(ID_BOARD, ID_GROUP, permission)
VALUES ($board, 0, '" . implode("'),
($board, 0, '", $boardLevels[$level]) . "')", __FILE__, __LINE__);
}
// $board and $group are both null!
else
fatal_lang_error(1, false);
}

function loadAllPermissions()
{
global $context, $txt;

/* The format of this list is as follows:
'permission_group' => array(
'permissions_inside' => has_multiple_options,
),

  It should be noted that if the permission_group starts with $ it is not treated as a permission.
  However, if it does not start with $, it is treated as a normal permission.
$txt['permissionname_' . $permission] is used for the names of permissions.
$txt['permissiongroup_' . $group] is used for names of groups that start with $.
$txt['permissionhelp_' . $permission] is used for extended information.
$txt['permissionicon_' . $permission_or_group] is used for the icons, if it exists.
*/

$permissionList = array(
'membergroup' => array(
'general' => array(
'view_stats' => false,
'view_mlist' => false,
'who_view' => false,
'search_posts' => false,
'karma_edit' => false,
'arcade_play' => false,
),
'pm' => array(
'pm_read' => false,
'pm_send' => false,
),
'calendar' => array(
'calendar_view' => false,
'calendar_post' => false,
'calendar_edit' => true,
),
'maintenance' => array(
'admin_forum' => false,
'manage_boards' => false,
'manage_attachments' => false,
'manage_smileys' => false,
'edit_news' => false,
),
'member_admin' => array(
'moderate_forum' => false,
'manage_membergroups' => false,
'manage_permissions' => false,
'manage_bans' => false,
'send_mail' => false,
),
'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_remote_avatar' => false,
),
   'arcade' => array( /* Lisätty */
'view_arcade' => false,
'play_arcade' => false,
'submit_score' => false,
'challenge_send' => false,
'challenge_view' => false,
)

),
'board' => array(
'general_board' => array(
'moderate_board' => false,
),
'topic' => array(
'post_new' => false,
'merge_any' => false,
'split_any' => false,
'send_topic' => false,
'make_sticky' => false,
'move' => true,
'lock' => true,
'delete' => true,
'post_reply' => true,
'modify_replies' => false,
'remove_replies' => false,
'announce_topic' => false,
),
'post' => array(
'remove' => true,
'modify' => true,
'report_any' => false,
),
'poll' => array(
'poll_view' => false,
'poll_vote' => false,
'poll_post' => false,
'poll_add' => true,
'poll_edit' => true,
'poll_lock' => true,
'poll_remove' => true,
),
'notification' => array(
'mark_any_notify' => false,
'mark_notify' => false,
),
'attachment' => array(
'view_attachments' => false,
'post_attachment' => false,
)
)
);

// This is just a helpful array of permissions guests... cannot have.
$non_guest_permissions = array(
'karma_edit',
'pm_read',
'pm_send',
'profile_identity',
'profile_extra',
'profile_title',
'profile_remove',
'profile_remote_avatar',
'poll_vote',
'mark_any_notify',
'mark_notify',
);

// All permission groups that will be shown in the left column.
$leftPermissionGroups = array(
'general',
'calendar',
'maintenance',
'member_admin',
'general_board',
'topic',
'post',
);





Is it possible that something wasn't added to this file during the installation?  If so, can you instruct me what needs to be added and where?

I greatly appreciate your assistance.

Mike.

Davilac

Quote from: revgreed on June 15, 2005, 05:52:07 AM

Only administrators can see the following new "spiders" online:



And not only that, but the feature is only displayed when there is a spider on the forum (as shown in the picture above).  Meaning, when a spider is NOT on the forum the "Online Users" portion only displays "Guests" and "User". (as shown in the picture below).  And, again, this is only admins.

I would say that's what is supposed to do.

Davilac

running on 1.0.4 and Classic Theme, I got lots of times in error log this examples:

http://www.davilac.net/foro/index.php?action=modifyModSettings;expand=170
8: Undefined index: ob_googlebot_count_most_online
Archivo: /home/davilac/public_html/foro/Sources/ModSettings.php
Línea: 479

8: Undefined index: ob_googlebot_display_own_list
Archivo: /home/davilac/public_html/foro/Sources/ModSettings.php
Línea: 479

8: Undefined index: ob_googlebot_display_agent
Archivo: /home/davilac/public_html/foro/Sources/ModSettings.php
Línea: 479

http://www.davilac.net/foro/index.php
Aplicar filtro: Mostrar solamente los mensajes de error con el mismo mensaje
8: Undefined index: ob_googlebot_count_most_online
Archivo: /home/davilac/public_html/foro/Sources/BoardIndex.php
Línea: 436


I had only the who template and modifications.spanish.php in the Default Theme, because it was running (a least in admin), but now after seeing these logs I uploaded to Classic too.

Omar Bazavilvazo

instead of:

'challenge_view' => false,
)

),
'board' => array(



you should have:

'challenge_view' => false,
),
'googlebot' => array(
'googlebot_view' => false,
),
),
'board' => array(
'general_board' => array(


that is because you have arcade mod, and didn't check the "failed" when you installed the package.




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

Omar Bazavilvazo

Quote from: Davilac on June 15, 2005, 09:25:13 AM
I had only the who template and modifications.spanish.php in the Default Theme, because it was running (a least in admin), but now after seeing these logs I uploaded to Classic too.
and it fixed it? :)




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

revgreed

Quote from: Omar Bazavilvazo on June 15, 2005, 01:08:00 PM
instead of:

'challenge_view' => false,
)

),
'board' => array(



you should have:

'challenge_view' => false,
),
'googlebot' => array(
'googlebot_view' => false,
),
),
'board' => array(
'general_board' => array(


that is because you have arcade mod, and didn't check the "failed" when you installed the package.


Hi there!

That fixed it perfectly.  And you were correct - the editing of the managepermissions file did fail.  I overlooked it.

Thanks so much.

jerm

im getting these errors
smf 1.0.4

8: Undefined index: ob_googlebot_count_most_online
File: /home/egrounds/public_html/forums/Sources/BoardIndex.php
Line: 369

8: Undefined index: ob_googlebot_count_all_instances
File: /home/egrounds/public_html/forums/Sources/BoardIndex.php
Line: 298

any ideas?

Omar Bazavilvazo

are you using default theme?

are you using english language?




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

jerm

im useing the default thing, and the english language

Omar Bazavilvazo

check modifications.english.php

what does it have?




Personal Signature:
HablaJapones
http://hablajapones.org
http://hablajapones.org/tutoriales.php


NO me manden PM para soporte o dudas
...Leo los foros como todos...

Jako

I'm getting this error:

Fatal error: Call to undefined function: ob_googlebot_getagent() in /home/operati/public_html/smf/Sources/BoardIndex.php on line 273

And I did exactly what you said yesterday.

And I'm using the default theme, with the English language. And my modifications.english.php says the following:

Quote<?php
// Version: 1.0; Modifications

// Now Playing Mod
$txt['nowplaying1'] = "Now Playing";
$txt['nowplaying2'] = "<b>Now Playing:</b> What are you listening to? [optional]";
$txt['nowplaying3'] = "Now Playing: ";
$txt['nowplayingEnabled'] = "Enable 'Now Playing'?";
$txt['nowplaying_image'] = "Now Playing Image: ";
$txt['nowplaying_text'] = "Now Playing Text: ";

// Now Playing Mod
$txt['nowplaying1'] = "Now Playing";
$txt['nowplaying2'] = "<b>Now Playing:</b> What are you listening to? [optional]";
$txt['nowplaying3'] = "Now Playing: ";
$txt['nowplayingEnabled'] = "Enable 'Now Playing'?";
$txt['nowplaying_image'] = "Now Playing Image: ";
$txt['nowplaying_text'] = "Now Playing Text: ";

//text for Ultimate Shoutbox
$txt['shoutbox_0'] = 'Shoutbox';
$txt['shoutbox_1'] = 'Shoutbox Archive';
$txt['shoutbox_2'] = 'Delete shouts older than:';
$txt['shoutbox_3'] = 'days';
$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';
$txt['shoutbox_5'] = 'Delete';
$txt['shoutbox_6'] = 'Name';
$txt['shoutbox_7'] = 'Email';
$txt['shoutbox_8'] = 'Message';
$txt['shoutbox_9'] = 'Shout';
$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';
$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields.  Please try again.';
$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';
$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';
$txt['shoutdir'] = 'Shout Direction';
$txt['shoutbox_19'] = 'Ascending';
$txt['shoutbox_20'] = 'Descending';
$txt['shoutsep'] = 'Shout Separator';
$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';
$txt['shoutlimit'] = 'Number of shouts to return';
$txt['shoutmaxchr'] = 'Max number of characters per line';
$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';
$txt['enablescrollshout'] = 'Enable scrolling';
$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';
$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';
$txt['shoutscrollheight'] = 'Scroll box height (pixels)';
$txt['shoutscrollspeed'] = 'Scrolling speed';
$txt['shoutbox_31'] = 'slowest';
$txt['shoutbox_32'] = 'slower';
$txt['shoutbox_33'] = 'medium';
$txt['shoutbox_34'] = 'faster';
$txt['shoutbox_35'] = 'fastest';
$txt['shoutscrolldir'] = 'Scrolling direction';
$txt['shoutbox_37'] = 'up';
$txt['shoutbox_38'] = 'down';
$txt['shoutbox_39'] = 'left';
$txt['shoutbox_40'] = 'right';
$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';
$txt['shoutbox_42'] = 'Delete Options';
$txt['shoutbox_43'] = 'View All';
$txt['permissiongroup_shout'] = 'Shoutbox';
$txt['permissionname_make_shout'] = 'Can Shout';
$txt['permissionname_delete_shout'] = 'Can Delete Shouts';
$txt['vCal_title'] = 'vCal/iCal';
$txt['vCal_remove'] = 'Remove this event';
$txt['vCal_add'] = 'Add this event';
$txt['vCal_view'] = 'View List';
$txt['vCal_download'] = 'Download List';
$txt['vCal_empty'] = 'You have no events in your ' . $txt['vCal_title'] . ' list.';

$txt['cal_attendee_title'] = 'Attendees';
$txt['cal_attendees_no'] = 'No one is attending this event yet.';
$txt['cal_attendees_yes'] = 'Members planning to attend';
$txt['cal_attend_no'] = 'I\'ve changed my mind';
$txt['cal_attend_yes'] = 'I plan to attend this event';

$txt['enable_vCal'] = 'Enable vCal/iCal Downloads';
$txt['enable_attendees'] = 'Enable Attendee List';
$txt['cal_force_default'] = 'Force Default Board';
$txt['cal_allow_no_post'] = 'Allow Post No Topic';

$txt['cal_no_post'] = 'Post No Topic';

$txt['vCal_style'] = 'vCal/iCal download style:';
$txt['vCal_style1'] = 'Disable';
$txt['vCal_style2'] = 'vCal';
$txt['vCal_style3'] = 'iCal';

$txt['ratings_rating'] = 'Rating';

$txt['ratings_board'] = 'Enable Ratings on this Board';
$txt['ratings_board_desc'] = 'With this option enabled members will be able to rate the quality of a topic on this board.';

$txt['ratings_you_not_rated'] = 'You have not rated this topic. Select a rating:';
$txt['ratings_you_have_rated'] = 'You have already rated this topic. You may change your rating at any time:';
$txt['ratings_current_rating'] = 'Current Topic Rating';
$txt['ratings_not_rated'] = 'This topic has not yet been rated!';
$txt['ratings_rating'] = 'Rating';

$txt['ratings_board'] = 'Enable Ratings on this Board';
$txt['ratings_board_desc'] = 'With this option enabled members will be able to rate the quality of a topic on this board.';

$txt['ratings_you_not_rated'] = 'You have not rated this topic. Select a rating:';
$txt['ratings_you_have_rated'] = 'You have already rated this topic. You may change your rating at any time:';
$txt['ratings_current_rating'] = 'Current Topic Rating';
$txt['ratings_not_rated'] = 'This topic has not yet been rated!';
$txt['msgicon_manager'] = 'Message Icon Manager';
$txt['msgIconsRadio_enabled'] = 'Enable Displaying Icons As Radio Buttons';
$txt['msgicon_add_message_icons'] = 'Add Message Icons';
$txt['msgicon_modify_message_icons'] = 'Modify Message Icons';
$txt['msgicon_order'] = 'Order';
$txt['msgicon_filename'] = 'Filename';
$txt['msgicon_description'] = 'Description';
$txt['msgicon_board'] = 'Board Specific';
$txt['msgicon_del'] = 'Del';
$txt['msgicon_add'] = 'Add';
$txt['msgicon_update'] = 'Update';
$txt['msgicon_update_and_replace'] = 'Update and Replace Removed';
$txt['msgicon_all'] = 'All Boards';
// G&S Sticky
$txt['gsticky'] = 'Global Announcements';
$txt['gsticky_board'] = 'Default Board to post the Global Announcements';
$txt['permissionname_make_gsticky'] = 'Make Global Announcements';
$txt['permissionhelp_make_gsticky'] = 'The user will allow post a Global Announcements';
//Bar of Experience Mod
$txt['bar_exp_enabled'] = 'Enable The Bar of Experience';
$txt['bar_exp_completed'] = '100% Completed ;)';
$txt['bar_exp_next'] = 'Next Level:';



$txt['msgicon_manager'] = 'Message Icon Manager';
$txt['msgIconsRadio_enabled'] = 'Enable Displaying Icons As Radio Buttons';
$txt['msgicon_add_message_icons'] = 'Add Message Icons';
$txt['msgicon_modify_message_icons'] = 'Modify Message Icons';
$txt['msgicon_order'] = 'Order';
$txt['msgicon_filename'] = 'Filename';
$txt['msgicon_description'] = 'Description';
$txt['msgicon_board'] = 'Board Specific';
$txt['msgicon_del'] = 'Del';
$txt['msgicon_add'] = 'Add';
$txt['msgicon_update'] = 'Update';
$txt['msgicon_update_and_replace'] = 'Update and Replace Removed';
$txt['msgicon_all'] = 'All Boards';
$txt['membergroups_showAddBadge'] = "Show the stars even if the group is a secondary group?";

// OB - Googlebot - Begin

// Boardindex Strings
$txt['ob_googlebot_modname'] = 'Googlebot & Spiders';
$txt['ob_googlebot_spider'] = 'Spider';
$txt['ob_googlebot_spiders'] = 'Spiders';
$txt['ob_googlebot_spiders_last_active'] = 'Spiders active in past ' . $modSettings['lastActive'] . ' minutes';

// ModSettings
$txt['ob_googlebot_count_all_instances'] = 'Count all instances of same spider';
$txt['ob_googlebot_display_all_instances'] = 'Display all instances of same spider <div class="smalltext">("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)</div>';
$txt['ob_googlebot_display_agent'] = 'Display agent instead of name';
$txt['ob_googlebot_display_own_list'] = 'Display spiders in its own list';
$txt['ob_googlebot_count_most_online'] = 'Count in "Most Online"';

// Permissions
$txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname'];
$txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders';

// OB - Googlebot - End

$txt['buddylist_buddies'] = 'Buddies';
$txt['buddylist_buddy'] = 'Buddy';
$txt['buddylist_select'] = 'Select Buddy';
$txt['buddyList_title'] = 'Buddy List';
$txt['buddyList_add_name'] = 'Add one Username on each line.';
$txt['buddyList_add'] = 'Add this member to my Buddy List';
$txt['buddyList_remove'] = 'Remove this member from my Buddy List';
//text for Ultimate Shoutbox
$txt['shoutbox_0'] = 'Shoutbox';
$txt['shoutbox_1'] = 'Shoutbox Archive';
$txt['shoutbox_2'] = 'Delete shouts older than:';
$txt['shoutbox_3'] = 'days';
$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';
$txt['shoutbox_5'] = 'Delete';
$txt['shoutbox_6'] = 'Name';
$txt['shoutbox_7'] = 'Email';
$txt['shoutbox_8'] = 'Message';
$txt['shoutbox_9'] = 'Shout';
$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';
$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields.  Please try again.';
$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';
$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';
$txt['shoutdir'] = 'Shout Direction';
$txt['shoutbox_19'] = 'Ascending';
$txt['shoutbox_20'] = 'Descending';
$txt['shoutsep'] = 'Shout Separator';
$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';
$txt['shoutlimit'] = 'Number of shouts to return';
$txt['shoutmaxchr'] = 'Max number of characters per line';
$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';
$txt['enablescrollshout'] = 'Enable scrolling';
$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';
$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';
$txt['shoutscrollheight'] = 'Scroll box height (pixels)';
$txt['shoutscrollspeed'] = 'Scrolling speed';
$txt['shoutbox_31'] = 'slowest';
$txt['shoutbox_32'] = 'slower';
$txt['shoutbox_33'] = 'medium';
$txt['shoutbox_34'] = 'faster';
$txt['shoutbox_35'] = 'fastest';
$txt['shoutscrolldir'] = 'Scrolling direction';
$txt['shoutbox_37'] = 'up';
$txt['shoutbox_38'] = 'down';
$txt['shoutbox_39'] = 'left';
$txt['shoutbox_40'] = 'right';
$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';
$txt['shoutbox_42'] = 'Delete Options';
$txt['shoutbox_43'] = 'View All';
$txt['permissiongroup_shout'] = 'Shoutbox';
$txt['permissionname_make_shout'] = 'Can Shout';
$txt['permissionname_delete_shout'] = 'Can Delete Shouts';

$txt['permissiongroup_arcade'] = "Arcade";
$txt['cannot_view_arcade'] = "You arent allowed to view arcade, sorry!";
$txt['permissionhelp_view_arcade'] = "Allow this if you want this group to access arcade";
$txt['permissionname_view_arcade'] = "Can view arcade (main)";
$txt['cannot_arcade_play_arcade'] = "You arent allowed to play on arcade, sorry!";
$txt['permissionhelp_play_arcade'] = "Allow this if you want this group to play in arcade";
$txt['permissionname_play_arcade'] = "Can play in arcade";
$txt['cannot_submit_score'] = "You arent allowed to submit scores on arcade, sorry!";
$txt['permissionhelp_submit_score'] = "Allow this if you want ALLOW this group to submit scores in arcade";
$txt['permissionname_submit_score'] = "Can Submit scores in arcade";
$txt['arcade_highscores_per_page'] = "Highscores per page in arcade";
$txt['admin_arcade'] = "Arcade";
$txt['admin_arcade2'] = "Arcade Admin";
$txt['cannot_admin_arcade'] = "You arent allowed to Admin Arcade!";
$txt['permissionname_admin_arcade'] = "Can Admin Arcade";
$txt['buddylist_buddies'] = 'Buddies';
$txt['buddylist_buddy'] = 'Buddy';
$txt['buddylist_select'] = 'Select Buddy';
$txt['buddyList_title'] = 'Buddy List';
$txt['buddyList_add_name'] = 'Add one Username on each line.';
$txt['buddyList_add'] = 'Add this member to my Buddy List';
$txt['buddyList_remove'] = 'Remove this member from my Buddy List';
$txt['membergroups_showAddBadge'] = "Show the stars even if the group is a secondary group?";

// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';

//text for Ultimate Shoutbox
$txt['shoutbox_0'] = 'Shoutbox';
$txt['shoutbox_1'] = 'Shoutbox Archive';
$txt['shoutbox_2'] = 'Delete shouts older than:';
$txt['shoutbox_3'] = 'days';
$txt['shoutbox_4'] = 'Delete all shouts over your current limit of';
$txt['shoutbox_5'] = 'Delete';
$txt['shoutbox_6'] = 'Name';
$txt['shoutbox_7'] = 'Email';
$txt['shoutbox_8'] = 'Message';
$txt['shoutbox_9'] = 'Shout';
$txt['shoutbox_10'] = 'Sorry, if you are a guest you must enter both your name and your email address';
$txt['shoutbox_11'] = 'Whoops, looks like you forgot to fill in one of the Shoutbox fields.  Please try again.';
$txt['shoutbox_12'] = 'Sorry, if you are a guest you must enter a valid email address when using the Shoutbox.';
$txt['shoutbox_13'] = 'Sorry, but you do not have the proper priveledges to delete that.';
$txt['shoutdir'] = 'Shout Direction';
$txt['shoutbox_19'] = 'Ascending';
$txt['shoutbox_20'] = 'Descending';
$txt['shoutsep'] = 'Shout Separator';
$txt['enablearchiveshout'] = 'Allow people to shout from the archive page?';
$txt['shoutlimit'] = 'Number of shouts to return';
$txt['shoutmaxchr'] = 'Max number of characters per line';
$txt['shoutsplitchr'] = 'Character number to split long words at (usually 3 less than max)';
$txt['enablescrollshout'] = 'Enable scrolling';
$txt['shoutbox_27'] = 'The following options are only available is scrolling is activated:';
$txt['shoutscrollwidth'] = 'Scroll box width (pixels)';
$txt['shoutscrollheight'] = 'Scroll box height (pixels)';
$txt['shoutscrollspeed'] = 'Scrolling speed';
$txt['shoutbox_31'] = 'slowest';
$txt['shoutbox_32'] = 'slower';
$txt['shoutbox_33'] = 'medium';
$txt['shoutbox_34'] = 'faster';
$txt['shoutbox_35'] = 'fastest';
$txt['shoutscrolldir'] = 'Scrolling direction';
$txt['shoutbox_37'] = 'up';
$txt['shoutbox_38'] = 'down';
$txt['shoutbox_39'] = 'left';
$txt['shoutbox_40'] = 'right';
$txt['shoutscrolldelay'] = 'Scroll Delay (milliseconds - normal is 60)';
$txt['shoutbox_42'] = 'Delete Options';
$txt['shoutbox_43'] = 'View All';
$txt['permissiongroup_shout'] = 'Shoutbox';
$txt['permissionname_make_shout'] = 'Can Shout';
$txt['permissionname_delete_shout'] = 'Can Delete Shouts';
$txt['vCal_title'] = 'vCal/iCal';
$txt['vCal_remove'] = 'Remove this event';
$txt['vCal_add'] = 'Add this event';
$txt['vCal_view'] = 'View List';
$txt['vCal_download'] = 'Download List';
$txt['vCal_empty'] = 'You have no events in your ' . $txt['vCal_title'] . ' list.';

$txt['cal_attendee_title'] = 'Attendees';
$txt['cal_attendees_no'] = 'No one is attending this event yet.';
$txt['cal_attendees_yes'] = 'Members planning to attend';
$txt['cal_attend_no'] = 'I\'ve changed my mind';
$txt['cal_attend_yes'] = 'I plan to attend this event';

$txt['enable_vCal'] = 'Enable vCal/iCal Downloads';
$txt['enable_attendees'] = 'Enable Attendee List';
$txt['cal_force_default'] = 'Force Default Board';
$txt['cal_allow_no_post'] = 'Allow Post No Topic';

$txt['cal_no_post'] = 'Post No Topic';

$txt['vCal_style'] = 'vCal/iCal download style:';
$txt['vCal_style1'] = 'Disable';
$txt['vCal_style2'] = 'vCal';
$txt['vCal_style3'] = 'iCal';

$txt['ratings_rating'] = 'Rating';

$txt['ratings_board'] = 'Enable Ratings on this Board';
$txt['ratings_board_desc'] = 'With this option enabled members will be able to rate the quality of a topic on this board.';

$txt['ratings_you_not_rated'] = 'You have not rated this topic. Select a rating:';
$txt['ratings_you_have_rated'] = 'You have already rated this topic. You may change your rating at any time:';
$txt['ratings_current_rating'] = 'Current Topic Rating';
$txt['ratings_not_rated'] = 'This topic has not yet been rated!';
$txt['msgicon_manager'] = 'Message Icon Manager';
$txt['msgIconsRadio_enabled'] = 'Enable Displaying Icons As Radio Buttons';
$txt['msgicon_add_message_icons'] = 'Add Message Icons';
$txt['msgicon_modify_message_icons'] = 'Modify Message Icons';
$txt['msgicon_order'] = 'Order';
$txt['msgicon_filename'] = 'Filename';
$txt['msgicon_description'] = 'Description';
$txt['msgicon_board'] = 'Board Specific';
$txt['msgicon_del'] = 'Del';
$txt['msgicon_add'] = 'Add';
$txt['msgicon_update'] = 'Update';
$txt['msgicon_update_and_replace'] = 'Update and Replace Removed';
$txt['msgicon_all'] = 'All Boards';
//Bar of Experience Mod
$txt['bar_exp_enabled'] = 'Enable The Bar of Experience';
$txt['bar_exp_completed'] = '100% Completed ;)';
$txt['bar_exp_next'] = 'Next Level:';

// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';

// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';

// Karma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';

?>arma Log
$txt['karma_log'] = '<b>Karma Log</b>';
$txt['view_karma_log'] = 'View Karma Log';

?>
Maximus: Brothers, what we do in life... echoes in eternity.


Advertisement: