Ben
2011/6/14 Tom <tomh...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "Geeklog Forum" group.
> To post to this group, send email to geeklo...@googlegroups.com.
> To unsubscribe from this group, send email to geeklog-foru...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/geeklog-forum?hl=en.
>
>
Rouslan
dengen
2011/6/14 Rouslan Placella <rou...@placella.com>:
Also I emailed Michael (ironmax), because he offered to run the beta of
the forum on demo.geeklog.net. With any luck he's still up for it ;)
Rouslan
http://code.google.com/p/geeklog/issues/detail?id=28
Rouslan
Ben
2011/6/15 Rouslan Placella <rou...@placella.com>:
The problem is serious.
We must prevent the loss of the compatibility of the template directory.
/pubulic_html/forum/forum == /pubuic_html/layout/theme/forum
dengen
2011/6/15 hostellerie.org <hostell...@gmail.com>:
Rouslan
dengen
2011/6/16 Rouslan Placella <rou...@placella.com>:
Rouslan
dengen
2011/6/17 Rouslan Placella <rou...@placella.com>:
Yoshinori, if someone can come up with a better solution that will work,
great, I'm sure everyone will be very happy with that, but I really
can't think of anything better than ignoring the files from the 'layout'
folder...
Rouslan
[1]:
http://groups.google.com/group/geeklog-forum/browse_thread/thread/6590c40f0c705453
So you can search to see if there is a directory called $_CONF['path_theme'] .
'forum/' . $shortpath and if there is you return that string. If not you return
$_CONF['path_html'] . 'forum/' . $shortpath.
Then you go through the forum code and replace new Template(....); with new
Template(FORUM_getTemplatePath(...));
Better still would be a FORUM_newTemplate that was aware of Geeklog 1.8's
COM_newTemplate. But there's no rush on that as I still have a month to go on
finishing the caching template plugin and that month doesn't start until I'm no
longer swamped at work (hopefully in July).
Joe
But you need to update your layout/theme/forum folder if you upgrade from 2.7.4
As a test you can replace your layout/theme/forum with the
public_html/forum/forum folder and even delete the
public_html/forum/forum folder.
Ben
2011/6/16 Rouslan Placella <rou...@placella.com>:
Ben
2011/6/16 hostellerie.org <hostell...@gmail.com>:
---SNIP---
$CONF_FORUM['path_layout'] = $_CONF['path_html'] . 'forum/';
$CONF_FORUM['layout_url'] = $_CONF['site_url'] . '/forum';
if (is_dir($_CONF['path_layout'] . 'forum')) {
$CONF_FORUM['path_layout'] = $_CONF['path_layout'];
$CONF_FORUM['layout_url'] = $_CONF['layout_url'];
}
$CONF_FORUM['css_url'] = $CONF_FORUM['layout_url'] .
'/forum/layout/forum.css';
if (file_exists($_CONF['path_layout'] . 'forum/layout/forum.css')) {
$CONF_FORUM['css_url'] = $_CONF['layout_url'] .
'/forum/layout/forum.css';
}
---SNIP---
The problem is that after the upgrade, the directory exists, but has the
files of the old plugin which are not compatible with 2.8.0 hence the
user gets unexpected behaviour from the forum.
Rouslan
----- Original Message ----
> From: Rouslan Placella <rou...@placella.com>
> To: geeklo...@googlegroups.com
> Sent: Thu, June 16, 2011 11:57:44 AM
> Subject: Re: [geeklog-forum] Re: 2.8.0 beta1
>
$CONF_FORUM['enable_themes_template']
Set the default value to false. Then, use as follows.
$CONF_FORUM['path_layout'] = $_CONF['path_html'] . 'forum/';
$CONF_FORUM['layout_url'] = $_CONF['site_url'] . '/forum';
if ($CONF_FORUM['enable_themes_template'] &&
is_dir($_CONF['path_layout'] . 'forum')) {
$CONF_FORUM['path_layout'] = $_CONF['path_layout'];
$CONF_FORUM['layout_url'] = $_CONF['layout_url'];
}
$CONF_FORUM['css_url'] = $CONF_FORUM['layout_url'] . '/forum/layout/forum.css';
if ($CONF_FORUM['enable_themes_template'] &&
file_exists($_CONF['path_layout'] . 'forum/layout/forum.css')) {
$CONF_FORUM['css_url'] = $_CONF['layout_url'] . '/forum/layout/forum.css';
}
The error will not occur after the upgrade.
dengen
2011/6/17 Tom <tomh...@gmail.com>:
Rouslan
dengen
2011/6/17 Tom <tomh...@gmail.com>: