urlkiller |
|
---|---|
Hi folks,
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! URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
ez |
|
---|---|
Why use an array for one item.
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 ==- I say: Keep it EZ -==
|
urlkiller |
|
---|---|
nope its just a snippet out f the code....
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 --> URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
ez |
|
---|---|
maybe browser cache... you were talking about cache a lot??
to test just put &dum=8765675 behind youre url. or some other number (like the time) some browsers are caching ==- I say: Keep it EZ -==
|
urlkiller |
|
---|---|
nope. maybe ill try it again
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?! URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
Dayver |
|
---|---|
<!-- BEGIN: MAIN --> <!-- BEGIN: BBMCLIENTS --> kghjkh <!-- END: BBMCLIENTS --> <!-- END: MAIN --> ??? Pavlo Tkachenko aka Dayver
|
urlkiller |
|
---|---|
yep! got that too!
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... URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
Dayver |
|
---|---|
show the whole php code and tpl? May be in pm
Pavlo Tkachenko aka Dayver
|
urlkiller |
|
---|---|
phew... on row 25
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.. ;( URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
|
This post was edited by urlkiller (2010-05-13 06:46, 14 years ago) |
Dayver |
|
---|---|
you tpl file in utf8 codepage?
If your template in ANSI codepage sometimes mentioned in the template of some specific characters induces strange errors Pavlo Tkachenko aka Dayver
|
urlkiller |
|
---|---|
and i bet, its just a simple small little bug in my code somewhere...
![]() 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? URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
Dayver |
|
---|---|
May be:
Pavlo Tkachenko aka Dayver
|
urlkiller |
|
---|---|
he he tried that too.
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... URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
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 Pavlo Tkachenko aka Dayver
|
urlkiller |
|
---|---|
wait ill check it now stripping all other things out except the one whos not working ...
Added 1 minute later: ok tpl now looks like this: <!-- BEGIN: MAIN -->
<!-- DASHBOARD STYLESHEETS -->
<link rel="stylesheet" type="text/css" href="./plugins/dashboard/inc/style.css" />
<link rel="stylesheet" type="text/css" href="./plugins/dashboard/inc/highslide/highslide.css" />
<link rel="stylesheet" type="text/css" href="./plugins/dashboard/inc/tablesort/tablesort.css" />
<link rel="stylesheet" type="text/css" href="./plugins/dashboard/apps/{PAYLOAD_TITLE}/inc/style.css" />
<!-- DASHBOARD JAVASCRIPTS -->
<script type="text/javascript" src="./plugins/dashboard/inc/ajaxtabs/ajaxtabs.js"></script>
<script type="text/javascript" src="./plugins/dashboard/inc/highcharts/highcharts.js"></script>
<!--[if IE]><script type="text/javascript" src="./plugins/dashboard/inc/highcharts/excanvas.compiled.js"></script><![endif]-->
<script type="text/javascript" src="./plugins/dashboard/inc/highslide/highslide-full.js"></script>
<script type="text/javascript" src="./plugins/dashboard/inc/tablesort/tablesort.js"></script>
<script type="text/javascript" src="./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? URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|