![]() |
i did all as u wrote and didn't work...
when i edited a template i checked "yes" and nothing new hpanned...it moved me to the main templates page... |
Did you add what I said in this block?
PHP Code:
|
Firefly, does this work in 2.2.0? I had it installed in 2.0.3. I've tried adding it twice to the new version. I'm not getting anything. I'm probably just doing something wrong. Please tell me it works so I can send myself to the dumbass room. :)
|
Yup, works great. :)
|
Thanks for this nice & neat hack FireFly ;)
|
I so needed this. lol
|
Quote:
|
This is what mine looks like:
// ###################### Start do update ####################### if ($HTTP_POST_VARS['action']=="doupdate") { So, I cannot move this block... ? |
Why not?
That's exactly what you should have. |
This is what the hack says:
// ###################### Start do update ####################### if ($HTTP_POST_VARS['action']=="doupdate") { // a few lines of code here } ------------------------------------------------- This is mine: // ###################### Start do update ####################### if ($HTTP_POST_VARS['action']=="doupdate") { $DB_site->query("UPDATE template SET templatesetid=$templatesetid,title='".addslashes(" $title")."',template='".addsla shes("$template")."' WHERE templateid=$templateid"); echo "<p>Done!</p>"; if ($return) { $action="edit"; } else { $action="modify"; $expandset=$templatesetid; } } ---------------------------------------------------------- This is correct? |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|