Translate
Online Users

In total there are 12 users online :: 1 registered, 0 hidden and 11 guests

Most users ever online was 72 on Mon Apr 07, 2014 12:28 pm

Users browsing this forum: No registered users and 2 guests based on users active over the past 5 minutes

Last Online
In order to view the online list you have to be registered and logged in.



We are a free and open
community, all are welcome.

Click here to Register

Search

Extension bug in url-s.

Please report all code bugs here...

Moderator: Staff

Extension bug in url-s.

PostAuthor: kiki33 » Tue Dec 08, 2015 6:56 am

Hello.

Sorry my english.

I use a kiss portal extension with phpbb3.1.5, and i found a bug.

I use custom extension, and this extension created a custom link. (ex: http://www.domain.com/valami, like the portal startpage the /portal)

I added this /valami in database, i want use block in /valami, and this work, okey.

The porblem is:

If /valami have a parameters, block's dont work.
ex: http://www.domain.com/valami?start=30

that is:
http://www.domain.com/valami //Block's Work
http://www.domain.com/valami?start=30 //Block's dont work


how to fix it? Thank you.

kiki33
 
Posts: 8
Joined: Sat Oct 19, 2013 9:12 am

Re: Extension bug in url-s.

PostAuthor: Mike » Wed Dec 30, 2015 9:46 am

Sorry for the late reply... I will check it out asap...
Image
User avatar
Mike
Developer team leader
Developer team leader
 
Posts: 6051
Joined: Sun Mar 27, 2011 2:12 pm
Location: Dublin, Ireland

Re: Extension bug in url-s.

PostAuthor: kiki33 » Tue Jan 05, 2016 7:28 am

okey, thank you!

kiki33
 
Posts: 8
Joined: Sat Oct 19, 2013 9:12 am

Re: Extension bug in url-s.

PostAuthor: kiki33 » Thu Jan 07, 2016 8:41 am

Sorry double post.

My method is fix this problem:

open:

ext/phpbbireland/portal/includes/func.php and search public function get_current_page()

found this:

if ($this_page[0] == 'app')

and replace this:

Code: Select all
   if ($this_page[0] == 'app')
      {
         $this_page_name = explode("/", $this_page[1]);
         if(strpos($this_page_name[1],'valami') !== false)
         {
            $this_page_name[1] = 'valami';
         }
         return($this_page_name[1]);
      }


if have more pages, add here, this method. Sorry my english!

kiki33
 
Posts: 8
Joined: Sat Oct 19, 2013 9:12 am

Re: Extension bug in url-s.

PostAuthor: Mike » Thu Jan 21, 2016 11:59 am

Thanks kiki33...
Image
User avatar
Mike
Developer team leader
Developer team leader
 
Posts: 6051
Joined: Sun Mar 27, 2011 2:12 pm
Location: Dublin, Ireland


Return to Code bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Charlie Pringle
Ebay's 76junkyard