Author Topic: [Mod] Random Pic in phpBB  (Read 62335 times)

0 Members and 1 Guest are viewing this topic.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« on: September 01, 2002, 10:06:28 PM »
used / benutzt wurde 4images 1.7 & phpBB 2.0.2

E:
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
Code: [Select]
$template->assign_vars(array(
add before / vor dem füge dies
http://www.nicky.net/4images/random_for_phpBB.txt
in 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)
Code: [Select]
$template->assign_vars(array(

add after / nachdem füge dies
Code: [Select]

    '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
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Warhead

  • Guest
[Mod] Random Pic in phpBB
« Reply #1 on: September 04, 2002, 08:50:50 AM »
Bei mir klappt es irgendwie nicht!
könnt ihr bitte mal nachschauen?

DIe Adresse hab ich angegeben, aber irgendwie steht da kein Bild-ID zum Schluss, somit auch kein richtiger Link!!! :roll:  :roll:

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« Reply #2 on: September 04, 2002, 07:34:30 PM »
hast du auch richtiges PREFIX in den queries berücksichtigt ?
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Warhead

  • Guest
[Mod] Random Pic in phpBB
« Reply #3 on: September 04, 2002, 07:57:38 PM »
Jep, ich hab die Standardprefixe benutzt!!!

phpbb_ bzw. 4images_

aber vielleicht sollte ich noch dazu sagen, dass die Benutzerdaten in das Forum mit intergriiert sind!!!

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« Reply #4 on: September 04, 2002, 08:41:10 PM »
okay,

wo kann ich dies sehen ?
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Warhead

  • Guest
[Mod] Random Pic in phpBB
« Reply #5 on: September 04, 2002, 09:38:54 PM »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« Reply #6 on: September 04, 2002, 10:18:56 PM »
okay, der fehler liegt nicht bei mir *g*

kann nicht funktionieren wenn du keine ansicht der grossen bildern  zulassen tust, deshalb wird auch keine image_id übergeben..

ausserdem,
tust du gegen nutzungsbedingungen verstossen
richtiges code für footer.html
Code: [Select]

<p align="center">
  Powered by <b>4images</b> {script_version}
  <br />
  Copyright &copy; 2002 <a href="http://www.4homepages.de" target="_blank">4homepages.de</a>
</p>


und da du auch die VIERSTRA templates benutzten tust, sollte auch sein link drinnen sein..
bitte wieder ändern..
danke..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Warhead

  • Guest
[Mod] Random Pic in phpBB
« Reply #7 on: September 05, 2002, 09:03:05 AM »
sorry, j0 mach ich rein, aber ICH persönlich hab es nicht raus genommen, wir sind 3 Admins, werd es den anderen auch sagen, dass sie das drin lassen sollen.

Wie kann ich den die Zulassung ändern, damit die Vergrößerung angezeigt wird?

und vielen Dank

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« Reply #8 on: September 06, 2002, 01:38:18 AM »
wie ich sehe, wird das bild jetzt dargestellt...

nur, meine bitte wurde nicht erfüllt ;)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
New images on phpbb
« Reply #9 on: September 10, 2002, 09:27:37 AM »
Hi just wanted to know if its possible

On the Index page of phpbb i want the last 3 or 4 new image thumbnails to be shown ,how do i do this  :?:

giffy

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« Reply #10 on: September 13, 2002, 06:35:44 PM »
hi giffy,

i just did it ...
you can see it at http://www.modellspielzeug.at/forum/
are the last 4 added images
is that what you want..?
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
[Mod] Random Pic in phpBB
« Reply #11 on: September 14, 2002, 07:21:26 AM »
Yes thats great how can i do that !
thanks

giffy

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« Reply #12 on: September 14, 2002, 08:47:18 AM »
hi giffy,

same instruction like the random pics for phpBB
http://www.nicky.net/4images/new_pics_for_phpBB.txt

instead of:

Code: [Select]

    'R_RANDOM_PIC' => $randompic,

use
Code: [Select]

    'N_NEW_PIC' => $newpics,

use {N_NEW_PIC} in template

and look for:
// Set thumbnails to show
$new_thumbs = 4;
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline giffy007

  • Full Member
  • ***
  • Posts: 119
    • View Profile
[Mod] Random Pic in phpBB
« Reply #13 on: September 22, 2002, 05:42:55 PM »
Ok done what you said but no thumbs appear ,

I cannot find this ( and look for: // Set thumbnails to show $new_thumbs = 4;

Where is this ?

giffy

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
[Mod] Random Pic in phpBB
« Reply #14 on: September 22, 2002, 05:53:24 PM »
hi giffy

hmm are you using this ?
http://www.nicky.net/4images/new_pics_for_phpBB.txt
or the code from my first post
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

 

Post your comments here