vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Quick edit ajax question (https://vborg.vbsupport.ru/showthread.php?t=261495)

Scanu 08-22-2012 03:13 PM

Yes because the problem isn't there (i think) the problem is when you create a new field and then quick editing a post

kh99 08-22-2012 03:28 PM

Quote:

Originally Posted by Scanu (Post 2359059)
Yes because the problem isn't there (i think) the problem is when you create a new field and then quick editing a post

What do you mean by "create a new field"? I was replying to Ziki's earlier post where he posted his plugin code that he said doesn't work when quick editing.

Ziki 08-22-2012 03:51 PM

Quote:

Originally Posted by kh99 (Post 2359063)
What do you mean by "create a new field"? I was replying to Ziki's earlier post where he posted his plugin code that he said doesn't work when quick editing.

He meant to say that it might be a problem if the field in question was added to the thread table through a product, so it's not in the default installation, but that's not it.

I'll try to check it again, maybe something is interfering, though I don't see what possibly could.

kh99 08-22-2012 04:13 PM

Quote:

Originally Posted by Ziki (Post 2359070)
He meant to say that it might be a problem if the field in question was added to the thread table through a product, so it's not in the default installation, but that's not it.

Right, ok. Yeah, you guys have 2 different circumstances, although I suppose the problem could be the same. I have seen things disappear when you quick edit, only to come back when you refresh. But I can't remember what it was.

Scanu 08-22-2012 07:48 PM

The code is the same as ziki is continuing my mod, btw the problem is that when you click quick edit it updates the variables with empty values, so even if you refresh values are gone...

--------------- Added [DATE]1345672192[/DATE] at [TIME]1345672192[/TIME] ---------------

As soon as i can i will show you this on my site

--------------- Added [DATE]1345675217[/DATE] at [TIME]1345675217[/TIME] ---------------

Username: demo
Pwd: test
Go here, compile all fields then press "Submit New Thread" you will be redirected to the post where you can see two boxes so everything is fine try to edit your post and go advanced you can edit your values and then save, it will works. Now click edit post (whitout going to advanced) and then click save, you will see the problem (even when refreshing)

kh99 08-22-2012 08:57 PM

Quote:

Originally Posted by Scanu (Post 2359128)
The code is the same as ziki is continuing my mod,

Oh...then I guess I just don't understand what's going on. :o

Scanu 08-22-2012 09:18 PM

Basically i can solve this probem adding fields to the quick edit but i don't know how :/

Ziki 08-23-2012 05:01 AM

Quote:

Originally Posted by kh99 (Post 2359154)
Oh...then I guess I just don't understand what's going on. :o

The thread is getting derailed :D Can you post your test code that worked on your test board? Perhaps I'm missing something minor.

kh99 08-23-2012 11:03 AM

It's just this:

Code:

global $vbulletin;

vB_Template::preRegister('postbit_legacy', array('testvar' => $forum['forumid']));


and I inserted "Test var: {vb:raw testvar}" in my postbit_legacy. That's the latest code - I was changing it to test different things, so I previously had it displaying some $vbulletin options values just to make sure they were set as expected (I had been thinking maybe if it was an ajax call that not everything was being loaded like on normal request).


All times are GMT. The time now is 06:51 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.02958 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_code_printable
  • (5)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
  • (9)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