The Arcive of Official vBulletin Modifications Site. |
|
Comments |
#2
|
|||
|
|||
Hi there,
aaah, I see, looks good. I was looking for that quite a time... Someone came up with that solution for me: Options -> PHP parsed code PHP Code:
template cu, -Tom |
#3
|
|||
|
|||
I'm confused. I tried this on your site and did not get it to work.
(1) I registered on your site. (2) I created a new thread for testing: http://forum.t-cove.com/showthread.php?s=&threadid=37 (3) I attempted to reply to my own message, and at the reply screen, I then logged out as "theflow", got the "cookies are cleared" message. But In attempting to go back to where I was, I reached a "you do not have permission" error, asking me for a username & password. This would make sense if your site requires you to be regsitered to post messages. But my primary intention (among several) is to be able to have a Registered user logout at the "Reply" compose screen, get a confirmation message that "you are now logged out", and a link to "return to where you were" (as well as second link to "return to startpage" or whatever...) So this functionality can't be tested on your site if your site requires that a user be regsitered in order to post. ... It's great to see some real effort being put into this, and perhaps you have solved it. I just don't know yet. |
#4
|
||||
|
||||
Thanks Thomas.
TheFlow, you are right, I don't let unregistered users to post on my board. But you can see very clearly on the address bar that you -are- returned to the reply screen. |
#5
|
||||
|
||||
Ok, I set a demo forum up, just so you could test it.
http://forum.t-cove.com/demo/ |
#6
|
|||
|
|||
Quote:
Here's the thread that confirms it works: http://forum.t-cove.com/demo/showthread.php?&threadid=1 I requested 3 tweeks, mostly minor I think.... I will post the "enhanced request" to vB tomorrow. This is the hack that I have been waiting for for a month, and was growing very frustrated because the logic seemed so clear and consistent -- since vB could hold the URL in one direction --- going from unreg to reg, I couldn't understand why they vB couldn't hold the URL going the other way. As you have proven, it can. |
#7
|
|||
|
|||
This is repeating here what I wrote at firefly's test site:
I could not understand why people were saying it was hard to hold that URL variable when the existing out-the-box vB currently does that exact thing in the following case: (see vB thread as reference: http://www.vbulletin.com/forum/show...&threadid=22185 1. I am unregistered and I go to a thread and hit REPLY to a post. 2. I'm at a Reply screen now. But I Click "register" at top of screen, and go through a Reg process. 3. I get my confirmation screen that I am registered. and there's a link that says "return to where you last were". I click that link. 4. I am redirected to the exact REPLY screen where I started, and now my status shows me logged in with new username. Why is it that the system and $scriptpath can hold the URL one way but not the other? ----------- I knew this could be solved, and I am impressed that you did it despite others saying "it's not possible". Good work. The three tweeks I am looking for: (1) strip out the pre-fill of the words "Unregistered" at the reply screen (2) an option would be great such that, upon logout, I get message that cookies cleared (on my site I say "you are now logged out", plus something like this: ------------------------------------------------------------------------------ You are now logged out. Click here to return to previous screen, or wait a few seconds to return there automatically. Click here to return to Start page. ------------------------------------------------------------------------------- (3) A separate request, but kind of related (i will post it later as a separate hack request): Can you find a way to pass the "unregistered name" to the Preview screen and back to the Compose screen if one wants to preview their message first, make a change, then post it? Currently, vB will not hold that username, and unregistered users who use Preview get their name stripped out, often unknowingly. Once they post it's too late because, as unregistered, they cannot edit it... Again, excellent work firefly! |
#8
|
|||
|
|||
TomasP - can you elaborate a little on where that code goes?
|
#9
|
||||
|
||||
On the left frame, under Styles click on Modify. There click on [fonts/colors/etc] for the style you want this in.
Insert PHP Code:
PHP Code:
Then, write $registerbutton wherever you want the login/logout button to appear. |
#10
|
|||
|
|||
Worked flawlessly!
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|