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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2009, 10:34 PM
Jokerbites Jokerbites is offline
 
Join Date: Jun 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default I have a few questions...anyone help?! Thanks! :D

I have two questions...

1. I would like to have a login system on my website, and then make certain pages for users only but others for anyone to see. I know the forum has its own login system, is there anyway to use that for the entire site, OR create my own and remove that system? I would prefer to not have two...

If I can create my own to do this, or there is no option and I must have two, then help on creating a login system? I know it is quite complicated and confusing o_o :P Thank you!

2. I would have to have a search box on every page of my website, any idea how to create that?

I appreciate all help!

The website is www.chewingtext.com. It is my first website layout, ever created and only created the website on Thursday, but yeah...

Any help is greatly appreciated!
Reply With Quote
  #2  
Old 06-08-2009, 10:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Follow this tutorial for creating your own pages and it will use the vb login system so you can allow some users and not others - [How-To] vBulletin API Basics: Creating Custom Pages & Misc.
Reply With Quote
  #3  
Old 06-08-2009, 10:51 PM
Jokerbites Jokerbites is offline
 
Join Date: Jun 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, okay I will start doing that, thank you!

But just to make sure, I can use the VB system on the entire website?
Reply With Quote
  #4  
Old 06-08-2009, 10:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, as long as your path to the vbulletin files is correct. You may have to do a chdir prior to including the files.
Reply With Quote
  #5  
Old 06-08-2009, 11:01 PM
Jokerbites Jokerbites is offline
 
Join Date: Jun 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I am trying and I am lost now...

Do I have to do everyone on the page? I did the first portion, powered script in my dreamweaver, and I am just lost o_o Didnt do much...lol.

Do I just do one of the listed on that tutorial? lol

Sorry if I sound stupid!

--------------- Added [DATE]1244505909[/DATE] at [TIME]1244505909[/TIME] ---------------

I think I found the portion I would need to use...but I dont know what he is using to change. I am not sure where to find the original to alter, unless I would need to do all the steps, in which case that makes no sense o_O
Reply With Quote
  #6  
Old 06-08-2009, 11:10 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what you mean. There are 4 steps to his article - copy his php file, change the lines where it says to in the comments, do your navbits, and then create your template. You would then add all your custom code for your pages after it says Start Main script and before the navbits.

If you are outside of the vbulletin directory, then you should read that part of his article also. He also has a part about limiting access, which you said you wanted to do, so read that part also.
Reply With Quote
  #7  
Old 06-08-2009, 11:15 PM
Jokerbites Jokerbites is offline
 
Join Date: Jun 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So let me see if I get this...

Do the first four steps...that is needed for anything else on the page. Then if I want to do anything else on the page, just follow those instructions? I just do all of this on my website pages, or do I have to go and do them within vB? Just do them in vB when he states to go in there? lol

--------------- Added [DATE]1244506710[/DATE] at [TIME]1244506710[/TIME] ---------------

I dont know...I am just 100% lost at this moment.

In order to setup login account for my website, I have to do what he is doing? This is really for setting up a login system for the website? o_o

--------------- Added [DATE]1244510740[/DATE] at [TIME]1244510740[/TIME] ---------------

Not being rude, I really appreciate your help! I just do not understand that...

Anyone have any other ideas or methods?
Reply With Quote
  #8  
Old 06-09-2009, 02:52 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are confusing me now. Are you wanting to have pages that use the vbulletin login system to check a users userid and thus set up permissions on whether they can see a page or not? If so, you need to include the global.php file in your page like in the article I linked you to. I suppose you don't have to follow the rest of the article, but you would have to include global.php. The template/rest of the php in that article (under the heading Creating a Custom Script - the four steps I mentioned above) simply helps you have a page that looks like the rest of your vbulletin forums - the header, navbar, login box, footer, etc.
Reply With Quote
  #9  
Old 06-09-2009, 02:55 AM
Jokerbites Jokerbites is offline
 
Join Date: Jun 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not exactly have certain pages to have a login system or not.

I am looking for more for the site to have its own login system...
Reply With Quote
  #10  
Old 06-09-2009, 03:05 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You want a *new* login system?
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 11:19 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.05177 seconds
  • Memory Usage 2,251KB
  • 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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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