Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

custom hack to my urls
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: custom hack to my urls

custom hack to my urls 12 years, 1 month ago #28447

  • fefe
  • OFFLINE
  • Posts: 18
Hello,

I'm facing the following issue. I have jomsef installed and the p8pp bridge for phpbb3 integration. The problem is that the url structure is not able to show the category or forum title instead is jumping to the current item and thats how is differing from the breadcrumbs construction. Actually I could manually rewrite with jomsef all my wrong urls but speaking about a forum, in this case would tricky. Would be possible to hack the source in such a way that we take in our calculations some custom criterias to rewrite this links automatcially. I'm going to visualize this with an example:

forum->katze->krankheiten would be the rihgt url. right now I'm getting forum->krankheiten this one is wrong.

What I've been thinking about: if the jomsef sees this url:forum->krankeiten than automatically should rewrite to forum->katze->krankheiten. The reference point would be krankheiten.

I would really appreciate a feedback


Thanks
The topic has been locked.

Re: custom hack to my urls 12 years, 1 month ago #28504

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,
What is the real non-SEF URL for those SEF URLs? Do you use any JoomSEF extension for p8pBB bridge?
I think the best solution would be to create or adjust an existing JoomSEF extension for it.
ARTIO Support Team
The topic has been locked.

Re: custom hack to my urls 12 years, 1 month ago #28509

  • fefe
  • OFFLINE
  • Posts: 18
Hi,


so the non sef url for the example above it looks: /?option=com_p8pbb&jview=forum&f=11&Itemid=165.

I was already thinking about to make a custom extension under site/components/com_sef/sef_ext

I created the xml file: com_p8pBB.xml
and the php file: com:p8pBB.php than I create the class class SefExt_com_p8pbb extends SefExt{}

the idea would be somehow to push in the urls the forums category title and all the subforums title. Do you have an idea what would be the best concept?

Thanks
The topic has been locked.

Re: custom hack to my urls 12 years, 1 month ago #28538

  • dajo
  • OFFLINE
  • Posts: 5069
That's the correct approach.
Use the create(&$uri) function to convert non-SEF URL to SEF probably based on the jview= and f= variables. You can take eg. Content or free Kunena extension as inspiration: www.artio.net/download-free-version/joom...ef-extension/details
ARTIO Support Team
The topic has been locked.

Re: custom hack to my urls 12 years, 1 month ago #28565

  • fefe
  • OFFLINE
  • Posts: 18
Thanks,

just a last question before I start to get in deep. What you advice, how should I debug my codes reffering to extension, because as I realised the var_dump is not going to work in this case or am I wrong?
The topic has been locked.

Re: custom hack to my urls 12 years, 1 month ago #28577

  • dajo
  • OFFLINE
  • Posts: 5069
You can use var_dump, just make sure that you delete the already existing URL in JoomSEFs URLs manager, otherwise your create() function in the extension won't get called.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
User Login Empty