2 john Apr 03, 2008 05:50

I had not been familiar with this document. Thanks for pointing it out, John.
Using the Upgrade manual for skins I have made the following change:
Also replace
require $skins_path.'_dispatch.inc.php';
with
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include( '$disp$', array(
'disp_posts' => , // We already handled this case above
'disp_single' => , // We already handled this case above
'disp_page' => , // We already handled this case above
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
I did that and I get:
Parse error: syntax error, unexpected ',' in /home/muncherw/public_html/magicblog/skins/SolRing/index.main.php on line 437
Line 437 of my code is this line:
'disp_posts' => , // We already handled this case above
I feel like something else must be going on here since I cut and paste that into the document. The next two lines will trigger the same error message if I comment out that line and the next one.
I'd appreciate any suggestions.
<?php
// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
skin_include( '$disp$', array(
'disp_posts' => '', // We already handled this case above
'disp_single' => '', // We already handled this case above
'disp_page' => '', // We already handled this case above
) );
// Note: you can customize any of the sub templates included here by
// copying the matching php file into your skin directory.
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
It misses the '' before the comma. This may well be during posting in the wiki (I saw more changes when trying to post php code)
Good luck
Thanks Afwas! That fixed that!
http://muncherw.com/magicblog/index.php?blog=1&tempskin=SolRing
Now I get:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/muncherw/public_html/magicblog/inc/_core/_template.funcs.php on line 190
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/muncherw/public_html/magicblog/inc/items/model/_itemlistlight.class.php on line 903
I'll try and look these up in a minute. These people seem to want me to work here at work!
Are _template.funcs.php and _itemlistlight.class.php part of the 2.x version of skins or is this old stuff Ineed to replace. Because those aren't files I've ever touched.
If you found them in the skins directory you can safely delete them.
It's a level up from skins. If I rename it the regular 2.x skin doesn't work so I'm assuming it needs to be there.
Is there a good way for me to compare skins or something to update my old one? I've followed all the instructions but something is still calling these other files. I don't really know what the deal is.
Can you put the php file online (rename as txt) so I can have a look at it?
http://muncherw.com/index.main.txt
Try that.
That's fine.
I'll have a thourough look later today or tomorrow.
I appreciate that.
FYI, I didn't put anything in for the bloglist or the contact link but I'm not really worried about that.
Afwas,
Okay, I finally downgraded the blog so you can see what it looked like.
@muncherw: You haven't found the solution? You still run 1.10, too? I also tried to upgrade my (heavily) customized clean skin but it did not work (only a blank page without error messages).
This may be of some help...
http://manual.b2evolution.net/Skins_2.0