News on the front page

current version: 1.0.6
released: 02.02.2012

News on the front page

Postby rincerofwinds » Sat Jun 11, 2011 8:45 pm

Hi,

I was wondering if it was possible for the news section to appear on the front page above the rest of the Forum?

I've edited the index_body.html to include the file, but it constantly says that there is no news, but if i click on the 'News' link I get taken to the newspage and everything appears correctly

Thanks
Ian
rincerofwinds
Posts < 10
Posts < 10
 
Posts: 2
Topics: 1
Joined: Sat Jun 11, 2011 6:48 pm

Re: News on the front page

Postby Un1matr1x » Fri Jun 17, 2011 4:42 pm

if you want the newspage on the index.php you have to edit the index_body.html as well as the index.php in your board-root-folder ... if you don't do this
Code: Select all
<!-- BEGIN postrow -->
will be false and the following code is executed
Code: Select all
<!-- BEGINELSE -->
<
div class="panel">
    <div class="inner"><span class="corners-top"><span></span></span>
        {L_NEWS_NONE}
    <span class="corners-bottom"><span></span></span></div>
</
div>
<!--
 END postrow -->
and you will always recieve the "No News"
User avatar
Un1matr1x
MOD Co-Dev
MOD Co-Dev
 
Posts: 46
Topics: 8
Images: 6
Joined: Fri Nov 21, 2008 8:58 pm
phpBB.de: Unimatrix_0
phpBB.com: Unimatrix_0

Re: News on the front page

Postby rincerofwinds » Fri Jun 17, 2011 6:12 pm

Thanks for the reply,

Can you give me a hint on what I need to put in the index.php ?

im new to coding php and im not sure what I need to call

Thanks for any help

Ian
rincerofwinds
Posts < 10
Posts < 10
 
Posts: 2
Topics: 1
Joined: Sat Jun 11, 2011 6:48 pm

Re: News on the front page

Postby Un1matr1x » Sat Jun 18, 2011 6:31 am

To be honest I'm unsure if it makes sense ... you would have to copy nearly the whole newspage.php into the index.php to get the full functionality. Depending on what you want to achieve you may want to look at viewtopic.php?f=9&t=35 or http://blog.phpbb.com/2009/11/09/how-to ... nal-pages/ for smaller code & a lil' less functionality, but I guess that this sources might help you more.
User avatar
Un1matr1x
MOD Co-Dev
MOD Co-Dev
 
Posts: 46
Topics: 8
Images: 6
Joined: Fri Nov 21, 2008 8:58 pm
phpBB.de: Unimatrix_0
phpBB.com: Unimatrix_0


Return to NV Newspage

Who is online

Users browsing this forum: No registered users and 1 guest