best way to url in phpbb???

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
jonnilaumann
Registered User
Posts: 56
Joined: Mon Nov 30, 2009 12:32 am

best way to url in phpbb???

Post by jonnilaumann » Sat Jan 30, 2010 10:29 am

A .css in new folder(in forum root) needs url in overall_header.html

Here i have a (problem)..what Do you ALL think is better of following 3??? :shock: ?

1. href="highslide/highslide.css
2. href="{T_ROOT_PATH}/highslide/highslide.css
3. href="{ROOT_PATH}/highslide/highslide.css

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5332
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: best way to url in phpbb???

Post by Marc » Sat Jan 30, 2010 11:22 am

Why would you put a CSS-file in a new folder in your forum root? I suggest you put the CSS-file in the theme-folder of your style and call it like this:

Code: Select all

href="{T_THEME_PATH}/highslide.css

User avatar
jonnilaumann
Registered User
Posts: 56
Joined: Mon Nov 30, 2009 12:32 am

Re: best way to url in phpbb???

Post by jonnilaumann » Sat Jan 30, 2010 12:42 pm

In my MOD it is a must!!! (one css all styles=less coding)

....but it could all kind off files... need to know what is better????


I have got this answer from sevenalive..want to crosscheck...Anyone?
Use {ROOT_PATH} or {T_ROOT_PATH}(dont remember) to avoid any complications with custom setups, some websites use virtual root or htaccess rewrites.

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5332
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: best way to url in phpbb???

Post by Marc » Sat Jan 30, 2010 3:29 pm

{ROOT_PATH} is correct.

Locked

Return to “[3.0.x] MOD Writers Discussion”

Who is online

Users browsing this forum: ichiro [Crawler] and 21 guests