1
kevincam
including a template from within another template
  • 2004/2/22 2:33

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


I have a template, cc_gest.tpl that calls the following smarty function:
<{include file="location.tpl" last_location="Payment gateway settings"}>

but the template, "location.tpl", it is trying to include has not been stored in the database because it listed after the template, cc_gest.tpl, that the call is made in. It apprears that xoops' template create function doesn't allow for this I don't want to have to go through and arrange the templates that that they get put in the database in the right order. Any plans to fix this or am I missing something.



2
kevincam
Re: How can I get only the module center block without displaying the header, footer, and side blocks
  • 2004/2/16 4:29

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


That code is what goes in the theme right? I want to use the existing them, but turn off the header, left and right column when I use the url to the index page of a moule as the popup url.



3
kevincam
How can I get only the module center block without displaying the header, footer, and side blocks
  • 2004/2/16 0:06

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


I'm using the popup to display a page and I just want to display the modules center contents without displaying anything else since this is a popup, how can I grab just the center contents. Below is a snippet of my code, part of the switch section:

case "day":
// We must always set our main template before including the header
$xoopsOption['template_main'] = 'day.html';

// Include the page header
include(XOOPS_ROOT_PATH.'/header.php');
$xoopsModuleConfig["back_to_calendar"] = FALSE;
include('day.php');
include('include/back_to_month.php');
include('include/menu_builder.php');
$xoopsTpl->assign('footer_links', $footer_links);
$xoopsTpl->assign('functions',$xoopsModuleConfig['functions']);
$xoopsTpl->assign('current_display', $current_display);
$xoopsTpl->assign('day_prev_button', $day_prev_button);
$xoopsTpl->assign('add_button', $add_button);
$xoopsTpl->assign('edit_button', $edit_button);
$xoopsTpl->assign('day_next_button', $day_next_button);
$xoopsTpl->assign('category_dropdown', $category_dropdown);
$xoopsTpl->assign('view_cat_button', $view_cat_button);
$xoopsTpl->assign('back2month', $back2month);
$xoopsTpl->assign('calendar_mini_current', $calendar_mini_current);
$xoopsTpl->assign('calendar_main', $calendar_main);

// Include the page footer
include(XOOPS_ROOT_PATH.'/footer.php');
break;


This will display the entire page with theme header, footer and any active blocks. I would like to use this same switch for when I call the popup but just want the center module data.



4
kevincam
Re: Best for articles management
  • 2004/2/15 5:25

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


Found a bug in XF-Section.

category.php
line 68
here is the corrected line:
$indeximage_select->setExtra("onchange='showImgSelected(\"image\", \"indeximage\", \"".$wfsConfig['sgraphicspath']."\", \"\", \"\")'");

I had to add: , \"\"
which set the last parameter for the javascript function showImgSelected() to be empty.



5
kevincam
Re: preview bug in 2.0.5
  • 2004/2/8 5:34

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


This preview of Blocks still exist in 2.0.6 I have blocks with HTML and when I click preview, it doesn't show anything, it just goes to the main admin screen.



6
kevincam
Re: Mail bug(?) still in 2.0.6RC
  • 2004/1/23 7:30

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


Here are lines 385 to 399
<!-- Start Form Vaidation JavaScript //-->
<script type='text/javascript'>
<!--//
function xoopsFormValidate_".$this->getName()."(){
";
$required =& $this->getRequired();
$reqcount = count($required);
for ($i = 0; $i < $reqcount; $i++) {
$js .= "if ( window.document.".$this->getName()."[].".$required[$i]->getName().".value == \"\" ) {alert( \"".sprintf(_FORM_ENTER, $required[$i]->getCaption())."\" );window.document.".$this->getName().".".$required[$i]->getName().".focus();return false;\n}
";
}
$js .= "}
//-->
</script>
<!-- End Form Vaidation JavaScript //-->

This is line 393 this is the one that generates the code mentioned above.
window.document.".$this->getName()."[].".$required[$i]->getName().".value == \"\"



7
kevincam
Re: Mail bug(?) still in 2.0.6RC
  • 2004/1/22 5:02

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


I think I know why it happens.

In xoopsform/form.php
Line 385 through 399
this javacript function creates a call to:
windows.document.mailusers.mail_send_to.value == ""

but in xoopsfrom/formcheckbox.php
the function render()
creates a checkbox with the name mail_send_to[]
so I think the javascript should be
windows.document.mailusers.mail_send_to[].value == ""



8
kevincam
notification.php missing definition
  • 2003/11/28 9:00

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


language->english->notification.php

This file is missing a definition for _NOT_NOTHINGTODELETE

_NOT_NOTHINGTODELETE shows up in the file notifications.php in the root directory lines 178 & 195



9
kevincam
Re: formatted textarea
  • 2003/11/27 12:27

  • kevincam

  • Just popping in

  • Posts: 14

  • Since: 2003/2/25


I'm still trying to understand why the form class even exist now that XOOPS is using templates. Why not just create all forms using a template. Is there any situtation where you couldn't do something using templates that you can using the XOOPS from class(es)




TopTop



Login

Who's Online

189 user(s) are online (149 user(s) are browsing Support Forums)


Members: 0


Guests: 189


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits