Author Topic: Integration 4images 1.7 / vBulletin 2.x  (Read 237960 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / vBulletin 2.x
« Reply #105 on: January 10, 2003, 10:41:14 AM »
1. Schwer zu sagen, fällt mir momentan keine Lösung ein. Am Template kann es auf jeden Fall nicht liegen.

2. Die erste URL-Variante sollte funktionieren. Bei der 2. wirst Du Ärger bekommen aufgrund der Unterschiedlichen Domains.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline KSA

  • Jr. Member
  • **
  • Posts: 99
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #106 on: January 10, 2003, 07:30:10 PM »
please   Demo

Offline abaum

  • Pre-Newbie
  • Posts: 3
    • View Profile
    • http://www.3dmaxforum.net
Integration 4images 1.7 / vBulletin 2.x
« Reply #107 on: January 11, 2003, 09:34:06 AM »
Ich hoffe, dass ich dieses Feature nicht übersehen habe aber leider kommt man nicht mehr über einen Link auf die Seite, die alle Bilder eines bestimmten Users anzeigt. Dazu ist eine kleine Templateänderung im VB nötig:

Im Control Panel sucht Ihr auf der linken Seite nach Templates. Klickt hier auf Modify. Klickt jetzt neben Eurem Style (meist Default) auf show all. Geht nun bis zum Punkt User Info Display Templates und bis zum Template getinfo. Hinter getinfo drückt Ihr auf edit und editiert das Template:

Sucht nach:
Code: [Select]
<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]">Fügt davor folgenden HTML-Code ein:
Code: [Select]
<a href="http://www.4homepages.de/search.php?s=$session[sessionhash]&search_user=$userinfo[username]"><smallfont color="{tableheadtextcolor}" class="thtcolor">Zeige alle Gallery-Bilder von $userinfo[username].</smallfont></a> <smallfont color="{tableheadtextcolor}" class="thtcolor">|</smallfont>www.4homepages.de müsst Ihr durch Eure URL zu 4images ersetzen.

Hier ein kleines Bsp.: http://forum.3dmaxforum.net/member.php?action=getinfo&userid=14

Ich hoffe, damit kommen auch die User klar, die noch kein VB-Template geändert haben. Habt Ihr mehrere Styles eingerichtet, müssen die dazugehörigen Templates natürlich, sofern für diese Styles erwünscht, ebenfalls editiert werden.
Gruß Andreas

Offline Markus

  • Newbie
  • *
  • Posts: 15
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #108 on: January 11, 2003, 12:39:25 PM »
Hallo Andreas - sehr schick - werde ich auch übernehmen...

Hast Du evtl. noch einen Hack, der in online.php3 von VB nicht "unbekannten Ort index.php?s=", sondern wenigestens sowas wie "schaut sich die Bildergalerie an" anzeigt? Einfach den "unbekannten Ort" dahingehend im Script ändern?

Gibt es eigentlich bedenken, dass 4images nicht mehr oder nur mit völlig neuer Integration in vB 3.x passt?

Dolle Sache das,
auch das 3dmaxforum - schön, das durch Zufall zu finden ;)

Beste Grüße und danke!
Markus

Offline abaum

  • Pre-Newbie
  • Posts: 3
    • View Profile
    • http://www.3dmaxforum.net
Integration 4images 1.7 / vBulletin 2.x
« Reply #109 on: January 11, 2003, 01:25:02 PM »
Das kannst Du nur direkt in der online.php ändern, da hier die Begriffe direkt in dem PHP-File einegebettet wurden. Suche nach
Code: [Select]
if ($bbuserinfo[usergroupid] == 6) {
         $userinfo[location] = htmlspecialchars(stripslashes(replacesession($userinfo[location])));
        $userinfo[where] = "<b>Unknown Location:</b> <a href=\"$userinfo[location]\">$userinfo[location]</a>";
Ändere Unknown Location in Schaut sich Gallery an (oder was auch immer ;)).

Jetzt änderst Du noch $userinfo[location]</a> in Gallery</a>. Das dürfte es gewesen sein. Zumindest wenn \"$userinfo[location]\" den richtigen Pfad anzeigt. Ansonsten musst Du dort auch noch Hand anlegen. Ich kann es bei mir nicht nachvollziehen. Bei mir zeigt er immer den letzten Ort im Forum an, in dem ich mich befunden habe. Obiges dürfte aber auch nur eine Notlösung sein.

Zu VB3 kann ich kaum was sagen. Da sich dort aber eine ganze Menge ändert, kann es sein, dass Jan diesen Hack überarbeiten müsste ;). Warten wir es ab. Jetzt kommt erst einmal ein grösserer Betatest für VB3. Bis VB3 also erscheint, kann es noch ein wenig dauern...
Gruß Andreas

Offline dr_boom

  • Pre-Newbie
  • Posts: 4
    • View Profile
Validating Images Problem
« Reply #110 on: January 16, 2003, 03:10:06 AM »
The integration worked fine for me and I did have any problems until I decided to allow Guests to upload images. So the problem is...

A Guest uploads an image and the image gets uploaded on the server and I see the “1 image awaiting for validation” on the Control Panel. I click on the link to go and validate the image and there are no results on the “Validate Images” page. As if nothing was pending for validation.

However, I see a message saying:
Found: 1 Displayed: 1-1.
Images marked with ! denote image file that cannot be found on the server.

But on the list below that, nothing appears!!!

So I suspected that the image never got uploaded. BUT the image has been uploaded and a thumbnail has been also created! (I checked that through FTP)

Anyone could help me on this please? And if there is no solution at all, is there a way to get it to show “0 images awaiting for validation” again???

Thank you very much in advance!

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / vBulletin 2.x
« Reply #111 on: January 16, 2003, 10:50:55 AM »
Ok, i have no working integration at the moment, so hope this will work:
 
Open admin/validateimages.php and find this part
Code: [Select]
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_date, i.image_media_file".get_user_table_field(", u.", "user_name")."
        FROM ".IMAGES_TEMP_TABLE." i, ".USERS_TABLE." u
        WHERE $condition AND ".get_user_table_field("u.", "user_id")." = i.user_id
        ORDER BY $orderby $direction
        LIMIT $limitstart, $limitnumber";

Replace it with
Code: [Select]
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_date, i.image_media_file".get_user_table_field(", u.", "user_name")."
        FROM ".IMAGES_TEMP_TABLE." i
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE $condition
        ORDER BY $orderby $direction
        LIMIT $limitstart, $limitnumber";

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline dr_boom

  • Pre-Newbie
  • Posts: 4
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #112 on: January 16, 2003, 04:57:12 PM »
AWESOME Jan!!
Works fine now... THANK YOU!! ;)

Offline Markus

  • Newbie
  • *
  • Posts: 15
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #113 on: January 16, 2003, 06:02:40 PM »
Hi,

ich habe noch eine Frage zu den Sessions und da sich diese auf vB beziehen, hoffe ich, im richtigen Thema zu sein.

Die Sessions ("eingeloggt sein") von vB und 4images verhalten sich unterschiedlich:

- wenn ich egal wann zu vB zurückkehre, bin ich stets sofort wieder richtig eingeloggt
- wenn ich von vB zu 4images wechsle, bin ich auch dort richtig eingeloggt
- wenn ich nach einiger Zeit direkt zu 4images zurückkehre, muss ich mich erst neu anmelden, in der whois-online Anzeige stehe ich auch nicht
- nach einiger nicht aktiver Zeit (15 Minuten?) bin ich in 4images wieder ausgeloggt, wenn ich dann zu vB wechsle, bin ich trotzdem eingeloggt.

Frage, nur zur Klärung: 4images geht immer von einer 15 Minuten-Session aus?? D.h. wenn diese Zeit verstreicht, bin ich ausgeloggt und muss mich neu anmelden. D.h. die Sessions in 4images werden anders gehandhabt, als in vB - ist das richtig?

Vielen Dank
Markus

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / vBulletin 2.x
« Reply #114 on: January 16, 2003, 11:15:51 PM »
Eigentlich wird man in 4images nur dann ausgeloggt, wenn 15min. keine Aktion erfolgt ist.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Markus

  • Newbie
  • *
  • Posts: 15
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #115 on: January 16, 2003, 11:41:01 PM »
Das meine ich ja.
D.h. die Sessions in 4images unterscheiden sich von den Sessions in vB - dort ist man ja ständig eingeloggt, verschwindet zwar nach 15 Minuten aus der "Online-Liste". Bei jedem neuen Klick ist man dann aber sofort wieder online, ohne sich neu einloggen zu müssen...

Das ist in 4images nicht gewollt/beabsichtigt/implementiert?!

Liebe Grüße
Markus

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / vBulletin 2.x
« Reply #116 on: January 16, 2003, 11:42:45 PM »
Ja ;)

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Floh

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.linland.de
Integration 4images 1.7 / vBulletin 2.x
« Reply #117 on: January 27, 2003, 12:08:14 AM »
Wo es grad um das Thema geht: Ich bekomme im Forum Leute die in der Gallerie rumschauen mehrfach angezeigt und daher ist die Zahl der Besucher im Board wesentlich höher als in der Gallerie. Was kann ich da tun?

bye,
Floh

Offline dr_boom

  • Pre-Newbie
  • Posts: 4
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #118 on: January 29, 2003, 10:22:07 PM »
So I got the VB to work with 4Images very well! However I have a question/suggestion...
Is there a way (since they are both on the same DB) to have the last 3 or 4 posted images on the front page of the VB Forum?

I think that this would be really cool... what do you think?

P.S. Without iFrames!!!

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / vBulletin 2.x
« Reply #119 on: January 29, 2003, 11:07:34 PM »
Yes, sure. If you have some skills in PHP and MySQL ;)

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search