phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Zero Dupe 0.4.4 and th23's Font Resizing MOD

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 Zero duplicate
::  
Author Message
IPB_Refugee
PR0
PR0


Joined: 24 Jul 2008
Posts: 53

Zero Dupe 0.4.4 and th23's Font Resizing MODPosted: Mon Jul 28, 2008 9:49 pm    Post subject: Zero Dupe 0.4.4 and th23's Font Resizing MOD

Hello again,

on viewtopic pages (and only there) the font resizing with th23's Font Resizing MOD doesn't work anymore. (I want to run strict mode and posts redirections == all.)

In source code it looks like this, when URL rewriting is deactivated:

Code:
<form method="post" action="./viewtopic.php?f=55&amp;t=2810" id="th23_font_resizing">


When URL rewriting is activated, it looks like this:

Code:
<form method="post" action="http://www.example.com/name-of-topic-t2810.html?forum_uri=name-of-topic" id="th23_font_resizing">


This is what I tried in viewtopic.php (analogue to the Prime Post Revisions solution) hopefully at the correct places:

Code:
   // Changings for th23's Font Resizing MOD
   $font_res = request_var('forum_uri', '');


Code:
      // Changings for th23's Font Resizing MOD
      $font_res = array('val' => $font_res, 'keep' => $font_res),


Code:
      'p' => array('val' => $post_id, 'keep' =>  (($view == 'show' || $displ_history || !empty($rem_history) || !empty($conf_key) || !empty($font_res)) ? true : false)),


Code:
      // Changings for th23's Font Resizing MOD
      $font_res = array('val' => $font_res, 'keep' => $font_res),


Kind regards
Wolfgang
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Zero Dupe 0.4.4 and th23's Font Resizing MODPosted: Tue Jul 29, 2008 7:45 am    Post subject: Re: Zero Dupe 0.4.4 and th23's Font Resizing MOD

Damned, is this mod really using the forum_uri GET var ?

Because our mod do too Rolling Eyes

This one is used to pass the forum uri ( not the topic one as it seems with your mod) when there is no ID.

It should not cause further issues for now, but could in the future, since we could use this extra var a bit more than now.

Besides, it looks like the zero dupe redirection set up does not have any more secrets for you Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
IPB_Refugee
PR0
PR0


Joined: 24 Jul 2008
Posts: 53

Zero Dupe 0.4.4 and th23's Font Resizing MODPosted: Tue Jul 29, 2008 11:02 pm    Post subject: Re: Zero Dupe 0.4.4 and th23's Font Resizing MOD

Hi dcz,

thanks for your explanation (also in the other topic).

Here is the solution to make th23's MOD work together with Zero Duplicate MOD:

1. No changes in viewtopic.php are needed!

2. Open th23_font_resizing.php

FIND

Code:
if(!defined('IN_PHPBB'))
{
   exit;
}


AFTER, ADD:

Code:
$wohin =  $_SERVER['REQUEST_URI'];


FIND:

Code:
   'U_TH23_FONT_SIZE' => (!$user->data['is_bot']) ? append_sid($phpbb_root_path . str_replace("&", "&amp;", $user->page['page'])) : '',


REPLACE WITH:

Code:
   //'U_TH23_FONT_SIZE' => (!$user->data['is_bot']) ? append_sid($phpbb_root_path . str_replace("&", "&amp;", $user->page['page'])) : '',
   'U_TH23_FONT_SIZE' => (!$user->data['is_bot']) ? $wohin : '',


Works with cookies enabled and disabled, but only tested with phpBB-3 in a subfolder.

Regards
Wolfgang
Back to top
IPB_Refugee
PR0
PR0


Joined: 24 Jul 2008
Posts: 53

Zero Dupe 0.4.4 and th23's Font Resizing MODPosted: Thu Aug 28, 2008 1:23 am    Post subject: Re: Zero Dupe 0.4.4 and th23's Font Resizing MOD

Just a little addition:

To stay a close friend of validator.w3.org, OPEN th23_font_resizing.php FIND

Code:
$wohin =  $_SERVER['REQUEST_URI'];


from my fix above and AFTER, ADD:

Code:
$wohin = str_replace('&', '&amp;', $wohin);


Regards
Wolfgang
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB3 Zero duplicate
Page 1 of 1

Navigation Similar Topics

Jump to: