[ABD] News Forum

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
-JoshC-
Registered User
Posts: 23
Joined: Tue Jul 25, 2006 6:04 pm

Re: [BETA] News Forum

Post by -JoshC- »

So is this mod dead?

guru9898
Registered User
Posts: 63
Joined: Thu May 13, 2004 1:32 am
Contact:

Re: [BETA] News Forum

Post by guru9898 »

aw man, please someone who downloaded it send ti to him! I really want this mod. Wish I had gotten it earlier.

User avatar
bbjimbb
Registered User
Posts: 98
Joined: Sat Jan 12, 2008 10:08 am

Re: [BETA] News Forum

Post by bbjimbb »

Is there a demo for this?
Excuse me for my bad english. I hope you understand my posts. ;)

User avatar
John37309
Registered User
Posts: 36
Joined: Mon Feb 04, 2008 3:03 pm
Location: Ireland

Re: [BETA] News Forum

Post 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

-JoshC-
Registered User
Posts: 23
Joined: Tue Jul 25, 2006 6:04 pm

Re: [BETA] News Forum

Post 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

User avatar
Hippie459MN
Registered User
Posts: 933
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [BETA] News Forum

Post by Hippie459MN »

Yes, Please post a link to it here so we can all download it. :D

User avatar
John37309
Registered User
Posts: 36
Joined: Mon Feb 04, 2008 3:03 pm
Location: Ireland

Re: [BETA] News Forum

Post 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.

User avatar
kateland
Registered User
Posts: 198
Joined: Wed Nov 22, 2006 7:08 pm
Location: Philadelphia, PA
Contact:

Re: [BETA] News Forum

Post by kateland »

Is it silly to ask phpbb if they could retrieve it from their backups?
here's your love letter
you bloodletter
you disappointed every time

User avatar
John37309
Registered User
Posts: 36
Joined: Mon Feb 04, 2008 3:03 pm
Location: Ireland

Re: [BETA] News Forum

Post 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.

User avatar
kateland
Registered User
Posts: 198
Joined: Wed Nov 22, 2006 7:08 pm
Location: Philadelphia, PA
Contact:

Re: [BETA] News Forum

Post 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
here's your love letter
you bloodletter
you disappointed every time

User avatar
John37309
Registered User
Posts: 36
Joined: Mon Feb 04, 2008 3:03 pm
Location: Ireland

Re: [BETA] News Forum

Post 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-)
Last edited by John37309 on Wed Apr 02, 2008 5:46 pm, edited 2 times in total.

HausAmSee
Registered User
Posts: 10
Joined: Wed Apr 02, 2008 5:29 pm
Location: Germany

Re: [BETA] News Forum

Post 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?

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] News Forum

Post 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 :).
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
kateland
Registered User
Posts: 198
Joined: Wed Nov 22, 2006 7:08 pm
Location: Philadelphia, PA
Contact:

Re: [BETA] News Forum

Post 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?
here's your love letter
you bloodletter
you disappointed every time

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: [BETA] News Forum

Post 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.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

Locked

Return to “[3.0.x] Abandoned MODs”