vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Editpost preview (https://vborg.vbsupport.ru/showthread.php?t=9569)

T?Pau 02-07-2002 10:12 PM

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?

JJR512 02-12-2002 05:10 AM

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.

Mas*Mind 02-12-2002 10:32 AM

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 :)

Mystics 02-12-2002 10:48 AM

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.

FWC 02-12-2002 04:56 PM

Quote:

Originally posted by Mystics
I have fixed this long time ago, sorry I haven't posted it :p
It works perfect for vB2.2.x!

This works great. Thanks, Mystics! :up:

JJR512 02-12-2002 05:11 PM

Yep, works fine now! :)

Lucky 02-12-2002 08:14 PM

Works great on 2.2.2.

Thanks.

Jawelin 02-13-2002 11:08 AM

Quote:

Originally posted by Mystics
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.

Thanks a lot, Mystics !! Great upgrade.
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

DWZ 04-23-2002 09:35 AM

Quote:

Originally posted by Mystics
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.

I just tried to install this hack on 2.2.5 but, I cant find the code
Code:

<INPUT TYPE="Submit" NAME="SUBMIT" ACCESSKEY="S" VALUE="Submit Now">
in the editpost template... Has it been changed to somthing else?

I found this:
Code:

<input type="submit" class="bginput" name="submit" accesskey="s" value="Save Changes" tabindex="3">
I dont know if thats it or not, so yeah...

Thanks :)

Alan (DWZ)

Mystics 04-23-2002 01:29 PM

Quote:

Originally posted by DWZ
I found this:
Code:

<input type="submit" class="bginput" name="submit" accesskey="s" value="Save Changes" tabindex="3">
I dont know if thats it or not, so yeah...

Yes, that's the right code.


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
  • Page Generation 0.01201 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete