4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: Jan on August 29, 2002, 05:34:29 PM

Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on August 29, 2002, 05:34:29 PM
Hier sind nun die angekündigten Dateien für die Integration von 4images 1.7 und vBulletin 2.x. Eine Installationsanleitung ist im Zip enthalten (Wichtig: Die Installations-Hinweise lesen!).
Die Integration ist experimentell. Bugs bitte hier posten.
-------
Here are the files for the integration of 4images 1.7 and vBulletin 2.x. Instructions for installation are included (Important: Please read the installation notes!).
The integration experimental. Please post Bugs here.

Download: integration_vbulletin.zip (http://www.4homepages.de/forumdl/integration_vbulletin.zip)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Arunan on August 29, 2002, 09:56:57 PM
DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, u.user_name, c.cat_name FROM 4i_images i, user u, 4i_categories c WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND u.user_id = i.user_id AND c.cat_id = i.cat_id ORDER BY RAND()
Unknown column 'u.user_name' in 'field list'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, u.user_name, c.cat_name FROM 4i_images i, user u, 4i_categories c WHERE i.image_active = 1 AND u.user_id = i.user_id AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'u.user_name' in 'field list'

I get this Error
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on August 29, 2002, 09:59:39 PM
Did you replaced "includes/sessions.php"?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Arunan on August 29, 2002, 10:01:55 PM
Yes
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Arunan on August 29, 2002, 10:04:31 PM
Code: [Select]
DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, u.user_name, c.cat_name FROM 4i_images i, user u, 4i_categories c WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND u.user_id = i.user_id AND c.cat_id = i.cat_id ORDER BY RAND()
Unknown column 'u.user_name' in 'field list'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, u.user_name, c.cat_name FROM 4i_images i, user u, 4i_categories c WHERE i.image_active = 1 AND u.user_id = i.user_id AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'u.user_name' in 'field list'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/virtual/site2/fst/home/board/public_html/includes/db_mysql.php on line 113


There is the error I get, its at the top, but I am able to login
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on August 29, 2002, 10:06:33 PM
Are you sure that you use version 1.7 and/or updated it correctly?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Arunan on August 29, 2002, 10:07:47 PM
Umm that may be it, Im using 1.6 sorry for wasting your time :roll:
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on August 30, 2002, 03:31:21 AM
Just found a couple of bugs...  on both my main forums page and the 4images main page its showing an incorrect number of registered users online (about 30 different between 4images' total and the forums' total).

4images is also showing 0 guests online when according to my forums there's about 50 (at the moment).

Also, 4images is declaring that 0 registered users are invisible, when there's around 8 or so online at my site that are.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on September 01, 2002, 10:16:21 AM
Another possible bug that has arisen... after integrating 4images with my vBulletin forums' database for sessions, it's now taking several minutes for the Add Images page to load up.  It never took that long before, and I'm wondering why it's now taking so long?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 01, 2002, 12:48:40 PM
The first bug should be fixed (user online). Please download the zip again and replace sessions.php.

Quote
it's now taking several minutes for the Add Images page to load up

Where, control panel or upload form in the gallery? Can i try it? I've been registered at our forum with username "jan".

Greets Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on September 01, 2002, 03:16:03 PM
Quote from: Jan
The first bug should be fixed (user online). Please download the zip again and replace sessions.php.


Shall do, thanks Jan!

Quote
Where, control panel or upload form in the gallery? Can i try it? I've been registered at our forum with username "jan".


From the 4images admin control panel.  Whenever I click on Add Images therein, it takes a minute or so to load the screen.  Then when I select 5 from the drop-down list (as I like to upload 5 at a time), it takes several more minutes to load that screen.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 01, 2002, 03:32:39 PM
Ok, i have seen that you have nearly 3000 users registered. I guess that it takes this time to build up the user dropdown.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on September 01, 2002, 03:33:13 PM
Jan, I'm using the modified sessions.php file, but it's still showing up 0 for invisible users even though there are currently two users marked with an asterisk, which is the indicator for a user whose status is invisible, in the online list.

Help!
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on September 01, 2002, 03:36:23 PM
Quote from: Jan
Ok, i have seen that you have nearly 3000 users registered. I guess that it takes this time to build up the user dropdown.


Ahhh, of course, that would be why...

Well, since I'm only allowing administrators at my site to upload images, is there any way I can limit the usernames it loads up to just those that are in the Administrators usergroup?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 01, 2002, 03:54:57 PM
I fixed the "bug" concerning the hidden users in the online list. This was not a real bug, because 4images counts this users as visible because you are logged in as admin and the user is visible to you. Download the zip again and replace sessions.php.

Try this for the user dropdown:
Open "admin/admin_functions.php " and change this line in the function show_user_select_row():
Code: [Select]
WHERE ".get_user_table_field("", "user_id")." <> ".GUEST."
to
Code: [Select]
WHERE ".get_user_table_field("", "user_level")." = ".ADMIN."
Greets Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on September 01, 2002, 04:04:46 PM
Everything's working perfectly now, thank you Jan!  You're a fantastic help, and I appreciate it very much!

Cheers,
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on September 01, 2002, 04:18:26 PM
Sorry to be a bother, Jan, but I have one more question relating to the admins only in the User dropdown box.  Will that only display the Upload icon button for admins, or is there something else I need to change so that anyone who isn't an admin doesn't see the Upload icon?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 01, 2002, 04:21:24 PM
If you want to display the upload button in the gallery only for admins, change the permission for upload in the category edit screen to "Administrators".

Greets Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on September 01, 2002, 04:32:43 PM
Quote from: Jan
If you want to display the upload button in the gallery only for admins, change the permission for upload in the category edit screen to "Administrators".


Ah, I already did that but wasn't sure if that removed the upload button for non-admins or not.

Thanks again Jan!  :D
Title: Permission problems
Post by: goyo on September 02, 2002, 04:44:32 AM
I have some moderators and some other usegroups with custom permissions in my forum. When my forummoderators trying to upload a pic to a 4images category with "all registered users" upload permission, they get an error message. For "simple" registered users and for administrators the upload works fine...

What should I do ?
Create a custom usergroup for moderators in 4homepage ?
Title: Re: Permission problems
Post by: Jan on September 02, 2002, 10:05:53 AM
Quote from: goyo
What should I do ?
Create a custom usergroup for moderators in 4homepage ?

Yes.

Greets Jan
Title: Problem mit vorhandenen Usergroups bei vBulletin
Post by: Joker on September 06, 2002, 03:12:00 PM
Hallo,

ich habe 4images wunderbar mit unserer vorhandenen vBulletin Community kombiniert. Allerdings hat sich ein Problem ergeben:

In unserer vBulletin gestützten Community haben wir neben den normalen Usergruppen eigene hinzugefügt, welche mehr Rechte besitzen als andere.

Diese Usergruppen werden in 4images nicht erkannt bzw. als Guests geführt wie ich meine. Diesen können in 4images Benutzerrechte (Upload, eCards etc.) gegeben werden, was allerdings ohne Effekt bleibt.

Kann dies durch Einstellungen in constants.php gelöst werden? Und wenn ja welche? Vielleicht genügt es, wenn ich dort die eigenen Usergruppen aus vBulletin mithinzufüge.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 06, 2002, 05:20:06 PM
Du musst für 4images eigene Benutzergruppen anlegen und User hinzufügen.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Joker on September 06, 2002, 10:26:22 PM
Das habe ich gemacht und die, die auch in unserer Community einer besonderen Benutzergruppe angehören in diese eingefügt. Dies hat aber keinerlei Auswirkungen.

Ich versuche es mal zu verdeutlichen anhand der Usergroups:

vBulletin:
Guest (Standard)
Registered User - noch nicht aktiviert (Standard)
Registered User (Standard)
Admin (Standard)
Extra (Custom) -> werden in 4images als Guest geführt, nicht als Registered

4images:
Guest (Standard)
Registered User - noch nicht aktiviert (Standard)
Registered User (Standard)
Admin (Standard)
Extra (Custom)

Wenn ich also jetzt einen Nutzer aus der Extra Gruppe in vBulletin der Extra Gruppe in 4images zuordne, hat das keinerlei Auswirkungen. So kann dieser obwohl berechtigt z.B. keine Uploads vornehmen. Wenn ich einen Registered User aus vBulletin der Extra Gruppe in 4images zuordnen würde, funktioniert alles wunderbar. Ich hoffe ich habe es einigermassen verständlich gemacht.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 07, 2002, 09:30:31 AM
Ok, jetzt hab ichs kapiert ;)
Lade Dir nochmal das zip herunter und ersetzt "includes/auth.php". Es sollte jetzt funktionieren.

Gruß Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Joker on September 07, 2002, 11:25:22 AM
Hallo Jan,

erstmal einen riesen Dank für deine Mühen und die schnelle Antwort. :D

Ich verwende jetzt die neue auth.php und das Problem ist teilweise auch gelöst.

4images erkennt die speziellen Usergruppen aus vBulletin nicht mehr als "Guest", sondern richtig als "Registered" an  :) . Allerdings haben Befugnisse, die man solchen Usern gibt immernoch keinerlei Auswirkungen. :( Wenn ich einen solchen User einer eigenen 4images Usergruppe zuteile, werden die Befugnisse dieser Usergruppe nicht für diesen User übernommen.

So habe ich einen Benutzer aus einer speziellen vBulletin Usergruppe erstmal einzeln die Befugnisse (Upload, eCard usw.) gegeben. Leider bleibt der Uploadbutton und eCard-Button für diesen User nachwievor unklickbar. Danach habe ich diesem User in 4images einer Usergruppe (Redakteur) zugeordnet, die sehr viele Rechte hat. In den Befugnissen dieses Users heißt es zwar, dass er der Gruppe (Redakteur) angehört, allerdings stehen alle Rechte immernoch auf Nein. Ich habe sodann diesen User in vBulletin auf einen Standarduser (Registered) umgestellt und in 4images haben auch bei den normalen Usern jetzt gegebene Befugnisse keine Auswirkungen mehr. Das kommt leider noch hinzu.

Ich habe das jetzt öfters mit verschiedenen User und Gruppen ausprobiert. Ich hoffe keinen Fehler gemacht zu haben und auch, dass ich alles einigermassen verständlich erklärt habe ... ist nicht so leicht.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 07, 2002, 12:50:48 PM
Leider geht vBulletin völlig anders mit Usergruppen um als 4images. Ich fürchte eine richtige Lösung dafür wird sich nicht finden lassen. Ich werde aber nochmal schauen was sich machen lässt.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Joker on September 07, 2002, 02:20:07 PM
Ja verstehe. Es wäre einfach super, wenn du irgendeine Lösung dafür findest. :)
 
:idea: Vielleicht kann man irgendwo die von vBulletin verwendeten Usergroupid's (in constants.php :?:) eintragen, so dass 4images weiß, welche id's als "registered user" zu verwenden sind? Keine Ahnung ... :roll:
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 10:20:35 AM
This is a really great product, and I’m trying to integrate with vbulletin.

I have just tried this hack to integrate with our vbulletin forums - v2.2.1 with no hacks - using the latest version of 4images.

However, whenever I attempt to log into the 4images admin section, something really strange happens!

I get the 4images log in screen, and enter my details. I then get the vbulletin login welcome screen, with a blank username in it. It then proceeds to load up our vbulletin forums!

I have installed this hack twice now and double-checked that I had completed everything as per the instructions, which I had, but it still won't work. It was the same result on both attempts.

Has anyone else had this problem and know how to fix it? Any ideas or suggestions?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 10:25:55 AM
Can you give us a URL?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 10:27:45 AM
Hi Jan.

Yes I do, but firstly let me say that I've reverted it back to its original state....will I hack it again before I post up the link?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 10:43:43 AM
I've put the hack back in now. Still the same result though.

URL is http://eforecourt.com/gallery

Oh yeah, and all tables are on the same DB.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 11:05:53 AM
Your forum shows me only blank pages  :?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 11:13:13 AM
Eh, the forums, only blank pages?

Are you trying http://www.eforecourt.com/forums for the forums?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 11:17:11 AM
Yes
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 11:21:14 AM
Hmm, I can't understand why - now you have me in a panic! :(

I haven't heard of that problem before, and there are several other members logged on at the mo.

What about our index page, http://www.eforecourt.com - does that work or come up blank for you?

And what about the 4images page itself, is that blank too?


( I did turn on zlib compression on the site this morning though....let me know the above, and if the index page is blank, I'll switch it back off to see if that makes any difference)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 11:23:28 AM
No, only the forums show me blank pages.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 11:47:07 AM
ok, problem appears to been the zlib compression + forum compression. turning back on gzip compression on the forums sorted that one out (I hope).

Can you try it now again - thanks.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 11:54:40 AM
I tried it, works perfectly for me.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 12:00:47 PM
Yes, I see that you have registered all right.

However, its not the front end that I'm having the problem with - thats OK. Its the admin section where the problem ic occuring.

I'll PM you that login, so you can try that - is that OK?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 12:02:54 PM
Ok, thats right. You have to login through the gallery and click the link at the bottom of the page to access the control panel.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 12:17:11 PM
OK, so you are saying that I cannot go directly to the 4images/admin/index.php URL any more, but rather log in first through the front page, and then click on the admin link that appears?

I've done the first bit sucessfully (logged into admin on front page), but the only link I can see at the bottom of the page is to 4homepages.de - I cannot for the life of me see a link to the CP ???
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 12:29:17 PM
something strange was happening with my sessions/cookies. I closed IE and cleared my cookies. Now When I log into Admin, I can see the link to the control panel.

But I now have another problem!

Now when I click on the control panel link, it brings up the vbulletin CP, not the 4images one!

I think I must be jinxed today - never have I encountered so many problems! :(
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 12:32:12 PM
Are you sure that you clicked the CP-link at the bottom of the page?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: cm on September 18, 2002, 12:42:50 PM
:roll:

My mistake, I click the CP link on the left hand side of the page, sorry. Guess I need more coffee this morning.

OK, last thing now. I clicked on the Log Out link on the left hand side of the main 4images page. It brings up the vbulletin logout message, and then redirects to the vbulletin forums. Is that how it should work? Should it not go back to the 4images front page?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 18, 2002, 01:01:37 PM
No, thats because vBulletin makes no redirect after logout. Maybe you can add something like this to the logout template of vBulletin:

Click here to return (http://www.eforecourt.com/temp/4images/) to the galleries index.

Jan
Title: I've hacked it
Post by: cm on September 18, 2002, 02:46:15 PM
OK, I've added in a small hack for that.

If I come from the Gallery, it uses a new Gallery template in vBulletin, and if not, it just uses the standard template :)

Here's how I did it:

in sessions.php (4images)
CHANGE
$url_logout        = $url_app."member.php?action=logout";
TO
$url_logout        = $url_app."member.php?action=logout&from_app=4images";

next, in member.php (vbulletin)
CHANGE
eval("standarderror(\"".gettemplate("error_cookieclear_4images")."\");");
TO
 if (isset($from_app)) {
    eval("standarderror(\"".gettemplate("error_cookieclear_4images")."\");");
 } else {
    eval("standarderror(\"".gettemplate("error_cookieclear")."\");");
 }

Then, in the vbulletin admin panel, add a new template called error_cookieclear_4images. In that put the following:

All cookies cleared! Click <a href="/gallery/index.php">here</a> to return to the Gallery index.

Of course, you will have to change the above URL to suit your own particular installation.

That should be it! :)

Oh yeah, if you want to see it in action, I've moved the URL, its now http://www.eforecourt.com/gallery
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: DraX on September 22, 2002, 09:24:36 PM
Is there a way to possibly display information from the user's vBulletin profile along side the image they upload?

I want to be able to use an instance of 4images as a members gallery for my users, and display things like ICQ, AIM, Hobby, Interests, etc underneath the user name for their full sized images.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: DraX on September 22, 2002, 09:26:00 PM
BTW, is it possible for you to submit this hack to the vbulletin.org's hacks database, so that it is more easily accessible for vBulletin users, and will in turn drive more traffic to your site and give you more users of 4iamges?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Delmonico on September 28, 2002, 08:39:17 AM
what about some "more" integration?

Im talking about integrating all templates to the Vbulletin-Templatesystem, combining the administrationpanels, dont have do delete users twice and set usergroups twice ;)

I know its a bunch of work... But I would help if i wouldnt have to do it on my own... Anyone interested?


gruß
Delmonico
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on September 28, 2002, 09:07:52 AM
This is a LOT of hacking through the code of 4images and vBulletin. After this you will have a new software ;)
Are you sure you want to do this each time you update vBulletin or 4images?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: DraX on September 28, 2002, 07:43:21 PM
There's actually an auto-hack program located over at vbulletin.org (why don't you have a copy of this over there in the database?).

It allows you to create a *.hack.php file that automatically applies your hacks to vbulletin.

Would make things easier for upgrades.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Delmonico on September 28, 2002, 07:56:18 PM
good point @jan.
but as VBB3 is on its way, there will be a real final version of 2.x within... lets say one year, so no need to do many upgrades (as many people wont upgrade to vbb3 before it has been testet for several months...)

if 3 or 4 people could do this with teamwork it should be possible, dont you think?

hehe its always the same problem... im still waiting for some community-database-standard which all big porjects could use, so integration would get MUCH easier...

if someone wants to do this, i would be in for sure :)

greets
Delmonico
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: DraX on September 28, 2002, 08:37:23 PM
You're looking for php-nuke and it's plugin modules, actually ;-)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Delmonico on September 28, 2002, 09:07:35 PM
nope phpnuke sucks, actually ;)
but yuore right something like this... yust better.. maybe in version 15.x phpnuke will be what i want*lol*
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on October 04, 2002, 02:18:18 PM
I just noticed something odd on my gallery after integrating it with vBulletin.

When viewing comments posted to an image, the links for profile and e-mail actually point to here at 4homepages.de rather than my site.

For example:

Quote
http://www.4homepages.de/vbulletin/member.php?action=getinfo&userid=753


That was one person's profile link at my gallery.  How do I stop it from pointing to 4homepages.de and have it point to my web site, as it should? (Note that my gallery is running fine, and all other links work as they should, it's only the profile and e-mail links on comments).
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Nicky on October 04, 2002, 02:22:02 PM
sometimes you should read installation instruction
Quote

     Open sessions.php and edit the configuration part at the top
     of the file.


sessions.php
Quote

// Set here the URL to your vBulletin forum. WITH trailing slash!
$url_app           = "http://www.4homepages.de/vbulletin/";
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on October 04, 2002, 05:05:51 PM
Quote from: Nicky
sometimes you should read installation instruction
Quote

     Open sessions.php and edit the configuration part at the top
     of the file.


sessions.php
Quote

// Set here the URL to your vBulletin forum. WITH trailing slash!
$url_app           = "http://www.4homepages.de/vbulletin/";


I do have that set to point to my forums already, and yet I'm still getting the 4homepages.de URL coming up!

EDIT: Okay, my bad, I had uploaded the wrong file!  8O
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ShaneST on November 03, 2002, 06:38:07 PM
On the index page I get:

Code: [Select]
DB Error: Bad SQL Query: SELECT sessionhash, lastactivity, host, userid FROM 4images_sessions WHERE sessionhash = '28a010b10e38830a6d1d95eda5298703' AND host = '64.12.97.6'
Unknown column 'sessionhash' in 'field list'

DB Error: Bad SQL Query: DELETE FROM 4images_sessions WHERE lastactivity < 1036344114
Unknown column 'lastactivity' in 'where clause'

DB Error: Bad SQL Query: SELECT sessionhash FROM 4images_sessions
Unknown column 'sessionhash' in 'field list'

DB Error: Bad SQL Query: SELECT u.*, l.* FROM 4images_users u, 4images_lightboxes l WHERE u.userid = 2 AND l.user_id = u.userid
Unknown column 'u.userid' in 'where clause'

DB Error: Bad SQL Query: SELECT * FROM 4images_users WHERE userid = 2
Unknown column 'userid' in 'where clause'

DB Error: Bad SQL Query: SELECT sessionhash FROM 4images_sessions WHERE sessionhash = '44bbfb9a360d7d25338444673f01c9a8'
Unknown column 'sessionhash' in 'field list'

Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/db_mysql.php on line 164

DB Error: Bad SQL Query: INSERT INTO 4images_sessions (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('44bbfb9a360d7d25338444673f01c9a8', -1, '64.12.97.6', '', 1036345014, 'index.php', '0')
Unknown column 'sessionhash' in 'field list'

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/db_mysql.php:188) in /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/sessions.php on line 107

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/db_mysql.php:188) in /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/sessions.php on line 107

Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/db_mysql.php:188) in /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/sessions.php on line 107

DB Error: Bad SQL Query: SELECT s.userid, s.lastactivity, s.host, u.userid, u.usergroupid, u.username, u.invisible FROM 4images_sessions s LEFT JOIN 4images_users u ON (u.userid = s.userid) WHERE s.lastactivity >= 1036344114 ORDER BY u.userid ASC, s.host ASC
Unknown column 's.userid' in 'field list'

DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.userid = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY RAND()
Unknown column 'u.username' in 'field list'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.userid = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'u.username' in 'field list'

Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/vhosts/licensetothrill.net/httpdocs/home/gallery/includes/db_mysql.php on line 116


I also get similar errors in the administration panel. Any ideas?[/code]
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 03, 2002, 06:43:54 PM
Please configure the sessions.php correctly (see Installation.txt).

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 20, 2002, 01:10:44 PM
I've just recently moved my site to a new server, and a problem has arisen with my image gallery.  Whilst I, as a site admin, can see all the images in it without any problems, none of my site's registered visitors can see anything in the gallery.  For them, it comes up 0 images in 0 categories.

My gallery is integrated with vBulletin 2.2.8, I'm using the correct sessions.php, and my config files are correct.  What could the problem be?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 20, 2002, 01:13:56 PM
Maybe you didnt't copied all database tables and data correctly.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 20, 2002, 01:55:45 PM
Quote from: Jan
Maybe you didnt't copied all database tables and data correctly.


Everything was successfully copied over, Jan.  I can see the gallery and its contents absolutely fine.  Everything is there, and there are no visible problems.

However, I'm an administrator on my site.  No regular user or staff member of my site (two different non-moderator usergroups) can see the gallery's contents.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 20, 2002, 01:57:40 PM
Did you checked the category and usergroup permissions?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 20, 2002, 02:08:45 PM
Quote from: Jan
Did you checked the category and usergroup permissions?


Yes, and they're all set to 2, which is "user".
Title: Integration in vB2
Post by: ZeroCL on November 20, 2002, 02:49:14 PM
Schönen guten Tag.
Auf Grund einer Anfrage im vB-Forum meinerseits wurde mir Ihre Galerie empfohlen. Nun habe ich diese installiert und die Anpassungen wie in der Datei zu Anfang des Threads angegeben angepasst. Jedoch komme ich irgendwie gar nicht klar. Vielleicht können Sie mir ja dabei weiterhelfen.

Ausgangspunkt war der Gedanke, den Usern meines Forums die Möglichkeit zu geben, ein Userbild upzuloaden und in ihr Profil bzw. die Mitgliederliste zu integrieren. Da mir Ihre Galerie zu diesem Zweck nahegelegt wurde, habe ich dieses getestet. Jetzt ist die Frage wie steuere ich das Ganze? Wenn ich versuche im Admin-CP der Galerie zu landen, gelange ich ins Forum etc.

Über eine kleine Anleitung o.Ä. Ihrerseits würde ich mich freuen.

Gruss Robby
Title: PANIK !
Post by: ZeroCL on November 20, 2002, 03:09:05 PM
Ich kann mit meinem Board und dem Board-CP nicht mehr arbeiten, ich werde nicht mehr als Admin erkannt und meine User nicht mehr als User. Wie mach ich das wieder rückgängig?

Panische Grüsse Robby
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 20, 2002, 03:55:13 PM
@ZeroCL:
Die Integration nimmt keinen Einfluss auf das Forum, ausser das Sessions aus der session Tabelle gelesen bzw. geschrieben werden. Was heisst denn genau "der Admin wird nicht erkannt"?

@X-Fan:
if you copied all data excatly from one to the other server it should work. Maybe you lost any data or something. Really hard to say from here.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ZeroCL on November 20, 2002, 04:02:12 PM
Quote from: Jan
@ZeroCL:
Die Integration nimmt keinen Einfluss auf das Forum, ausser das Sessions aus der session Tabelle gelesen bzw. geschrieben werden. Was heisst denn genau "der Admin wird nicht erkannt"?

@X-Fan:
if you copied all data excatly from one to the other server it should work. Maybe you lost any data or something. Really hard to say from here.

Jan


Ich konnte mich weder als User noch als Admin einloggen und die anderen User auch nicht, als ob 4Images die User-tables überschrieben hat.

Aber Murphys Gesetz hat soeben zugeschlagen und meinen Hoster "Puretec" komplett lahm gelegt. Dabei hat´s auch meine DB erwischt, also musste ich ein BackUp von heute morgen aufspielen. Glück im Unglück ;-)

Ist das den mit Deiner Galerie möglich, die beschriebene Funktion ins vBB einzubauen?

Gruss Robby
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 20, 2002, 04:06:14 PM
Die Galerie läuft weiterhin eigenständig. Nach der Integration können jedoch im Forum registrierte User sich ebenfalls mit den gleichen Daten bei 4images einloggen.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ZeroCL on November 20, 2002, 04:13:31 PM
Quote from: Jan
Die Galerie läuft weiterhin eigenständig. Nach der Integration können jedoch im Forum registrierte User sich ebenfalls mit den gleichen Daten bei 4images einloggen.

Jan


Hab ich mir nach der Einrichtung fast gedacht. Schade, denn an sich ist die Galerie sehr gut. Aber ich brauch halt eine komplett integrierte Version.

Trotzdem THx für die Hilfe.

Gruss Robby
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 20, 2002, 04:42:06 PM
Quote from: Jan
@X-Fan:
if you copied all data excatly from one to the other server it should work. Maybe you lost any data or something. Really hard to say from here.


No data was lost, Jan.  As I said, the gallery works perfectly for me - I can see every category and image.

So why, if I've got categories and images set to allow users to see them, can I see them but registered users cannot?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 20, 2002, 04:50:31 PM
Check the user level constants in includes/constants.php
Code: [Select]
define('GUEST', -1);
define('USER_AWAITING', 1);
define('USER', 2);
define('ADMIN', 9);

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 20, 2002, 05:01:24 PM
Quote from: Jan
Check the user level constants in includes/constants.php
Code: [Select]
define('GUEST', -1);
define('USER_AWAITING', 1);
define('USER', 2);
define('ADMIN', 9);

Jan


Having installed the vBulletin integration mod, I've got (as per the Installation.txt):

// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 20, 2002, 06:35:51 PM
Uhmm...no further idea, sorry.  :?:

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 21, 2002, 01:18:00 AM
Quote from: Jan
Uhmm...no further idea, sorry.  :?:


Definitely not what I was hoping to hear. :cry:
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 23, 2002, 04:54:21 AM
Okay, I think I may have discovered what the problem is, and it's a similar problem to one I had before that you managed to fix up, Jan.

On my 4images gallery, its showing 19 total users online - 19 members and 0 guests.  However, the actual total users online is 50 - 26 members and 24 guests.

So what needs to be done to fix this up?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Knux02 on November 24, 2002, 01:05:35 AM
I keep on getting:

Code: [Select]

DB Error: Bad SQL Query: SELECT template FROM VB_TEMPLATE_TABLE WHERE title='options'
Table 'knux02_vB.VB_TEMPLATE_TABLE' doesn't exist


Also I don't have the prefix VB in my database it is just the charaters...
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 24, 2002, 10:41:58 AM
Check if this entry is in your sessions.php
Code: [Select]
define('VB_TEMPLATE_TABLE', 'template');
Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on November 24, 2002, 11:23:29 AM
Jan, could you please remind me how to fix the users online glitch, as its happening again and I think it might be connected to the other problem I was having of members not being able to see the categories/images in the gallery.

Thanks,
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Knux02 on November 24, 2002, 03:48:25 PM
Quote from: Jan
Check if this entry is in your sessions.php
Code: [Select]
define('VB_TEMPLATE_TABLE', 'template');
Jan


Yes it is...
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on November 24, 2002, 08:43:09 PM
Uhmm...strange. Try to replace
Code: [Select]
$optionstemp = $site_db->query_firstrow("SELECT template FROM ".VB_TEMPLATE_TABLE." WHERE title='options'");
with
Code: [Select]
$optionstemp = $site_db->query_firstrow("SELECT template FROM template WHERE title='options'");
in sessions.php

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Vb2-Fan on December 03, 2002, 12:06:05 AM
I Love You Jan

thaaaaaaaaaaaaanx a million for such a greaaaaaaaaat integration...

i'll try it out and post my comments...
just couldn't wait to Thaaaaaaaaaaaaaank you.

Regards.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Vb2-Fan on December 04, 2002, 06:29:39 PM
WORKED[/size]

i've made an upgrade from 1.6 --> 1.7
then followed the detailed instructions in the hack...
and although i made the integration on an EXISTING and WORKING gallery, it WORKED ...

i had to manually modify the UserIDs of the images to reflect to the original VB users...thank god they were not allot... :lol:

any how...i fired the galley now live and it's working perfectly so far..
if i had any troubles i'll post it here..

THAAAANX A MILLIOOOOON JAN.....YoU ArE ThE MaN :)
Title: Re: Permission problems
Post by: X-Fan on December 31, 2002, 01:44:59 AM
Quote from: Jan
Quote from: goyo
What should I do ?
Create a custom usergroup for moderators in 4homepage ?

Yes.


Jan, I'm still having problems with moderators and staff at my site unable to view the gallery.  I know it comes down to having to create new usergroups in 4images, but how do you have, say a custom moderators group in 4images knowing which vBulletin members are moderators?

Also in an earlier post you mentioned an edited auth.php file, but it's not in the zip in the first post of this thread.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on December 31, 2002, 02:43:21 AM
One other thing Jan, when I go to edit the preferences of a custom usergroup, I get no checkboxes on the page so I'm unable to change anything.  I think it's due to my having 482 categories that all get displayed on the page.

Is there any way to be able to change a custom usergroups preferences across all categories at once, without the admin loading up the list of categories?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on December 31, 2002, 09:37:11 AM
No, sorry.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on January 01, 2003, 12:14:55 AM
Quote from: Jan
No, sorry.


So basically you're saying I'm stuck with usergroups that can't view the gallery because there's no way for me to set the permissions of custom usergroups?  8O
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 02, 2003, 04:57:15 AM
No, i meant that you can't edit petmissions across all categories. You have to edit each usergroup and category step by step.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on January 02, 2003, 12:42:12 PM
Quote from: Jan
No, i meant that you can't edit petmissions across all categories. You have to edit each usergroup and category step by step.


But that's the problem, Jan.  When I go to access a permissions page for a custom usergroup I've created, I get a page with my 480+ categories listed but no checkboxes are visible, so I can't change anything.  :(
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 03, 2003, 10:35:22 AM
Edit a category first and set some permissions ("View Category", "View Image") to "Private".

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: junior on January 03, 2003, 11:49:16 AM
I've got a 1400 Member Vb Forum and I've installed 4Images .. when I installed the hack to integrate both on going to www.cruiseirl.com/gallery I get the following

DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'gallery.template' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash, lastactivity, host, userid FROM session WHERE sessionhash = '6853632494be328fbd44933a86393137' AND host = '193.120.24.36'
Table 'gallery.session' doesn't exist

DB Error: Bad SQL Query: DELETE FROM session WHERE lastactivity < 1041591269
Table 'gallery.session' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash FROM session
Table 'gallery.session' doesn't exist

DB Error: Bad SQL Query: SELECT u.*, l.* FROM user u, 4images_lightboxes l WHERE u.userid = 1 AND l.user_id = u.userid
Table 'gallery.user' doesn't exist

DB Error: Bad SQL Query: SELECT * FROM user WHERE userid = 1
Table 'gallery.user' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash FROM session WHERE sessionhash = '7199ce79ea28c6c97777caadec97bdf1'
Table 'gallery.session' doesn't exist

Warning: Supplied argument is not a valid MySQL result resource in /var/www/cruiseirl.com/gallery/includes/db_mysql.php on line 164

DB Error: Bad SQL Query: INSERT INTO session (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('7199ce79ea28c6c97777caadec97bdf1', 0, '193.120.24.36', '', 1041591269, 'index.php', '0')
Table 'gallery.session' doesn't exist

DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN user u ON (u.userid = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY RAND()
Table 'gallery.user' doesn't exist

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM 4images_images i, 4images_categories c LEFT JOIN user u ON (u.userid = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1) ORDER BY i.image_date DESC LIMIT 3
Table 'gallery.user' doesn't exist

Warning: Supplied argument is not a valid MySQL result resource in /var/www/cruiseirl.com/gallery/includes/db_mysql.php on line 116

 
Any Ideas on a solution ?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on January 03, 2003, 11:54:07 AM
Check the first page or two of this thread - I remember seeing someone else with a similar problem!
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on January 03, 2003, 12:24:46 PM
Quote from: Jan
Edit a category first and set some permissions ("View Category", "View Image") to "Private".


Okay, now I get check boxes for the two permissions in the one category that I changed.  But now they're set to something other than what I need them to be so I had to change them back, which also prevents me from editing the settings.  What can I do?

This may be an okay method for sites with only a handful of categories, but my gallery has 482 categories.  Surely there has to be an easier way to change them rather than going through them one by one?  That would take me forever on a 56k connection! :(

Please, Jan, there must be an easier and less time-consuming way.  There's no way I can go through 482 categories one by one to change settings, then edit usergroup permissions, then change settings back for each one!  8O
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: junior on January 03, 2003, 03:59:44 PM
The answer that person got doesn't apply they were using 1.6 I'm using 1.7
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 03, 2003, 06:50:11 PM
Are you sure that all tables are in the same database?

Jan
Title: Login - Problem
Post by: Markus on January 09, 2003, 10:59:24 AM
Zuerst das große Lob: 4images ist der ABSOLUTE MEGAHAMMER - und durch die Intgration in vBulletin ein 100%ige Steigerung des Nutzens meiner Community! Vielen Dank dafür - fantastisch!

Nach dem Aufsetzen von 4images 1.7 und Integration nach Anleitung in vB 2.0.3 habe ich Probleme mit den Cookies/Login. Da sich mein 4images noch in einem geschlossenen Bereich befindet, hier nur pseudo-Domains (JAN, wenn Du sie brauchst, nenne ich Dir die richtigen IPs).
Folgende verschiedene Pfade habe ich verwendet (und die 4images-Scripte umkopiert), "Museum" steht für 4images:

Version 1:
http://123.123.123.123/forum/
http://123.123.123.123/museum/

In sessions.php steht: http://123.123.123.123/forum/

Version 2:
http://www.forumdomain.de/
http://www.forumdomain.de/museum/

in sessions.php steht: http://www.forumdomain.de/

Mein Forum starte ich immer über http://www.forumdomain.de, die URL zeigt dann auf http://123.123.123.123/forum/

Problem:
Wenn ich vom Forum komme und 4images aufrufe, ist alles ok, ich bin als der Admin eingeloggt, und darf alles.
Wenn ich mich in 4images versuche als der vB-Admin einzuloggen, kommt das vb-Fenster mit der Meldung
"Sie haben sich erfolgreich eingeloggt, ." OHNE NAMEN
Danach landet die vB-Weiterleitung im Forum, nicht im Museum.

In den Kommentaren zu Bildern führen die Links bei "Profil" und "Homepage" Pfade zu 4images, nicht zu den entsprechenden Seiten im vB. Das "Kontrollzentrum" dagegen funktioniert und zeigt auf die entsprechende vB-Seite..

Ok, diese Fehler wurden in diesem Thema schon beschrieben, aber leider sehe ich nicht die Lösung für mein Problem.
Ich habe die sessions.php immer angepasst, auch die Pfade zu meinen *.php3 (!!!) Scripten von vB.

Was ist der Knackpunkt? Die vb-Version (2.0.3), die php3-Scripte im vB?
Hätte ich noch user in 4images anlegen müssen? Da habe ich nichts dran konfiguriert.

Ideen?
Beste Grüße und vielen Dank im voraus!
Markus
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: junior on January 09, 2003, 11:21:37 AM
Can someone who has done this integration mail me off forum please to junior@cruiseirl.com.

Cheers
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on January 09, 2003, 11:32:48 AM
Jan, any ideas as to how you can help me solve my dilemma, please?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 09, 2003, 02:37:48 PM
Nach der Integration kannst Du Dich leider nicht mer direkt im CP von 4images anmelden. Du musst Dich über die Galerie bzw. das Forum anmelden und dann in der Galerie unten auf "Control Panel" klicken.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Markus on January 09, 2003, 03:43:27 PM
Quote from: Jan
Nach der Integration kannst Du Dich leider nicht mer direkt im CP von 4images anmelden. Du musst Dich über die Galerie bzw. das Forum anmelden und dann in der Galerie unten auf "Control Panel" klicken.
Ähem - war das eine Antwort auf meine Frage?

Falls ja - das mit dem CP-Login habe ich verstanden.

Bei mir geht es um das normale User-Login. Und da ich nunmal im Forum der "Chef", also Administrator bin, versuche ich mich mit Benutzernamen/Passwd. in der Galerie normal anzumelden. Und dann passiert das o. Geschriebene:

- Login leitet OHNE NAMEN ins Forum weiter
- in Kommentaren in 4images leiten die Links am Kommentar für "Profil"/"Homepage" der Benutzer, die die Kommentare geschrieben haben, zu meiner installierten 4Images-Galerie, nicht jedoch zum "vB-Profil" und der Homepage des Benutzers weiter...

Oder war Deine Antwort gar nicht für mich gedacht?
Danke und liebe Grüße
Markus
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 09, 2003, 04:46:44 PM
Doch, doch. Ich hab die Frage nur falsch verstanden ;)

1. Hast Du das Template user_loginform.html ersetzt?

2. Was heisst sie leiten in die Galerie weiter? Schau Dir mal den Quelltext an, was steht dort? Wenn href leer ist, könnte es sein, dass was in Deine Templates schief gelaufen ist. Evtl. hast Du beim Update vergessen, dass Template comment_bit.html  zu aktualiseren.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Markus on January 09, 2003, 07:33:09 PM
S U U U U U P E R ...

Dummheit muss bestraft werden. Zwar hatte ich das user_loginform.html anleitungsgemäß ersetzt, dann aber wieder durch andere Templates hier aus dem Forum überschrieben...

Das Gleiche gilt für das Template comment_bit.html - hier hatte ich eine abgeänderte Version aus dem Forum verwendet - die war wohl noch für 1.6 oder so, obwohl 1.7 dranstand... Habe "User-Profil" und "Homepage" ersetzt und jetzt funkt's!!!!

KLASSE - DANKE!!!

So, jetzt der Vollständigkeithalber noch ein paar kurze Fragen:

- Das "online_img" und die whois_online_liste stimmt nicht ganz mit dem Ausloggen überein. Man bleibt trotzdem noch 15 Minuten online. Das soll aber so sein? ;)

- in welcher php-Datei wird der clickpath zusammengesetzt? Ich hätte lieber ein ">" statt "/" ...

- wo wird das alt="xxx at yourdomain" der User-eMail-Info in den Kommentaren geschrieben? Das möchte ich entfernen, in vBulletin gibt's das auch nicht...

- und sehe ich es richtig, dass
error.html,
register.html
und alle member.html
NIEMALS nach Integration in vB aufgerufen werden? Dann brauche ich die Templates nicht anzufassen....

NOCHMALS EIN RIESIGES DANKESCHÖN - EXTREM SCHICK!

Markus
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 09, 2003, 09:01:58 PM
Quote
Das "online_img" und die whois_online_liste stimmt nicht ganz mit dem Ausloggen überein. Man bleibt trotzdem noch 15 Minuten online. Das soll aber so sein? ;)

Ja, bis die Session verfällt und aus der Session Tabelle gelöscht wird.

Quote
- in welcher php-Datei wird der clickpath zusammengesetzt? Ich hätte lieber ein ">" statt "/" ...

Das kannst Du in den Einstellungen ändern: "Zeichen zur Trennung der Kategorien in den Kategoriepfaden"

Quote
- wo wird das alt="xxx at yourdomain" der User-eMail-Info in den Kommentaren geschrieben? Das möchte ich entfernen, in vBulletin gibt's das auch nicht...

details.php:
Code: [Select]
$comment_user_email_button = "<a href=\"".$comment_user_mailform_link."\"><img src=\"".get_gallery_image("email.gif")."\" border=\"0\" alt=\"".$comment_user_email_save."\" /></a>";

Quote
- und sehe ich es richtig, dass
error.html,
register.html
und alle member.html
NIEMALS nach Integration in vB aufgerufen werden? Dann brauche ich die Templates nicht anzufassen....

Ja

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Markus on January 09, 2003, 11:49:09 PM
Noch was - ich weiß, langsam nerve ich und Deine Zeit ist bestimmt knapp. Aber die vB-Integration ist an sich sooooo goil, dass sie auch klappen soll.

Ich habe manchmal, z.B. nach einem mißlungenen Upload (s.o.) das Ergebnis, dass ich ausgeloggt bin. Kann das wieder ein "veraltetes Template" sein... (habe abgeänderte übernommen und kann leider nicht direkt mit den 1.7ern vergleichen...).
Das große Problem daran ist nicht das Ausgeloggt sein an sich, sondern dass ich dann beim Einloggversuch wieder zum vB statt zu 4images geleitet werde...

Soweit zu den Vermutungen, jetzt noch eine konkrete Frage:

Ist meine Konstallation:

www.forumdomain.de für's vB
und
www.forumdomain.de/museum/ für 4images
empfehlenswert oder handle ich mir damit Ärger mit den Cookies/Login ein?

Und könnte ich eine
www.museumdomain.de auf www.forumdomain.de/museum/
zeigen lassen, oder gibt dass auch Ärger?

Mist, ich wollte Dich eigentlich schon in Ruhe lassen...
Jetzt aber gute Nacht - DANKE!
Markus
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan 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.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: KSA on January 10, 2003, 07:30:10 PM
please   Demo
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: abaum 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.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Markus 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
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: abaum 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...
Title: Validating Images Problem
Post by: dr_boom 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!
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan 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
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: dr_boom on January 16, 2003, 04:57:12 PM
AWESOME Jan!!
Works fine now... THANK YOU!! ;)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Markus 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
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 16, 2003, 11:15:51 PM
Eigentlich wird man in 4images nur dann ausgeloggt, wenn 15min. keine Aktion erfolgt ist.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Markus 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
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 16, 2003, 11:42:45 PM
Ja ;)

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Floh 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
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: dr_boom 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!!!
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on January 29, 2003, 11:07:34 PM
Yes, sure. If you have some skills in PHP and MySQL ;)

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: dr_boom on January 29, 2003, 11:21:33 PM
Actually I don't :( And that's why I posted here in case someone could code that for me and anyone else that may be interested.

Anyone???
Title: Fernzugriff?
Post by: Brain Crusher on February 08, 2003, 06:21:19 PM
Ist es möglich, auf die daten von "fremden" Seiten zuzugreifen?

Zwecks besserer Statistiken/Trafficauswertung habe ich für mein vbb forum ein account und für meine 2 verschiedenen seiten vor, 2x 4images zu installieren....ich möchte das forum aber für beide seiten nutzen, ist das forum mit diesen plugin/hack denn in der lage von beiden 4images seiten zuzugreifen?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 10, 2003, 11:10:36 AM
In der Ingegrationsanleitung steht:

Quote
3. Öffne sessions.php und passe den Konfigurationsteil am
     Dateianfang an.


Bin absoluter Newbie auf dem Gebiet. Könnt ihr mir sagen, was und wo ich es genau in dieser Datei anpassen muss?

Danke schon mal
Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 10, 2003, 04:55:37 PM
Ihr habt das doch alle schon installiert, einer muss das doch wissen?

Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on February 10, 2003, 10:43:50 PM
Na, zwischen
Code: [Select]
//-----------------------------------------------------
//--- Start Configuration -----------------------------
//-----------------------------------------------------

und
Code: [Select]
//-----------------------------------------------------
//--- End Configuration -------------------------------
//-----------------------------------------------------

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 11, 2003, 12:55:44 PM
Hallo Jan,

das ist der Teil aus der session.php von der Integrationsdatei, aber ich weiß trotzdem nicht, was ich genau ändern/eintragen soll. Es steht doch schon alles da?
Ich sagte doch, bin Newbie und würde gerne dazu lernen, möchte aber auch nichts falsches machen.
Kannst du mir die kurze Nachhilfe bitte geben.

Mandy

Code: [Select]
Start Configuration -----------------------------
//-----------------------------------------------------

// Define here the name of the session. Default of phpBB is "sid".
define('SESSION_NAME', 'sid');

// Define here the name of the banlist and config database tables.
// Maybe you only need to change the table prefix if you another
// than the phpBB default "phpbb_".
define('PHPBB_BANLIST_TABLE', 'phpbb_banlist');
define('PHPBB_CONFIG_TABLE', 'phpbb_config');

// Set her the corresponding database fields of the user table.
// If there is no corresponding field in the new user table,
// leave the value blank. Normally no need to change.
$user_table_fields = array(
  "user_id" => "user_id",
  "user_level" => "user_level",
  "user_name" => "username",
  "user_password" => "user_password",
  "user_email" => "user_email",
  "user_showemail" => "user_viewemail",
  "user_allowemails" => "",
  "user_invisible" => "user_allow_viewonline",
  "user_joindate" => "user_regdate",
  "user_activationkey" => "user_actkey",
  "user_lastaction" => "user_session_time",
  "user_location" => "user_session_page",
  "user_lastvisit" => "user_lastvisit",
  "user_comments" => "",
  "user_homepage" => "user_website",
  "user_icq" => "user_icq"
);

// Set here the URL to your phpBB forum. WITH trailing slash!
$url_app           = "http://www.4homepages.de/forum/;"

// Set here different URL's to your phpBB forum.
// Normally no need to change.
$url_register      = $url_app."profile.php?mode=register";
$url_lost_password = $url_app."profile.php?mode=sendpassword";
$url_control_panel = $url_app."profile.php?mode=editprofile";
$url_mailform      = $url_app."profile.php?mode=email&u={user_id}";
$url_show_profile  = $url_app."profile.php?mode=viewprofile&u={user_id}";
$url_login         = $url_app."login.php";
$url_logout        = $url_app."login.php?logout=true";

//-----------------------------------------------------
//--- End Configuration
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 12, 2003, 06:39:12 AM
Jan,

meine Frage ist dir sicherlich zu blöd, aber ich brauche trotzdem eine Antwort. Wie muss es am Ende aussehen?

Mady  :oops:
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Maweryk on February 12, 2003, 11:45:01 AM
@Mandy: Zwischen Start Configuration und End Configuration wird Dir doch genau erklärt, was Du gegebenenfalls ändern musst.
Hier z.B.:
// Set here the URL to your phpBB forum. WITH trailing slash!
$url_app           = "http://www.4homepages.de/forum/;"

Da ich kaum glaube, dass so Deine phpbb Forumsadresse aussieht, musst Du hier natürlich Deine Adresse eingeben.

Die anderen Punkte sind dementsprechend auch noch Deiner Konfiguration anzupassen und dann sollte alles funktionieren.

Gruß

Markus
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 12, 2003, 12:45:44 PM
Das war auch der einzige Punkt, den ich selbst verstanden habe, bei den anderen sehe ich nicht durch.

Sorry
Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Maweryk on February 12, 2003, 01:01:57 PM
Also Mandy.
Das phpbb-Forum hast Du ja bestimmt schon installiert und bei der Installation mit Sicherheit alles so gelassen, wie man es Dir vorgegeben hat, oder?
Wenn dem so ist, dann musst Du außer der URL nix mehr verändern.

Gruß

Markus
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 12, 2003, 01:21:27 PM
Ich habe es jetzt geschafft und man kann sich über einen link im Album einloggen, ohne sich extra noch einmal anzumelden. Prima! Uff.

Nun habe ich noch folgendes Problem. Wenn man sich über das Album ausloggt, kommt man direkt zur Indexseite des Forums. Allerdings sind dort dann sämtliche Bilder und Grafiken weg.

Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Maddrax on February 17, 2003, 08:19:02 PM
Quote from: Floh
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


Genau das gleiche Problem habe ich auch, zwar nur bei Gästen, aber stören tut es schon.
Momentan 5 x und 3 x gleicher User in "Who is Online" vom vB.

Und hier der Link zur Gallery sowie zum Board:
Gallery (http://www.communication-zone.de/gallery/index.php)
Board (http://www,communication-zone.de/board)

@Jan
Klasse Script ^^
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 18, 2003, 08:00:16 PM
Hmm, schade.
Weiß wirklich niemand eine Antwort darauf?

Woran kann es eigentlich liegen, dass sich ein User nicht einloggen kann. Er landet immer auf der Eingabemaske und dann in das Forum, wo dann wiederum die Buttons und Grafiken weg sind.

Würde mich sehr über Hilfe freuen.

Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on February 18, 2003, 09:01:44 PM
Hast Du das Template user_loginform.html ersetzt?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 18, 2003, 09:33:39 PM
Wenn du das meinst in: 4images/templates/default , dann habe ich es ersetzt.

Das Problem besteht auch nur bei einem User.

Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on February 18, 2003, 10:37:19 PM
Und der User kann sich übers Formular des Forums einloggen?

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 18, 2003, 10:45:03 PM
Nein, das kann er auch nicht, dann landet er immer auf der index-Site des Forums und dort sind dann aber sämtliche Grafiken verschwunden.
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on February 18, 2003, 10:47:10 PM
Hmm...dann liegts auf jeden Fall nicht an 4images. Kann ich Dir leider nicht weiterhelfen.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 18, 2003, 10:53:04 PM
Ich hätte aber trotzdem noch eine Frage.

Wie kommt man wieder in das Forum zurück? Wenn ich mich aus dem Album auslogge, dann komme ich auf die Indexseite des Forums, aber dann sind auch sämtliche Grafiken verschwunden und ich kann mich nicht mehr weiterklicken. Bis jetzt funktioniert nur der zurück-Button im Explorer. Gibt es da nicht einen anderen Weg?

Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on February 18, 2003, 10:56:51 PM
Einfach im Forum einen Link zur Galerie einfügen.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 18, 2003, 11:02:41 PM
nein, du hast mich falsch verstanden. Ich meine genau umgekehrt. Den Link habe ich schon, wir kommen auch alle ohne Probleme in das Album rein (außer der eine User), aber wir kommen von dort aus nicht wieder ins Forum zurück.
Es gibt bis jetzt nur den Weg des "Zurück-Buttons" im Explorer, doch das kann doch nicht der richtige Weg sein?

Gruß Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Mandy on February 19, 2003, 10:11:04 AM
ok, ich habe im Album einen Link zum Forum erstellt und jetzt kommt man problemlos zurück.

Noch mal zu dem einen User. Kann es sein, dass er durch AOL Probleme hat, in die Gallerie zu kommen?
Oder sollte er vielleicht mal seine Cookies löschen, gibt es da vielleicht einen Zusammenhang?

Mandy
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on February 19, 2003, 05:47:43 PM
Kann ich mir nicht vorstellen. Aber bei AOL weiss man nie ;)

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Maddrax on February 23, 2003, 07:49:13 PM
Quote from: Maddrax
Quote from: Floh
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


Genau das gleiche Problem habe ich auch, zwar nur bei Gästen, aber stören tut es schon.
Momentan 5 x und 3 x gleicher User in "Who is Online" vom vB.


Um noch mal darauf zurück zukommen.
vor 3 Tagen ist mein "Who is Online"-Rekord auf unglaubliche 428 User gesprungen. Und das nur durch die mehrfache Anzeige des gleichen Users (bei fast allen Usern die in der Image-Gallery sind).
Vielleicht gibt es ja ne Lösung für dieses Problem.

MfG Maddrax
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Maddrax on March 02, 2003, 06:09:16 PM
Ich hab da noch ne andere Frage.
Kann man Moderatoren aus dem vB Zugriff aufs CP der Gallery gewähren ?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on March 03, 2003, 08:35:16 AM
Nein, nur Administratoren haben Zugriff.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Maddrax on March 03, 2003, 01:31:43 PM
Danke für deine Antwort.
Aber das habe ich ja schon fest gestellt.

Ich wollt wissen ob es eine Möglichkeit gibt, Moderatoren Zugriff aufs CP zugewähren.

MfG Maddrax
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on March 03, 2003, 05:48:39 PM
Natürlich kannst Du 4images anpassen wir Du möchtest ;)

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Rampag3 on March 20, 2003, 12:24:44 AM
I've been looking for this for a very long time. I have vBulletin 2.2.8

I downloaded 1.7 and the intergration intructions

sessions.php (Edited)
user_loginform.html (Changed)
constants.php (Edited)

vbulletin - www.site.com/forums/
4images - www.site.com/forums/4images/

All files have been uploaded.

I have not installed 4images yet.

Before I installed it I wanted to make sure there isn't anything that I have forgot.

Some questions:
1.I have more uergroups then the normal ones, so is there anything else that I need to update/change?
2. I don't want vistors/guest to be able to view gallery, how do I do that?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on March 20, 2003, 12:56:12 PM
1. Di you mean vBulletin usergroups? That can't be used for 4images. You have to add separate usergroups for 4images.

2. Just set the appropriate permissions per category.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Rampag3 on March 20, 2003, 10:40:49 PM
I've been looking for this all over and haven't found it any where.
What version of GD is 4images compaitble with?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on March 20, 2003, 10:47:43 PM
All versions. But thats offtopic here ;)

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: KleinerDrache on March 23, 2003, 04:49:03 PM
Hab mir das eben mal gezogen und mir die Anleitung durchgelesen.
Möchte nur nochmal die Bestätigung haben das ich ein Problem habe wenn ich schon über 300 Bilder in der Galerie habe und über 30 Mitglieder!

Habe ich das richtig verstanden? Denn dann brauche ich mir die Arbeit nicht machen....
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on March 24, 2003, 03:17:34 PM
Ja, Problem bestätigt ;)

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on March 25, 2003, 09:57:49 AM
Quote from: Jan
2. Just set the appropriate permissions per category.


I would if I could, Jan, but I'm still having that same problem - on the permissions page, there is nothing under the various headings, just a non-breaking space, so I can't adjust the various permissions for the usergroups I've created.

I'm still desperately needing help resolving this!!!

Also, how does 4images know what usergroups correspond to the vBulletin usergroups?  Do the usergroup ID's have to match, or does it depend on the usergroup name?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ParaNike on March 25, 2003, 02:21:25 PM
Ich dachte schon ich wäre der Eeinzige mit dem Problem. Ich hab zu fast jedem Besucher auch immer einen Gast im Forum, also wird der Benutzer doppelt gezählt.
Ich hab vBulletin und ich finde das recht störend, weil nun die Rekorde immer gebrochen werden, ohne dass es wirklich einer war!

Kann uns da nicht mal einer helfen??? BITEEEEE!!! :)

Quote from: Maddrax
Quote from: Floh
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


Genau das gleiche Problem habe ich auch, zwar nur bei Gästen, aber stören tut es schon.
Momentan 5 x und 3 x gleicher User in "Who is Online" vom vB.

Und hier der Link zur Gallery sowie zum Board:
Gallery (http://www.communication-zone.de/gallery/index.php)
Board (http://www,communication-zone.de/board)

@Jan
Klasse Script ^^
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ParaNike on March 25, 2003, 04:50:50 PM
Ich weiß evt woran das liegt! Hab ich gerade rausgefunden. Ich include bei mir auf der Startseite von 4images einen Newsscript. Dieser Newscript bezieht seine Daten aus der Datenbank des Forums. Die Geisteruster bei mir im Who ist Online tauchen nämlich immer mit der Adressierung dieses Scriptes auf. Damit wäre auch geklärt, warum die Geisteruser die IP des Servers haben.

Ich denke mal, dass durch das Includen ein User durch den Server verursacht wird. Ich weiß aber nicht, wie ich das verhindern kann!
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on March 26, 2003, 01:58:14 PM
@X-Fan:
Usergroups in 4images are independend from usergroups in vBulletin. Just create usergroups in 4images, add Users to the groups and set permissions for groups.
Dropdowns at the persmissions screen will appear only, if some actions (View Category, View Image, Download etc.) are set to "Private" for the specific category.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on March 26, 2003, 02:32:46 PM
Quote from: Jan
@X-Fan:
Usergroups in 4images are independend from usergroups in vBulletin. Just create usergroups in 4images, add Users to the groups and set permissions for groups.


Is there a quick and easy way to insert existing members into 4images usergroups?  I've got over 3000 registered members... 8O

Quote
Dropdowns at the persmissions screen will appear only, if some actions (View Category, View Image, Download etc.) are set to "Private" for the specific category.


Ah, okay, so no need to worry if you don't have any Private actions?

Basically, my admins and regular registered members can view the gallery.  However, my mods and staff cannot, so if I just add them to custom usergroups they'll be able to?
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on March 26, 2003, 04:34:24 PM
Why do you want to insert existing users to usergroups? If you set persmisions to "User" or "All", it should work without usergroups.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: X-Fan on March 27, 2003, 11:42:48 AM
Quote from: Jan
Why do you want to insert existing users to usergroups? If you set persmisions to "User" or "All", it should work without usergroups.


Well it's not, which is why I wanted to try adding the users in my VBulletin Moderators and Staff usergroups to same-named usergroups in 4images.

I had all the permissions (except uploading) for all my categories set to Registered Users, but my mods and staff cannot view the categories or images.

I'd really appreciate a solution!
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ParaNike on March 27, 2003, 10:41:55 PM
Bei mir ist ein ganz merkwürdiges Problem aufgetaucht.

Alle User können sich nicht richtig einloggen. Wenn sie sich einloggen, dann dann kommt die Nachricht, dass sie eingeloggt werden, aber nach der Weiterleitung kommt wieder die Startseite mit Loginfeld. Sie sind also nur im Forum, aber nicht bei 4images eingeloggt.

Das komische ist, dass der Fehler nur bei Usern auftaucht, die in der Usergroupe "Registered" sind. Admins können sich hingegen einloggen. Wenn ich die betroffenen User von der Usergroup "Registered" auf "Coppa - awayting moderation" oder Admin oder irgendeine Usergroup stelle, die ich in vBulletin neu erstelle, dann können sie sich einloggen. ALso liegt der Fehler irgendwie bei den Usergroups, ich weiß aber nicht wo! Anscheinent wird die Usergroup mit der ID=2 also Registered, nicht akzeptiert.

Kann mir da einer helfen???
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ParaNike on March 28, 2003, 11:08:58 AM
Ok I will try to explain my problem in english!

My Gallary is on www.digitaldreamer.de and I have a problem with it. I am the admin and I have no problems to login, but all my registered users are not able to login. It is very strange, because if I change the usergroup of a user, who can't login, to COPPA for example, he can login. I think that the Problem is based on the usergroups. That means that users in the vBulletin usergroup "Registered" are not able to login, but users with the usergroup "(COPPA) Awayting moderation" can login.

Here is a username, try to login on www.digitaldreamer.de and see, what my problem is:

User: Marcel
Pass: marcel

It comes the vBulletin message that your login is success, but your aren't logged in.

Please help me!
Title: HILFE!!! admin-funktion weg.....
Post by: medianaut on April 07, 2003, 10:41:36 AM
:!:  :!:  :!:

Habe 4images erfolgreich in PHPbb integriert, nur jetzt ist meine admin-funktion die ich vorher in 4images angelgegt hatte weg!
Wie kann ich denn jetzt 4images administrieren!?!?!? Kategorien anlegen und so....
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: ParaNike on April 07, 2003, 03:15:24 PM
@medianaut

Ich glaub das ist der falsche Thread! PHPbb Integration hat nen eigenen! :)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Koutaru on April 28, 2003, 01:56:55 AM
:) worked great on a clean install of 4images!
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Surfer on May 07, 2003, 01:48:32 PM
Hi,

I have a few questions...

Will this integration hack become a standard feature of 4images?

Your installation note says that 4images and vBulletin tables must be in the same database. Is it possible to modify this mod so that I can use a seperate database for 4images?

If I install this mod, will I be able to upgrade to future versions of 4images?

thanks

:)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on May 08, 2003, 05:03:43 PM
Quote
Will this integration hack become a standard feature of 4images?

No
Quote
Your installation note says that 4images and vBulletin tables must be in the same database. Is it possible to modify this mod so that I can use a seperate database for 4images?

Sure, if you have a little bit knowledge of PHP.
Quote
If I install this mod, will I be able to upgrade to future versions of 4images?

I hope so... ;)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Surfer on May 08, 2003, 05:19:49 PM
Quote from: Jan

Sure, if you have a little bit knowledge of PHP.


Thanks for your reply!

Could you give me some advice on where to start to enable two seperate databases?

Is this integration officially supported? i.e. will you release future version of the integration code for new version of 4images?

Thanks

:)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on May 08, 2003, 05:49:39 PM
You should create a new db object, i.e. (global.php)
Code: [Select]
$site_db_vb = new Db('<host_vb>', '<user_vb>', '<pass_vb'>, '<dbname_vb>');
And change $site_db to $site_db_vb wherever something is read fom the session or user database table.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Surfer on May 08, 2003, 06:20:34 PM
Thanks I will use your method!

Is changing $site_db to $site_db_vb only required in session.php? or are there other files as well?

Thanks

:)
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on May 09, 2003, 08:54:29 AM
Session values are read only in session.php. But user data is read in many other files as well. Maybe you have to split some queries because the query joins for example the comment, image and user table.

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: silver_2000 on June 15, 2003, 03:38:43 AM
Jan

 This is a GREAT product.. I have been using it for some time...

I just upgraded to VB3 beta and am getting erros at the top of the pages

Code: [Select]
DB Error: Bad SQL Query: SELECT s.userid, s.lastactivity, s.host, u.userid, u.usergroupid, u.username, u.invisible FROM session s LEFT JOIN user u ON (u.userid = s.userid) WHERE s.lastactivity >= 1055640484 ORDER BY u.userid ASC, s.host ASC
Unknown column 'u.invisible' in 'field list'


diff error

Code: [Select]
DB Error: Bad SQL Query: SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, c.comment_date, u.usergroupid, u.username, u.email, u.showemail, u.invisible, u.joindate, u.lastactivity, u.homepage, u.icq FROM 4images_comments c LEFT JOIN user u ON (u.userid = c.user_id) WHERE c.image_id = 47 ORDER BY c.comment_date ASC
Unknown column 'u.showemail' in 'field list'


I know its a beta and its brand new...  I just thought I would give you a heads up.  

The 4images is here if you want to look http://www.talonclub.com/4images/index.php

GOOD news is the gallery is still up just slowed down some and pops the error

Thanks in advance
Doug
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on June 15, 2003, 08:58:50 AM
As you can see in the thread title, the integration is written for vBulletin 2.x. It seems that it needs some modifications for 3.x.  I haven't used vBulletin 3,  so i can't help you...

Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: silver_2000 on June 15, 2003, 09:06:22 AM
Quote from: Jan
As you can see in the thread title, the integration is written for vBulletin 2.x. It seems that it needs some modifications for 3.x.  I haven't used vBulletin 3,  so i can't help you...

Jan


Any Plans to do an integration for VB3 ?
If not can you give me a heads up where to look for the fileds missing in the queries ?  Since they dontaffect the display of the pictures perhaps I caqn just remove the queries from the code...

THanks in advance
Doug
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Jan on June 15, 2003, 10:07:53 AM
No, sorry. As i wrote above, i have no copy of vBulletin 3 and can't help you. Just removing the queries from the code will not work...


Jan
Title: Integration 4images 1.7 / vBulletin 2.x
Post by: Hac Nho on June 24, 2003, 01:24:31 AM
Quote from: Jan
As you can see in the thread title, the integration is written for vBulletin 2.x. It seems that it needs some modifications for 3.x.  I haven't used vBulletin 3,  so i can't help you...

Jan


:) it shouldnt be too hard, as the way it was for vb2x integration. I will give it a shot when I get back home :).

Will let you know the result.
Title: Re: Integration 4images 1.7.1 / vBulletin 3.x
Post by: ashzqo on March 11, 2005, 04:31:16 AM
I just wanna know how to Integrate 4images 1.7.1 with vBulletin 3.x  :?: please help me with this.
Title: Re: Integration 4images 1.7 / vBulletin 2.x
Post by: dopegirlfresh on March 21, 2005, 04:32:40 PM
I have 3.0.7- lookin to add 4images... any news?
Title: Re: Integration 4images 1.7.1 / vBulletin 3.x
Post by: Hac Nho on March 22, 2005, 11:17:09 PM
I just wanna know how to Integrate 4images 1.7.1 with vBulletin 3.x  :?: please help me with this.

This might be what you are looking for.

http://www.vbulletin.org/forum/showthread.php?t=66335


still need some more bugfix, but it worked fine with 1.7
Title: Re: Integration 4images 1.7 / vBulletin 2.x
Post by: JeffA on May 05, 2005, 02:42:51 AM
I have a problem with mine,
I get the error:

Code: [Select]
DB Error: Bad SQL Query: SELECT a.cat_id, a.auth_viewcat, a.auth_viewimage, a.auth_download, a.auth_upload, a.auth_directupload, a.auth_vote, a.auth_sendpostcard, a.auth_readcomment, a.auth_postcomment FROM 4images_groupaccess a, 4images_groupmatch m WHERE m.user_id = AND a.group_id = m.group_id AND m.groupmatch_startdate <= 1115253667 AND (groupmatch_enddate > 1115253667 OR groupmatch_enddate = 0)
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND a.group_id = m.group_id AND m.groupmatch_start

Fatal error: Call to a member function on a non-object in /home/atlanti/public_html/jeff/skylinegt/gallery/includes/page_header.php on line 94

Would it be because my gallery and forum are not in the same folder or something like that?

My gallery is at /gallery and my forum is /forum

4image v1.7
vb 2.2.9

Thanks
Title: Re: Integration 4images 1.7 / vBulletin 2.x
Post by: Jeevan25 on August 05, 2005, 06:37:36 AM
help.
i get this error.
Code: [Select]
DB Error: Bad SQL Query: SELECT s.userid, s.lastactivity, s.host, u.userid, u.usergroupid, u.username, u.invisible FROM session s LEFT JOIN user u ON (u.userid = s.userid) WHERE s.lastactivity >= 1123215630 ORDER BY u.userid ASC, s.host ASC
Unknown column 'u.invisible' in 'field list'
pls help thanks. i am using vbulletin version 3.0.7

also when i login from the forum, i am not logged in the gallery. when i login to gallery i am taken to a login page in the forum.
Title: Re: Integration 4images 1.7 / vBulletin 2.x
Post by: Stoleti on March 24, 2006, 05:38:33 AM
its possible use it taken comments from especific thread and make it work in home (4images) ?

screenshot below
Title: Re: Integration 4images 1.7 / vBulletin 2.x
Post by: WoD on October 02, 2006, 06:27:46 PM
Does the hack work with vB3.61 too? Because I do not like to mess up my website if it does not work together.
Title: Re: Integration 4images 1.7 / vBulletin 2.x
Post by: Stoleti on October 13, 2006, 12:09:25 AM
Does the hack work with vB3.61 too? Because I do not like to mess up my website if it does not work together.

Nice question, i'm wondering about the same  :oops: