Recent & Last images block in website index?

Support for Administration, Installation, Update & Conversion
Locked until 1.1.0 was released.

Recent & Last images block in website index?

Postby ReNNoN » Tue Apr 10, 2012 1:09 am

Hi guys,

need to see the block of recent & last images upload in my website index (not index forum).

¿any mod?

sorry for my english!

thx u
ReNNoN
Posts < 10
Posts < 10
 
Posts: 7
Topics: 3
Images: 0
Joined: Fri Apr 06, 2012 2:07 am
phpBB.de: ReNNoN
phpBB.com: ReNNoN

Re: Recent & Last images block in website index?

Postby nickvergessen » Thu Apr 12, 2012 5:32 pm

You can just use:
rrc_configurator.php

if your website is not integrated into phpbb you need to make it so:
http://www.phpbb.com/kb/article/add-a-n ... -to-phpbb/
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Recent & Last images block in website index?

Postby ReNNoN » Thu Apr 12, 2012 6:35 pm

Oh, my god :)

Yes, i need integrate my website index in phpbb3 forum, i think: www.fuerteoffroad.com

i will try

thank you for the fast response!!
ReNNoN
Posts < 10
Posts < 10
 
Posts: 7
Topics: 3
Images: 0
Joined: Fri Apr 06, 2012 2:07 am
phpBB.de: ReNNoN
phpBB.com: ReNNoN

Re: Recent & Last images block in website index?

Postby ReNNoN » Sat Apr 21, 2012 3:44 am

Hello!

i have other question for you :)

i try insert my website in forum, all ok but i need not see the forum template, only "aboutus_body.html" in my website.

in this explication all is perfect, but have this problem (for me)

any way?

sorry for me english


edit:

located (i think) the problem:

$template -> set_filenames (array( 'body' => 'aboutus_body.html' , ));

$template, shows: the header template and the footer template, i need to remove it

thx u
ReNNoN
Posts < 10
Posts < 10
 
Posts: 7
Topics: 3
Images: 0
Joined: Fri Apr 06, 2012 2:07 am
phpBB.de: ReNNoN
phpBB.com: ReNNoN

Re: Recent & Last images block in website index?

Postby nickvergessen » Sun Apr 22, 2012 9:24 pm

There should be something like
Code: Select all
<!-- INCLUDE overall_header.html -->
in your template file. Just remove that.
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Recent & Last images block in website index?

Postby ReNNoN » Sat Apr 28, 2012 12:36 am

Hi,

i have other problem (sorry men)

in http://www.fuertebarro.com/foro/about.php
Code: Select all
<?php
define ( 'IN_PHPBB' , true );
$phpbb_root_path = ( defined ( 'PHPBB_ROOT_PATH' )) ? PHPBB_ROOT_PATH : './' ;
$phpEx = substr ( strrchr ( __FILE__ ,   '.' ), 1 );
include( $phpbb_root_path .   'common.'   . $phpEx );

// Start session management
$user -> session_begin ();
$auth -> acl ( $user -> data );
$user -> setup ();

page_header ( 'About Us' );

$template -> set_filenames (array(
     'body'   =>   'about_body.php' ,
));

make_jumpbox ( append_sid ( "{$phpbb_root_path}viewforum.$phpEx" ));
page_footer ();
?>


in forum/styles/templatename/template/about_body.php:

Code: Select all
<?php
// Output page
page_header($user->lang['INDEX']);
?>

<?php
/**
* RRC of phpbb gallery
* See http://www.flying-bits.org/rrc_configurator.php for more information
*/
$gallery_block = new phpbb_gallery_block();
$gallery_block->set_modes(array('recent', 'random', 'comment'));
$gallery_block->set_display_options(array('albumname', 'imagename', 'imagetime', 'imageviews', 'username', 'ip'));
$gallery_block->set_nums(array('rows' => 1, 'columns' => 4, 'comments' => 5, 'contests' => 1));
$gallery_block->set_pegas(true);
$gallery_block->display();
?>


<!-- INCLUDE gallery/recent_body.html -->


but not see nothing in website:
http://www.fuertebarro.com/foro/about.php

where is the error?
thx for your help
ReNNoN
Posts < 10
Posts < 10
 
Posts: 7
Topics: 3
Images: 0
Joined: Fri Apr 06, 2012 2:07 am
phpBB.de: ReNNoN
phpBB.com: ReNNoN

Re: Recent & Last images block in website index?

Postby nickvergessen » Sat Apr 28, 2012 9:29 am

You should move the php code into the base file, not the template.
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Recent & Last images block in website index?

Postby ReNNoN » Sat Apr 28, 2012 1:12 pm

Great!!!

awesome response in only one sentence haha :)



other question (and other problem hehe);

all ok, and running, but in the integration with my website, the function:

page_footer();

closes the rest of programation in file php and don't shows other blocks of website, for example: news, sections, etc..

but eliminating this function, the script stops working
ReNNoN
Posts < 10
Posts < 10
 
Posts: 7
Topics: 3
Images: 0
Joined: Fri Apr 06, 2012 2:07 am
phpBB.de: ReNNoN
phpBB.com: ReNNoN

Re: Recent & Last images block in website index?

Postby nickvergessen » Sat Apr 28, 2012 4:21 pm

You should try and remove the paeg_header call from the template file aswell
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests