vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Does anyone use the Deluxe Login Mod? (https://vborg.vbsupport.ru/showthread.php?t=201019)

nox1818 01-08-2009 12:26 AM

Does anyone use the Deluxe Login Mod?
 
Im having a little trouble with this mod and was wondering who uses it or could help me out with it. Cause i have the Deluxe login mod working correctly and everything, but when adding

Quote:

<?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>
to the top of my page it makes all my links that use mod_rewrite to not work at all, and im not sure how to fix this, does anyone know how i can go about correcting this problem.

Thanks,

Dismounted 01-08-2009 02:10 AM

How do your links "use" mod_rewrite? In any case, what are you trying to achieve with that code?

Marco van Herwaarden 01-08-2009 07:56 AM

If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.

nox1818 01-08-2009 09:01 PM

Quote:

Originally Posted by Dismounted (Post 1704745)
How do your links "use" mod_rewrite? In any case, what are you trying to achieve with that code?

The php code needs to be added to the top of every page i want control access on, and i have mod_rewrite for my links, but when adding the code to the page my links stop working. Removing the code enables my links again, so for some reson its interfering with it.

Vaupell 01-08-2009 10:56 PM

if your using a windows 2k or higher server and php5 +

dont use / / just do it like this

<?php
$curdir = getcwd ();
chdir('yourforumfolder');
require_once('yourforumfolder/global.php');
chdir ($curdir);
?>

works for me.. just did it here
for a test.. --> http://www.evisystems.org/test.php

but im using .asp so the mod is no good for me ;)

nox1818 01-08-2009 11:47 PM

Thanks, but that's not what I'm having a problem with. My problem is that php code, it disables my links using mod_rewrite.

the rewrite rule I'm using is

Quote:

RewriteEngine On
RewriteRule ^([^/]*)\.html$ index.php?page=$1 [L]
So I'm trying to figure out why this code...

Quote:

<?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>
Interfers with mod_rewrite.

Dismounted 01-09-2009 03:55 AM

Remove the rewrite rule and add that bit of code. Run the PHP file directly and see if it comes up with any errors.

nox1818 01-11-2009 12:23 AM

:( I cant seem to figure out why this code...

<?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>

that is at the top of my page, to interfer with my php navigation. They both work but not together, and if i remove the line...

require_once('/path/to/your/forums/global.php');

my navigation works correctly again, but i looked at global.php and cant seem to find whats causing this and check the init.php since its being called within global.php and still dont cant seem to figure this out :confused: can someone point me in the right direction.

Thanks,

Lynne 01-11-2009 12:53 AM

Is global.php getting called twice when you put that in your script? If so, I'm guessing that is the problem.

nox1818 01-11-2009 01:23 AM

Its only being called once, its really confusing i been trying to get it fix for days now. I have 3 pages that its using one is my index page with and include code for another page with...

Quote:

<?php
$curdir = getcwd ();
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
chdir ($curdir);
?>
in it to see if it would work using a diffrent page other then my index that has my php code for my navigation, and another one that shows the login and everything works like it should but for some reson it stops my navigation from working correctly cause all my links load my index. If i remove the require_once('/path/to/your/forums/global.php'); the navigation works again but of course not the login.

Lynne 01-11-2009 04:08 AM

You know, since you are doing a chdir right before doing the require_once, you really only need that line to be:
PHP Code:

require_once('./global.php'); 


nox1818 01-11-2009 05:33 AM

Ok i changed it, but its still interfering with my php navigation, it dont make sence to me cause everything is setup correctly i must of checked everything over 20 times and nothing has changed :( im just about to give up on it.

Lynne 01-11-2009 04:17 PM

Have you been checking your error_logs to see if anything is in there?

nox1818 01-12-2009 01:38 AM

Yea, no errors are being reported in my error logs. This is the first php problem i couldnt figure out spent to much time trying to get it fixed and have ended up right were i started lol o well thanks for the help but i give up on this problem, it just dont make any sence to me.


All times are GMT. The time now is 07:34 PM.

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.01148 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete