pagina index wijzigen

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
pencak
Berichten: 377
Lid geworden op: 19 jun 2005, 07:09
Contacteer:

pagina index wijzigen

Bericht door pencak » 07 sep 2005, 10:56

Ik ben op zoek naar een mod of een aanpassing om de pagina index onder aan een topic te wijzigen

Afbeelding

hier staat nu een onderbroken reeks met pagina nummers
is dit ook te wijzigen in een rolmenu,
of een andere optie om direct een willekeurige andere pagina te kiezen :?:

graag wat info :thumb:

Gebruikersavatar
pencak
Berichten: 377
Lid geworden op: 19 jun 2005, 07:09
Contacteer:

Bericht door pencak » 08 sep 2005, 11:55

niemand :?:

Gebruikersavatar
jh0nny
Berichten: 943
Lid geworden op: 11 mar 2004, 20:05
Contacteer:

Bericht door jh0nny » 08 sep 2005, 14:50

Code: Selecteer alles

#################################################################
## Mod Title: Dropdown PageCount
## Mod Version: 1.1
## Author: Hawaiian Dude < admin@donbosco.tk > - http://www.mymods.tk/
## Description:
##      With this Mod you get a box at the bottom of a topic where you can
##      go to the pages of that topic.
##
##
##
## Installation Level: easy
## Installation Time: 2-5 Minutes
## Files To Edit: functions.php, viewtopic.php, viewtopic_body.tpl
## Included Files: pagebox.tpl
#################################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Authors Notes:
##
## Nothing
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
 
#
#-----[ COPY ]--------------------------------------------
#
copy pagebox.tpl to /templates/subSilver/pagebox.tpl

#
#-----[ OPEN ]---------------------------------------------
#
includes/functions.php

#
#-----[ FIND ]---------------------------------------------
#
function make_jumpbox($action, $match_forum_id = 0)

{


#
#-----[ BEFORE, ADD ]--------------------------------------
#
function make_pagebox($action, $topic_num, $total_pages)

{

   global $template, $lang, $SID, $phpEx, $board_config;

   $boxstring = '<select name="start" onChange="if(this.options[this.selectedIndex].value != -1){ forms[\'pagebox\'].submit() }">';

   for($i = 0; $i < $total_pages; $i++)

   {

      $boxstring .=  '<option value="' . ($i*$board_config['posts_per_page']) . '">' . ($i+1) . '</option>';

   }

   $boxstring .= '</select>';

   if ( isset($SID) )

   {

      $boxstring .= '<input type="hidden" name="sid" value="' . $SID . '" /><input type="hidden" name="t" value="' . $topic_num . '" />';

   }

   $template->set_filenames(array(

      'pagebox' => 'pagebox.tpl')

   );

   $template->assign_vars(array(

      'L_GO' => $lang['Go'],

      'L_JUMP_TO' => $lang['Jump_to'],

      'S_PAGEBOX_SELECT' => $boxstring,

      'S_PAGEBOX_ACTION' => append_sid($action))

   );

   $template->assign_var_from_handle('PAGEBOX', 'pagebox');



   return;

}

#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]---------------------------------------------
#
  <tr>
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
     <span class="gensmall"><b>{PAGINATION}</b><br />
     &nbsp; </span></td>
  </tr>

#
#-----[ REPLACE WITH ]---------------------------------------
#
  <tr>
   <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br />
     <span class="gensmall">{PAGEBOX}<br />
     &nbsp; </span></td>
  </tr>

#
#-----[ FIND ]---------------------------------------------
#
<span class="nav">{PAGINATION}</span>

#
#-----[ REPLACE WITH ]---------------------------------------
#
<span class="nav">{PAGEBOX}</span>

#
#-----[ OPEN ]---------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]---------------------------------------------
#
make_jumpbox('viewforum.'.$phpEx, $forum_id);

#
#-----[ AFTER, ADD ]--------------------------------------
#
make_pagebox('viewtopic.'.$phpEx, $t, ceil( $total_replies / $board_config['posts_per_page'] ));

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Code voor pagebox.tpl

Code: Selecteer alles

<form method="get" name="pagebox" action="{S_PAGEBOX_ACTION}" onSubmit="if(document.pagebox.start.value == -1){return false;}"><table cellspacing="0" cellpadding="0" border="0">
   <tr>
      <td nowrap="nowrap"><span class="gensmall">{L_JUMP_TO}:&nbsp;{S_PAGEBOX_SELECT}&nbsp;<input type="submit" value="{L_GO}" class="liteoption" /></span></td>
   </tr>
</table></form> 
Barki.nl

Gesloten