vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=100992)

Billspaintball 02-02-2006 06:00 AM

1st up.
Subdomains + scripts + vB are a known problem, and not always fixable.

2nd.
Had a look at the source behind http://www.nrlleague.com/indexnew2.php On the site your links are in the format forums.nrlleague
Change them to the nrlleague.com/forums link and see if that fixes it.

Sven 02-02-2006 08:46 AM

Quote:

Originally Posted by Billspaintball
1st up.
Subdomains + scripts + vB are a known problem, and not always fixable.

2nd.
Had a look at the source behind http://www.nrlleague.com/indexnew2.php On the site your links are in the format forums.nrlleague
Change them to the nrlleague.com/forums link and see if that fixes it.

Have you got any news regarding my problem?

ausnrl 02-02-2006 09:11 AM

O i had them changed but forgot to upload it that was whats wrong. Anyway thanks for the help nice hacks.

so to display things like how many pms htey have we just use the phrases?

Realm of Horror Comics 02-02-2006 11:37 AM

Quote:

Originally Posted by ausnrl
so to display things like how many pms htey have we just use the phrases?

Yeah, I wanna know this too...

Billspaintball 02-02-2006 12:14 PM

Quote:

Originally Posted by ausnrl
O i had them changed but forgot to upload it that was whats wrong.

:laugh: Been there, done that.
Glad that its all working now.
Quote:

so to display things like how many pms htey have we just use the phrases?
This simple one only does stuff like the sample in this post https://vborg.vbsupport.ru/showpost....98&postcount=2
I wanted to keep this to the bare minimum of complexity so anyone can use it with much knowledge of php.

The more fully featured one will have the stuff like avatars and PM's on it like on my site. I havent had time to tidy up the code on it yet. It will be simple to upgrade, just change the login_inc.php file.

Billspaintball 02-02-2006 12:19 PM

Quote:

Originally Posted by Sven
Have you got any news regarding my problem?

Sorry, I havent found any simple way around a cross domain cookie issue like this.
The only way I can think of is if you actually hacked vB's login.php to get it to post the variables back.

Sven 02-02-2006 12:53 PM

Quote:

Originally Posted by Billspaintball
Sorry, I havent found any simple way around a cross domain cookie issue like this.
The only way I can think of is if you actually hacked vB's login.php to get it to post the variables back.

I guess the other way would be to create an own login that is querying the vb database... but I doubt I have the knowledge to do that w/o opening security holes...

Thx anyway... I'm going to stick with my interim solution and use the normal login I created, apart from vB.

exegete 02-02-2006 01:04 PM

Quote:

Originally Posted by Sven
I guess the other way would be to create an own login that is querying the vb database... but I doubt I have the knowledge to do that w/o opening security holes...

Thx anyway... I'm going to stick with my interim solution and use the normal login I created, apart from vB.

If you're modularising this code into sub-functions, don't forget to "global $vbulletin;" at the start, or your script will never realise that anyone is logged in. It took me hours to figure that tiny little thing out. Grr.

Additionally, I have this extension working fine across subdomains (forums on community.mydomain.org with the extension on www.mydomain.org). Make sure you have your cookie domain (Admin CP -> Cookies -> Cookie Domain) set to ".yourdomain.com". I also have this set in my php.ini file (but probably not strictly necessary). I'm not using any other special hacks or modifications to integrate my subdomains either, it's a very standard setup.

Oh, and, one other thing you might want to check: Admin CP -> General Settings -> Post Referrer Whitelist. Make sure ".yourdomain.com" is listed in there too, so your subdomains can post forms to each other without any complaints.

Billspaintball 02-04-2006 04:54 AM

Hack Updated
As of now this hack has been updated from 1.1 to 1.10.

See the changelog in the first post here for details.

tuanluu 02-04-2006 07:54 AM

Is it possible for us to hook 4image using this hack? I try to other 4image interation, but it give too much error and does not work well. I think the code for for that 4image is too busy. I have not heard from that coder lately.

If yes, please show me the step thank ahead


All times are GMT. The time now is 07:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01383 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete