banner op het forum plaatsen

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
relaxuhmichel
Berichten: 84
Lid geworden op: 21 jun 2003, 13:30

banner op het forum plaatsen

Bericht door relaxuhmichel » 21 jun 2003, 13:31

wie kan mij vertellen hoe ik een banner op me forum kan plaatsen (phpbb)

vertel het mij please :oops:

Gebruikersavatar
SuperNova
Berichten: 1293
Lid geworden op: 27 apr 2003, 00:23
Locatie: Barendrecht
Contacteer:

Bericht door SuperNova » 21 jun 2003, 13:32

gewoon een img src in een van de templates.
meestal index_body.tpl
-sorry, ik heb geen tijd meer voor phpBB-

relaxuhmichel
Berichten: 84
Lid geworden op: 21 jun 2003, 13:30

Bericht door relaxuhmichel » 21 jun 2003, 13:34

en hoe moet ik dit doen ik het een bannerscript en moet het bestand weergeefbanner.php erin zetten maar weet niet waar en hoe

Gebruikersavatar
SuperNova
Berichten: 1293
Lid geworden op: 27 apr 2003, 00:23
Locatie: Barendrecht
Contacteer:

Bericht door SuperNova » 21 jun 2003, 14:57

Ik heb er een modje voor gemaakt!

Random Vars, By SuperNova :)

Code: Selecteer alles

[OPEN FILE]
includes/page_header.php

[FIND]
      // We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
      while( list(,$nested_array) = each($nav_array) )
      {
         $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
      }
   }
}

[AFTER, ADD]
// Random Var Mod
// Defining the random vars
$ranvar['no1'] ='';
$ranvar['no2'] ='';
$ranvar['no3'] ='';
$ranvar['no4'] ='';
$ranvar['no5'] ='';
// You can add more if you want to, just copy and change the number
// Don't forget to add it at the random generation too!
// Random Var Mod

[FIND]
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
$template->assign_vars(array(

[AFTER, ADD]
   // Random Var Mod
   // Randomizing the variable
   srand((double)microtime()1000000);
   $bnrb=rand(1,5);
   if ($bnrb == 1) {'RANVAR' => $ranvar['no1'],}
   elseif ($bnrb == 2) {'RANVAR' => $ranvar['no2'],}
   elseif ($bnrb == 3) {'RANVAR' => $ranvar['no3'],}
   elseif ($bnrb == 4) {'RANVAR' => $ranvar['no4'],}
   elseif ($bnrb == 5) {'RANVAR' => $ranvar['no5'],}
   // You can add more if you want to, just copy and change the number
   // If you add more you should change the generation of bnrb as well
   // Don't forget to define the new ranvar above!
   // Random Var Mod

[OPEN FILE]
templates/*/*.tpl

[NOTE]
Make sure you edit every template! (1st *)
Do this for any tpl file you want. (2nd *)

[ADD]
{RANVAR}

[NOTE]
Add the variable anywhere you want the random thing to appear

[SAVE/UPLOAD]
EoM
-sorry, ik heb geen tijd meer voor phpBB-

Gesloten