News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Googlebot & Spiders

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

Previous topic - Next topic

lvzifer

I instal this board .. and it works with default but now with other skin/s .. I can access to Google & Spiders in Features and Options .. when I click on it .. just redirect me to Basic Features .. I get one more error .. when I try to change some member group this msg shows up :

An Error Has Occurred!
Your session timed out while posting. Please go back and try again.

what should I do ??

detoam

It installed perfectly and seems to work great. However I am unable to access the settings. Every time i press the button it simply redirects to Features and Options ==>Basic Features menu. What do I need to do to correct that?
Thank You.

Bigguy

Are there any errors in your error logs in the admin panel. ???

gemigene

Quote from: gemigene on January 02, 2008, 10:55:50 PM
According to my previous post, I would like to show Spiders last (1 Guest, 1 User, 4 Spiders) and been playing around with this bit of code in Boardindex.template.php and I just can't get the commas and spaces in the right place.

Can anyone figure this out:
echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];



Thanks,
Gene


So, ideas anyone? I really want to show Spiders in the last position in my "Users online" box. Now I have 3 Spiders, 2 Guests, 3 Users.

Cheers,
Gene
"Religion is metaphysical statism. I will be ruled by no man on earth, nor by any god in heaven"

Emperium

#1464
The modsettings.php test failed, how do I fix it?

Simplemachines Cowboy

gemigene,
Why?
The only users that will see the spiders count are the admin - regular users and guests will never see it.
My SMF forum: The Open Range

Jade Elizabeth

Quote from: Simplemachines Cowboy on February 10, 2008, 10:11:17 PM
gemigene,
Why?
The only users that will see the spiders count are the admin - regular users and guests will never see it.

That's not true. There are permissions for this, so if he selects other groups to see it, he wont be the only one ;)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Simplemachines Cowboy

Quote from: Alundra on February 11, 2008, 11:53:00 AM
That's not true. There are permissions for this, so if he selects other groups to see it, he wont be the only one ;)

Smacks myself upside the head...
Forgot to look there, you are absolutely right!
My SMF forum: The Open Range

Iron IC

#1468
Just installed this mod manually using package parser. However, I now get this error when testing:

Notice: Undefined index: ob_googlebot_redirect_phpsessid in /usr/home/web/webXXXXX/byggmuskler.no/forum/index.php on line 76



EDIT: PROBLEM SOLVED :)

Jade Elizabeth

Quote from: Simplemachines Cowboy on February 11, 2008, 04:35:26 PM
Quote from: Alundra on February 11, 2008, 11:53:00 AM
That's not true. There are permissions for this, so if he selects other groups to see it, he wont be the only one ;)

Smacks myself upside the head...
Forgot to look there, you are absolutely right!

LOL
:D It's all good :D
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

l.uca

Hi to all I have a little problem this is the error that i see:

Parse error: syntax error, unexpected $end in /web/htdocs/www.risorsedirete.com/home/forum/Sources/ModSettings.php on line 565

help me please this is my ModSettings.php

code:
<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))



die(
'Hacking attempt...');

/*



This file is here to make it easier for installed mods to have settings



and options.  It uses the following functions:



void ModifyFeatureSettings()





// !!!



void ModifyFeatureSettings2()





// !!!



void ModifyBasicSettings()





// !!!



void ModifyLayoutSettings()





// !!!



void ModifyKarmaSettings()





// !!!



Adding new settings to the $modSettings array:



---------------------------------------------------------------------------
// !!!
*/

/*



Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:





array('check', 'nameInModSettingsAndSQL'),



   And for a text box:





array('text', 'nameInModSettingsAndSQL')



   (NOTE: You have to add an entry for this at the bottom!)



   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,



   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.



Here's a quick explanation of how to add a new item:



 * A text input box.  For textual values.



ie.



array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',







&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),



 * A text input box.  For numerical values.



ie.



array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',







&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),



 * A text input box.  For floating point values.



ie.



array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',







&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),








         * A large text input box. Used for textual values spanning multiple lines.



ie.



array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',







&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),



 * A check box.  Either one or zero. (boolean)



ie.



array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],







'OptionalReferenceToHelpAdmin'),



 * A selection box.  Used for the selection of something from a list.



ie.



array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),







&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),



Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.



 * A password input box. Used for passwords, no less!



ie.



array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',







&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),



For each option:





type (see above), variable name, size/possible values, description, helptext.



OR



make type 'rule' for an empty string for a horizontal rule.



OR



make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{



global 
$context$txt$scripturl$modSettings$sourcedir;



// You need to be an admin to edit settings!



isAllowedTo('admin_forum');



// All the admin bar, to make it right.



adminIndex('edit_mods_settings');



loadLanguage('Help');



loadLanguage('ModSettings');



// Will need the utility functions from here.



require_once(
$sourcedir '/ManageServer.php');



$context['page_title'] = $txt['modSettings_title'];



$context['sub_template'] = 'show_settings';



$subActions = array(





'basic' => 'ModifyBasicSettings',





'layout' => 'ModifyLayoutSettings',





'googlemap' => 'ModifyGoogleMapSettings',





'googlemap' => 'ModifyGoogleMapSettings',





'ThankYou' => 'ModifyThankYouSettings',





'MemberColorLinks' => 'ModifyMemberColorLinksSettings',





'karma' => 'ModifyKarmaSettings',





'googlebot' => 'ModifyGooglebotSettings',



);



// By default do the basic settings.



$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';



$context['sub_action'] = $_REQUEST['sa'];



// Load up all the tabs...



$context['admin_tabs'] = array(





'title' => &$txt['modSettings_title'],





'help' => 'modsettings',





'description' => $txt['smf3'],





'tabs' => array(







'basic' => array(









'title' => $txt['mods_cat_features'],









'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],







),







'layout' => array(









'title' => $txt['mods_cat_layout'],









'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],







),







'ThankYou' => array(









'title' => $txt['Thank_You_Headline'],









'href' => $scripturl '?action=featuresettings;sa=ThankYou;sesc=' $context['session_id'],







),







'MemberColorLinks' => array(









'title' => $txt['MemberColorLinkHeadline'],









'href' => $scripturl '?action=featuresettings;sa=MemberColorLinks;sesc=' $context['session_id'],







),







'sbox' => array(









'title' => $txt['sbox_ModTitle'],









'href' => $scripturl '?action=featuresettings;sa=sbox;sesc=' $context['session_id'],







),














'googlemap' => array(









'title' => $txt['googleMapFO'],









'href' => $scripturl '?action=featuresettings;sa=googlemap;sesc=' $context['session_id'],







),







'googlemap' => array(









'title' => $txt['googleMapFO'],









'href' => $scripturl '?action=featuresettings;sa=googlemap;sesc=' $context['session_id'],







),







'karma' => array(









'title' => $txt['smf293'],









'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],







),














'googlebot' => array(









'title' => $txt['ob_googlebot_modname'],









'href' => $scripturl '?action=featuresettings;sa=googlebot;sesc=' $context['session_id'],







),














'googlebot' => array(









'title' => $txt['ob_googlebot_modname'],









'href' => $scripturl '?action=featuresettings;sa=googlebot;sesc=' $context['session_id'],












'is_last' => true,







),





),



);



// Select the right tab based on the sub action.



if (isset(
$context['admin_tabs']['tabs'][$context['sub_action']]))





$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;



// Call the right function for this sub-acton.



$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{



global 
$context$txt$scripturl$modSettings$sourcedir;



isAllowedTo('admin_forum');



loadLanguage('ModSettings');



// Quick session check...



checkSession();



require_once(
$sourcedir '/ManageServer.php');



$subActions = array(





'basic' => 'ModifyBasicSettings',





'layout' => 'ModifyLayoutSettings',





'ThankYou' => 'ModifyThankYouSettings',





'MemberColorLinks' => 'ModifyMemberColorLinksSettings',





'karma' => 'ModifyKarmaSettings',





'googlebot' => 'ModifyGooglebotSettings',





'googlemap' => 'ModifyGoogleMapSettings',



);



// Default to core (I assume)



$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';



// Actually call the saving function.



$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{



global 
$txt$scripturl$context$settings$sc$modSettings;



$config_vars = array(







// Big Options... polls, sticky, bbc....







array(
'select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),





'',







// Basic stuff, user languages, titles, flash, permissions...







array(
'check''allow_guestAccess'),







array(
'check''userLanguage'),







array(
'check''allow_editDisplayName'),







array(
'check''allow_hideOnline'),







array(
'check''allow_hideEmail'),







array(
'check''guest_hideContacts'),







array(
'check''titlesEnable'),







array(
'check''enable_buddylist'),







array(
'text''default_personalText'),







array(
'int''max_signatureLength'),





'',







// Stats, compression, cookies.... server type stuff.







array(
'text''time_format'),







array(
'select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),







array(
'float''time_offset'),







array(
'int''failed_login_threshold'),







array(
'int''lastActive'),







array(
'check''trackStats'),







array(
'check''hitStats'),







array(
'check''enableErrorLogging'),







array(
'check''securityDisable'),







array(
'check''hideVersion'),





'',







// Reactive on email, and approve on delete







array(
'check''send_validation_onChange'),







array(
'check''approveAccountDeletion'),





'',







// Option-ish things... miscellaneous sorta.







array(
'check''allow_disableAnnounce'),







array(
'check''disallow_sendBody'),







array(
'check''modlog_enabled'),







array(
'check''queryless_urls'),





'',







// Action SEF URLS?







array(
'check''enableActionurls'),







array(
'check''enableCurls'),







array(
'check''enablePageurls'),







array(
'check''enableUseQuestion'),







array(
'check''enableNoIndex'),





'',







// Width/Height image reduction.







array(
'int''max_image_width'),







array(
'int''max_image_height'),





'',







// Reporting of personal messages?







array(
'check''enableReportPM'),



);



// Saving?



if (isset(
$_GET['save']))



{





// Fix PM settings.





$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];





$save_vars $config_vars;





$save_vars[] = array('text''pm_spam_settings');





saveDBSettings($save_vars);





writeLog();





redirectexit('action=featuresettings;sa=basic');



}



// Hack for PM spam settings.



list (
$modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);



$config_vars[] = array('int''max_pm_recipients');



$config_vars[] = array('int''pm_posts_verification');



$config_vars[] = array('int''pm_posts_per_hour');



$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';



$context['settings_title'] = $txt['mods_cat_features'];



prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{



global 
$txt$scripturl$context$settings$sc;



$config_vars = array(







// Compact pages?







array(
'check''compactTopicPagesEnable'),







array(
'int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),





'',







// Stuff that just is everywhere - today, search, online, etc.







array(
'select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),







array(
'check''topbottomEnable'),







array(
'check''onlineEnable'),







array(
'check''enableVBStyleLogin'),





'',







// Pagination stuff.







array(
'int''defaultMaxMembers'),





'',







// This is like debugging sorta.







array(
'check''timeLoadPageEnable'),







array(
'check''disableHostnameLookup'),





'',







// Who's online.







array(
'check''who_enabled'),





'',







// SimpleImageshack mod - SimpleTweaks.co.nr







array(
'check''SimpleImageShack_enable'),







array(
'check''SimpleImageShack_permis'),







array(
'int''SimpleImageShack_width'),







array(
'int''SimpleImageShack_height'),







array(
'text''SimpleImageShack_txtclr'),







array(
'int''SimpleImageShack_uplfld'),





'',
            
// The Streaming Mod Options.
        
array('check''enableEmbeddedStream'),





array(
'check''enableEmbeddedReal'),





array(
'check''enableEmbeddedQuick'),





array(
'check''enableGoogleVideo'),





array(
'check''enableYouTube'),



);



// Saving?



if (isset(
$_GET['save']))



{





saveDBSettings($config_vars);





redirectexit('action=featuresettings;sa=layout');





loadUserSettings();





writeLog();



}



$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';



$context['settings_title'] = $txt['mods_cat_layout'];



prepareDBSettingContext($config_vars);
}

function 
ModifyKarmaSettings()
{



global 
$txt$scripturl$context$settings$sc;



$config_vars = array(







// Karma - On or off?







array(
'select''karmaMode'explode('|'$txt['smf64'])),





'',







// Who can do it.... and who is restricted by time limits?







array(
'int''karmaMinPosts'),







array(
'float''karmaWaitTime'),







array(
'check''karmaTimeRestrictAdmins'),





'',







// What does it look like?  [smite]?







array(
'text''karmaLabel'),







array(
'text''karmaApplaudLabel'),







array(
'text''karmaSmiteLabel'),



);



// Saving?



if (isset(
$_GET['save']))



{





saveDBSettings($config_vars);





redirectexit('action=featuresettings;sa=karma');



}



$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';



$context['settings_title'] = $txt['smf293'];



prepareDBSettingContext($config_vars);
function 
ModifyGooglebotSettings()
{



global 
$txt$scripturl$context$settings$sc;



$config_vars = array(







// Count all instances of spiders?







array(
'check''ob_googlebot_count_all_instances'),







array(
'check''ob_googlebot_display_all_instances'),







array(
'check''ob_googlebot_display_agent'),







array(
'check''ob_googlebot_display_own_list'),





'',







// Count spiders on most online?







array(
'check''ob_googlebot_count_most_online'),





'',







// Redirect PHPSESSID URLs?







array(
'check''ob_googlebot_redirect_phpsessid'),



);



// Saving?



if (isset(
$_GET['save']))



{





saveDBSettings($config_vars);





redirectexit('action=featuresettings;sa=googlebot');



}



$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=googlebot';



$context['settings_title'] = $txt['ob_googlebot_modname'];



prepareDBSettingContext($config_vars);




}
function 
ModifyThankYouSettings()
{



global 
$txt$scripturl$context$settings$sc;



$config_vars = array(







//Thank you User Settings?







array(
'check''Thank_You_UserOrder'),







array(
'check''Thank_You_MemberColor'),







array(
'check''Thank_You_AddCounter'),





'',







//ThankYouList or not ;)







array(
'check''Thank_You_LinkListOnly'),







array(
'check''Thank_You_AddLink'),







array(
'int''Thank_You_UserPreview'),





'',







//HideMod DIN1031 Version







array(
'check''Thank_You_ShowHidden'),







//HideMod Leaf Version







array(
'check''Thank_You_ShowHidePostReply'),



);



// Saving?



if (isset(
$_GET['save']))



{





saveDBSettings($config_vars);





redirectexit('action=featuresettings;sa=ThankYou');



}



$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=ThankYou';



$context['settings_title'] = $txt['Thank_You_Headline'];



prepareDBSettingContext($config_vars);
}
function 
ModifyMemberColorLinksSettings()
{



global 
$txt$scripturl$context$settings$sc;



$config_vars = array(







// Standard Membercolor?







array(
'check''MemberColorLink'),





'',







//Some Stat Settings







array(
'check''MemberColorLatestMember'),







array(
'check''MemberColorStats'),







array(
'check''MemberColorWhoIsOnline'),





'',







//Thread and Boardsettings







array(
'check''MemberColorThreadOwner'),







array(
'check''MemberColorThreadLastPost'),







array(
'check''MemberColorThreadChild'),





'',







//Birthday and Calendar 







array(
'check''MemberColorBoardindex'),







array(
'check''MemberColorBirthday'),





'',







//Some Recent Things







array(
'check''MemberColorRecentOwner'),







array(
'check''MemberColorRecentLastPost'),





'',







// PM Colors







array(
'check''MemberColorInbox'),







array(
'check''MemberColorOutbox'),





'',







//Guest Color







array(
'text''MemberColorGuests'),







//Banned User Color







array(
'text''MemberColorBanned'),



);



// Saving?



if (isset(
$_GET['save']))



{





saveDBSettings($config_vars);





redirectexit('action=featuresettings;sa=MemberColorLinks');



}



$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=MemberColorLinks';



$context['settings_title'] = $txt['MemberColorLinkHeadline'];



prepareDBSettingContext($config_vars);
}

$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';


function 
ModifyGoogleMapSettings()
{



global 
$txt$scripturl$context$settings$sc;



$config_vars = array(







// Map - On or off?







array(
'check''googleMapsEnable'),







array(
'check''googleMapsEnableLegend'),





'',







// Key, pins static/gender/membergroup







array(
'text''googleMapsKey'),







array(
'check''googleMapsPinGender'),







array(
'int''googleMapsPinNumber'),
            array(
'select''googleMapsType', array('G_NORMAL_MAP' => 'Map''G_SATELLITE_MAP' => 'Satellite''G_HYBRID_MAP' => 'Hybrid')),
            array(
'select''googleSidebar', array('No Sidebar''Sidebar Right')),
        
'',
            
// Default Location/Zoom
            
array('float''googleMapsDefaultLat''25'),
            array(
'float''googleMapsDefaultLong''25'),
            array(
'int''googleMapsDefaultZoom'),
        
'',
            
// Clustering Options
            
array('check''googleMapsEnableClusterer'),
            array(
'int''googleMapsMinMarkerCluster'),
            array(
'int''googleMapsMaxVisMarker'),
            array(
'int''googleMapsMaxNumClusters'),
            array(
'int''googleMapsMaxLinesCluster'),
            



);



// Saving?



if (isset(
$_GET['save']))



{





saveDBSettings($config_vars);





redirectexit('action=featuresettings;sa=googlemap');



}



$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=googlemap';



$context['settings_title'] = $txt['googleMapFO'];



prepareDBSettingContext($config_vars);
}
?>


I don't know where is the problem i wait for you  thanks again.

Iron IC

#1471
Why on earth do you have all those empty lines between your // Load up all the tabs... on line 546 and  // Select the right tab based on the sub action... on your line 1149 ?

Here is what my code looks like for the exact same code/area:

// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.

l.uca

exsuse me but i not understand about your question, my code has many lines becouse i installed many mod, and the error is to the end code "?>", why? This i not understand. Thanks.

Jade Elizabeth

Quote from: l.uca on February 13, 2008, 07:17:59 AM
exsuse me but i not understand about your question, my code has many lines becouse i installed many mod, and the error is to the end code "?>", why? This i not understand. Thanks.

He means line breaks.



You have big spaces between your lines, Like the one I just made





And made again ;)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

l.uca

yes it's realy strange my first code  ??? maybe is the code txt on the post i you can see my code without code txt
is this the code:
<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com [nofollow])             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
   die('Hacking attempt...');

/*   This file is here to make it easier for installed mods to have settings
   and options.  It uses the following functions:

   void ModifyFeatureSettings()
      // !!!

   void ModifyFeatureSettings2()
      // !!!

   void ModifyBasicSettings()
      // !!!

   void ModifyLayoutSettings()
      // !!!

   void ModifyKarmaSettings()
      // !!!

   Adding new settings to the $modSettings array:
   ---------------------------------------------------------------------------
// !!!
*/

/*   Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
      array('check', 'nameInModSettingsAndSQL'),

      And for a text box:
      array('text', 'nameInModSettingsAndSQL')
      (NOTE: You have to add an entry for this at the bottom!)

      In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
      and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

   Here's a quick explanation of how to add a new item:

    * A text input box.  For textual values.
   ie.   array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For numerical values.
   ie.   array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For floating point values.
   ie.   array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
         
         * A large text input box. Used for textual values spanning multiple lines.
   ie.   array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A check box.  Either one or zero. (boolean)
   ie.   array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
         'OptionalReferenceToHelpAdmin'),

    * A selection box.  Used for the selection of something from a list.
   ie.   array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
   Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

    * A password input box. Used for passwords, no less!
   ie.   array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

   For each option:
      type (see above), variable name, size/possible values, description, helptext.
   OR   make type 'rule' for an empty string for a horizontal rule.
   OR   make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   // You need to be an admin to edit settings!
   isAllowedTo('admin_forum');

   // All the admin bar, to make it right.
   adminIndex('edit_mods_settings');
   loadLanguage('Help');
   loadLanguage('ModSettings');

   // Will need the utility functions from here.
   require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'googlemap' => 'ModifyGoogleMapSettings',
      'googlemap' => 'ModifyGoogleMapSettings',
      'ThankYou' => 'ModifyThankYouSettings',
      'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
      'karma' => 'ModifyKarmaSettings',
      'googlebot' => 'ModifyGooglebotSettings',
   );

   // By default do the basic settings.
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
   $context['sub_action'] = $_REQUEST['sa'];

   // Load up all the tabs...
   $context['admin_tabs'] = array(
      'title' => &$txt['modSettings_title'],
      'help' => 'modsettings',
      'description' => $txt['smf3'],
      'tabs' => array(
         'basic' => array(
            'title' => $txt['mods_cat_features'],
            'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
         ),
         'layout' => array(
            'title' => $txt['mods_cat_layout'],
            'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
         ),
         'ThankYou' => array(
            'title' => $txt['Thank_You_Headline'],
            'href' => $scripturl . '?action=featuresettings;sa=ThankYou;sesc=' . $context['session_id'],
         ),
         'MemberColorLinks' => array(
            'title' => $txt['MemberColorLinkHeadline'],
            'href' => $scripturl . '?action=featuresettings;sa=MemberColorLinks;sesc=' . $context['session_id'],
         ),

         'sbox' => array(
            'title' => $txt['sbox_ModTitle'],
            'href' => $scripturl . '?action=featuresettings;sa=sbox;sesc=' . $context['session_id'],
         ),
         
         'googlemap' => array(
            'title' => $txt['googleMapFO'],
            'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
         ),

         'googlemap' => array(
            'title' => $txt['googleMapFO'],
            'href' => $scripturl . '?action=featuresettings;sa=googlemap;sesc=' . $context['session_id'],
         ),
         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
         ),
         
         'googlebot' => array(
            'title' => $txt['ob_googlebot_modname'],
            'href' => $scripturl . '?action=featuresettings;sa=googlebot;sesc=' . $context['session_id'],   
            'is_last' => true,
         ),
      ),
   );

   // Select the right tab based on the sub action.
   if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
      $context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

   // Call the right function for this sub-acton.
   $subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'ThankYou' => 'ModifyThankYouSettings',
      'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
      'karma' => 'ModifyKarmaSettings',
      'googlebot' => 'ModifyGooglebotSettings',
      'googlemap' => 'ModifyGoogleMapSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}

function ModifyBasicSettings()
{
   global $txt, $scripturl, $context, $settings, $sc, $modSettings;

   $config_vars = array(
         // Big Options... polls, sticky, bbc....
         array('select', 'pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
      '',
         // Basic stuff, user languages, titles, flash, permissions...
         array('check', 'allow_guestAccess'),
         array('check', 'userLanguage'),
         array('check', 'allow_editDisplayName'),
         array('check', 'allow_hideOnline'),
         array('check', 'allow_hideEmail'),
         array('check', 'guest_hideContacts'),
         array('check', 'titlesEnable'),
         array('check', 'enable_buddylist'),
         array('text', 'default_personalText'),
         array('int', 'max_signatureLength'),
      '',
         // Stats, compression, cookies.... server type stuff.
         array('text', 'time_format'),
         array('select', 'number_format', array('1234.00' => '1234.00', '1,234.00' => '1,234.00', '1.234,00' => '1.234,00', '1 234,00' => '1 234,00', '1234,00' => '1234,00')),
         array('float', 'time_offset'),
         array('int', 'failed_login_threshold'),
         array('int', 'lastActive'),
         array('check', 'trackStats'),
         array('check', 'hitStats'),
         array('check', 'enableErrorLogging'),
         array('check', 'securityDisable'),

         array('check', 'hideVersion'),
      '',
         // Reactive on email, and approve on delete
         array('check', 'send_validation_onChange'),
         array('check', 'approveAccountDeletion'),
      '',
         // Option-ish things... miscellaneous sorta.
         array('check', 'allow_disableAnnounce'),
         array('check', 'disallow_sendBody'),
         array('check', 'modlog_enabled'),
         array('check', 'queryless_urls'),
      '',
         // Action SEF URLS?
         array('check', 'enableActionurls'),
         array('check', 'enableCurls'),
         array('check', 'enablePageurls'),
         array('check', 'enableUseQuestion'),
         array('check', 'enableNoIndex'),

      '',
         // Width/Height image reduction.
         array('int', 'max_image_width'),
         array('int', 'max_image_height'),
      '',
         // Reporting of personal messages?
         array('check', 'enableReportPM'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      // Fix PM settings.
      $_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
      $save_vars = $config_vars;
      $save_vars[] = array('text', 'pm_spam_settings');

      saveDBSettings($save_vars);

      writeLog();
      redirectexit('action=featuresettings;sa=basic');
   }

   // Hack for PM spam settings.
   list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(',', $modSettings['pm_spam_settings']);
   $config_vars[] = array('int', 'max_pm_recipients');
   $config_vars[] = array('int', 'pm_posts_verification');
   $config_vars[] = array('int', 'pm_posts_per_hour');

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
   $context['settings_title'] = $txt['mods_cat_features'];

   prepareDBSettingContext($config_vars);
}

function ModifyLayoutSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Compact pages?
         array('check', 'compactTopicPagesEnable'),
         array('int', 'compactTopicPagesContiguous', null, $txt['smf235'] . '<div class="smalltext">' . str_replace(' ', '&nbsp;', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', '&nbsp;', '"5" ' . $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
      '',
         // Stuff that just is everywhere - today, search, online, etc.
         array('select', 'todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
         array('check', 'topbottomEnable'),
         array('check', 'onlineEnable'),
         array('check', 'enableVBStyleLogin'),
      '',
         // Pagination stuff.
         array('int', 'defaultMaxMembers'),
      '',
         // This is like debugging sorta.
         array('check', 'timeLoadPageEnable'),
         array('check', 'disableHostnameLookup'),
      '',
         // Who's online.
         array('check', 'who_enabled'),
      '',
         // SimpleImageshack mod - SimpleTweaks.co.nr [nofollow]
         array('check', 'SimpleImageShack_enable'),
         array('check', 'SimpleImageShack_permis'),
         array('int', 'SimpleImageShack_width'),
         array('int', 'SimpleImageShack_height'),
         array('text', 'SimpleImageShack_txtclr'),
         array('int', 'SimpleImageShack_uplfld'),
      '',
            // The Streaming Mod Options.
        array('check', 'enableEmbeddedStream'),
      array('check', 'enableEmbeddedReal'),
      array('check', 'enableEmbeddedQuick'),
      array('check', 'enableGoogleVideo'),
      array('check', 'enableYouTube'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=layout');

      loadUserSettings();
      writeLog();
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=layout';
   $context['settings_title'] = $txt['mods_cat_layout'];

   prepareDBSettingContext($config_vars);
}

function ModifyKarmaSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Karma - On or off?
         array('select', 'karmaMode', explode('|', $txt['smf64'])),
      '',
         // Who can do it.... and who is restricted by time limits?
         array('int', 'karmaMinPosts'),
         array('float', 'karmaWaitTime'),
         array('check', 'karmaTimeRestrictAdmins'),
      '',
         // What does it look like?  [smite]?
         array('text', 'karmaLabel'),
         array('text', 'karmaApplaudLabel'),
         array('text', 'karmaSmiteLabel'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=karma');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
   $context['settings_title'] = $txt['smf293'];

   prepareDBSettingContext($config_vars);
function ModifyGooglebotSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Count all instances of spiders?
         array('check', 'ob_googlebot_count_all_instances'),
         array('check', 'ob_googlebot_display_all_instances'),
         array('check', 'ob_googlebot_display_agent'),
         array('check', 'ob_googlebot_display_own_list'),
      '',
         // Count spiders on most online?
         array('check', 'ob_googlebot_count_most_online'),
      '',
         // Redirect PHPSESSID URLs?
         array('check', 'ob_googlebot_redirect_phpsessid'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=googlebot');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlebot';
   $context['settings_title'] = $txt['ob_googlebot_modname'];

   prepareDBSettingContext($config_vars);   
}
function ModifyThankYouSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         //Thank you User Settings?
         array('check', 'Thank_You_UserOrder'),
         array('check', 'Thank_You_MemberColor'),
         array('check', 'Thank_You_AddCounter'),
      '',
         //ThankYouList or not ;)
         array('check', 'Thank_You_LinkListOnly'),
         array('check', 'Thank_You_AddLink'),
         array('int', 'Thank_You_UserPreview'),
      '',
         //HideMod DIN1031 Version
         array('check', 'Thank_You_ShowHidden'),
         //HideMod Leaf Version
         array('check', 'Thank_You_ShowHidePostReply'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=ThankYou');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=ThankYou';
   $context['settings_title'] = $txt['Thank_You_Headline'];

   prepareDBSettingContext($config_vars);
}
function ModifyMemberColorLinksSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Standard Membercolor?
         array('check', 'MemberColorLink'),
      '',
         //Some Stat Settings
         array('check', 'MemberColorLatestMember'),
         array('check', 'MemberColorStats'),
         array('check', 'MemberColorWhoIsOnline'),
      '',
         //Thread and Boardsettings
         array('check', 'MemberColorThreadOwner'),
         array('check', 'MemberColorThreadLastPost'),
         array('check', 'MemberColorThreadChild'),
      '',
         //Birthday and Calendar
         array('check', 'MemberColorBoardindex'),
         array('check', 'MemberColorBirthday'),
      '',
         //Some Recent Things
         array('check', 'MemberColorRecentOwner'),
         array('check', 'MemberColorRecentLastPost'),
      '',
         // PM Colors
         array('check', 'MemberColorInbox'),
         array('check', 'MemberColorOutbox'),
      '',
         //Guest Color
         array('text', 'MemberColorGuests'),
         //Banned User Color
         array('text', 'MemberColorBanned'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=MemberColorLinks');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=MemberColorLinks';
   $context['settings_title'] = $txt['MemberColorLinkHeadline'];

   prepareDBSettingContext($config_vars);
}

$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';


function ModifyGoogleMapSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Map - On or off?
         array('check', 'googleMapsEnable'),
         array('check', 'googleMapsEnableLegend'),
      '',
         // Key, pins static/gender/membergroup
         array('text', 'googleMapsKey'),
         array('check', 'googleMapsPinGender'),
         array('int', 'googleMapsPinNumber'),
            array('select', 'googleMapsType', array('G_NORMAL_MAP' => 'Map', 'G_SATELLITE_MAP' => 'Satellite', 'G_HYBRID_MAP' => 'Hybrid')),
            array('select', 'googleSidebar', array('No Sidebar', 'Sidebar Right')),
        '',
            // Default Location/Zoom
            array('float', 'googleMapsDefaultLat', '25'),
            array('float', 'googleMapsDefaultLong', '25'),
            array('int', 'googleMapsDefaultZoom'),
        '',
            // Clustering Options
            array('check', 'googleMapsEnableClusterer'),
            array('int', 'googleMapsMinMarkerCluster'),
            array('int', 'googleMapsMaxVisMarker'),
            array('int', 'googleMapsMaxNumClusters'),
            array('int', 'googleMapsMaxLinesCluster'),
           
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=googlemap');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=googlemap';
   $context['settings_title'] = $txt['googleMapFO'];

   prepareDBSettingContext($config_vars);
}
?>

Iron IC

Maybe you should ask for support in your own language?  A tip for you is to use the code- tags to display your code in, like this

Daniel15

Quote from: Alundra on February 13, 2008, 08:14:02 AM
Quote from: l.uca on February 13, 2008, 07:17:59 AM
exsuse me but i not understand about your question, my code has many lines becouse i installed many mod, and the error is to the end code "?>", why? This i not understand. Thanks.

He means line breaks.



You have big spaces between your lines, Like the one I just made





And made again ;)
It's a bug in SMF 2.0's [code] tag. Those spaces don't exist in the code itself, SMF is misformatting the tabs.

In any case, all those $txt lines are in the wrong file. They should be in a language file (eg. Themes/default/languages/Modifications.italian.php), and not in the ModSettings.php file.
Remove this:

$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';

And put it in Modifications.[language].php, right before the ?>. See if that fixes the issue.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Judgey

sorry to be a tit, but were can i find the settings on my board?

medflux

#1478
hello there , i hope that someone can help me ... it's urgent

i installed the Googlebot and spider mod and i made the theme edits correctly using SMF package parser ...

the mod seems to be installed correctly even before i made the theme edits and i could see google and yahoo search bots on my board index .. the only problem i have is a huge block of text appearing above my board , at the very top of it ... i think it's some how related to the modifications.english.php file , although my custom theme uses the file from the default theme

here is the php text that appear above my page:
// 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
("' . $txt['ob_googlebot_count_all_instances'] . '" must be selected)
'; $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"'; $txt['ob_googlebot_redirect_phpsessid'] = 'Redirect PHPSESSID URLs'; // Stats $txt['ob_googlebot_stats_lastvisit'] = 'Google visited last this page '; // Permissions $txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname']; $txt['permissionname_googlebot_view'] = 'View Googlebot & Spiders'; // OB - Googlebot - End


I didn't have any errors during/before installation ...

The problem appeared just after installation , even before making the theme edits..


i'm using Outline theme ..

hope someone can help , thanx in advance ...

Bigguy

Make sure in your modifications.english.php file that this:

?>

is the LAST line in the file and that it is on it's OWN line; apart from all the other code.

Advertisement: