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

Omar Bazavilvazo

Quote from: CokeCan on June 07, 2005, 02:58:27 AM
I installed it but when I go to "Edit Features and Options" I get this error:
QuoteParse error: parse error, unexpected T_ARRAY in /www/docs/forum/Sources/ModSettings.php on line 356
What should I do?
what version of smf do you have?
can you copy/paste from line 350-360  here?




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: Harro on June 07, 2005, 06:28:31 AM
Nice work, been waiting for this :)

Got one problem tough. It's a bit hard to install it manualy. xml file isn't realy easy to follow, and it's very easy to overlook something.
if you don't have any other mod, i can send toyou the modified files, from a clean install.
or you can install it on a local computer, and then ftp your modified files




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


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

Harro

Go shoutbox installed, arcade.
SO I doubt it'll work.
I'll try to do it manually :)
But first I'm gonna change some stuff to that xml file, so it looks a bit better.

CokeCan

Quote from: Omar Bazavilvazo on June 07, 2005, 08:08:28 AM
Quote from: CokeCan on June 07, 2005, 02:58:27 AM
I installed it but when I go to "Edit Features and Options" I get this error:
QuoteParse error: parse error, unexpected T_ARRAY in /www/docs/forum/Sources/ModSettings.php on line 356
What should I do?
what version of smf do you have?
can you copy/paste from line 350-360  here?
I have got the last SMF version (SMF 1.0.3), here are the lines:

if (isset($modSettings['mdb_enable_fm_features']) && $modSettings['mdb_enable_fm_features'] > 0)
array_push($config_vars,
array('select', 'mdb_artist_folder', $fm_folders),
array('select', 'mdb_album_folder', $fm_folders),
array('select', 'mdb_song_folder', $fm_folders),
array('rule')
array('heading', &$txt['ob_googlebot_modname']),
// 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'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
);

Kindred

Looks like you have some other mods installed which are conflicting...
(You need a comma after that array('rule') before the ob_googlebot_modname array...


array('rule'),
array('check', 'visualw_pmod_edit'),
array('rule'),
array('heading', &$txt['ob_googlebot_modname']),
// 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'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
);


this is what mine looks like...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Omar Bazavilvazo

Yup, it should be like this:

if (isset($modSettings['mdb_enable_fm_features']) && $modSettings['mdb_enable_fm_features'] > 0)
array_push($config_vars,
array('select', 'mdb_artist_folder', $fm_folders),
array('select', 'mdb_album_folder', $fm_folders),
array('select', 'mdb_song_folder', $fm_folders),
array('rule'),
array('heading', &$txt['ob_googlebot_modname']),
// 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'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),
);




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


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

CokeCan

#26
Thanks but now I get this error :-[:
QuoteParse error: parse error, unexpected ')' in /www/xxx/xxx/forum/Sources/ModSettings.php on line 364
Here are the line 363 and 364:
Quotearray('check', 'ob_googlebot_count_most_online'),
   );
If I change it to:
Quotearray('check', 'ob_googlebot_count_most_online')
   );
The "Edit Features and Options" works ok but I can't find the settings of this mod there

Omar Bazavilvazo

Seems the problem is because of music mod or whatever mod you are using.

ok, leave how it was _before_ the "," you aded.

Search for:

array('heading', &$txt['ob_googlebot_modname']),
// 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'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),

Cut it, and PASTE it


AFTER:

array('rule'),
// One day events or multi-day?
array('check', 'cal_allowspan'),
array('int', 'cal_maxspan'),
array('rule'),



let me know how it works

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

CokeCan

Now it get:

QuoteParse error: parse error, unexpected T_ARRAY in /www/xxx/xxx/forum/Sources/ModSettings.php on line 356

Norbert

Quote from: Omar Bazavilvazo on June 07, 2005, 12:08:46 PM
Seems the problem is because of music mod or whatever mod you are using.

ok, leave how it was _before_ the "," you aded.

Search for:

array('heading', &$txt['ob_googlebot_modname']),
// 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'),
array('rule'),
array('check', 'ob_googlebot_count_most_online'),

Cut it, and PASTE it


AFTER:

array('rule'),
// One day events or multi-day?
array('check', 'cal_allowspan'),
array('int', 'cal_maxspan'),
array('rule'),



let me know how it works

ja ne!

I had the same problem with the music database mod. Now it works for me. Thx. Great mod.

SusanTN

Quote from: Omar Bazavilvazo on June 07, 2005, 12:08:46 PM
Seems the problem is because of music mod or whatever mod you are using.

He sent me a PM since he only has two installed mods the music one and this one I recommended he uninstall both. Swap the file in question to the one from the distribution, and reinstall them both your mod first, then reinstall the music mod and see if that fixed his problem.

Owdy

Omar, you need to update to beta3 ;)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

CokeCan

Quote from: bl968 on June 07, 2005, 12:23:21 PM
Quote from: Omar Bazavilvazo on June 07, 2005, 12:08:46 PM
Seems the problem is because of music mod or whatever mod you are using.

He sent me a PM since he only has two installed mods the music one and this one I recommended he uninstall both. Swap the file in question to the one from the distribution, and reinstall them both your mod first, then reinstall the music mod and see if that fixed his problem.
Works ok now! thanks! :D

Omar Bazavilvazo

Quote from: Owdy on June 07, 2005, 12:28:26 PM
Omar, you need to update to beta3 ;)
*lol* yeah...

I must do it all again for my site *sigh*

Quote from: CokeCan on June 07, 2005, 12:54:08 PM
Works ok now! thanks! :D
I'm glad it finally worked :P





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


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

mrselnombre

i am having a problem with this mod
it isn't working for guests or members, but works fine for admin

also this is how it looks in my permissions area


I am not getting any errors, error log is empty too.

i think it is clashing with a mod, but no idea what one. i checked all the files to make sure the code is in right and it was (besides a couple of tweaks to the templates)
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Total Twaddle.

Omar Bazavilvazo

for both "ungrouped visitors" and "ungrouped members" it is allowed?

it should only have 1 option button, not 2... try in english to see why you are getting 2 rows...




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


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

Harro

#36
I'm also getting an error :(
Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/users/members/hwbk/harro/public_html/forums/Sources/BoardIndex.php on line 392

// Highest number of users online today?
elseif ($total_users > $modSettings['mostOnlineToday'])
{
trackStats(array('mostOn' => $total_users));
updateSettings(array('mostOnlineUpdated' => $date, 'mostOnlineToday' => $total_users));
}
}
// Allowed user to see spiders online (We change stuff here AFTER stats update). Spiders are displayed as guests again.
if (!allowedTo('googlebot_view'))
{
$context['num_guests'] += $context['num_spiders'];
}
// Set the latest member.
'name' => $modSettings['latestRealName'],
'id' => $modSettings['latestMember'],
'href' => $scripturl . '?action=profile;u=' . $modSettings['latestMember'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $modSettings['latestMember'] . '">' . $modSettings['latestRealName'] . '</a>'
);

Any idea what it could be?
Useully I can find these errors by myself. But haven't been able to fix htis one...


[edit]
Nevermind.
I fixed it I think.
Now I'll have to wait for a spider to come by ;)


[edit 2]
Anybody succesfully installed this for another theme then the default?
Am having problems with it.

mager

I bi-accidentally installed it 4 times, where can I delete this error.
http://www.dnlforum.com  Dark and Light Unofficial Forum

dtm.exe

Quote from: mager on June 07, 2005, 08:16:00 PM
I bi-accidentally installed it 4 times, where can I delete this error.

In your Admin > Package Manager, uninstall all "Googlebot and Spiders" mods that can be uninstalled.  Then, delete each one and try reinstalling once more.

-Dan The Man

mager

there is no "uninstall" for it, but it is installed 4 times.
http://www.dnlforum.com  Dark and Light Unofficial Forum

Advertisement: