Author Topic: Integration 4images 1.7 / vBulletin 2.x  (Read 237000 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 #45 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 to the galleries index.

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

Offline cm

  • Newbie
  • *
  • Posts: 14
    • View Profile
I've hacked it
« Reply #46 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

Offline DraX

  • Pre-Newbie
  • Posts: 4
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #47 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.

Offline DraX

  • Pre-Newbie
  • Posts: 4
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #48 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?

Offline Delmonico

  • Newbie
  • *
  • Posts: 10
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #49 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

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / vBulletin 2.x
« Reply #50 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
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline DraX

  • Pre-Newbie
  • Posts: 4
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #51 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.

Offline Delmonico

  • Newbie
  • *
  • Posts: 10
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #52 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

Offline DraX

  • Pre-Newbie
  • Posts: 4
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #53 on: September 28, 2002, 08:37:23 PM »
You're looking for php-nuke and it's plugin modules, actually ;-)

Offline Delmonico

  • Newbie
  • *
  • Posts: 10
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #54 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*

Offline X-Fan

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.comixfan.com/xfan/
Integration 4images 1.7 / vBulletin 2.x
« Reply #55 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).
Eric J. Moreels
ComiX-Fan Editor-in-Chief
e-mail: webmaster@comixfan.cjb.net
Web: http://www.comixfan.com/xfan
AIM: XFan2k

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #56 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/";
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline X-Fan

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.comixfan.com/xfan/
Integration 4images 1.7 / vBulletin 2.x
« Reply #57 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
Eric J. Moreels
ComiX-Fan Editor-in-Chief
e-mail: webmaster@comixfan.cjb.net
Web: http://www.comixfan.com/xfan
AIM: XFan2k

Offline ShaneST

  • Pre-Newbie
  • Posts: 1
    • View Profile
Integration 4images 1.7 / vBulletin 2.x
« Reply #58 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]

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Integration 4images 1.7 / vBulletin 2.x
« Reply #59 on: November 03, 2002, 06:43:54 PM »
Please configure the sessions.php correctly (see Installation.txt).

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