used / benutzt wurde
4images 1.7 & phpBB 2.0.2E:NOTE: this mod will work ONLY if your 4images mysql tables are in SAME DATABASE like phpBB.
D:ACHTUNG: dieser mod funktioniert NUR wenn 4images mysql tabellen in GLEICHER DATENBANK sind wie die von phpBB.
1.
open / öffne
includes/page_header.php
search / suche
$template->assign_vars(array(
add before / vor dem füge dies
http://www.nicky.net/4images/random_for_phpBB.txtin mod self change if necessery / im mod selbst ändere wenn notwendig
// Set here the URL to your 4images Gallery. WITH trailing slash!
// Set here your THUMBNAIL directory. Normally no need to change. WITHOUT trailing slash!
// In following queries CHANGE 4images table PREFIX if it doesn't match (Standard "4images_")!
search again for (same file) / such nochmals nach (gleiche datei)
$template->assign_vars(array(
add after / nachdem füge dies
'R_RANDOM_PIC' => $randompic,
now you can use
{R_RANDOM_PIC} in every phpBB template
jetzt kannst du
{R_RANDOM_PIC} in jedem phpBB template benützen
2.
if you want to have the random pic only on your phpBB main page, then put the code into index.php & template index_body.tpl. (don't use it in includes/page_header.php!)
wennst willst das zufallsbild nur auf der phpBB startseite erscheint, dann füge den code nur in der index.php & template index_body.tpl. (benutze es dann nicht in der includes/page_header.php!)
that's it.... have fun
das ist alles.... viel spass