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)

webForum 06-13-2002 03:26 PM

I'm using Mystics version on my forum and it stopped working after upgrading to v2.2.6. It seems to execute template 'standardredirect' in some way beacuse it's redirect to the post again after 1sec.

Please, can someone verify if this is working with v2.2.6.

Mystics 06-13-2002 03:50 PM

Quote:

Originally posted by webForum
Please, can someone verify if this is working with v2.2.6.
It's working perfect with 2.2.6 :)

I think, you have forgotten this step:
Code:

Search for
-----------------------------------------------------------
if ($HTTP_POST_VARS['action']=="updatepost") {
-----------------------------------------------------------

REPLACE it with
-----------------------------------------------------------
if ($action=="updatepost") {
-----------------------------------------------------------

Mystics

webForum 06-13-2002 04:03 PM

Yes, you're correct. I actually leaved it out since I thought both more or less did the same thing.

Many thanks Mystics :)

xamu 06-19-2002 06:39 PM

So really,
Code:

<input type="submit" class="bginput" name="submit" accesskey="s" value="Save Changes" tabindex="3">
Should be replaced with
Code:

<input type="submit" class="bginput" name="submit" accesskey="s" value="Save Changes" tabindex="3">
<INPUT TYPE="Submit" class="bginput" NAME="preview" ACCESSKEY="P" VALUE="Preview">

Otherwise the Preview button will not be the same size. :cool:

Probably wouldn't hurt to change the tabindex= numbers for Preview, Save Changes & Reset Message.

Boofo 03-31-2003 02:19 AM

For anyone still using this hack, I have fixed the problem with the signature showing for the original poster instead of the person editing the post.

Change:

PHP Code:

    if ($signature && $bbuserinfo[signature]) {
      
$previewmessage.=bbcodeparse("\n__________________\n$bbuserinfo[signature]",0,$allowsmilies);
    } 

To:

PHP Code:

    if ($signature) {
    
$userinfo=$DB_site->query_first("
    SELECT signature
      FROM user
     WHERE userid='
$postinfo[userid]'");
      
$post[username]=$postinfo[username];
      
$post['signature'] = bbcodeparse($userinfo['signature'],0,$allowsmilie);
      eval(
"\$post[signature] = \"".gettemplate("postbit_signature")."\";");
      
$previewmessage.=$post['signature'];
    } 

It does add one query, but this is the only way to fix it AFAIK. ;)

msimplay 05-11-2003 01:11 AM

works great on vbulletin 2.3 its a wonder why it isnt there as standard

padblaz 05-23-2003 06:45 AM

very useful hack
thanks for it :)

Kriek 08-10-2003 12:05 PM

Flawless via 2.3.0

/me clicks install

Aaron1 02-01-2004 09:24 AM

Very cool, i installed it, the only problem what i have is that the preview of the changes of the post looks good, but in the form the changes aren't there anymore. So i need to edit it again whenever i preview the edit post.

Anyone knows what could have caused that? Very ackward! :ermm:

Ps: I am still running my faitfulll vb 2.2.7

ngx 01-28-2005 03:31 PM

Quote:

Originally Posted by Mystics
It's working perfect with 2.2.6 :)

I think, you have forgotten this step:
Code:

Search for
-----------------------------------------------------------
if ($HTTP_POST_VARS['action']=="updatepost") {
-----------------------------------------------------------

REPLACE it with
-----------------------------------------------------------
if ($action=="updatepost") {
-----------------------------------------------------------

Mystics

Installed nicely into 2.3.5 Thanks.

Just posting here to point out that that part of code isnt actually in the first post instructions :( So I missed it twice until I came further into the thread. just an FYI


All times are GMT. The time now is 11:36 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.01179 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)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