PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

  • Index
  •  » Mod requests
  •  » i want a punbb portal or miniportal in main page not Forum page, how?

#1 2007-04-05 15:19:56

SuperMAG
Member
Registered: 2007-03-11
Posts: 154

i want a punbb portal or miniportal in main page not Forum page, how?

i want a punbb portal or miniportal in main page not Forum page, like i dont want to change index.php to forums.php ... i want to make a portal in a new directory like portal/index.php .. so is there any mod for that ... or some thing .. dont want any other script ... thanks


Live Sports Online: Watch Online all the Sports (Football, Cricket & All other Sports)
Watch Wrestling Online: WWE, ECW, Raw, TNA, PPV.
ProsGate: Currently Offering Free Webhosting 300 MB Space, 10 GB BW, VistaPanel, 5 MySQL with All the Other Features.

Offline

 

#2 2007-04-05 15:40:32

FSX
Member
Registered: 2006-09-14
Posts: 593
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

Search in header.php:

Code:

else if (defined('PUN_HELP'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/help.tpl');

Add after in header.php:

Code:

else if (defined('PUN_PORTAL'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/portal.tpl');

And make a new file and put this in your new file;

Code:

<?php
define('PUN_PORTAL', 1);
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';

$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
?>
<div class="block" id="portalwelcome">
<h2><span>Welcome</span></h2>
        <div class="box">
            <div class="inbox">
            <div><p>
Some text here.
</p></div>
        </div>
    </div>
</div>



<?php

$footer_style = 'index';
require PUN_ROOT.'footer.php';

This should work big_smile.
Ofcourse you need to make an protal template file. You can get it from the Punportal mod.

Last edited by FSX (2007-04-05 15:42:56)

Offline

 

#3 2007-04-05 15:43:54

SuperMAG
Member
Registered: 2007-03-11
Posts: 154

Re: i want a punbb portal or miniportal in main page not Forum page, how?

where do i search that first code and what name do i give to the last code file ... Note ... i havent installed any portals like miniportal or punportal ...


Live Sports Online: Watch Online all the Sports (Football, Cricket & All other Sports)
Watch Wrestling Online: WWE, ECW, Raw, TNA, PPV.
ProsGate: Currently Offering Free Webhosting 300 MB Space, 10 GB BW, VistaPanel, 5 MySQL with All the Other Features.

Offline

 

#4 2007-04-05 17:56:03

FSX
Member
Registered: 2006-09-14
Posts: 593
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

In header.php. You just need the template file from punportal and it needs a little custumisation. So don't have to install mods.

Offline

 

#5 2007-04-06 02:53:28

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

fsx so i see i can have a different look on my site by using this code?
what about if i want certain pages to have the same look?
gallery.php
or calendar.php
just add the define punportal.tpl at the top of each page i want to display the portal look?

dont for get to put the punportal.tpl in the include/template/ folder!

Q

Last edited by quaker (2007-04-06 02:54:11)


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#6 2007-04-06 04:13:55

SuperMAG
Member
Registered: 2007-03-11
Posts: 154

Re: i want a punbb portal or miniportal in main page not Forum page, how?

you said to create a new file .. in what name do i save file and where


Live Sports Online: Watch Online all the Sports (Football, Cricket & All other Sports)
Watch Wrestling Online: WWE, ECW, Raw, TNA, PPV.
ProsGate: Currently Offering Free Webhosting 300 MB Space, 10 GB BW, VistaPanel, 5 MySQL with All the Other Features.

Offline

 

#7 2007-04-06 08:53:53

FSX
Member
Registered: 2006-09-14
Posts: 593
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

@quaker
For example you want a different template for the calendar. Just do this:

Find in header.php

Code:

else if (defined('PUN_HELP'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/help.tpl');

Add after

Code:

else if (defined('PUN_CALENDAR'))
    $tpl_main = file_get_contents(PUN_ROOT.'include/template/calendar.tpl');

And add this in the calendar.php file:

Code:

define('PUN_CALENDAR', 1);

And then make a new template file (calendar.tpl). You can just copy main.tpl and make some changes to it.


@SuperMAG
You can give the file every name you want.And I think you should save it in the PunBB root.If you want that your portal show up first you must name it index.php, but then you should follow the miniportal guide on the punres wiki.

Offline

 

#8 2007-04-07 01:07:00

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

kewl, im going to try this and see how this does... thanks fsx!


Q


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#9 2007-04-07 21:29:53

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

fsx, i was playing around and so far this is what i did..

http://modelcrowd.com/punportal.php

just added the nav bar at the top

Last edited by quaker (2007-04-08 17:02:12)


My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#10 2007-04-07 21:42:05

FSX
Member
Registered: 2006-09-14
Posts: 593
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

Ok, but did you make that style? It's really cool!

Offline

 

#11 2007-04-08 01:18:18

quaker
Member
From: Bama,USA
Registered: 2006-02-23
Posts: 968
Website

Re: i want a punbb portal or miniportal in main page not Forum page, how?

that is not a style that is a css template that i just droped in the html code into a file called portal.tpl and i just put the pun nav at the top here is my portal.tpl file

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dark Dimension</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<!--header paer start -->
<div id="headerPan">
<ul>
<pun_navlinks>
</ul>
<h1>dark dimension latest foe web</h1>
<form name="search_box" method="post"  action="">
<label>search</label>
<input type="text" name="textbox" value="Your Email" />
<input type="button" name="buttone" class="button" value="" title="button" />
</form>
</div>
<!--header part end -->
<!--body part start -->
<div id="mainBody">
<!--left side start -->
<div id="leftPan">
<h2>services</h2>
<ul>
<li><a href="#">Your Service 01</a></li>
<li><a href="#">Your Service 02</a></li>
<li><a href="#">Your Service 03</a></li>
<li><a href="#">Your Service 04</a></li>
<li><a href="#">Your Service 05</a></li>
<li><a href="#">Your Service 06</a></li>
<li><a href="#">Your Service 07</a></li>
<li><a href="#">Your Service 08</a></li>
<li><a href="#">Your Service 09</a></li>
<li><a href="#">Your Service 10</a></li>
<li><a href="#">Your Service 11</a></li>
<li><a href="#">Your Service 12</a></li>
<li><a href="#">Your Service 13</a></li>
<li><a href="#">Your Service 14</a></li>
<li><a href="#">Your Service 15</a></li>
<li><a href="#">Your Service 16</a></li>
<li><a href="#">Your Service 17</a></li>
<li><a href="#">Your Service 18</a></li>
</ul>
<h3>client says</h3>
<h3 class="lor">Lorem ipsum 
dolor sit amet</h3>
<ul class="says">
<li><a href="#">consectetuer </a></li>
<li><a href="#">adipiscing</a></li>
<li><a href="#">Aenean non arcu. </a></li>
<li><a href="#">Cras lacinia id </a></li>
<li><a href="#">vestibulum </a></li>
</ul>
<a class="more" href="#">more comments</a>
<p></p>
</div>
<!--left side end -->
<!--right side start -->
<div id="rightPan">
<h2><a href="#" class="eve" title="current events"> current events</a> </h2>
<h2> <a href="#" class="work" title="our works"> our works</a></h2>
<h2 class="about">about company</h2>
<p>Dark Dimension is a free, tableless, W3C-compliant web design layout by Template World. This template has been tested and proven compatible with all major browser environments and operating systems. You are free to modify the design to suit your tastes in any way you like.</p>
<p>We only ask you to not remove "Design by <span>Template World</span>" and the link http://www.templateworld.com from the footer of the template.</p>
<p class="more">
<a href="#">read more</a></p>
<h3>highlights</h3>
<p class="hig">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean non arcu. Cras lacinia, nulla </p>
<p class="one">Aliquam erat volutpat. Vivamus metus dolor, accumsan a, blandit vel, congue rhoncus, nisl.</p>
<p class="more1"> <a href="#">read more</a></p>
<p class="hig1">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean non arcu. Cras lacinia, nulla </p>
<p class="two">Aliquam erat volutpat. Vivamus metus dolor, accumsan a, blandit vel, congue rhoncus, nisl.</p>
<p class="more2"> <a href="#">read more</a></p>
<p class="hig1">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean non arcu. Cras lacinia, nulla </p>
<p class="three">Aliquam erat volutpat. Vivamus metus dolor, accumsan a, blandit vel, congue rhoncus, nisl.</p>
<p class="more2"> <a href="#">read more</a></p>
<ul>
<li class="time"><a href="#">time 
management</a></li>
<li class="latest"><a href="#" class="la">latest
portfolios</a></li>
<li class="what"><a href="#" class="wh">latest
portfolios</a></li>
</ul>
</div>
<!--right side end -->
<br class="blank" />
</div>
<!--body part end -->
<!--footer start -->

<div id="footerMain">
<div id="footer">
<ul>
<li><a href="#">home</a>|</li>
<li><a href="#">about&nbsp;us</a>|</li>
<li><a href="#">network</a>|</li>
<li><a href="#"> submission</a>|</li>
<li><a href="#"> archive</a>|</li>
<li><a href="#">finance</a>|</li>
<li><a href="#">contact</a></li>
</ul>
<p>&copy; Copyright  dark dimension. All rights reserved.</p>

<ul class="css">
<li><a href="http://validator.w3.org/check?uri=referer" target="_blank" class="html" title="html">xhtml</a></li>
<li><a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" class="cs" title="css">css</a></li>
</ul>
<p class="copy">Designed by: <a href="http://www.templateworld.com/" target="_blank">Template World</a></p>
</div>
</div>
<!--footer end -->
</body>
</html>

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Offline

 

#12 2010-02-17 09:04:06

jamesver5
New member
Registered: 2010-02-17
Posts: 2

Re: i want a punbb portal or miniportal in main page not Forum page, how?

FSX wrote:

It's really cool!

Thanks i works

Offline

 
  • Index
  •  » Mod requests
  •  » i want a punbb portal or miniportal in main page not Forum page, how?

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.