Including mods in styles

Temporary forum to obtain support for MODs/Styles while phpbb.com is down
Locked
pellefjant
Registered User
Posts: 7
Joined: Thu Feb 05, 2009 12:11 am

Including mods in styles

Post by pellefjant »

Hi.

Can i include a module in a style?
Like including html templates with the <!-- INCLUDE page.html --> tag, can i type something like <!-- INCLUDE module --> or can i somehow redirect to a module page
ToonArmy
Registered User
Posts: 335
Joined: Fri Mar 26, 2004 7:31 pm
Location: Bristol, UK
Contact:

Re: Including mods in styles

Post by ToonArmy »

Big Pink Box™ wrote:While phpBB.com is offline, support related to styles themselves (code questions, "How do I do XYZ?", etc.) should be asked in the temporary MOD/Styles support forums.
Hence moving. ;)
Chris SmithBlogXMOOhlohArea51WikiNo support via PM/IM
Image
pellefjant
Registered User
Posts: 7
Joined: Thu Feb 05, 2009 12:11 am

Re: Including mods in styles

Post by pellefjant »

*push*
User avatar
Brf
Support Team
Support Team
Posts: 332
Joined: Sun Mar 11, 2007 1:06 pm

Re: Including mods in styles

Post by Brf »

pellefjant wrote:Can i include a module in a style?
Like including html templates with the <!-- INCLUDE page.html --> tag, can i type something like <!-- INCLUDE module --> or can i somehow redirect to a module page
You will have to define what a "module" is.
pellefjant
Registered User
Posts: 7
Joined: Thu Feb 05, 2009 12:11 am

Re: Including mods in styles

Post by pellefjant »

By module i mean a user defined ucp module(MOD)
User avatar
Brf
Support Team
Support Team
Posts: 332
Joined: Sun Mar 11, 2007 1:06 pm

Re: Including mods in styles

Post by Brf »

You could easily make a link to a ucp page, but you would have to include the code in the PHP page to embed it in another page.
pellefjant
Registered User
Posts: 7
Joined: Thu Feb 05, 2009 12:11 am

Re: Including mods in styles

Post by pellefjant »

i've tried this code in a style template:
<!-- INCLUDEPHP test.php -->

But it doesn't seam to work... it gives me no error either.
User avatar
Brf
Support Team
Support Team
Posts: 332
Joined: Sun Mar 11, 2007 1:06 pm

Re: Including mods in styles

Post by Brf »

You would have to enable php in templates on your Security Settings page.
pellefjant
Registered User
Posts: 7
Joined: Thu Feb 05, 2009 12:11 am

Re: Including mods in styles

Post by pellefjant »

Where should i put the php script ?
alf007
Registered User
Posts: 5
Joined: Sat Aug 25, 2007 5:36 pm
Location: FR

Re: Including mods in styles

Post by alf007 »

Don't you mean to use a normal link ? somehing like

Code: Select all

<a href="test.php">To module...</a>
?
Locked