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)
-   -   Return to Edit Template page after saving (https://vborg.vbsupport.ru/showthread.php?t=28625)

Jawelin 01-29-2002 02:21 PM

Quote:

Originally posted by FireFly
Jawelin, that's odd, I've been using this hack for 4 months already and never faced that problem! Do you mind sending me your template.php file by e-mail, so I could have a look and try it out? Thanks. :)
Hi, Chen. I sent the email some days ago and would just to have an ack if your address was right.
Thanks again.
Bye

Jawelin 05-21-2002 04:56 PM

As I couldn't manage to make this hack working 'as is', I created a workaround to obtain the same results.
Here they are, if - as read - someone else got the same problems.

Add
PHP Code:

  //HACK: Return to edit page after saving template
  
makeyesnocode("Return here","comeback",1);
  
makehiddencode("prevaction""$action");
  
//HACK: Return to edit page after saving template 

wherever you want to return to (I mean, right before the 'save changes' button in edit section)...
Later, in the 'doupdate' section, add at the end:

PHP Code:

  //HACK: Return to edit page after saving template
  
if ($comeback and $prevaction) {
      
cpredirect("template.php?s=$session[sessionhash]&action=$prevaction&templateid=$templateid",0);
  }
  
//HACK: Return to edit page after saving template 

It should work... :eek:
Thanks to Chen for the idea.

Birdie501 05-22-2002 08:03 AM

Thanks, really good and saves a lot of clicks!

Hobbes 05-05-2003 12:20 AM

I got the array error also....could anyone post a fix for it? cuz I R confused and it screwed up my forumhome :(

gmarik 06-09-2003 12:22 PM

It shows Done! and does not redirects bakc to edit mode on 2.3 :pirate:

PixelFx 09-08-2003 09:47 PM

one, Very cool, just installed it on vb 2.3.2 works great. INSTALLED ;)

question?? :)

how would I get this to work with filburt1

Quick Edit Templates - hack ?


All times are GMT. The time now is 11:04 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.01041 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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