Icy Phoenix


Old Docs - CUSTOMIZATION - Create New Pages And Add Custom Vars. IP V1.2.027*



Lopalong [ Mon 11 Aug, 2008 07:21 ]
Post subject: CUSTOMIZATION - Create New Pages And Add Custom Vars. IP V1.2.027*
Note: This is no longer called a "MOD" by any particular Author - All it is are a set of standard instructions for creating a phpBB Page.



If you are thinking about adding Custom Pages - Be strongly advised NOT to make any Typo's while you are doing it.

The Instructions for IP v....27c:

Spoiler: [ Show ]



The Sample template.php File:

Spoiler: [ Show ]


Sample variables.php:

Spoiler: [ Show ]


Sample Finished template.tpl:

You ARE of course allowed to use Normal Markup as well. :woot:

Spoiler: [ Show ]


What the Finished template.tpl Translates to:


Spoiler: [ Show ]




TheSteffen [ Wed 13 Aug, 2008 23:39 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Nice and useful documentation Lopalong,

thanks a lot.


bloke [ Tue 21 Oct, 2008 11:26 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
hi again Lopalong
does this work with icy 27c
and would it be possible to make another links page
if you could would you have the control panel for it in acp
i want to turn another links page into like this one i made on my test forum
so i can advertise peoples banner ads for them

shot

thanks bloke


bloke [ Fri 24 Oct, 2008 13:07 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
hi
found add a page in icy 27c
and you can change settings to do what i wanted and have the best of both worlds
mighty gordan your icy 27c is tops mate! im always finding something new and you can
change things to suit yourself, i got a banner and link script from changing a couple of your settings
and adding a site page
the only problem is i can only add banners to your exact sizes , but i can work with that
for now. i would like to know if banners could stay there original size if under site size
because admin has to add all links as banners have to be sized first so they dont streach
thanks
bloke

new page called advertisers with static banners
advertiser

home page scrolling banners which can also be put global on your forum page or any new page you make
portal

thanks
bloke


Mighty Gorgon [ Thu 30 Oct, 2008 11:47 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
What you can do is removing image size so images will be automatically sized.

Remove this twice from links_block.tpl
Code: [Hide] [Select]
width="{SITE_LOGO_WIDTH}" height="{SITE_LOGO_HEIGHT}"


bloke [ Fri 31 Oct, 2008 09:25 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
thanks Mighty Gorgon
works just how i wanted it
cheers bloke


FedericoBiccheddu [ Sat 01 Nov, 2008 23:21 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
I have a relative problem to the operation of the script that I am creating! This guide is indeed most useful.

The first problem is like can make so that, since I manage all way variable $_GET[] when the URL is template.php visualizes me a menu and not the tpl without data.

According to problem he is the following one. Since the script opens a directory and all print me to video the rows to its inside as I can make that stamps me all rows and not only one?

template.php

Spoiler: [ Show ]


template_body.tpl

Spoiler: [ Show ]


av2s02ks

Thanks to all!


AndyGpy [ Sun 16 Nov, 2008 00:53 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Nice , But how can i get the menu to appear in the left like all my other pages ?


bloke [ Sun 16 Nov, 2008 08:06 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
go in your cms to the page you made and add blocks
you can add extral blocks to some of the other original pages as well


borbo [ Thu 23 Apr, 2009 16:34 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Hello there...

I'm currently testing the rc version and this mod does not work...

The error:

Fatal error: Call to undefined function phpdefine() in /home....blah blah/template.php on line 1

Any suggestions please?

Thanks in advance !


New Player [ Thu 23 Apr, 2009 18:06 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
borbo wrote: [View Post]
Hello there...

I'm currently testing the rc version and this mod does not work...

The error:

Fatal error: Call to undefined function phpdefine() in /home....blah blah/template.php on line 1

Any suggestions please?

Thanks in advance !


this mod can't work
in the rc and next release are some core variables of icy phoenix changed
you have to wait till lopalong release this mod for rc


borbo [ Fri 24 Apr, 2009 12:02 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Thank you for answering... i guess i'll wait then...

Regards


alex


Lopalong [ Sun 26 Apr, 2009 04:38 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Instructions for RC1 - Onwards, Have been added to the first post.

I think I got it right!


borbo [ Sun 26 Apr, 2009 12:22 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Thank you very much Lopalong

you saved us a lot of time...


Lopalong [ Sun 26 Apr, 2009 14:27 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
You're welcome,

But also be aware that if you opt to use "variables.php" you will divorce all var strings from Icy Phoenix and in fact create a stand-alone page that runs under Icy Phoenix.

For example: If you want to add the location to functions_mg_online.php, then you would have to include some language strings in my_template.php and add those vars to either the lang_main.php or preferably create a new file "lang_extend_my_template.php" and add the lang vars to that.

The whole exercise of adding / creating a .php file as per the instructions, is that it should work with any .php application providing the access vars and permission strings etc, are changed to suit where ever you try to add it; and that includes the lang vars.



christmanrd [ Tue 18 Aug, 2009 17:37 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Which one of this do I use for Icy Phoenix: 1.3.0.53?

Thanks,

Dave


FedericoBiccheddu [ Tue 18 Aug, 2009 17:48 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Code: [Hide] [Select]
<?php
/**
*
* @package Icy Phoenix
* @version $Id$
* @copyright (c) 2008 Icy Phoenix
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);

// Start session management
$userdata = session_pagestart($user_ip);
init_userprefs($userdata);
// End session management

$template->set_filenames(array('body' => 'page_body.tpl'));

$template->assign_vars(array(
'KEY' => 'Value',
));

$page_title = 'Page Title';
$meta_description = '';
$meta_keywords = '';
include(IP_ROOT_PATH . 'includes/page_header.' . PHP_EXT);

$template->pparse('body');

include(IP_ROOT_PATH . 'includes/page_tail.' . PHP_EXT);




Lopalong [ Wed 19 Aug, 2009 00:35 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
christmanrd wrote: [View Post]
Which one of this do I use for Icy Phoenix: 1.3.0.53?

Thanks,

Dave


I've updated the first post.


spydie [ Wed 19 Aug, 2009 00:44 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Thx Lopa.

You help the noop´s a lot with your Instructions.

Even the advanced listen to your Tip´s whenever they´re needed


Lopalong [ Wed 19 Aug, 2009 00:49 ]
Post subject: Re: Create New Forum Pages And Add Custom Vars.
Thanks Spydie,

I usually see little sense in answering a question with half an answer.

That's of course if it's NOT half a question.


novice programmer [ Wed 09 Sep, 2009 03:34 ]
Post subject: Re: CUSTOMIZATION - Create New Pages And Add Custom Vars. IP V1.2.027*
How-to updated on this thread

Moving to docs archive




Powered by Icy Phoenix