![]() |
Hey thanks for the hack!
I got a complete newbish question though... I'm rather new at this. What's the code for the form itself? What do I place here exactly? (in html) Quote:
http://www.++++hollywood.be (damn censoring :) ... it's "f u c k hollywood.be") Thanks |
Quote:
You just need to place PHP Code:
|
Quote:
|
Does this work in 3.6.1? hmmm
|
Quote:
It works in all 3.5.x and 3.6.x releases to date. |
I need to hide a html page until users are logged in. You start with making the page php, but HTML content is still visible. The HTML also contains some Javascript and it would be nice if this could be shielded permanently. Wrapping the whole HTML content inside <?php tags make it invisible, but also stops it from working.
How do I block the whole page until the user is logged in, also when viewing sourcecode? |
Quote:
However, you must do it correctly else it wont work. They must be put either in PRINT or ECHO statements. Example: PHP Code:
See If you use quotes within PHP code you MUST escape them with \ else it will give you an error. For example I had quotes in my enclosed HTML above so I did this HTML Code:
<div class=\"content\"> No need to read on from here, but there is another way which you may prefer. You could always just add the html as an include when required. For example. PHP Code:
It has no body, title, header tags etc, just straight HTML content. |
Is there any way to get around the chdir( ) requirement in the file that you are trying to place the logon form on? I'm trying to integrate this into our website, however we use a lot of include_once( ) to include various pieces of custom code to create the overall look and feel of the site. Consequently, this chdir really mucks things up.
Otherwise if I just put it on a static page it works great. :) Thoughts? |
Try this.
It should change you back to the origional directory. PHP Code:
PS, if this works and you use this hack please click instal :) |
ah ok that seems to have worked. Although there is an error in the piece of code I just downloaded:
The code is: Code:
// If logged in display logout link |
Hello
Having problems with it logging me in. I've got my forum at thecarforum.net, and this page at imagecan.net. Both the forum folder and the imagecan folder are in my public html folder. All logs in fine, but it just can't remember me. I log in and then it's forgotten about it. My cookie domain and path are both set to blank. Any ideas? |
Thanks for the examples Billspaintball, they really helped me out.
Now I'm about to add a link into a template and I run into another problem. Normally <a href ="http://domain/vb/script.php" target="_blank">Script</a> works without problems. But when using something like that on a log page I just get a new blank screen that says about blank. Just calling the page directly in the browser works fine. I tried things like ?[sessionurl], but that doesn't work. How to call a page inside a template? There's at least a problem with the trailingslash in forumpath and Code:
// If logged in display logout link forumpath should not have trailing and logout Code:
// If logged in display logout link |
Seems to be a browserissue, it also happens when the link to the login protected PHP is posted in a forumtopic. Firefox opens the page, but IE gives the about blank page. When looking closely, it actually requests the script URL but quickly procedes with the about blank page.
|
Quote:
That all worked for me, but when I attempt to use one of the php scripts I wrote, it isn't letting this script insert data into my MySQl database. It's an information script. It'll read the data from the mysql db just fine, but when I try to use a webpased php form to submit/edit information to my DB it doesn't work. I don't get any PHP errors, it just.....doesn't work..Lol. When I remove all the chdir things and forum inclusions for my login/page restrictions it works just fine. Any thoughts on this? |
Ok now if this would just work with the new forums
|
Hi guys....
I get a problem tryig to incorporate this script!! I actually get this problem with a lot of scripts!! Quote:
So the code is working!! The problem is with using the global.php I have tried adding "define('SKIP_REFERRER_CHECK', true);" to the login.php in the forum, but this does not help with anything... Does anyone know what is causing this to go wrong, and if there is a way to fix it?? Cheers wing |
Quote:
You mean vB 3.6.x ? If so, it works fine with 3.6.1 (Havent tested with 3.6.2 but should work) |
ok what gives man
Unable to add cookies, header already sent. File: /home/animelib/public_html/index.php Line: 1 |
Quote:
https://vborg.vbsupport.ru/showpost....98&postcount=2 You have some whitespace or html before a couple of lines. |
Got it installed ok and it seems to be working except for the fact that when I put in my user name and password it takes me to my forum but doesn't log me in. Any thoughts? I'm running 3.6.3
|
Have you tried step 3 of the troubleshooting guide yet?
https://vborg.vbsupport.ru/showpost....98&postcount=2 |
New update released.
Only a couple of minor changes. Changelog Version 1.20 (2nd December 2006)
Please make sure you have the latest script before reporting any problems. |
hey any idea how i could make it show on whosonline page
so people who are using my page www.aur-phala.com/hotmail will show up on whos online so i can see whos checking that page out for version 3.6.x thanx |
Any idea what would cause this? I'm using the following condition on a page to restrict something so that only usergroup 6 can see it:
Code:
<?php |
Quote:
This is solved by altering Cookie Domain and Post Referrer Whitelist in the Control Panel as described earlier in the topic. Excellent mod! |
Quote:
Paths and cookies seem to be the biggest issue people face with this. Quote:
|
will this work on 3.6.5 ?
|
Quote:
|
The script is working great in Maxthon, IE. However, when I use Firefox to login, I do not get redirected back to the page I started on. I get redirected to the index page of my forum.
I've noticed that in Firefox, if I log out, the vBulletin box that says "All cookies cleared! * Return to the page you were previously viewing" links to the index page of the forum. I'm not sure where to start troubleshooting this one. Does the script make any special concessions for browsers. Does it even need to? Thanks, Brandon Drury |
Quote:
I will try mine in Firefox and see if I can replicate it. |
Updated
Download the update from the first post, and see the 2nd post for additional workarounds for the 404 on Expired passwords and cross domain login issues. |
This is exactly what I was looking for! One question though, what if I want the user to be redirected to the main page (the non-vb page where the login is) after the login instead of the forums homepage. What would I need to change?
|
Quote:
|
It's taking me to the forum home page though instead of back to the site's index page. :\ Any thoughts?
|
I get logged on when I hit the"logon" button on the custom site page. It temporarily redirect me to the VB login.php page and recognizes me and says welcome in the VB splash screen.
It then redirects me back to the page I logged in from with the same login box as if I haven't logged on. If I run the code below on it's own it works properly and takes me back to the page I used for logon and welcomes me without the login text boxes. 1) Any idea what might be causing this, 2) Can you specify where it should redirect to if you don't want to be redirected to the logon page again? Thanks Quote:
|
Still need some help with this myself. Also, I'm placing this code on all of my external forum pages, and while it shows me logged in on the main one, if I go to another page, it shows up saying I need to login again. Is there something I need to do with the cookies that I'm not aware of?
|
I'm having problems with 3.6.7 PL1
I'm seeing this at the very top of my external page, but everything else works. Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /global.php(237) : eval()'d code on line 2 |
Great hack ive installed it.. i just have a small query.. i would like my users to login and be redirected to a custom php file ive made, a page for members at the same time i would like the forum and user login session to be still active...
Cheers! |
Hello guys,
When I run sample script (test.php), I'm getting an error about headers: https://vborg.vbsupport.ru/ I've checked script and there are no spaces before first 4 lines of code. By the way, I see this only when I logged out. When I logged in (through vBulletin), I see this: https://vborg.vbsupport.ru/ How can I fix this? PS: I have lastest vBulletin version installed. And the installation is fresh (just one thread). |
This works wonderfully, but one question. How would I pull the password value out before it gets encrypted? I need that value for my main site's login script which I'm calling from login.php for the forums.
Any ideas? |
All times are GMT. The time now is 08:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|