Skip to content

  • Downloads
  • Forum
  • Gallery
  • Tracker   ◢
    • »   Gallery Bug-Tracker
    • »   Gallery Feature-Tracker
    • »   Other MODs ...
  •  
    • »   Advanced search
  • Donate
  • RRC-Configurator
  • Board index
  • Change font size
  • News-Demo
  • FAQ
  • Members
  • Register
  • Login

RRC-Configurator

Recent- & Random-Images & Comment - Feature


„Random images“ may take some time to load, on large databases!
Rows:
Columns:



You can set multiple ids: “1,2,3”

You can set multiple ids: “1,2,3”

Your changes

Open your index.php (or whatever file you want to add the code to) and find:
{ CODE }: Select all
// Output page
page_header($user->lang['INDEX']);
After add:
{ CODE }: Select all
/**
* 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();


Open the related template, in case of index.php that is styles/prosilver/template/index_body.html, and find:
{ CODE }: Select all
<!-- INCLUDE forumlist_body.html -->
Before add:
{ CODE }: Select all
<!-- INCLUDE gallery/recent_body.html -->


After performing that changes you should pruge your cache in the Administration-Control-Panel overview. Sometimes you also need to recompile your template. This can be done in Administration-Control-Panel > Styles > Templates > prosilver > refresh.



URL:
  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Time : 0.894s | 7 Queries | GZIP : Off