News:

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

Main Menu

Look But No Read

Started by Deprecated, August 17, 2008, 08:55:53 PM

Previous topic - Next topic

Uhura!

:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

YogiBear

We're waiting to hear about Sarge's add-on to Deprecated's mod, Uhura. Meanwhile, I've set some of my Boards visible only to signed-on members.
SMF v2.1.4  Mods : Snow & Garland v1.4, Simple Image Upload v2.0.0,  PHP  v.8.1

Linda.V

Thanks Deprecated for this mod. I have just installed this on my SMF 2.0 RC2 and works good  ;)

Hawkmoth

Hi

I'm using smf 1.1.11 and installed this mod. (Nice mod by the way)

But it appears that the catagorie block doesn't work.
It does the same as the board block.

ie catagorie no 2 with board no 1.
I add catagorie no 2 to the blocking and I can see the board title and see the threads but I'm unable to read the threads.

If I leave the catagorie empty and add board no 1 to the blocking I get the same result as above.

Have I done somit wrong?

rd

This looks very useful.

Hawkmoth

Quote from: Hawkmoth on March 29, 2010, 11:58:52 AM
Hi

I'm using smf 1.1.11 and installed this mod. (Nice mod by the way)

But it appears that the catagorie block doesn't work.
It does the same as the board block.

ie catagorie no 2 with board no 1.
I add catagorie no 2 to the blocking and I can see the board title and see the threads but I'm unable to read the threads.

If I leave the catagorie empty and add board no 1 to the blocking I get the same result as above.

Have I done somit wrong?
I think I answered my own question after reading the description for this mod more carefuly:-
"They will still be able to see the board index including all the topic titles, but they will be taken to the "Please login or register" page if they attempt to read any topics."

I was expecting that by adding the catagories you could only read the board titles.
But I now realise that it just prevents the reading of the threads for all the boards within the catagories.

Sry to have bothered you all.

Linda.V

Quote from: Hawkmoth on March 30, 2010, 09:42:44 AM

But I now realise that it just prevents the reading of the threads for all the boards within the catagories.


That's it Hawkmoth  ;)

ronnie42

For everybody who has problems with Guests still reading the last post in the topics trough the most recent topics link.

Here is a solution:

Open the Recent.php  in /Sources/ and find this code:

loadTemplate('Recent', 'forum');
$context['page_title'] = $txt['recent_posts'];



Replace:

is_not_guest(); loadTemplate('Recent', 'forum');
$context['page_title'] = $txt['recent_posts'];



This is a solution wich works very fine for SMF  2.0 RC3 and recent.


This code will give the guest a warning to either log in or register to the forum.

Have a try HERE

This forum is in dutch but at the bottom you will find: Bekijk de meest recente berichten op het forum.

click on that and the warning will be given.

Hope this helps a bit.  ;)


p.s: ofcorse always make a backup first from your recent.php to re-instal if needed.


Powered by SMF 2.0 RC4

JessyKa

@Ronnie42:
Is there a similar solution for SMF 1.1.11?

I only find the following part in the recent.php:
loadTemplate('Recent');
$context['page_title'] = $txt[214];

Is this the right part to change?

And should the modification finally look like this?

is_not_guest(); loadTemplate('Recent');
$context['page_title'] = $txt[214];


I wonder, if the templates "214" and "Recent" are the same in the two versions and why the loading of the template in SMF 2 ist slightly different loadTemplate('Recent', 'forum'); instead of loadTemplate('Recent'); with 1.1.11

Sorry if the questions are stupid, I am new to SMF.
Thanks a lot,
sunny greetings from Germany

Jessy

Linda.V

Quote from: ronnie42 on April 14, 2010, 07:12:33 AM
For everybody who has problems with Guests still reading the last post in the topics trough the most recent topics link.

Here is a solution:...

Thanks ronnie42, I've also changed the code  ;)

ronnie42

Quote from: JessyKa on April 17, 2010, 11:43:06 AM
@Ronnie42:
Is there a similar solution for SMF 1.1.11?

Sorry if the questions are stupid, I am new to SMF.
Thanks a lot,
sunny greetings from Germany

Jessy



There are no stupid questions as far as i'm concernd

I would say: just backup your recent php trough ftp and store it on a save place on your pc, then make a copy of the file and try to edit the code, if it works then!! well your happy ;-)

If not?

Just put the backup file back in the sources root and move on.

Just try it out.

But always be carefull with wat you do ofcorse and ask somebody for help if you need it.

Laterzz.
Powered by SMF 2.0 RC4

JessyKa

Hello Laterzz,
thanks for Your answer.
It won't work because the recent.php in 1.11.1 doesn't contain this part.

Yet I started to edit the \Themes\default\BoardIndex.template.php
I removed the link to the recent posts.
But there is still a leftover within the statistic section:

<td class="windowbg2" width="100%">
<span class="middletext">
', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
<br /> ' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br />
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>


If I could also remove the link in <a href="', $scripturl, '?action=recent">', $txt[234], '</a>' anything would be ok. But if I try, I always get a parsing error.
Is there any other file that needs to be adapted?
best regards,
Jessy

Hawkmoth

Hi JessyKa

I too use 1.1.11 and this mod (great Mod by the way)

This is what I followed to remove the 'View recent posts'
http://www.simplemachines.org/community/index.php?topic=355403.0

Hope this helps you.

bryan_49ers

works out of the box for 2.03... lifesaver! ... now if I could only control by member group...

JessyKa

Thanks Hawkmoth!
I didn't find this thread, although it is exactly what I was looking for.
Will have a try.
Jessy

blakilox

Why is this mod depreceated? is it because a similar feature is now available ?

I like the solution posted just above, however would this stop Google from indexing the boards?

Thankyou for help.
Garry
Alice Springs
Outback Central Australia.

KensonPlays

not using it anymore since RC3...

Owner of Mesozoic Haven

linette97

Installed in RC3 and it works just fine!
Watch Documentaries Online!


Yesterday is history,
Tomorrow is a mystery,
Today is a gift,
That's why it's called the Present.

Mave

Thanx

<file name="$languagedir/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['lbnr'] = 'Schauen, aber nicht lesen';
$txt['mods_cat_lbnr'] = 'Schauen, aber nicht lesen';
$txt['boards_deny_guest_browsing'] = 'Verbotene Boards für Gäste:';
$txt['categories_deny_guest_browsing'] = 'Verbotene Kategorien für Gäste:';
$txt['enable_guest_browsing_control'] = 'Aktiviere Gäste Browsing Kontrolle:';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['lbnr'] = 'Schauen, aber nicht lesen';
$txt['mods_cat_lbnr'] = 'Schauen, aber nicht lesen';
$txt['boards_deny_guest_browsing'] = 'Verbotene Boards für Gäste:';
$txt['categories_deny_guest_browsing'] = 'Verbotene Kategorien für Gäste:';
$txt['enable_guest_browsing_control'] = 'Aktiviere Gäste Browsing Kontrolle:';
]]></add>
</operation>
</file>

BoxingChaos

Thank you  Deprecated, I had no idea this MOD existed but it was needed and I had to ask if anything like this was available. This should be a default CORE mod for SMF. Thanks for making this one bud :) I was using REG LINKS but that can get annoying seeing REGISTER everywhere.

Good job. I had to parse and stuff since my site is so full of MODS but, it was very easy. :)

www.BoxingSquad.com/forum

Advertisement: