PDA

View Full Version : How do I make the new page visible to ALL members?


JoyB
07-09-2004, 02:05 AM
Hi

I downloaded the CMPS hack yesterday and I was wondering if someone could help me please. At the moment, my board is set so only registered members can view it. Unregistered/Not Logged in cannot view anything apart from the sign in/register page.

What I'd like to be able to do is to have the new page visible to everyone regardless if they're a member or not but I don't want them to be able to "read more" until they've joined the board and I don't know how to do this.

I've be grateful for any help you can give me? :)

Thanks,

Joy :)

Jason McConnell
07-09-2004, 02:14 AM
I don't know.. I just tried replicating the forum permissions that get displayed on the front page and then logging out to see what happens, but I got a database error message :\

Our Sponsors
 

JoyB
07-09-2004, 09:41 AM
Thanks for your help Jason and I hope someone can shed some light on this for me soon :)

mholtum
07-09-2004, 09:44 AM
if you are talking about your VB being visible to visitors and unregistered people, you have to change the forum permissions in admincp

Our Sponsors
 

JoyB
07-09-2004, 10:01 AM
Hi

The page I have is the same as this one http://www.vbadvanced.com/? and I would like it so anyone that clicks on the link to my board see's my homepage. I also don't want them to be able to "read more" until they've joined the board.

Any help would be appreciated :)

Brian
07-09-2004, 11:42 AM
Please see this thread (http://www.vbadvanced.com/forum/showpost.php?p=8379&postcount=10). ;)

JoyB
07-09-2004, 12:21 PM
Hi Brian,

Thanks for your reply :) Unfortunately, when I add this code my "homepage" comes up with a mySQL error :(


---------------------------------------------
Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT

thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
, thread.iconid AS threadiconid, iconpath AS threadiconpath



FROM thread as thread
LEFT JOIN icon USING (iconid)


LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')

WHERE open <> '10' AND thread.visible = 1 AND thread.forumid NOT IN(1,46,47,67,58,50,20,7,27,39,9,5,10,11,12,30,21,4,28,22,23,70,24,42,44,26,40,4 3,68) Array AND deletionlog.primaryid IS NULL
ORDER BY lastpost DESC
LIMIT 10

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Array AND deletionlog.primaryid IS NULL
ORDER BY lastpost

mysql error number: 1064
-------------------------------------------

Is the line 'adv_index' referring to a script of that name? I can't see any files called 'adv_index' on my server anywhere.

Brian
07-09-2004, 12:53 PM
I still need to figure out exactly how that's happening as you're the second person now to report that. Here's a simple fix though...

Open your forum/modules/latesttopics.php file and look for:
if ($inforums)
{
$inforums = 'AND thread.forumid IN (' . $inforums . ')';
}


Replace that with:

if ($inforums)
{
$inforums = 'AND thread.forumid IN (' . $inforums . ')';
}
else
{
$inforums = '';
}


And that should fix the problem. :)

JoyB
07-09-2004, 02:13 PM
Hi Brian,

Thanks very much, that has made a big difference...non-logged in people can now see the home page :)

My only problem now is the content. While they can see my statistics, "news" threads, calendar etc; the Latest Forum Topics show nothing. There is a title there, but the threads aren't showing underneath. Logged in members can see everything. Any ideas on what could be causing this?

Thanks very much :)

Brian
07-09-2004, 02:34 PM
That's because that user does not have permission to view any threads on your forum... You could always disable this module for guests though. ;)

Merjawy
07-09-2004, 08:15 PM
When I first installed CMPS I had a news forum thats not visiable to anyone but admin..
but the news will show in CMPS

what happend is that guests see the news blocks and the contents in them.. but when they click Read More or click on the attachment (link) they get faced with my forum's permission and they have to log in

if I remember correctly the way I had was noone can post/reply in the news forum other than Admin.. and the forum is accesable but guests can't view threads

I hope that give you an idea how things would work in forum vs CMPS


PS:guest won't see the actual attachments, but the see a link to it

JoyB
07-10-2004, 01:02 AM
Thanks to both of you for your help and advice, it's much apprecciated :)

JoyB
06-11-2005, 06:04 AM
Hi

I have posted recently in this thread ( http://www.vbadvanced.com/forum/showthread.php?t=8405 ) saying that I can not get CMPS v 2 to work correctly at my "test forum". I have just tried downloading CMPS v 2 at my "main forum" ( http://www.jeromeflynn.co.uk/vb/forums.php ) and I have the same problem now as I did when I first downloaded CMPS v 1. (see my above posts)

Brian kindly gave me a fix for this (see Brian's post above) but the fix does not work this time round. At the moment, my board is set so only registered members can view posts etc. Unregistered/Not Logged members can only view the homepage as I don't want them to be able to "read more" until they've joined the board, which is how it was before I downloaded CMPS v 2.

Any help would be much appreciated :)

Brian
06-11-2005, 12:14 PM
So you've tried the code posted in this thread?
http://www.vbadvanced.com/forum/showpost.php?p=8379&postcount=10

JoyB
06-11-2005, 06:46 PM
Yes Brian, but there wasn't any change.

JoyB
06-18-2005, 02:48 AM
I'd be very grateful for any help you can give me on this as I'd like to use CMPS v2.0 on my main site if possible :)

Brian
06-18-2005, 01:58 PM
As far as I know there's not any reason you should still be getting the no permissions page if you've applied that hack and made sure that all usergroups have permission to view that page.

JoyB
06-19-2005, 09:20 AM
Brian, I would just like to thank you for your help and patience while sorting this problem out, it's very much appreciated :)

I have now solved the problem and it was something simple afterall and I want to post it here incase anyone else is using CMPS v1.0 and has it set so "Guests" can ONLY view the Portal and NOT the main forum.

The Usergroup settings > Can View Forum > have always been set to "No" when I was using v 1.0 so after checking all the forum permission settings and the quick permissions editor everything seemed as it should be. I then changed > Usergroup settings > Can View Forum > to "Yes" and it works perfectly. I didn't enable this to begin with because it was never enabled when I was using v 1.0 but it works now and I'm very pleased.

Thanks again Brian for your help :)

Brian
06-19-2005, 10:19 AM
Glad you got everything worked out. :)