Advertisement:

Author Topic: View Only Boards  (Read 231136 times)

Offline sharks

  • Sr. Member
  • ****
  • Posts: 891
  • Gender: Male
  • There's always a way.
Re: View Only Boards
« Reply #500 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
SMF 2.0 Theme Color Editor
http://www.colorizeit.com/browse/24/smf-20-themes.html

SMF Package Parser to view all edits made by any modification package:
http://resourcez.biz/PackageParser/

Firefox is the best browser for SMF!
http://www.mozilla.com/en-US/firefox/fx/

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Re: View Only Boards
« Reply #501 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?

Offline sharks

  • Sr. Member
  • ****
  • Posts: 891
  • Gender: Male
  • There's always a way.
Re: View Only Boards
« Reply #502 on: August 26, 2010, 10:47:58 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.
SMF 2.0 Theme Color Editor
http://www.colorizeit.com/browse/24/smf-20-themes.html

SMF Package Parser to view all edits made by any modification package:
http://resourcez.biz/PackageParser/

Firefox is the best browser for SMF!
http://www.mozilla.com/en-US/firefox/fx/

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Re: View Only Boards
« Reply #503 on: August 26, 2010, 10:52:56 AM »
Thanks for the quick reply, I had seen that one but wasn't sure if it was safe to use yet

Offline searchgr

  • Sophist Member
  • *****
  • Posts: 1,247
Re: View Only Boards
« Reply #504 on: August 26, 2010, 11:06:23 AM »
Have you tried this?

try this

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

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Re: View Only Boards
« Reply #505 on: August 26, 2010, 11:24:40 PM »
Is that a fix for the error? If so, where does it go?

Offline sharks

  • Sr. Member
  • ****
  • Posts: 891
  • Gender: Male
  • There's always a way.
Re: View Only Boards
« Reply #506 on: August 27, 2010, 01:14:38 AM »
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. :)
SMF 2.0 Theme Color Editor
http://www.colorizeit.com/browse/24/smf-20-themes.html

SMF Package Parser to view all edits made by any modification package:
http://resourcez.biz/PackageParser/

Firefox is the best browser for SMF!
http://www.mozilla.com/en-US/firefox/fx/

Offline camoura

  • Semi-Newbie
  • *
  • Posts: 48
Re: View Only Boards
« Reply #507 on: September 05, 2010, 02:12:11 AM »
One thing I noticed, if guests are allowed to see the forum statistcs, they can see the title of "protected" topics.

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Re: View Only Boards
« Reply #508 on: September 11, 2010, 12:38:56 PM »
Seeing titles of topics but not the content is the point isn't it?

Offline Hj Ahmad Rasyid Hj Ismail

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: View Only Boards
« Reply #509 on: September 11, 2010, 02:46:46 PM »
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.


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.

Offline madman71

  • Full Member
  • ***
  • Posts: 652
Re: View Only Boards
« Reply #510 on: September 19, 2010, 02:23:26 AM »
just booking marking to wait for the fix  ;D

Offline Krysia

  • Jr. Member
  • **
  • Posts: 377
  • Gender: Female
    • KRYSIA'S WEB
Re: View Only Boards
« Reply #511 on: October 01, 2010, 11:36:49 PM »
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.)



Offline Spoogs

  • SMF Hero
  • ******
  • Posts: 1,676
  • Gender: Male
Re: View Only Boards
« Reply #512 on: October 01, 2010, 11:43:28 PM »
the charter board isnt visible to us non-charter folks :)

Offline Krysia

  • Jr. Member
  • **
  • Posts: 377
  • Gender: Female
    • KRYSIA'S WEB
Re: View Only Boards
« Reply #513 on: October 01, 2010, 11:50:08 PM »
the charter board isnt visible to us non-charter folks :)
Oh. Dang.
TY for the 411, Spoogs. :)



Offline searchgr

  • Sophist Member
  • *****
  • Posts: 1,247
Re: View Only Boards
« Reply #514 on: October 02, 2010, 12:34:03 AM »
I truly wish SMF would implement this mod as an actual feature of SMF.

You are not alone.

Offline Slateer

  • Semi-Newbie
  • *
  • Posts: 12
Re: View Only Boards
« Reply #515 on: October 05, 2010, 01:35:45 AM »
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:
Code: [Select]
http://gamersite.pl/targowisko/#topor
Code: [Select]
http://gamersite.pl/playstation-3/#top

Offline Slateer

  • Semi-Newbie
  • *
  • Posts: 12
Re: View Only Boards
« Reply #516 on: October 08, 2010, 08:29:40 AM »
ref...

Offline lazylivin

  • Semi-Newbie
  • *
  • Posts: 73
Re: View Only Boards
« Reply #517 on: October 22, 2010, 10:04:15 PM »
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.

Code: [Select]
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)



« Last Edit: October 30, 2010, 11:08:36 PM by lazylivin »

Offline Hj Ahmad Rasyid Hj Ismail

  • SMF Hero
  • ******
  • Posts: 4,916
  • Gender: Male
  • Busy mode is on.
    • ahmad.rasyid.ismail on Facebook
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • @ahrasis on Twitter
    • ElkArte Malaysia
Re: View Only Boards
« Reply #518 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.

Offline lazylivin

  • Semi-Newbie
  • *
  • Posts: 73
Re: View Only Boards
« Reply #519 on: October 30, 2010, 11:23:53 PM »
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