vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Editing Options For Mods & Admins (https://vborg.vbsupport.ru/showthread.php?t=61412)

djohn 03-07-2004 01:47 PM

The problem is that i have other hacks installed that modified editpost.php :(
have the same problem as KirbyDE, the post info gets screwed up if i stop editinf a post, yet still i cannot apply the update

Boofo 03-07-2004 07:37 PM

Just change what is between these two lines in the editpost and that will include the fix. ;)

PHP Code:

// ################### Set up values for Xenon's advanced edit modification ##### 

and

PHP Code:

// ################### Set up values for Xenon's advanced edit modification ##### 

Don't forget to dd the second piece of code for the editpost. Stefan has fixed the code and separated it into 2 pieces of code. The second one is new.

Boofo 03-07-2004 08:04 PM

It works great, Stefan, except for one small thing. If I put a phoney name in (or misspell a user's name), it will show guest like it is supposed to, but it will also show that phony or mispelled name above the word Guest. That shouldn't be in there, right? ;)

Xenon 03-07-2004 09:47 PM

Yes, it should work that way.
Guest is the usertitle, so if your username doesn't exists, it will set the post's userid to 0 and the Guest's username to the one you entered

Boofo 03-07-2004 09:53 PM

Ah, ok, Then all is well once again in the Stefan code. ;)

I am curious, though, why did you split the code this time instead of doing it all together? ;)

Xenon 03-07-2004 10:00 PM

because of the preview.
If you click on submit changes but have an error in your new post (like too many images or such) you will get to the previewpage as well. but you cannot know this before the actual updatesection has been running.

so it's not possible anymore to keep it in one block, if you want the preview to work

djohn 03-10-2004 06:46 PM

Updated just the lines in editpost.php
I make a topic, then view it, press edit, change something, and then press preview. Then I press save, and there we go, everything gets screwed up again... :(
Have i missed something out in updating?

Boofo 03-10-2004 07:43 PM

Quote:

Originally Posted by Xenon
because of the preview.
If you click on submit changes but have an error in your new post (like too many images or such) you will get to the previewpage as well. but you cannot know this before the actual updatesection has been running.

so it's not possible anymore to keep it in one block, if you want the preview to work

Ah, yes, but the code I sent you was in the same block and it worked fine. ;)

Xenon 03-10-2004 08:25 PM

@djohn: the editpost.php changes should be enough.
it is working fine for me.

@Bob: you haven't tested the code good enough :)
if you have an maximum images limit you will see what i meant :)

TheComputerGuy 03-21-2004 11:50 AM

Works like a dream in Gold!


All times are GMT. The time now is 01:02 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.01221 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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