Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2002, 03:32 AM
MikeBergman MikeBergman is offline
 
Join Date: Jul 2002
Location: Toronto, ON
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I View Calendar and PM for Anyone?

I'm trying to find a way to allow anonymous (unregistered) users be able to send PM's and view the calendar all the time BUT not have access to view the forum.

The reason I want to do this is cause the site I'm building, only registered members should be allowed to view the forum but anyone should be able to view the calendar or send a pm to any member (that has pm enabled, and obviously the pm will arrive as from unknown and the person who sent it won't be able to get a reply but that's fine, I just want to be able to send messages).

I have tried enabling Private Messaging option for unregistered users but it doesn't seem to work, even when I click to message a member it still says I don't have pm-ing turned on. I checked to make sure the member was able to recieve them and they are so not sure why that doesn't work, perhaps a bug cause it's set in pemissions.

But for the Calendar issue... there doesn't seem to be a permission option at all for the calendar, it seems that it's linked to the forum, users who can view the forum can also view the calendar.

I'm pretty new to vBulletin but I have a fairly good understanding of php, just not familiar with the vBulletin system so if anyone else knows how/where/what I need to change these options, please let me know,

greatly appreciated,

- Mike Bergman
Reply With Quote
  #2  
Old 07-05-2002, 12:04 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What you want to do is very hard and even borders impossible... since guests don't have a user ID, they are just given the temp ID of zero.
Reply With Quote
  #3  
Old 07-05-2002, 03:37 PM
MikeBergman MikeBergman is offline
 
Join Date: Jul 2002
Location: Toronto, ON
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I wouldn't think it would be that difficult, couldn't a hack just be written that if a user ID == 0 then display the calendar or allow the user to send a PM. If a PM is recieved and the user ID is 0 it tells the member that it was sent from a deleted user. Well that's fine with me, I know that because I tried just loading up phpMyAdmin and entering the PM message myself and it worked fine. I know I'd be able to write a PM program completly separate from vBulletin that would just insert the PM data into the database. I just thought someone might know a much simpler way just by editing a few lines somewhere so that user ID 0 can send a message.

If I knew vBulletin better I'm sure I could figure it out, I just started useing it a few days ago and still trying to figure out how everything works.

The calendar issue is not as big of a deal to me because I can just turn on forum viewing but turn off viewing of threads started by other members and turn off posting. They would be able to see the initial page of the forum but really not be able to do anything else.

I just thought it'd take a lot less time if someone knew what lines I could edit so user ID 0 could post PM's than it would for me to write a whole script just to post PM's to the database, that's all.

So, if there's anyone else that might have any idea or even knows of any hacks that already exist that allow you to do something like this, please let me know, I've been searching this board for a couple days now, haven't been able to find anything but maybe someone has done it and I just couldn't find it.

Thanks again,

Sincerely, - Mike Bergman
Reply With Quote
  #4  
Old 07-05-2002, 04:39 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean you want to allow guests to ONLY send PM's? Ahh, ok. I thought you wanted them to be able to receive and read as well. In that case it's pretty easy (see how we went from impossible to easy? )... I'm sure someone will be able to do that.
You will need to hack private.php to accept messages from $bbuserinfo['userid'] == 0, and hack it a bit more to distinct between messages from users and messages from guests.

As for the calendar: You can just enable it by editing the Unregistered usergroup's permissions.
Reply With Quote
  #5  
Old 07-05-2002, 04:48 PM
MikeBergman MikeBergman is offline
 
Join Date: Jul 2002
Location: Toronto, ON
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, only send PM's is what I want, they don't need to recieve them at all.

Just wondering if someone maybe has already written a hack for this or perhaps knows specifically what to edit, I've tried messing with the code but my changes don't seem to be working.

As for the calendar, I don't think that there is a setting specifically for the it in the permissions, there's only one for the fourm which is linked the calendar, but I suppose that's alright for now.

The PM issue is more important. I don't understand why they have an option in the unregistered permissions for using PM because it doesn't make a difference what you set it to, they still can't send them.

So. If anyone can help me or knows specifically what I need to modify, let me know :nervous:

Thanks,

- Mike Bergman
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02115 seconds
  • Memory Usage 2,198KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete