<?php
/**
* Displays custom page with news as links
*
* @copyright (C) 2008-2012 PunBB, partially based on code (C) 2008-2009 FluxBB.org
* @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
* @package PunBB
*/

if (!defined('FORUM_ROOT'))
    define('FORUM_ROOT', './');
require FORUM_ROOT.'include/common.php';

define('FORUM_ALLOW_INDEX', 1);
define('FORUM_PAGE', 'Home');

// Setup breadcrumbs
$forum_page['crumbs'] = array(
    array($forum_config['o_board_title'], forum_link($forum_url['index'])),
    ucfirst(FORUM_PAGE)
);

require FORUM_ROOT.'header.php';

// START SUBST - <!-- forum_main -->
ob_start();

?>    <div class="main-head" style="margin-top: 2em">
        <h2 class="hn"><span>Latest news - Home</span></h2>
    </div>
    <div class="main-content main-message" style="margin : auto; text-align: center">
    <FONT size=3>
        <p>
            <u><ol>
            <li><a href="http://nairalanders.com/forum/topic/328/celebrities-tonto-dikeh-flaunts-her-tattoos-in-new-photos/">Tonto Dikeh Flaunts Her Tattoos In New Photos (Pictured)</a></li>
            <li><a href="http://nairalanders.com/forum/topic/274/music-videos-new-single-wizkid-jaiye-jaiye-ft-femi-kuti/">Jaiye Jaiye ft. Femi Kuti by Wizkid</a></li>
            <li><a href="http://nairalanders.com/forum/topic/306/music-videos-dr-sid-lady-don-dada-ft-don-jazzy/">Lady Don Dada ft. Don Jazzy by Dr. Sid</a></li>
            <li><a href="http://nairalanders.com/forum/topic/327/politics-why-jonathan-accused-organised-labour-of-corruption-cpc/">Why Jonathan Accused Organised Labour Of Corruption-CPC</a></li>
            <li><a href="http://nairalanders.com/forum/topic/326/european-football-qpr-vs-arsenal-today-at-530pm/">QPR Vs Arsenal Today At 5.30pm</a></li>     
            <li><a href="http://nairalanders.com/forum/topic/324/8-ways-to-keep-your-lady-happy/">8 Ways To Keep Your Lady Happy</a></li>
                <li><a href="http://nairalanders.com/forum/topic/323/one-year-after-rasheed-yekini-lives-on-in-our-hearts/">One Year After, Rasheed Yekini Lives On In Our Hearts</a></li>
                <li><a href="http://nairalanders.com/forum/topic/319/what-to-do-when-he-is-taking-too-long-to-propose/">What To Do When He Is Taking Too Long To Propose</a></li>
                <li><a href="http://nairalanders.com/forum/topic/320/tragic-lagos-polytechnic-student-raped-to-death-3-days-after-graduation/">Lagos polytechnic student raped to death 3 days after graduation</a></li>
                <li><a href="http://nairalanders.com/forum/topic/310/boko-haram-now-collecting-ransom/">Boko Haram Now Collecting Ransom</a></li>
                <li><a href="http://nairalanders.com/forum/topic/311/celebrities-who-died-of-drug-overdoses-and-how-they-died/">Celebrities Who Died Of Drug Overdoses And How They Died</a></li>
                <li><a href="http://nairalanders.com/forum/topic/312/how-is-your-state-governor-fighting-corruption/">How Is Your State Governor Fighting Corruption?</a></li>
                <li><a href="http://nairalanders.com/forum/topic/321/private-jet-efcc-probes-amaechi-over-missing-10m/">Private jet-EFCC probes Amaechi over missing $10m</a></li>
                <li><a href="http://nairalanders.com/forum/topic/316/age-in-relationships/">Age In Relationships</a></li>
                <li><a href="http://nairalanders.com/forum/topic/317/what-is-cheating-in-a-relationshipmarriage/">What Is Cheating In A Relationship/Marriage?</a></li>
                <li><a href="http://nairalanders.com/forum/topic/318/if-you-are-single-read-this-a-mothers-letter/">If You Are Single, Read This. (A Mother's Letter)</a></li>
            </ol>
        </p>
    </div>
    </FONT>
    </u>
<?php

$tpl_temp = forum_trim(ob_get_contents());
$tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);

ob_end_clean();
// END SUBST - <!-- forum_main -->



require FORUM_ROOT.'footer.php';


I tried to move the message to center, but it won't work. Maybe you can help out smile

Okay. Can it be because of the punBB version?

It still doesn't work. To make you understand, see below links.

Doesn't work: http://nairalanders.com/forum/latest_ne … 20Copy.php

Works: http://nairalanders.com/forum/latest_ne … 20Copy.php

The second link displayed properly because I've removed the colons ":" in the links titles and also the apostrophe in the last word of the first link title that should have been "Don't"

You can also view my original link here: http://nairalanders.com/forum/latest_news.php

None of the links titles comprise Colon (:) Apostrophe (') and Dash (-)

Dash (-) can be used but it must not be spaced, which it shouldn't be that way.

<li><a href="http://nairalanders.com/forum/topic/322/what-men-really-want-10-things-you-think-impress-him-but-dont/">What Men Really Want: 10 Things You Think Impress Him, But Don’t</a></li>
                <li><a href="http://nairalanders.com/forum/topic/321/private-jet-efcc-probes-amaechi-over-missing-10m/">Private jet: EFCC probes Amaechi over missing $10m</a></li>
                <li><a href="http://nairalanders.com/forum/topic/320/tragic-lagos-polytechnic-student-raped-to-death-3-days-after-graduation/">Tragic: Lagos polytechnic student raped to death 3 days after graduation</a></li>

Above are links if added, will make it not display because of the colon ":" in the link title.

Only Administrators can view this page. It should allow both guess and members. Please check and post what to correct in it.

Also, it doesn't allow some characters in link title. If added the links would not display. Characters like, "(: ' -)" e.t.c. Please kindly check that as well.

Thanks

@Trace, thanks brother for your understanding. I will be waiting for the update.

Thanks again

@Trace, thank you very much. I really appreciate your help.

Just one more question, will I have to go through the FTP to add more links or is there anyway I can mark as latest news through forum to save me the stress, because it will be on a daily and hours interval of adding links as latest news.

Thank you,

@Trace, If I could make this, I wouldn't be here asking. If you cannot help out with this, let me know. I'm not saying it should look like the samples I posted.

Is it possible to help make it that way? and attach it somewhere for me so I can download and Install it.

I really wish I could do this myself as I have really waited for long to achieve this. Also, I don't mind donating $100 in achieving this course.

Thank you,

@Trace, @Kushi, @dimkalinux, I've actually come to let you understand what the pun_forum_news extension should be like. Or if you think my request is different from the pun_forum_news, at least, punBB team can release this extension.

The links below are examples of what pun_forum_news extension should be like, or can be added to the current pun_forum_news extension as option to only send topics as news.

The first link was snipped from a vBulletin forum.

http://nairalanders.com/news1.png
http://nairalanders.com/news2.png
http://nairalanders.com/news3.png

^^^ I cannot make it. If you can help or anybody else can, it will be appreciated. I think this is not a hard one.

And also, the correction of the argument below.

Warning: Missing argument 2 for generate_avatar_markup(), called in /home/nairala2/public_html/forum/misc.php(813) : eval()'d code on line 507 and defined in /home/nairala2/public_html/forum/include/functions.php on line 500 Warning: Missing argument 3 for generate_avatar_markup(), called in /home/nairala2/public_html/forum/misc.php(813) : eval()'d code on line 507 and defined in /home/nairala2/public_html/forum/include/functions.php on line 500 Warning: Missing argument 4 for generate_avatar_markup(), called in /home/nairala2/public_html/forum/misc.php(813) : eval()'d code on line 507 and defined in /home/nairala2/public_html/forum/include/functions.php on line 500

Thanks, but I'm not a coder. Can you help?

Trace wrote:

So, you want only view a topic title?

Yes. smile

// Outputs markup to display a user's avatar
function generate_avatar_markup($user_id, $avatar_type, $avatar_width, $avatar_height, $username = NULL, $drop_cache = FALSE)
{
    global $forum_config, $base_url;

    $avatar_markup = $avatar_filename = '';

    $return = ($hook = get_hook('fn_generate_avatar_markup_start')) ? eval($hook) : null;
    if ($return != null)
        return $return;

Please help correct it.

@Trace, also I don't want it to include first post. Just the topic. That is what I've been trying to let you understand. Here is my website: http://nairalanders.com/forum/

Trace wrote:

I don't understand... You have exactly what do you want.

I get this error on the news page.


Warning: Missing argument 2 for generate_avatar_markup(), called in /home/nairala2/public_html/forum/misc.php(813) : eval()'d code on line 507 and defined in /home/nairala2/public_html/forum/include/functions.php on line 500 Warning: Missing argument 3 for generate_avatar_markup(), called in /home/nairala2/public_html/forum/misc.php(813) : eval()'d code on line 507 and defined in /home/nairala2/public_html/forum/include/functions.php on line 500 Warning: Missing argument 4 for generate_avatar_markup(), called in /home/nairala2/public_html/forum/misc.php(813) : eval()'d code on line 507 and defined in /home/nairala2/public_html/forum/include/functions.php on line 500

Trace wrote:

It displays only that what you choose. If you choose topic (for new topics you can mark it as news while you create it and for existing while editing topics), only the first post in topic will be displayed.

The bolded is what I don't want. I want only the topic. When you click to open, then you can see the post.

92

(71 replies, posted in PunBB 1.4 additions)

The Urban theme does not show in Administration Settings. I'm using 1.4.1.

93

(25 replies, posted in Feature requests)

Kushi wrote:

http://punbb.informer.com/forums/topic/ … obile-v15/

However it's not well built. I haven't got time to finish or support it anymore but I'll release my responsive theme soon ( i hope ).


Thank you, it actually works fine.

The Kushi theme in the demo is nice. But I don't know how to make other themes appear in Settings.

95

(25 replies, posted in Feature requests)

Any extension for mobile?

Trace wrote:

@Developers of punBB. The punbb_forum_news is more like what I'm looking for.

So, use it.

I cannot use it because it shows the posts. I want it to only show post topics. Then members can click the topics that interest them.

I will donate $100 to anyone who can help me with this.

Thank you,

@Developers of punBB. The punbb_forum_news is more like what I'm looking for.

It should not contain posts itself. Rather, the post topic only. This action should be available only to by admin and mods. Or make it optional to allow members to have access to be able to move posts to News page.

I reiterate, only post topic should be in the news page so that members can easily open the topics that they are interested in, in the list.

@Trace, do you understand?

Please kindly understand that I'm not a coder.

Thank you,

Still waiting...

Still waiting... I don't mind donating 100$ to whoever helps with these features.

Thanks,

@Trace, I run punBB1.4.1. So I edited the manifest. When I click thanks, I get this error message: Gratitude for the user official  0

No data