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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
short urls don't work on pnphpbb2 forum
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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 -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 676
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. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 30
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??? -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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 -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
This is taken from The announcements at…-Postnuke.com forumQuote
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 -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 30
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();
}
}
?>
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 30
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 :((
- Moderated by:
- Support
