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  
 
   
More Smilies link in advanced Quick Reply (+fix)

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
::  
Author Message
GoBieN
PR0
PR0


Joined: 10 Mar 2008
Posts: 53
Location: Belgium

More Smilies link in advanced Quick Reply (+fix)Posted: Mon Mar 24, 2008 10:36 pm    Post subject: More Smilies link in advanced Quick Reply (+fix)

As my saerch yielded nothing i think this problem only happend to me.
A user of my board reported the following.
A 404 not found when clicking on the "More Smilies" link from the advanced quick reply box.
What is very strange considering that the quick reply just calls the code from functions_posting for generating the smilies table.

In Firefox i had no trouble at all, a pop-up would open with all the smilies in it. This both from quick reply and normal reply.

In Internet Explorer the more smilies from quickreply linked to ./posting.php?mode=smilies and thus resulted in a the following link when IE tries to open it:
-www.domain.tld/forum-name/posting.php?mode=smilies (with the virtual folder option etc ..)

Very strange.

But i changed this in the code functions_posting.php:

FIND:
Code:
         'U_MORE_SMILIES'       => append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id))

REPLACE WITH:
Code:
//         'U_MORE_SMILIES'       => append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id))
'U_MORE_SMILIES'       => append_sid(generate_board_url() . "/posting.$phpEx", 'mode=smilies&f=' . $forum_id))


And gave me a absolute URL instead of the relative one.
But i still don't understand why the original was relative since it clearly states phpbb_root_path in the original code.
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

More Smilies link in advanced Quick Reply (+fix)Posted: Sat Mar 29, 2008 9:39 am    Post subject: Re: More Smilies link in advanced Quick Reply (+fix)

$phpbb_root_path is a relative path, that's why.

Now, the base href the mod adds should allow relative links to work properly, since actually, all links but the rewritten one stays relative with the mod (images, ucp, etc ..).

++

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: