Fork me on GitHub

short urls don't work on pnphpbb2 forum  Bottom

  • Hello. I installed short urls on my site and they work good but they don't work in pnpgpbb2 forum What could I do?? I installed everything what was included in dev-postnuke 2.0 d version. Articles were rewrited but posts from forum are still the same.

    I use pnphpbb2 forum version "g"

    link to forum was as I suppose rewrited -because I see /pnphpbb2.html - but all posts weren't rewrited at all
  • If you use AutoTheme, the 'autourls' works nicely.

    *note, the past tense of rewrite is 'rewrote'; the past progressive tense is 'were rewritten'. :) :) Nice translation in general, though. 8)

    --
    David Pahl
    Zikula Support Team
  • If you use the stock ShortURLs in PN 0.75 (with Xanthia themes), it should work. They are identical to the ones in AutoTheme, BTW, however it relates to the theme. AutoThemes need its own shorturl parser, just as Xanthia does. Is dev-postnuke a theme, and if so, an old 'classic' one? I'm guessing it is, hence you needing to install it. I'm not familiar with its shorturls, but it sounds like its rules don't cover pnphpbb2 properly.

    AmmoDump, if martin2x doesn't know 'rewrote', what's the chance he knows what past "progressive" tense is? I sure don't, even though I'm pretty good at spelling in general. But then, I never were any good at all those things, like which are verbs etc, I go on instinct.
  • hmmm...nice english lesson :)) Sorry - write-wrote-written :)) Of course that I know :))) I just WROTE ;))) this post quickly ;) and I didn't check it

    sorry - but this one I don't understand - what do I have to install???
  • On the English, I was assuming if English was the primary language, then the conjugation would have been natural. But the conjugation was incorrect, so I assumed (maybe I shouldn't assume), that English was a learned language, therefore there would be a academic approach to conjugation. I am going to shut up now....

    Anyway, martin2x what theme (system) are you using?

    --
    David Pahl
    Zikula Support Team
  • This is taken from The announcements at…-Postnuke.com forum

    Quote

    headerBB.php - located in modules\PNPHPBB2\templates\PNTheme\

    Code:
    Insert



    Code

    $simple_urls,
    $hide_email,
    $simple_uri;



    after $pagetitle at around Line 81

    Next:

    Insert

    Code

    // Modification -- Integrating Short URLs in PostNuke by dev-postnuke.com
    // Modificacion -- Integracion de las URLs Cortas en PostNuke por dev-postnuke.com
    $simple_urls = (pnConfigGetVar('UseShortUrls') == 1); //Activa o desactivar url's cortas (true = activadas ; false = desactivadas)
    $hide_email = false;
    $simple_uri = "";

    if ($simple_urls || $hide_email)
    {
    require_once("functions.php");
    $simple_uri = simple_uri();
    if ($simple_uri == "old")
    {
    ob_start();
    }
    }




    Directly after head(); down to the end
  • Thanks. I will check their site. But I don't know what to do with this


    $pagetitle


    because I don't have something like that

    This is my headerBB2

    I just put there the second part of this code (after head();)

    Quote



    */

    $header = 1;


    function head() {

    global $index,
    $artpage,
    $topic,
    $hlpfile,
    $hr,
    $theme,
    $bgcolor1,
    $bgcolor2,
    $bgcolor3,
    $bgcolor4,
    $bgcolor5,
    $textcolor1,
    $textcolor2,
    $textcolor3,
    $textcolor4,
    $forumpage,
    $thename,
    $postnuke_theme,
    //$pntheme,
    // Begin PNphpBB2 Module
    $ModName,
    $phpbb_root_path,
    $phpbb_theme,
    $board_config,
    $page_title,
    // End PNphpBB2 Module
    $themename,
    $themeimages,
    $additional_header,
    $themeOverrideCategory,
    $themeOverrideStory;

    // modification mouzaia .71
    $cWhereIsPerso = WHERE_IS_PERSO;
    if ( !(empty($cWhereIsPerso)) ) {
    include("modules/NS-Multisites/head.inc.php");
    } else {
    $thistheme = pnVarPrepForOs(pnUserGetTheme());
    global $themesarein;
    if (@file(WHERE_IS_PERSO."themes/".$thistheme."/theme.php")) {
    $themesarein = WHERE_IS_PERSO;
    } else {
    $themesarein = "";
    }
    }

    if ( @!$GLOBALS['xanthia_theme'] || ($phpbb_theme['gen_simple_header']) ) {
    ob_start();
    echo "\n";
    echo "\n\n";

    if (defined("_CHARSET") && _CHARSET != "") {
    echo "\n";
    }

    if ($artpage==1) {
    /**
    * article page output
    */
    global $info, $hometext;
    echo "\n";
    if (pnConfigGetVar('dyn_keywords') == 1) {
    $htmlless = check_html($info['maintext'], $strip ='nohtml');
    $symbolLess = trim(ereg_replace('("|\?|!|:|\.|\(|\)|;|\\\\)+', ' ', $htmlless));
    $keywords = ereg_replace('( |'.CHR(10).'|'.CHR(13).')+', ',', $symbolLess);
    $metatags = ereg_replace(",+", ",",$keywords);
    echo "\n";
    } else {
    echo "\n";
    }
    } else {
    /**
    * all other page output
    */
    echo '\n";
    echo '\n";
    }
    echo '\n";
    echo "\n";
    echo "\n";
    echo "\n";
    echo '\n";
    echo '\n";
    echo "\n";
    echo "\n";
    echo '/postnuke.com\">\n";
    echo "\n";

    global $themesarein;

    echo "\n";
    echo "\n";
    echo "\n";
    // End PNphpBB2 Module - Batpuppy PNTheme

    echo "\n\n";
    echo "\n\n";

    if(isset($additional_header)) {
    echo @implode("\n", $additional_header);
    }
    }

    if ( @$GLOBALS['xanthia_theme'] )
    {
    $GLOBALS['info']['title'] = $page_title;
    }

    // Begin PNphpBB2 Module - Batpuppy PNTheme
    if ( !$phpbb_theme['gen_simple_header'] )
    {
    themeheader();
    }
    // else
    // {
    // echo "\n";
    // }
    // End PNphpBB2 Module - Batpuppy PNTheme
    }

    pnThemeLoad(pnUserGetTheme());

    /**
    * if you want to do overrides, set the global vars $themeOverrideCategory
    * and/or $themeOverrideStory before including header.php
    */

    head();

    // Modification -- Integrating Short URLs in PostNuke by dev-postnuke.com
    // Modificacion -- Integracion de las URLs Cortas en PostNuke por dev-postnuke.com
    $simple_urls = (pnConfigGetVar('UseShortUrls') == 1); //Activa o desactivar URL's cortas (true = activadas ; false = desactivadas)
    $hide_email = false;
    $simple_uri = "";

    if ($simple_urls || $hide_email)
    {
    require_once("functions.php");
    $simple_uri = simple_uri();
    if ($simple_uri == "old")
    {
    ob_start();
    }
    }
    ?>


  • and about theme - primary theme is mine (I mixed some themes and add some my elements)

    pnphpbb2 theme is classic - I just changed colours and put some pictures
  • I just got that this problem what are you mentioned about (this text which should be added) was connected only with previous versions (like "b" for example").I use "d" so everything should be OK.something must be wrong with general settings - because AT shorturls doesn't work too. Only first link is rewritten - PNphpBB2.html, i think it's because it's on the main site.

    all next links which are not available from main site remain unchanged.

    ??? I hope somebody could help me :((

This list is based on users active over the last 60 minutes.