![]() |
absolutely beautiful, thank you Kier!
|
does this work for beta2?
|
Yes.
|
I had to be sleeping I missed this one. :D
What a hack! Thanks. |
Ok, I got it working but for some reason I get a parse error in template.php3 (had to rename to .php3 and edit all links in ktemplate to relfect this).
Parse error: parse error in template.php3 on line 487 Line 487 reads: -------------- ?> -------------- Any ideas? BTW, I also got an setcookie error, so I turned that option off in the ktemplate file. Is it ok to do that? rgds, |
Not sure about your parse error... are you sure you commented out all the right code?
As for the cookie thing, yes, just set the $usecookies variable to "no". |
This hack makes it so much easier to edit the templates. Thanks a million Kier :)
|
I get lost here. I don't understand why you put ..... instead of the whole bit of code to look for and replace. :D
can you help me out? Next, find the section of text within the template.php code that looks like this: PHP Code:
PHP Code:
|
But here's what you do.
Find this: Code:
$DB_site->query("INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,'$templatesetid','".addslashes("$title")."','".addslashes("$template")."')"); Code:
$result = $DB_site->query("INSERT INTO template (templateid,templatesetid,title,template) VALUES (NULL,'$templatesetid','".addslashes("$title")."','".addslashes("$template")."')"); Code:
$templateid = $DB_site->insert_id($result); Hope this helps :) |
I really like the rightclick view template function.
But I find it more useful if the original template would open in a new window. To achieve this do the following In ktemplate.php search for: Code:
oncontextmenu=\"window.location=('template.php?s=$session[sessionhash]&action=view&title='+this.options[this.selectedIndex].text)\"> Code:
oncontextmenu=\"javascript:window.open('template.php?s=$session[sessionhash]&action=view&title='+this.options[this.selectedIndex].text,'_popit','resizeable=yes,toolbar=no,location=no,menubar=no,scrollbars=no,status=no,width=460, height=320')\"> |
All times are GMT. The time now is 08:29 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|