News:

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

Main Menu

View Only Boards

Started by Rudolf, January 31, 2007, 10:45:10 AM

Previous topic - Next topic

sharks

Unfortunately, i have spoken too soon. :(

I am still using SMF 2.0 RC3 with default theme. Here is the error that keeps showing up when my members use the unread feature:

http://forum.org/index.php?action=unread
8: Undefined index: protected
File: /home/user/sharks/Themes/default/Recent.template.php (unread sub template - eval?)
Line: 159

sparky33

I use this on my old forum which is running 1.1.11 and have used this mod for a long time, I would like to use it on my RC3, but there doesn't seem to be a compatible version, is there going to be one?
www.dublinforums.org

www.renaultforums.co

sharks

Quote from: sparky33 on August 26, 2010, 10:22:01 AM
I use this on my old forum which is running 1.1.11 and have used this mod for a long time, I would like to use it on my RC3, but there doesn't seem to be a compatible version, is there going to be one?

Download the RC3 version from here, as attachment:
http://www.simplemachines.org/community/index.php?topic=146964.msg2734095#msg2734095

But like i have said in my previous reply above, there is one minor bug yet to be fixed.

sparky33

Thanks for the quick reply, I had seen that one but wasn't sure if it was safe to use yet
www.dublinforums.org

www.renaultforums.co

searchgr

Have you tried this?

Quote from: searchgr on December 30, 2009, 12:17:38 AM
try this

'protected' => in_array($row['id_board'], $user_info['view_only_boards']), //- View Only Boards MOD-

sparky33

Is that a fix for the error? If so, where does it go?
www.dublinforums.org

www.renaultforums.co

sharks

Hi sparky33

Yes, as far as safety is involved, yes the attachment is OK, but it also generates a few errors as mentioned before. I am already using it on my SMF 2.0 RC3 forum and it works as it should, though missing a few minor options from the SMF 1.1.11 version.

No idea about fixing that error. Have to wait until someone more knowledgeable stops by this thread. :)

camoura

One thing I noticed, if guests are allowed to see the forum statistcs, they can see the title of "protected" topics.

sparky33

Seeing titles of topics but not the content is the point isn't it?
www.dublinforums.org

www.renaultforums.co

Hj Ahmad Rasyid Hj Ismail

Quote from: sharks on August 18, 2010, 11:48:05 AM
Unfortunately, i have spoken too soon. :(

I am still using SMF 2.0 RC3 with default theme. Here is the error that keeps showing up when my members use the unread feature:

http://forum.org/index.php?action=unread
8: Undefined index: protected
File: /home/user/sharks/Themes/default/Recent.template.php (unread sub template - eval?)
Line: 159

I'll check this soonest.


Quote from: sparky33 on September 11, 2010, 12:38:56 PM
Seeing titles of topics but not the content is the point isn't it?

I have to agree with sparky33 on this. This mod name is view only board if anyone cares.

madman71

just booking marking to wait for the fix  ;D

Krysia

I truly wish SMF would implement this mod as an actual feature of SMF.

Though they must have some form of it because of the Charter member section? (Unless that isn't visible to non-Charters.)



Spoogs

the charter board isnt visible to us non-charter folks :)

Krysia

Quote from: Spoogs on October 01, 2010, 11:43:28 PM
the charter board isnt visible to us non-charter folks :)
Oh. Dang.
TY for the 411, Spoogs. :)



searchgr

Quote from: Krysia on October 01, 2010, 11:36:49 PM
I truly wish SMF would implement this mod as an actual feature of SMF.

You are not alone.

Slateer

Quote from: ahrasis on August 06, 2010, 02:21:49 PM
Quote from: sharks on August 06, 2010, 12:02:08 PM
There is a bug with the 2.0 RC3 version. If the option to list all recent posts is enabled, it will list all the latest posts, even if some of the posts are in boards which have been set to invisible and/or inaccessible to guests.
I agree with you sharks. I have made some effort to check and (I think I had) fixed it. Please try and see how it goes. It is working on my site.

EDITED: Attached mod refixed due the error reported by sharks.

hi, i downoad this mod, but dont see last post in my sub forum:
http://gamersite.pl/targowisko/#top
or
http://gamersite.pl/playstation-3/#top

Slateer


lazylivin

#517
Wow this is a great MOD, definitely encourages users to join because they can see it is a active forum.

I also have a similar issue that others have reported. If you would mind helping me as well, below is the error and code.
I installed View_Only_Boards_2.0RC3_v2_refixed.zip


8: Undefined index: protected
File: /homepages/7/d162731726/htdocs/forum/Themes/default/Recent.template.php (eval?)
Line: 162

Line 162 is the second line below.

echo '
<tr ', $topic['board']['protected'] ? 'class="vob_protected"' : '' ,'>
<td class="', $color_class, ' icon1 windowbg">
<img src="', $settings['images_url'], '/topic/', $topic['class'], '.gif" alt="" />
</td>
<td class="', $color_class, ' icon2 windowbg">
<img src="', $topic['first_post']['icon_url'], '" alt="" />
</td>
<td class="subject ', $color_class2, ' windowbg2">
<div>
', $topic['is_sticky'] ? '<strong>' : '', '<span id="msg_' . $topic['first_post']['id'] . '">', $topic['first_post']['link'], '</span>', $topic['is_sticky'] ? '</strong>' : '' ,'
<a href="', $topic['new_href'], '" id="newicon', $topic['first_post']['id'], '"><img src="', $settings['lang_images_url'], '/new.gif" alt="', $txt['new'], '" /></a>
<p>
', $txt['in'], ' <em>', $topic['board']['link'], '</em>
<small id="pages', $topic['first_post']['id'], '">', $topic['pages'], '</small>
</p>
</div>
</td>
<td class="stats windowbg ', $color_class, '">
', $topic['first_post']['member']['link'],'
</td>
<td class="', $color_class, ' stats windowbg">
', $topic['replies'], ' ', $txt['replies'], '
<br />
', $topic['views'], ' ', $txt['views'], '
</td>
<td class="', $color_class2, ' lastpost windowbg2">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" style="float: right;" /></a>
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
</td>';
if ($showCheckboxes)





Hj Ahmad Rasyid Hj Ismail

I can't seem to figure this as yet but if anyone find a solution please feel free to post/share it here.

lazylivin

Quote from: ahrasis on October 23, 2010, 06:03:43 AM
I can't seem to figure this as yet but if anyone find a solution please feel free to post/share it here.

Thanks for trying.

Is there anyone willing to take a crack at this?

Any time someone clicks Show Unread Posts Since Last Visit we get this message in the error log.

http://www.somedomain.org/index.php?action=unread8: Undefined index: protectedFile: /homepages/7/d162731726/htdocs/forum/Themes/default/Recent.template.php (eval?)
Line: 162

Line 162 is in previous post.

Thanks

Advertisement: