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 02-11-2007, 03:30 AM
Sam1985's Avatar
Sam1985 Sam1985 is offline
 
Join Date: Feb 2007
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default LAST thing(PIC) Creating U.S. States & somehow redirect users to their state's forum

Hello,

Thank you for looking, we are in need of your help. We don't know what to do.


We are setting up an education website for teachers.
We have so much of our free information to post on the forum, however we do not want to throw everything at a teacher at once. Here is what we would like to do:
  • We want the site to be categorized for each state.
    So for example we want to create user profiles fields from admin panel and make a drop down with all the states, so at signup the user will have to pick a state. This is step one. No Problem.

  • Here is where we want to make it unique for each user from each state.
    We would create all the forums like (General Discussion, Information for New Teachers, States...etc.) No Problem

  • Then make subforums in "States" with all 50 states in the form of subforum under the main forum State. No problem.

The Question: How can we make it so that evertime the user logs on they are directed to their state's forum? makes sense? So that they are not ovewhelmed by the amount of info for each state or have to navigate to their state.

VB is so great, we were able to find a lot of the things to get us started. This is the only mod we need for now. Does something similar to this exist?
I was thinking of making usergroups, but we do not want to restrict access to other states. That is not what we want. We want the user to have info for their state(by being redirect to the approperiate forum, so some kind of trick/mod like that. If they wanted to search other states, the can.)
We are open to suggestions or comments.

EDIT: We have attached a pic of what we would dream about for what we need here it's actually a photoshop of vbindex(credit for the pic). If we can make something like that, that would be our dream
Thank You so much.
Attached Images
File Type: jpg dream.jpg (66.5 KB, 0 views)
Reply With Quote
  #2  
Old 02-11-2007, 04:31 AM
Sam1985's Avatar
Sam1985 Sam1985 is offline
 
Join Date: Feb 2007
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Of course u guys know what you are doing, but excuse me if i ruin the meaning of the word code here

perhaps speaking in php code( sorry for my bad code language) could help someone understand my big post.
================================================
1- Create 1 php file with info for each state.

2- Use another vb index mod or general/custom index page when user logs on instead of redirecting them to the forum. or display welcome index page if user is not registered.


3- use and if statement(?! i dont know what im talking about here) or include command(that php file we made in step 1) to read "state" from user profile, then display that php file if user state is true.

this possible?
================================================
Reply With Quote
  #3  
Old 02-11-2007, 04:58 AM
Guest190829
Guest
 
Posts: n/a
Default

This is possible, but there must be some parallelism between the forum ids and the state ids of the user profile field. Once you have that, you can easily direct to that forumid or write a query that pulls info from that id.
Reply With Quote
  #4  
Old 02-11-2007, 05:29 AM
Sam1985's Avatar
Sam1985 Sam1985 is offline
 
Join Date: Feb 2007
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT View Post
This is possible, but there must be some parallelism between the forum ids and the state ids of the user profile field. Once you have that, you can easily direct to that forumid or write a query that pulls info from that id.
thanks so much for the reply. I am very happy that is could be possible.

Please do explain "parallelism". how do i make it? Right now the forum has not launched yet and I only have 2 members, the admin and a test account. I have not created profile fields/forums yet.

How do I go about doing this?

thanks so much for your help.
Reply With Quote
  #5  
Old 02-11-2007, 06:42 PM
Guest190829
Guest
 
Posts: n/a
Default

By parallelism, I mean you need some way to relate the state ids in the profile field drop-down to the forum id of that specific state. Some quick thoughts that come to mind:

1.) Make them equal. (IE: Alabama would have an id of 1 of the drop-down and forum id 1 will also be the Alabama forum.) This, however, could get pretty messy.

2.) A separate table, so you can link between the two.

| stateid | forumid |

You can query the table with the state id, and pull the forum id and use it...
Reply With Quote
  #6  
Old 02-11-2007, 07:53 PM
Sam1985's Avatar
Sam1985 Sam1985 is offline
 
Join Date: Feb 2007
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand now. Yea it will be very messy. I see it.

How about using logi. webtemplates to create a page. Let's say we create a page for Alabama and it would be something like mydomain.com/view.php?pg=alabama

having it direct them to the forum is not important. we want them to see the page above @ view.php?pg=alabama then we can put anything for them there.

is this easier than linking the forum? actually this way this will be better than linking profile with forum.
is this more difficult? how is the process for this one like.
Reply With Quote
  #7  
Old 02-12-2007, 05:01 AM
Guest190829
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Sam1985 View Post
I understand now. Yea it will be very messy. I see it.

How about using logi. webtemplates to create a page. Let's say we create a page for Alabama and it would be something like mydomain.com/view.php?pg=alabama

having it direct them to the forum is not important. we want them to see the page above @ view.php?pg=alabama then we can put anything for them there.

is this easier than linking the forum? actually this way this will be better than linking profile with forum.
is this more difficult? how is the process for this one like.
I'm not familiar with that modification so I wouldn't be able to determine how difficult it will be.
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 08:31 PM.


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.04751 seconds
  • Memory Usage 2,240KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (4)postbit_onlinestatus
  • (7)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete