cotonti.com : Problems while Parsing to Template https://www.cotonti.com Последние сообщения в теме Cotonti en Mon, 06 Oct 2025 19:10:36 -0000 urlkiller and so helping includes looking with me over code...

Added 2 hours 1 minute later:

Ok to not let this all unconcluded.

1. i was sitting for about 3 days now on a problem (see above)
2. always remember that skins/<yourskin>/plugins/<youplugin>.tpl has a higher priority then plugins/<yourplugin>/tpl/<yourplugin>.tpl
3. solution was easy delete either one of them and start editing like hell
4. the error is at the point where you at least expect it ;)]]>
чт, 13 мая 2010 07:54:23 -0000
Dayver you have found the cause of error]]> чт, 13 мая 2010 07:40:36 -0000 urlkiller i often start from a single file and in the end or at a certain size of the project i start to split that in different files.

Added 3 minutes later:

thanks for the help at this late hour... ukraine is +1 / +2 hour from my timezone (gmt+1 berlin) i guess]]>
чт, 13 мая 2010 07:30:48 -0000
Dayver good luck

But in that difficult plugins(templates) I would recommend cut main tpl on many small tpls]]>
чт, 13 мая 2010 07:25:59 -0000
urlkiller



Added 6 minutes later:

ok now. it is getting very wierd i can change what i want and it stays the same.

whohoho the ghost chache...

Added 48 seconds later:

AHAHAHHAHAHAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!

Added 38 seconds later:

skin tpl overwrites tpl folder in plugin, right?
i dont know why there where this old template in there... ;( ok but iam happy it seems to work!]]>
чт, 13 мая 2010 07:13:23 -0000
Dayver ]]> чт, 13 мая 2010 07:11:35 -0000 urlkiller чт, 13 мая 2010 07:09:26 -0000 Dayver чт, 13 мая 2010 07:08:11 -0000 urlkiller
Added 1 minute later:

ok tpl now looks like this:

<!-- BEGIN: MAIN -->
    <!-- DASHBOARD STYLESHEETS -->
		<link rel="stylesheet" type="text/css" href=https://www.cotonti.com/"./plugins/dashboard/inc/style.css" />
		<link rel="stylesheet" type="text/css" href=https://www.cotonti.com/"./plugins/dashboard/inc/highslide/highslide.css" />
		<link rel="stylesheet" type="text/css" href=https://www.cotonti.com/"./plugins/dashboard/inc/tablesort/tablesort.css" />
		<link rel="stylesheet" type="text/css" href=https://www.cotonti.com/"./plugins/dashboard/apps/{PAYLOAD_TITLE}/inc/style.css" />
		
    <!-- DASHBOARD JAVASCRIPTS -->
    <script type="text/javascript" src=https://www.cotonti.com/"./plugins/dashboard/inc/ajaxtabs/ajaxtabs.js"></script>
    <script type="text/javascript" src=https://www.cotonti.com/"./plugins/dashboard/inc/highcharts/highcharts.js"></script>
    <!--[if IE]><script type="text/javascript" src=https://www.cotonti.com/"./plugins/dashboard/inc/highcharts/excanvas.compiled.js"></script><![endif]-->
		<script type="text/javascript" src=https://www.cotonti.com/"./plugins/dashboard/inc/highslide/highslide-full.js"></script>
    <script type="text/javascript" src=https://www.cotonti.com/"./plugins/dashboard/inc/tablesort/tablesort.js"></script>
		<script type="text/javascript" src=https://www.cotonti.com/"./plugins/dashboard/inc/javascript.js"></script>
		<script>
		hs.graphicsDir = './plugins/dashboard/inc/highslide/graphics/';
		hs.outlineType = 'rounded-white';
		hs.showCredits = false;
		hs.wrapperClassName = 'draggable-header';
		</script>

		<div id="main-submenu"><h2>{DASHBOARD_TITLE}</h2><div style="float:right;">{DASHBOARD_SUBTITLE}</div></div>
 	  <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <!-- BEGIN: BBMCLIENTS -->
    kghjkh
    <!-- END: BBMCLIENTS -->
<!-- END: MAIN -->

still not working...

Added 32 seconds later:

and now even that wont work:

<!-- BEGIN: MAIN -->
    <!-- BEGIN: BBMCLIENTS -->
    kghjkh
    <!-- END: BBMCLIENTS -->
<!-- END: MAIN -->


Added 26 seconds later:

i already uninstalled all othe rplugins that not in the standart release...

Added 1 minute later:

hmm but now there is some other wierd behavior.

i deleted everthing as i posted up there.
and i still see all parts of the plugin perfectly formated...

Added 1 minute later:

could the tpl-file maybe cached somewhere elese?]]>
чт, 13 мая 2010 07:01:17 -0000
Dayver # urlkiller : is there some maximum html-commented-blocks in the xtemplate thing?
I don know but may be you can try delet all unimportant html-commented-blocks for test]]>
чт, 13 мая 2010 07:00:27 -0000
urlkiller
it makes my the sub-header appear doubble...

Added 16 seconds later:

i mean i get 2 times the same wrong output

Added 1 minute later:

as i said before it seems that the problem is somwehere between parsing and getting it in the template file... i had some sql querys in there before and it seems everything was going well... the rows got read from the db but i dont get it in the tpl...]]>
чт, 13 мая 2010 06:55:28 -0000
Dayver
]]>
чт, 13 мая 2010 06:54:38 -0000
urlkiller

Added 19 seconds later:

nope its utf-8

Added 2 minutes later:

ok just to get sure i checked it and set it to ansi and back to utf-8 still no output parsed

Added 57 seconds later:

is there some maximum html-commented-blocks in the xtemplate thing?]]>
чт, 13 мая 2010 06:50:07 -0000
Dayver
If your template in ANSI codepage sometimes mentioned in the template of some specific characters induces strange errors]]>
чт, 13 мая 2010 06:50:06 -0000
urlkiller

Added 1 minute later:

ha ha


Added 8 minutes later:

i reduced everything to a minimum so it isnt that much as you maybe excpected...
3 lines in the tpl and about 20 lines in the php file. so maybe you know why iam going crazy... i reduced and reduced and still it wont work... and i consider myself not as a noob in the cot codes.. ;(]]>
чт, 13 мая 2010 06:35:51 -0000
Dayver чт, 13 мая 2010 06:28:20 -0000 urlkiller
Added 47 seconds later:

i forget to say thanks for you guys help! thank you! i guess i would go crazy without you folks here ;)

Added 1 minute later:

maybe that helps too.

i got some echos in the rows etc. for debugging and it seems everything works fine. just the content wont show up. so i guess it must be a template problem...]]>
чт, 13 мая 2010 06:23:10 -0000
Dayver <!-- BEGIN: MAIN --> <!-- BEGIN: BBMCLIENTS --> kghjkh <!-- END: BBMCLIENTS --> <!-- END: MAIN -->
???]]>
чт, 13 мая 2010 06:14:56 -0000
urlkiller
1. i have a working plugin
2. i already have other parts seperated via switch($action) and they are working
3. i already have a template that works
4. i made a new section in my switch() with case'blabla': ... break;
5. i added $t->parse('MAIN.BBMCLIENTS');
6. i added <!-- BEGIN: BBMCLIENTS --> ... <!-- END: BBMCLIENTS -->
in my already working tpl. of cource i thought of some content too!
7. i tried it like the other parts of the plug
8. it wont work.... i tried to work araound every cache problem, deleting other url, etc.

the thing what makes me crazy is that i had a area in the tpl called BBMCLIENTDATA. i deleted this part yesterday. so i thought maybe you could try it with the old area maybe there is some array filled up?! i tried it and got my old content that is no more in the tpl? WTF?!]]>
чт, 13 мая 2010 06:11:47 -0000
ez to test just put &dum=8765675 behind youre url.

or some other number (like the time)

some browsers are caching]]>
чт, 13 мая 2010 05:54:35 -0000
urlkiller its an array of over 30 different vars.

thje problem is that the parser seems not to recognize my current tpl layout with the
<!-- thing -->]]>
чт, 13 мая 2010 05:31:05 -0000
ez
Just thinking quick here, but loose the , ????
Try this:

$t->assign(array('ACTIVE_ACCOUNTS' => $activeAccounts));
$t->parse('MAIN.BBMCLIENTS');

OR

$t->assign(array(
'ACTIVE_ACCOUNTS' => $activeAccounts,
'DUMMYVAL' => 'x'));

$t->parse('MAIN.BBMCLIENTS');

hope this is it]]>
чт, 13 мая 2010 05:19:12 -0000
urlkiller
i got another Problem here and its driving me nuts.

I have a plugin that does this:

$t->assign(array(
'ACTIVE_ACCOUNTS' => $activeAccounts,
));

$t->parse('MAIN.BBMCLIENTS');

and a Template that does this:

    <!-- BEGIN: BBMCLIENTS -->
    kghjkh
    <!-- END: BBMCLIENTS -->

so far so good!
but i dont get anything out of it?! any ideas?
BTW. all others in the plugin seems to work AND in addition if i take BBMDOCUMENTS as target what is already deleted in the template i still got the old content displayed but not the kghjkh

and yes i deleted server cache & internal cache and deactivated the system cache!]]>
чт, 13 мая 2010 04:34:11 -0000