Hello, I'm Rod, new here. I need help with the
current time function (is that how is it called?). I'm using it in phpBB and works great, BUT there's a problem, which I'll explain later...
This is the code I'm using:
Code: Select all
'CURRENT_URL' => generate_board_url() . '/' . $user->page['page'],
I'm using it to place a link in the header of my forum. The header is present in all forum pages and the link I have is to change the language on the fly (for example:
http://www.example.com/forum/index.php?nlang=fr) so if I go to the 'memberlist.php' page the link will appear like this in the navigation bar:
http://www.example.com/forum/memberlist.php?nlang=fr
But here comes the problem: if I go to a thread the link won't work because there's already the ? and for "nlang=fr" to work it needs an & instead (
http://www.example.com/forum/viewtopic. ... ]?nlang=fr[/b]). How can I make it so that the question mark is replaced with an ampersand ONLY when this situation happens (viewtopic.php page or any other that already has a variable).
Thanks.