• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Change theming by looking at URL

 
Ranch Hand
Posts: 41
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently using JForum as downloaded from site (not JForum2).

Well, I was going to ask, can I get at the URL in a template? So I can change theming on some pages? However, give me a quiet 10 mins and I trace back, read documentation, and here's the base activity in a line (placed in a template),



Onwards I go, lurching into the unknown (2 days with Java)...

Comments welcome.
 
robert crowther
Ranch Hand
Posts: 41
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A little expanded. Probably not a good idea to include URL data directly (not looked at the class documentation yet),



(not convinced about these code tags yet. Maybe not using it right...)
 
author & internet detective
Posts: 40198
816
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are looking for ${JForumContext.encodeURL('/forumUrl')}. It will make the path of that URL appropriate for your instance of JForum.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic