PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page

#1 2008-03-19 15:40:33

daris
Member
From: Poland
Registered: 2008-01-20
Posts: 70

Portal 1.8

Code:

Only for PunBB 1.3

Adds a portal to forum

Changes:
- you can set preferences for some panels
- you can manage panels for center side
- some small fixes

Download here


Sorry for my English wink

Offline

 

#2 2008-03-25 10:00:25

lie2815
Member
From: BERLIN
Registered: 2007-03-20
Posts: 130
Website

Re: Portal 1.8

Please use the "long" PHP tags <?php and ?> in all your files. Until I noticed that, I had problems in my testing environment...

Great concept, though

Offline

 

#3 2008-03-25 10:19:08

lie2815
Member
From: BERLIN
Registered: 2007-03-20
Posts: 130
Website

Re: Portal 1.8

It would also be good if you would display the name of the panel instead of the standard name.
Example: If you use the newest articles panel, and call it "My thoughts", it still says "Newest articles" on the front page...

Offline

 

#4 2008-03-25 10:24:17

lie2815
Member
From: BERLIN
Registered: 2007-03-20
Posts: 130
Website

Re: Portal 1.8

ok and one more thing...
is it possible to execute php code in the panels? because i think it's done in the menu panel right?

Last edited by lie2815 (2008-03-27 08:25:50)

Offline

 

#5 2008-03-27 11:21:59

daris
Member
From: Poland
Registered: 2008-01-20
Posts: 70

Re: Portal 1.8

is it possible to execute php code in the panels? because i think it's done in the menu panel right?

Yes

Example: If you use the newest articles panel, and call it "My thoughts", it still says "Newest articles" on the front page...

And what about who is online panel? When user is logged it is called Who's online, but when user isn't logged it's called Login.

Please use the "long" PHP tags <?php and ?> in all your files. Until I noticed that, I had problems in my testing environment...

If you found any short tag please post it (line and file), i tried replacing all.


Sorry for my English wink

Offline

 

#6 2008-03-27 12:28:47

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Portal 1.8

daris wrote:

If you found any short tag please post it (line and file), i tried replacing all.

A quick sed should sort that. The following should work fine:

Code:

sed -e 's/<? /<?php /g' < inputfile > outputfile

Offline

 

#7 2008-03-27 12:57:06

daris
Member
From: Poland
Registered: 2008-01-20
Posts: 70

Re: Portal 1.8

Try new version, i disabled short_tags option in apache and then checked some pages wink


Sorry for my English wink

Offline

 

#8 2008-03-27 14:07:17

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Portal 1.8

I'm not using 1.3. big_smile Just had a quick look at your code though, and you've got some short tags in articles.php, so I would assume there are more still. (That was the first and only file I checked).

Offline

 

#9 2008-03-27 14:16:17

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 430

Re: Portal 1.8

Files and line numbers for V2.0.

Code:

articles.php:94:<?
articles.php:122:<?
articles.php:165:<?
articles.php:179:<?
page.php:74:<?
page.php:96:<?
page.php:116:<?
portal/page.php:74:<?
portal/page.php:96:<?
portal/page.php:116:<?
portal/articles.php:94:<?
portal/articles.php:122:<?
portal/articles.php:165:<?
portal/articles.php:179:<?

Edit: Just looking at that list, is there supposed to be a portal dir within the portal dir?

Last edited by MattF (2008-03-27 14:17:48)

Offline

 

#10 2008-03-27 14:51:23

daris
Member
From: Poland
Registered: 2008-01-20
Posts: 70

Re: Portal 1.8

Thanks, all short tags replaced wink

Just looking at that list, is there supposed to be a portal dir within the portal dir?

Whoops tongue (fixed)


Sorry for my English wink

Offline

 

#11 2008-03-28 05:47:14

lie2815
Member
From: BERLIN
Registered: 2007-03-20
Posts: 130
Website

Re: Portal 1.8

daris wrote:

lie2815 wrote:

Example: If you use the newest articles panel, and call it "My thoughts", it still says "Newest articles" on the front page...

And what about who is online panel? When user is logged it is called Who's online, but when user isn't logged it's called Login.

Well, yeah. But how is that done?
Could you just make the $title variable in the newest articles panel file dynamic... please?

Offline

 

#12 2008-03-28 07:29:40

daris
Member
From: Poland
Registered: 2008-01-20
Posts: 70

Re: Portal 1.8

You can comment out 21 line of panels/newest_articles.php file

Last edited by daris (2008-03-28 07:30:48)


Sorry for my English wink

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.