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 » Thu Feb 05, 2009 12:16 am

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 » Thu Feb 05, 2009 1:22 am

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 » Thu Feb 05, 2009 10:47 am

*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 » Thu Feb 05, 2009 12:22 pm

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 » Thu Feb 05, 2009 4:15 pm

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 » Thu Feb 05, 2009 4:25 pm

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 » Thu Feb 05, 2009 4:29 pm

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 » Thu Feb 05, 2009 4:31 pm

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 » Thu Feb 05, 2009 5:15 pm

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 » Sun Feb 08, 2009 9:36 pm

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

Code: Select all

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

Locked