View Only Boards

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

Previous topic - Next topic

Rudolf

Thanks.

I'm sorry but I don't understand your requests.
You can already select multiple groups, and as of the second request I don't remember planing anything alike. I'm not even sure what you mean.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

fgoc

Hi,

Please can you point me to the file and code I need to change to replace the word "Protected" with "Members Only". I find the use of the word "protected" a bit unfriendly and unwelcoming.

Maybe for future revisions you could enable it so that people can choose what word to show when boards are view only boards?

In the meantime though, if you tell me where I can change the work "Protected" I'll be happy :)

Great mod btw - been needed for a long time :)

Paul
www.fgoc.co.uk

Rudolf

In Modification.english.php
$txt['vob_protected'] = 'Protected';

change the value on the right side
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

fgoc

thanks for the quick response! keep up the good work!

shadow82x

This mod broke my forums!

I installed it over 1.x after getting 3 errors

sources/load
manage forums
and another one

Than I uninstall it and I get this

Modification parse error
2.    Execute Modification    -    Modification parse error
Execute Modification     -     Modification parse error
Colin B
Former Spammer, Customize, & Support Team Member

Rudolf

I'm not even sure how youmanaged to install the new version over the old. SMF doesn't let me to do that.
You will have to remove manually the mod. Open the sources.xml and themes.xml in the package and reverse-apply the modifications.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

shadow82x

Any reason why it wont let me login now after I installed 1.0



I get:

            Incorrect key file for table '/tmp/#sql_6cea_0.MYI'; try to repair it
File: /home/clandis/www/Sources/Recent.php
Line: 102
Colin B
Former Spammer, Customize, & Support Team Member

Rudolf

Your database might got corrupted, though there is no way it was caused by the mod.
You'll have to repair the database by going in with phpMyadmin.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

farg

Quote from: Rudolf on January 31, 2007, 10:45:10 AM
Link to Mod

*****************************************************
View Only Boards - Modification for SMF
version 1.1
© 2007, Rudolf Martincsek
*****************************************************
Make boards visible on the forum index based on member groups.
Does not affect anything else. The access permission is still valid.
There is a setting to allow the view of the board index (topic listing).
Members with no access to boards won't be able to enter the board or the topics - depending on the above setting.

In the package file you downloaded you'll find a readme.html file. Consult with that file for more information.

Have fun!
I  L O V E  Y O UUUUUU!!!!

Thank YOu! GRAZIE !!!

It's 2 years that I wanted this mod!!!!

:'( :'( THANK YOU!!

Exuse me for CAPS, but I very happy!
Today is national party!!!

Cool999

#149
i am getting this error, after i click on Apply Mod-

8. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
9. Execute Modification ./Themes/default/MessageIndex.template.php Test failed

PLease Help. Thanks

I am attaching both files.

Sarge

Quote from: Cool999 on June 23, 2007, 05:14:49 PM
I am attaching both files.

You have attached the same file twice.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Cool999

#151
Hello Sir, now i am attaching all the theme files which needs to be edit for view only board MOD.

PLease Help me out.

I tried 2-3 times, but unable to make it work

Thanks

Quote from: Sarge on June 28, 2007, 02:55:08 AM
Quote from: Cool999 on June 23, 2007, 05:14:49 PM
I am attaching both files.

You have attached the same file twice.

Sarge

Installation of the mod doesn't give a "Test failed" error on the MessageIndex.template.php that you attached, only on BoardIndex.template.php (click on the picture for full size):



Are you sure you attached the correct files?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Rudolf

You have a custom biardIndex.template.
After you installed the mod in your BoardIndex.template.php search
if (!empty($board['last_post']['id']))
{
echo '
', $board['last_post']['time'], '<br />
In: <a href="', $scripturl . '?topic=' . $board['last_post']['topic'], '.0" />', ((substr($board['last_post']['subject'], 0,3) == 'Re:') ?  substr($board['last_post']['subject'],3)  : $board['last_post']['subject']), '</a>&nbsp;<a href="', $board['last_post']['href'], '"><img src="'. $settings['images_url']. '/goto_new.gif" alt="Go to last post." title="Go to last post." /></a><br />
By: ', $board['last_post']['member']['link'], '';
}
else
{
echo '&nbsp;';
}

Replace it with
if (!empty($board['last_post']['id']))
{
echo $board['last_post']['protected'] ? '<span class="vob_protected">' . $txt['vob_protected'] . '</span>' :
$board['last_post']['time'], '<br />
In: <a href="', $scripturl . '?topic=' . $board['last_post']['topic'], '.0" />', ((substr($board['last_post']['subject'], 0,3) == 'Re:') ?  substr($board['last_post']['subject'],3)  : $board['last_post']['subject']), '</a>&nbsp;<a href="', $board['last_post']['href'], '"><img src="'. $settings['images_url']. '/goto_new.gif" alt="Go to last post." title="Go to last post." /></a><br />
By: ', $board['last_post']['member']['link'], '';
}
else
{
echo '&nbsp;';
}

I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Cool999

I use Smartmc_blue theme.

But i get error in both.

Yes i have attached the correct files.

Please help

Thanks

Quote from: Sarge on June 28, 2007, 06:19:44 PM
Installation of the mod doesn't give a "Test failed" error on the MessageIndex.template.php that you attached, only on BoardIndex.template.php (click on the picture for full size):



Are you sure you attached the correct files?

Rudolf

Have you applied the modification in my previous post to the BoardIndex?
The MessageIndex is good, and it should work.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Cool999

NO i havent applied yet,


I am getting Test Failed in-

./Themes/default/BoardIndex.template.php     Test failed
./Themes/default/MessageIndex.template.php    Test Failed

Note- I m using different them (Smartmc_blue)

Please check this Screenshot-



Please Help.

Thanks a lot

Rudolf

The MessageIndex.template.php file that you attached is correct. Is this the default one or the one of your theme's?
Does the Smartmc theme have these two files in the folder? If yes then you will have to edit them both manually because the package manager won't do it for you.
In any case your default theme is modified and the package manager can't apply the theme changes. The mod works fine without those two changes, you just won't see the protected message as the last post for the boards.

In MessageIndex.template.php search for
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];

Replace with:
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['protected'] ? '<span class="vob_protected">' . $txt['vob_protected'] . '</span>' : $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['protected'] ? '<span class="vob_protected">' . $txt['vob_protected'] . '</span>' : $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];


For the BoardIndex you already have how to modify it here
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Cool999

#158
Yes, the Messageindex.template file is of my theme. (I m attaching both files again, becoz maybe by mistake before i have attached the wrong one). Yes my theme has both these files in the folder. And i have already manually edited them 3 times, but my whole forum look changes. (like sometimes the below stat shows at the top and etc etc). SO can u please edit it for me, and attach both the files in your next reply

Thanks a lot for your support.




Rudolf

#159
Here they are. They should work.
Remove the attachments from your previous posts to don't clutter the topic/forum.

Edit: attachements removed by me (Rudolf)
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Advertisement: