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 01-08-2009, 12:26 AM
nox1818 nox1818 is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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,
Reply With Quote
  #2  
Old 01-08-2009, 02:10 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do your links "use" mod_rewrite? In any case, what are you trying to achieve with that code?
Reply With Quote
  #3  
Old 01-08-2009, 07:56 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 01-08-2009, 09:01 PM
nox1818 nox1818 is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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.
Reply With Quote
  #5  
Old 01-08-2009, 10:56 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 01-08-2009, 11:47 PM
nox1818 nox1818 is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-09-2009, 03:55 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove the rewrite rule and add that bit of code. Run the PHP file directly and see if it comes up with any errors.
Reply With Quote
  #8  
Old 01-11-2009, 12:23 AM
nox1818 nox1818 is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 can someone point me in the right direction.

Thanks,
Reply With Quote
  #9  
Old 01-11-2009, 12:53 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is global.php getting called twice when you put that in your script? If so, I'm guessing that is the problem.
Reply With Quote
  #10  
Old 01-11-2009, 01:23 AM
nox1818 nox1818 is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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:48 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.04168 seconds
  • Memory Usage 2,248KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete