![]() |
I have installed it, but ist doesn?t work correct. :(
I can have a first preview and it works, but if I try to preview again, it posts the message. Any ideas? |
Three comments about this hack:
1. You do not need a separate template (editpost_postpreview). The contents of the existing template, newpost_postpreview, are almost exactly the same, but are a bit more polished in terms of HTML coding (including being the standard vBulletin table-within-a-table which I guess gives you the border or whatever). Plus, using the existing template saves space (even if only a tiny amount) in the database. (I tested that doing this works, and can confirm that it does indeed work properly to use the existing template. All you have to do is first of all, not create the new template, or delete it if you already did, then in editpost.php, change the part you added that says "editpost_postpreview" so that it says "newpost_postpreview".) 2. Whenever making a vBulletin .php file use a template it didn't use before, you should add it to the "$templateused" section at the top of the file. I'm told this saves a database query. You should do this regardless of what you do about my #1 above. 3. When you click the button to edit a post, then you click the Preview button, the edit is submitted and saved to the database. This means that whatever changes you made are saved before you tell it to save them! This is not the desired behavior of the Preview function. If you want to "preview" something, that means you want to see what it looks like, before you commit to it, right? Well, the mere act of previewing something now means you've committed the changes! This is not good. |
sorry guys, this was a beta for 2.01 if I'm correct. I've never tested it fully and never really released it fully (don't know why it says v2.2.2 before the title)
currently there's no change for me to work on this, so if a fellow hacker wants to do it: great :) |
I have fixed this long time ago, sorry I haven't posted it :p
It works perfect for vB2.2.x! @JJR512 We had the same thoughts, I also have just used the newpost_postpreview Template. I have attached the fixed version. |
Quote:
|
Yep, works fine now! :)
|
Works great on 2.2.2.
Thanks. |
Quote:
I installed perfectly without any problem. Just a couple of little things: 1) When an admin (me, for instance...) is previewing after edit an other user's post, the signature showed in preview mode is mine, instead of the user's one. When saved, everything works fine, as usual. 2) Html style question: how can I make the 'save changes' button selected by default as it was before adding a button just before ? I tried with 'tabindex' but ... :( Thanks a lot. Bye |
Quote:
Code:
<INPUT TYPE="Submit" NAME="SUBMIT" ACCESSKEY="S" VALUE="Submit Now"> I found this: Code:
<input type="submit" class="bginput" name="submit" accesskey="s" value="Save Changes" tabindex="3"> Thanks :) Alan (DWZ) |
Quote:
|
All times are GMT. The time now is 05:02 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|