News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

View Only Boards

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

Previous topic - Next topic

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

Rudolf

Probably you don't have the mod installed. :P
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

Rudolf

Sorry, I haven't seen the line with the setting. Too small the image.
However you have it checked: that's the state that will prevent the "protect" feature. Un-check it. Clear the checkbox next to it.
Then apply the changes to your theme as I explained in the PM over your forum.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

shadow82x

UNcheck what box? Sorry
Colin B
Former Spammer, Customize, & Support Team Member

shumilica

from here:


UNcheck the "Show the message index for the "view only" boards".
Today, if you're not confused it means you're not thinking clear!

shadow82x

I did but nothing happens..
Colin B
Former Spammer, Customize, & Support Team Member

Rudolf

Quote from: shadow82x on April 15, 2007, 09:13:32 PM
I did but nothing happens..

Because after that you have to modify the BoardIndex.template.php (in every theme you want to protect the posts). I'm trying to say this ince two days.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

shadow82x

Quote from: Rudolf on April 16, 2007, 04:11:57 AM
Quote from: shadow82x on April 15, 2007, 09:13:32 PM
I did but nothing happens..

Because after that you have to modify the BoardIndex.template.php (in every theme you want to protect the posts). I'm trying to say this ince two days.
How do you modify it. I installed the mod and used it only for the default theme and still does not show protected
Colin B
Former Spammer, Customize, & Support Team Member

DoA

Quote from: Rudolf on April 12, 2007, 06:27:09 PM
Quote from: DoA on April 12, 2007, 03:16:00 PM
Is there a way we could make this mod Search engine (SE) friendly? For example, use a Useragent switch to decide whether the users is a human or an SE bot for example?

I already have a demo code for the UA switch (this one decides whether or not to start a php session) -->

<?
if (strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot/2.1' ) > 0 OR strpos( $_SERVER['HTTP_USER_AGENT'], 'msnbot/1.0' ) > 0 OR strpos( $_SERVER['HTTP_USER_AGENT'], 'googlebot' ) > 0 OR strpos( $_SERVER['HTTP_USER_AGENT'], 'Googlebot' ) > 0)
{
     // Useragent declaration
}
else {
session_start();
}
?>


DoA

p.s. I KNOW it's very easy to fake useragents, but I need this so that my topics remain SEO friendly!
Please be patient with be, because I don't understand this either. What has to do the useragents with being search engine friendly, and what would be the //Useragent declaration, and for what can I use that information? This mod decides to show a board based on the member's permissions. Bots are guests, so they will see what you let the guests to see. I think it's logical.

The useragent declaration decides whether or not (in this example) to start a session. Google will send a bot with the useragent = "Googlebot" therefore if that happens, then the topic can be seen. If the useragent isn't google then it is treated as a normal guest.

I need a way to hide the "view only" boards from guests (humans) - this is what the MOD does at present, and it is working perfectly. However, I also need allow the search engine spiders access to the page.

Therefore I need to know where the code is that decides whether or not to allow access to the topic (based on the permissions set) then I can do the following:-

if
{
Visitor is a Guest
}
Allow the "view only boards" mod to do its thing and block access
{
else
}
Allow access because if the visitor isn't a human, they must be a BOT and we want to allow bots access to the topic page so they can cache it and store it in their index!

DoA

John S

Hi, i'm getting this error... why? I'm using SMF1.1.2.. it should work fine all other mods work no prob.. i get this error when applying the mod.. please help..

QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    DB.php   
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/MessageIndex.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
6.    Execute Modification    ./Sources/Load.php    Test successful
7.    Execute Modification    ./Sources/ModSettings.php    Test successful
8.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
11.    Execute Modification    ./Themes/default/languages/ManageBoards.english.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

Rudolf

You have a modified BoardIndex.template.php.
Install the mod and apply the changes to that file manually. Look at the themes.xml file in the package to see how.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Slus

i get this error

Unknown column 'b.memberGroupsView' in 'where clause'
File: /home/ssnation/public_html/forums/Sources/BoardIndex.php
Line: 70

can somebody help :(


[nofollow]


QuoteHippopotomonstrosesquippedaliophobia= Fear of long words LOL

Rudolf

Execute this query on your database, use phpMyAdmin?
ALTER IGNORE TABLE {$db_prefix}boards ADD column memberGroupsView TINYTEXT NULL AFTER memberGroups

Replace {$db_prefix} in the above code with the prefix of your tables.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Slus

u sure its that cuz it aint working


[nofollow]


QuoteHippopotomonstrosesquippedaliophobia= Fear of long words LOL

Rudolf

Check your database if the boards tables has the memberGroupsView columns. Probably it's missing, and that's the query intended to fix.
I can't imagine any other reason for the error.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

besucher

Hallo Rudolf!

Ich möchte, dass die recent topics den Gästen weiterhin gezeigt werden, wie mache ich das?



Darin liegt der Sinn, die Leute sollen sehen, dass es interessante Dinge gibt und sich anmelden, damit sie den Inhalt lesen können.

Advertisement: