Re: [Release] Portal by Daris

hi, i need help here. I have installed my forum in http://mysite/forums/ and succesfully integrated your portal.How can i set the index portal to http://mysite/ and the forum to http://mysite/forums/ thanks.

Currently the link of index portal is http://mysite/forums/index.php
and the forum is http://mysite/forums/?forum

Your help is really appreciated!:D:D:D

if mONey is lOSt nOThINg is lOSt,
if cHArACtER is lOSt sOMeTHiNG is lOSt,
bUT,
if rELiGIon and eDUcATiON aRE lOSt eVErYThINg is lOSt.

27

Re: [Release] Portal by Daris

You can use mod rewrite for this, but I think better for you will be moving all punbb files to parent directory (from http://mysite/forums/* to http://mysite/*). Also enable folder based url scheme in admin panel (it'll show /forum/ instead of ?forum)

28

Re: [Release] Portal by Daris

[Request]
Would it be possible to set the panel widths in pixels instead of percent?

29 (edited by FaRe-Ed 2009-02-14 14:51)

Re: [Release] Portal by Daris

thanks daris but i would just pass then tongue

Say if i want to make my own index file how can i include the forum fuctions such as latest topic, login page and announcement. While back when i use punbb it have the include argument but im failed to find any in this latest punbb.

if mONey is lOSt nOThINg is lOSt,
if cHArACtER is lOSt sOMeTHiNG is lOSt,
bUT,
if rELiGIon and eDUcATiON aRE lOSt eVErYThINg is lOSt.

30 (edited by daris 2009-02-14 14:55)

Re: [Release] Portal by Daris

It's in percent because I don't know how in other way display left and right side. When it'll be in px then I don't know how to get width for center area (it's easy when page has constant width, but most of them don't have it).

Also it'll be possible to do when PunBB will have table based layout.

FaRe-Ed:

define('FORUM_ROOT', './');
require FORUM_ROOT.'common.php';
require FORUM_ROOT.'extensions/portal_by_daris/panels/recent_posts.php';

But you can use extern.php file instead of my panels, it has similar functions.

31

Re: [Release] Portal by Daris

Oooh...silly me. I totally missed "pages"

thanks

32

Re: [Release] Portal by Daris

Is this a bug maybe?

If i want't to edit any custom made pages i get following error. Even if i only select edit and then press save, changing nothing...i get this error

An error was encountered

The error occurred on line 195 in /forum/extensions/portal_by_daris/admin/pages.php

Database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'some sample text' at line 1 (Errno: 1064).

33

Re: [Release] Portal by Daris

Thanks for reporting, fixed and new version released

Changes:
- fixed undefined variable $id in active topics panel
- fixed sql injection in admin pages

Download

34

Re: [Release] Portal by Daris

daris wrote:

Portal by daris v2.4.3
Adds a portal to forum

Download

This extension is installed on Polish PunBB forums

(I created new topic because old one is too long tongue )

Re: [Release] Portal by Daris

I've now uninstalled the extentions, thanks Daris

When I click the install button I get this error:

Warning: require(../extensions/portal_by_daris/include/cache.php) [function.require]: failed to open stream: Not a directory in /home/mark4321/public_html/forum/extensions/portal_by_daris/install.php on line 205

Warning: require(../extensions/portal_by_daris/include/cache.php) [function.require]: failed to open stream: Not a directory in /home/mark4321/public_html/forum/extensions/portal_by_daris/install.php on line 205

Fatal error: require() [function.require]: Failed opening required '../extensions/portal_by_daris/include/cache.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mark4321/public_html/forum/extensions/portal_by_daris/install.php on line 205

I think go back to extension and it is still listed as uninstalled but when I click the install link again I get this message:

An error was encountered

The error occurred on line 166 in /home/mark4321/public_html/forum/extensions/portal_by_daris/install.php

Database reported: Duplicate entry 'o_portal_news_forums' for key 1 (Errno: 1062).

Cheers
smile

36

Re: [Release] Portal by Daris

Have you got cache.php in extensions/portal_by_daris/include directory?

Re: [Release] Portal by Daris

I think you're onto something.
I don't HAVE an include directory,
Vista keeps saying weird things whenever I try to extract the zip. That must be my problem. I'll sort out the zipping issue and try again.

THANKS!

Re: [Release] Portal by Daris

Installed successfully and loving the potential of this. Some feedback

1. It over-rides the online_plus extension that normally listed who has logged on today
2. Is that correct that only the left column stays active when I check the "panels on all pages" checkbox?
3. When I click pages or panels from within admin I get "page not found" errors. Here are the urls that don't work:
http://www.eroyton.co.uk/forum/extensio … panels.php
http://www.eroyton.co.uk/forum/extensio … /pages.php

THANKS!

39

Re: [Release] Portal by Daris

esupergood wrote:

2. Is that correct that only the left column stays active when I check the "panels on all pages" checkbox?

Yes, but I thought about it and I didn't know what will be better. I'll use on my forum only left block on other pages. What is better for you?

esupergood wrote:

3. When I click pages or panels from within admin I get "page not found" errors. Here are the urls that don't work:

Are you sure that files exist?

Re: [Release] Portal by Daris

yes I checked the FTP and the directories and files are definitely there. BUT the links were pointing to the wrong directory. They were pointing to the extension root rather than the specific directory. Strange!  However, even when I manually entered index.html url for pages or plates, it still said page not found.

hmmm.

=========
It probably is better to just have 1 column whilst vieiwng the  forum so that there is enough room to see the content

Re: [Release] Portal by Daris

Daris, I thought I'd paste your message to me in this topic.

daris wrote:

Both (you and SuperMAG) are running wordpress, maybe it is a reason.
Can you rename .htaccess file in wordpress root directory, and then try to go to admin -> pages/panels?

Strangely enough, I don't seem to have a .htaccess file in my wordpress root. My wordpress is installed to my site root.

42

Re: [Release] Portal by Daris

esupergood wrote:

Strangely enough, I don't seem to have a .htaccess file in my wordpress root. My wordpress is installed to my site root.

So why wordpress uses folder based scheme for displaying pages? For example:
http://www.eroyton.co.uk/royton-councillors/
Is there other method than mod_rewrite (via .htaccess)?

Can you change permalinks scheme in wordpress to default and then try to access admin pages?

Re: [Release] Portal by Daris

is there any way i can show active topics on my forum

MyFootballCafe.com  is Now Online!

44

Re: [Release] Portal by Daris

Do you want do add active topics table before forum list?

Re: [Release] Portal by Daris

yes

MyFootballCafe.com  is Now Online!

46 (edited by daris 2009-02-19 19:53)

Re: [Release] Portal by Daris

Add this code:

if (FORUM_PAGE == 'index') {
ob_start();
?>    <div class="panel">

        <div class="main-head">
            <h2 class="hn"><span>Active topics</span></h2>
        </div>

        <div class="main-content">
<?php require FORUM_ROOT.'extensions/portal_by_daris/panels/active_topics.php'; ?>

        </div>

    </div>
<?php
$active_topics = ob_get_contents();
ob_end_clean();
$tpl_main = str_replace('<!-- forum_announcement -->', $active_topics.'<!-- forum_announcement -->', $tpl_main);
}

after

// END SUBST - <!-- forum_head -->

in header.php

Re: [Release] Portal by Daris

is there any way i can load that from main.tpl file, because i would have need to edit core files.

MyFootballCafe.com  is Now Online!

48

Re: [Release] Portal by Daris

I've found this in my error_log. I think it's from portal, since i got a lot of this errors since the day it was installed. I'm using 1.3 and last portal version

[20-Feb-2009 07:58:27] PHP Notice:  Undefined variable: lang_search in /forum/header.php(133) : eval()'d code on line 191

tnx

49 (edited by daris 2009-02-20 15:09)

Re: [Release] Portal by Daris

I think that are not portal errors, but quick search extension - are you using it? If yes, can you disable it and check if it still show this errors?

Can you post link to your forum?

50 (edited by SuperMAG 2009-02-20 17:17)

Re: [Release] Portal by Daris

hey daris, thanks for the code. but i have a problem. its not exatly portal problem, it is because of my style. but i dont know how to fix it. so could you please help.

check the http://sports2all.com/forum/ page, and see the links (Recently active topics Unanswered topics Subscriptions) showing in ugly way. what i need to do to fix that. here is my style.
http://sports2all.com/forum/style/informer.rar

--------------------------------

Suggestion for the next version of your portal.

Make the Active topics Tabs (Recently active topics / Unanswered topics / Subscriptions) Ajax Loading.
Like when you click on it, it doesnt load another page, it just shows the content inside that content.

if you dont know how to do that, then check this: http://www.sunsean.com/idTabs/

and make that more extendible. like if you a user want to add another tab like Chat. then he could easly make it like panels, just post the title and the php code.

if there is any way, could u also make a seperate active topics for people who dont want  to use portal.
i think you did that when you were working on fluxbb.

MyFootballCafe.com  is Now Online!