PDA

View Full Version : PHPBB v3 Support?



mark99
04-15-2007, 05:02 AM
I'm just wondering if anybody has tried this news script on the latest beta (soon to be release candidate) of PHPBB v3? Does it work and or will the script be adapted to support the new PHPBB? Ep-Dev Forum News is the best script around for what I want to do, but it's been a bit quiet of late.

Patrick
04-15-2007, 12:01 PM
I have been meaning to release a class for it for a long time.

I have a attached a class (untested) for the phpbb 3. Let me know how it works or any problems that you see.

Upload the attached file, phpBB_3.php , to classes/sources/Forum/ folder of the EP-Dev Forum News script and then go to your admin panel to configure the script to use it.

mark99
04-16-2007, 11:07 AM
I'm waiting on the first RC before I actually upgrade to PHPBB3, but will return and post feedback once I've tested it =).

Patrick
04-16-2007, 04:14 PM
I'm waiting on the first RC before I actually upgrade to PHPBB3, but will return and post feedback once I've tested it =).


That would be the best idea. Using any beta prior to the first release candidate can be dangerous in a production environment. Just let me know whenever phpBB does release first RC / you upgrade.

For anyone else out there already running phpbb3: Don't worry about using the new class. Even though it wasn't tested, EP-Dev Forum News is a read-only script. It does not have the capacity to modify or tamper with your forum or database.

mark99
05-22-2007, 06:12 AM
RC1 was release a couple of days ago and I'll upgrade my test forum shortly before reporting back.

PaulC2K
05-22-2007, 01:29 PM
Hi Patiek,

Sorry i never got back to you on the PM about giving this a try, I installed phpBB3 RC1 last night and just uploaded the class and made a couple of minor alterations to the news source settings and everything works perfectly! :D

Thanks for starting on this so that it was ready to use for RC1 and hopefully final isnt too far away :)

PaulC2K
05-23-2007, 11:58 PM
Just a quick update, had a stupid problem with one of the sites that i couldnt understand and it wasnt until spending a good 6-7hrs over 24hrs looking into the problem that i found it, thankfully not something i was responsible for, external file include() seems to be the cause so i've had chance to look into something that didnt seem to be working right with this script.


Avatars...
It seems phpBB3 and phpBB2 operate differently for avatars, previously it'd be a direct URL now its shortened and made dynamic?

Actual avatar URL: [mydomain] /phpbb3/download.php?avatar=g3_1179887212.png
Displayed avatar URL: [mydomain] /phpbb3/images/avatars/upload/g3_1179887212.png


line 256:


$return = $this->CONF['url'] . "images/avatars/upload/" . $avatar;

To


$return = $this->CONF['url'] . "download.php?avatar=" . $avatar;


&

line 262:


$return = $this->CONF['url'] . "images/avatars/gallery/" . $avatar;

To:


$return = $this->CONF['url'] . "download.php?avatar=" . $avatar;



Im not 100% sure on the 2 forms of avatar to be honest, so far i've only worked off avatars uploaded from HDD, not from the gallery, however i'd imagine the same method would be called.


Again, Thanks for the great work putting both this phpBB3 class together in time for launch and the time put into the script on the whole, certainly makes things easier for me and people using the sites.

Patrick
05-24-2007, 05:12 PM
I will look into it further in a bit. Forums typically support several types of avatars: no avatar, gallery avatar, uploaded avatar, external avatar (in URL form, not an option in all forums).

It is likely that phpbb3 changed things, as you have already indicated, and I will research it in detail (including all forms indicated above) and post an update.

Thank you for your feedback.

mark99
05-28-2007, 05:16 AM
I've only used basic features of the forum in my news, so haven't run into the Avatar issue as I don't display them. Otherwise I've now tested the updated integration on two sites and the news outputs without a problem =).

mark99
10-15-2007, 10:56 AM
Finally came to a situation where it'd be handy if I could include smilies into the final news output from PHPBB3, yet for some reason when ever I add a smilie it will only output like this:


<!-- s<img src="http://www.host-review.co.uk/forum/images/smilies/icon_mrgreen.gif" border="0"> --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt="<img src="http://www.host-review.co.uk/forum/images/smilies/icon_mrgreen.gif" border="0">" title="Mr. Green" /><!-- s<img src="http://www.host-review.co.uk/forum/images/smilies/icon_mrgreen.gif" border="0"> -->

Now the URL is correct (http://www.host-review.co.uk/forum/images/smilies/icon_mrgreen.gif) but it doesn't merely output the IMG, I get all the other stuff as well and that stops the smilie itself from displaying.

PaulC2K
10-15-2007, 11:34 AM
Bah, you had me thinking you'd solved this issue, its something that annoys me too.

Ive not really looked into why it doesnt like displaying them, been too busy with other projects to really look into why its kicking out code instead of using it, and thankfully everything else appears to work as you'd want it to so ive left it as it was.
Images come over fine, as do avatars if you make the minor code change i posted a while back (unless the script includes this modification now) but the smilies are fussy little things.

Patrick
10-15-2007, 06:20 PM
I have been very busy on other projects. I will see if I can release a maintenance release though sometime in the near future.

I do not have the phpBB 3.x installed right now, but based on the error you provided, you can try replacing the function "function parse_Smilies(&$text)" in phpBB with the following:


function parse_Smilies(&$text)

{
$text = str_replace("{SMILIES_PATH}", $this->CONF['url'] . "images/smilies", $text);

}

Based on what you posted, it appears that phpBB now includes the image html code itself in the forum post.

PaulC2K
10-15-2007, 07:29 PM
You've nailed it! :D

Yeah, that works perfectly, i actually spend about 30min looking at the code myself, but for some odd reason it wasnt actually listing the URL however it had the image tag and even the name of the smilie, but the url was '', after extensive faith coding (changing stuff you think might do something) i got the url to display but nothing more than that.

Anyway, cheers for sorting that out :D:D

mark99
10-17-2007, 04:36 AM
Excellent!

NightWolf
12-13-2007, 05:48 PM
Hello, the gold release of phpbb3 came out today and I also download the updated phpBB_3.php file from this thread and everything works fine except smilies and the Author Name link that links to their profile.

I tried the fix for the smilies but didn't get it working right and I'm not sure how to get the authors name link working. I was just wondering if there would be an update coming out soon to fix these issues.

If needed my website is http://inevmaps.hl2files.com

Thanks for the awesome script :)

Patrick
12-13-2007, 11:03 PM
I will post a fully working and updated class in a few days.

I may also publish an update of the script with the latest bug fixes.

PaulC2K
12-27-2007, 10:15 PM
Just noticed the differences myself, what can i say, im slow :)

news posters profile fix for 3.0.0:
\classes\sources\Forum\phpBB_3.php

Line 48:
$this->LINKS['author'] = $this->CONF['url'] . "profile.php&#63;mode=viewprofile&#38;u=";

to:
$this->LINKS['author'] = $this->CONF['url'] . "memberlist.php&#63;mode=viewprofile&#38;u=";

Extremely simple task.


Smilies in 3.0.0:
Same file, cant say i see any problem with smilies on the page.
Look around line 205, and double check that function is correct, it certainly works at my end anyway.


One thing ive just spotted is [color] tags, i've slapped color tags around [BREAK ARTICLE] and basically its displaying the opening details being told to stop processing the news, and not closing the tags, which results in [color=#ffffff] appearing on the page.
Its not important, just would have been nice if it was invisiable on the actual forum.

byncabeme
09-06-2009, 10:24 PM
I ran a phpbb bulletin board for several years. It was difficult to keep up with security issues. When it was hacked about three years ago, I switched to vBulletin. Life has been much simpler. Just the reduction in spam registrations is a big relief.

vBulletin is developed by a group of professionals. They provide regular updates and immediate updates if a security issue arises. Support both here by experienced users and through the official channel are much better and not likely to generate a negative response for a newbie question.

Once the cms is available it should evey be better if that fits your needs.

Jeff

Sid
01-19-2011, 11:11 AM
I just installed this mod on my new website (clanfc.us) and had an error. I Googled it and got linked here, so I looked around and found that you did in fact have support for my phpBB3 forums. Even though this is a dead topic, I thought I should come on and express my gratitude.