Page 14 of 25

Re: [BETA] News Forum

Posted: Sun Mar 16, 2008 9:19 am
by -JoshC-
So is this mod dead?

Re: [BETA] News Forum

Posted: Mon Mar 17, 2008 10:03 am
by guru9898
aw man, please someone who downloaded it send ti to him! I really want this mod. Wish I had gotten it earlier.

Re: [BETA] News Forum

Posted: Mon Mar 17, 2008 2:39 pm
by bbjimbb
Is there a demo for this?

Re: [BETA] News Forum

Posted: Wed Mar 26, 2008 1:14 pm
by John37309
Erik,
Can i alter this mod so that it gets forum info from one domain and displays the info on another domain?

I was trying to do it by altering this peice of code. Can it be done by changing this; $phpbb_root_path = '../forum/'

Code: Select all

    <h1>News from forum</h1>
';
//-- Start the phpBB session AND include the nessacary files
define( 'IN_PHPBB', true );
$phpbb_root_path = '../forum/'; // change in your own root path.
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);

$user->session_begin();
$auth->acl( $user->data );
$user->setup();

//-- Fetch the data from the specified fora
$bbcode = new bbcode();
$news_fora_id = array( '8' ); // Change in the fora id's you need
$query = "

I did not succeed so far.

Example; if my forum is on http://www.AAAAA.com/forum

But i want the info displayed on http://www.BBBBB.com

Re: [BETA] News Forum

Posted: Thu Mar 27, 2008 1:47 am
by -JoshC-
John37309 wrote:Erik,
Can i alter this mod so that it gets forum info from one domain and displays the info on another domain?

I was trying to do it by altering this peice of code. Can it be done by changing this; $phpbb_root_path = '../forum/'

Code: Select all

    <h1>News from forum</h1>
';
//-- Start the phpBB session AND include the nessacary files
define( 'IN_PHPBB', true );
$phpbb_root_path = '../forum/'; // change in your own root path.
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);

$user->session_begin();
$auth->acl( $user->data );
$user->setup();

//-- Fetch the data from the specified fora
$bbcode = new bbcode();
$news_fora_id = array( '8' ); // Change in the fora id's you need
$query = "

I did not succeed so far.

Example; if my forum is on http://www.AAAAA.com/forum

But i want the info displayed on http://www.BBBBB.com
John,

Can I get a copy of this mod from you? Please PM me.

Thanks

Re: [BETA] News Forum

Posted: Thu Mar 27, 2008 2:20 am
by Hippie459MN
Yes, Please post a link to it here so we can all download it. :D

Re: [BETA] News Forum

Posted: Thu Mar 27, 2008 2:52 am
by John37309
I don't have the mod, I never got it. What i have is taken from another message posted by Erik. This Mod started in another message and Erik decided to make it into a full mod that he could develop. That is when he started this message.

So the code i have is taken from this message; http://www.phpbb.com/community/viewtopi ... 6#p3241276

This is the code posted in that message;

Code: Select all

<?php
$output = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="nl" xml:lang="nl">
<head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta http-equiv="content-language" content="nl" />
    <meta http-equiv="content-style-type" content="text/css" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="resource-type" content="document" />
    <meta name="distribution" content="global" />

    <meta name="copyright" content="Erik Fr&egrave;rejean" />

    <title>Example</title>
</head>

<body>

<div id="inhoud">

    <h1>News from forum</h1>
';
//-- Start the phpBB session AND include the nessacary files
define( 'IN_PHPBB', true );
$phpbb_root_path = './../phpBB3/'; // change in your own root path.
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);

$user->session_begin();
$auth->acl( $user->data );
$user->setup();

//-- Fetch the data from the specified fora
$bbcode = new bbcode();
$news_fora_id = array( '2' ); // Change in the fora id's you need
$query = "
    SELECT p.topic_id, p.forum_id, p.post_time, p.post_subject, p.post_text, p.bbcode_bitfield, p.bbcode_uid,
        u.user_id, u.user_email, u.username, u.user_posts, u.user_rank, u.user_colour, u.user_allow_viewonline, u.user_allow_viewemail,
            (
                SELECT COUNT( post_id )
                FROM " . POSTS_TABLE . "
                    WHERE topic_id = p.topic_id
            ) AS aantal_posts
    FROM " . POSTS_TABLE . " AS p, " . USERS_TABLE . " AS u
        WHERE " . $db->sql_in_set( 'p.forum_id', $news_fora_id ) . "
            AND u.user_id = p.poster_id
    GROUP BY topic_id
    ORDER BY topic_id DESC
";
//die('<pre>' . $query );
$result = $db->sql_query( $query );
while( $row = $db->sql_fetchrow($result) )
{
    // Parse the message and subject
    $message = censor_text($row['post_text']);

    // Second parse bbcode here
    if ($row['bbcode_bitfield'])
    {
        $bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']);
    }

    $message = bbcode_nl2br($message);
    $message = smiley_text($message);
    
    // Send data to output var
    $output .= "<h2><a href=\"" . $phpbb_root_path . "viewtopic.php?f={$row['forum_id']}&t={$row['topic_id']}\" title=\""  . censor_text($row['post_subject']) . "\">".censor_text($row['post_subject'])."</a></h2>\n";
    $output .= "<p style=\" padding-bottom: 3em; \">\n\t";
    $output .= $message;
    $output .= "\n\t<span style=\"widht: 50%; float: left; border-top: 1px solid #00008b;\">Posted by:  <span style=\" color: #" . $row['user_colour'] . ";\">" . $row['username'] . "</span></span>";
    $output .= "\n\t<span style=\"widht: 50%; float: right; border-top: 1px solid #00008b;\">On: " . date( $user->data['user_dateformat'], $row['post_time'] ) . "</span>\n";
    $output .= "</p>\n\n";
}

$output .= '
</div>

</body>
</html>';

// print the output
print( $output );
?>
Its some of Erik's original code and it works OK. I'm sure the mod Erik had for download would have been much better developed. This is the best i can do.

Can anyone give me a ball park answer to my last post?...I scratch your back, you scratch mine :!: ...I need an answer.

I want to know if there is a way to take forum statistics like "Last Post", "Number of topics", "Forum Name", etc, and display this "Live" data on another website?

John.

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 4:26 pm
by kateland
Is it silly to ask phpbb if they could retrieve it from their backups?

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 5:15 pm
by John37309
kateland wrote:Is it silly to ask phpbb if they could retrieve it from their backups?
I posted some of the original code that Erik posted.

If you want the mod that badly, try PM'ing some of the people in this message that replied to the message and got the mod. Surely one of them will reply if you ask nicely!

If you get it, do post the code!. Or a some kinda link where others can get it.

John.

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 5:19 pm
by kateland
All right John. I'm on the case. I've been waiting for my website to be developed enough that I could incorporate this mod - and now that I'm ready - the mod disappeared!!

I will use all the feminine wiles at my disposal. If I have to threaten anyone, will you be the muscle? ;) j/k

I'll let you know how I do. This is a ridiculously awesome mod and it must be saved.

kate

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 5:44 pm
by John37309
Kate,
Thats the spirit, i will be your "Heavy" if you need to intimidate some geeks :lol: Just tell them you have a big Irish bloke to back you up.

Look Kate, the last month or so, nobody get any response from the mod develloper, "Erik". I sent him a PM and he never replied. Having read "ALL" of this message, i think Erik is just too busy to keep this mod going.

But like you say, this is a super mod. Its worth chaseing!. If we get it, we will post it somewhere everybody can download it. I don't mind hosting it!

Get PM'ing Kate :lol:

John. 8-)

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 5:45 pm
by HausAmSee
Hm.. I just wanted to look how this MOD exactly works (beacuse I had some experiments with the SMF-function on news) and I am really interested in this MOD, but what is the reason the download Link is ending in an 404?

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 6:12 pm
by Erik Frèrejean
Hi guys,

Sorry for the late/not responses in this topic.

I just read quickly through the last posts and try to answer the questions. If I miss something please let me know :).
Hippie459MN wrote:Yes, Please post a link to it here so we can all download it. :D
As stated earlier in this topic I don't have the mod anymore. Had something to do with a to radical cleanup action on my old pc :oops:.
kateland wrote:Is it silly to ask phpbb if they could retrieve it from their backups?
Don't think they would. And would only make sense if the beta was hosted here @ phpbb.com.

Feature of this mod:
Last but not least, a little word about the feature of this mod. At the moment I have some plans of making a more customizable version of this mod. But at the moment I don't have time to do this, have to finish a couple of other projects first.
I'll try to get a striped version of this mod available on a short note which give's you the basic functionality of the mod.

[edit]
I'll try to read/post a little more in this topic :).

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 6:49 pm
by kateland
Thanks Erik.

I have a specific use I need this mod for, and once I make my tweaks I'd be happy to add/donate my code for anyone who wants it. I have a ton of dev on my plate myself, but this is so valuable to my forthcoming site I'm willing to do whatever I can to get this code integrated and enhanced.

And duh. I meant to ask if it would make sense to ask your host to restore the zip?

Re: [BETA] News Forum

Posted: Wed Apr 02, 2008 6:55 pm
by Erik Frèrejean
kateland wrote:And duh. I meant to ask if it would make sense to ask your host to restore the zip?
Then I have to know when I removed the zip from the server (and I don't know anymore when I did that).
I'll put the next version on my sourceforge.net account to prevent losses.