• Welcome to Simple Machines Community Forum. Please login or sign up.
September 27, 2021, 08:39:51 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Limit Thread Views for Guests -- Motive Guests to Register

Started by Doug Heffernan, March 04, 2018, 04:49:03 PM

Previous topic - Next topic

Kathryn_

I understand this is an old post but I hope someone would be able to help me.. the mod works and the only reason I have it is because I don't use attachments, and post directly with a button .
the error of the mod appears on my logs like this:


9:    return $admin_areas['config']['areas']['modsettings']['subsections'] += array('guestviews' =>            array(sprintf($txt['guestviews_settings']['page_title'], '')));

I have removed this mod more than once I really would like to have it.

my forum is run on installation 2.0.15

Kathryn_

Quote from: Kathryn_ on June 17, 2019, 05:43:31 PM
I understand this is an old post but I hope someone would be able to help me.. the mod works and the only reason I have it is because I don't use attachments, and post directly with a button .
the error of the mod appears on my logs like this:


9:    return $admin_areas['config']['areas']['modsettings']['subsections'] += array('guestviews' =>            array(sprintf($txt['guestviews_settings']['page_title'], '')));

I have removed this mod more than once I really would like to have it.

my forum is run on installation 2.0.15

With the configurations from Virginia posted earlier  It saved my forum  thank you I now have the mod working without an error and the title shows perfect in Admin Panel   thank you!

Sectomy

same here as Kiriakos,
same error message
2: Illegal string offset 'page_title'

any ideas ? :)

Shambles

Quote from: Sectomy on July 19, 2020, 10:48:40 AM
same here as Kiriakos,
same error message
2: Illegal string offset 'page_title'

any ideas ? :)

Did you try the solution offered earlier in the thread?

https://www.simplemachines.org/community/index.php?topic=559168.msg3968507#msg3968507

Sectomy

For all others who got this:
2: Illegal string offset 'page_title'
in Error Log, do this:

Code:
return $admin_areas['config']['areas']['modsettings']['subsections'] += array('guestviews' => array(sprintf($txt['guestviews_settings']['page_title'], '')));


Should be:

Code:
return $admin_areas['config']['areas']['modsettings']['subsections'] += array('guestviews' => array(sprintf($txt['guestviews_settings'], '')));




in GuestViewLimitSettings.php

thanx  ! :D

Sectomy

Quote from: Shambles on July 19, 2020, 11:26:18 AM
Quote from: Sectomy on July 19, 2020, 10:48:40 AM
same here as Kiriakos,
same error message
2: Illegal string offset 'page_title'

any ideas ? :)

Did you try the solution offered earlier in the thread?

https://www.simplemachines.org/community/index.php?topic=559168.msg3968507#msg3968507
thx, i quoted it b4... Thank You !!!!

Advertisement: