Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Cutting ".page* extension to link profiles to own application?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

since my app is a comunity, I would like the user profiles from jForum to link to my own profile implementation.

I created a new column in the jforum_users table which is called sso_id. I save the ID from the user of my app in there.
Now I went into 'post_show_user_profile_inc.htm' and changed

to


In ''UserAction.java" i changed

to


This is working, but when the *.htm templated gets parsed, the servlet extension ".page" is appended to the userId. If *.page is the extension, JForum tries to read the request.
How can I get rid of the *.page extension in this case? I couldn't find the parser method that appends that.

Edit:
I just realized that the code in ''UserAction.java" is not working. I guess I have to extend the User Object but maybe someone has a better idea or done this before?

Thx,
Norbert
[originally posted on jforum.net by TheSmile]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just don't use JForumContext.encodeURL to build the URL.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
reply
    Bookmark Topic Watch Topic
  • New Topic