Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
*user with short urls not working and fix
  • Posted: 31.05.2004, 23:59
     
    shiner68467
    rank:
    Freshman Freshman
    registered:
     May 2004
    Status:
    offline
    last visit:
    05.05.06
    Posts:
    11
    When you use short urls with the *user zone the page uses the master template with center blocks and all. After some searching in the Xanthia Class file modules/Xanthia/pnclasses/Xanthia.php the fix for this would be to change the following code:

    // Determine the correct Master template to call
    if (!empty($this->skins[$zone1])) {
    // Render the page using master template
    if (stristr($_SERVER['PHP_SELF'], 'user.php') && !empty($this->skins['*user'])) {
    $tplfile = $this->skins['*user'];

    to:

    // Determine the correct Master template to call
    if (!empty($this->skins[$zone1])) {
    // Render the page using master template
    if (stristr($_SERVER['PHP_SELF'], 'user.') && !empty($this->skins['*user'])) {
    $tplfile = $this->skins['*user'];

    This allows the *user zone to detect no matter what the extension of user.php is.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula