Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
4images Gallery 1.7 + vB 3.0.x (update Oct 30) Details »»
4images Gallery 1.7 + vB 3.0.x (update Oct 30)
Version: 1.00, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.0.9 Rating:
Released: 06-19-2004 Last Update: 10-29-2004 Installs: 217
 
No support by the author.

Since Matrixgl didnt give much update over his post, so I make this release, with all the changes:
https://vborg.vbsupport.ru/showthread.php?t=62020
Original copyright go to 4images owner Jan Sorgalla

=============================================
Integration 4images 1.7 / vBulletin 3.0.x
=============================================
Copyright: (C) 2002 Jan Sorgalla
Integration to vBulletin 2.x by Jan
Integration to vBulletin 3.0.1 by mtha
Constribution:
Matrixgl for re-organize the hack
d1635d for adding the fix for 3.0.1
all others for comments and suggestions

Hack version: 3.0.1.0625
Compatible vB version: 3.0.1, 3.0.2, 3.0.3. other versions might need minor modifications

FOR integration with vB 3.5.0, check this thread:

https://vborg.vbsupport.ru/showthread.php?t=98640

=============================================
Features:
=============================================
- Use vBulletin's user table instead of 4images.
- Forum's members can access and upload pictures (depends on permissions)
- Forum's admin can administrate the album (unless you do the EXTRA part)
- Display Who is browsing album, in the Forum's WhoisOnline list


=============================================
Changes and modifications
=============================================
4images template to change: 1 (user_loginform.html)
4images file to replace: 1 (sessions.php)
4images file to edit: 3
admin/admin_global.php
includes/constants.php
includes/page_header.php
vBulletin file to edit: 2
forums/includes/functions.php
includes/functions_online.php
Query to run: 0
If you do EXTRA part, there're few queries to run, depends on what you want to do.
=============================================
Requirements:
=============================================
- vBulletin 3.0.x installed and working
- 4images 1.7 fresh installed and working
-
4images and vBulletin are installed to use the SAME database
=============================================
Limitations:
=============================================
- The "Remember username/password?" options only remember sessions for forum. (FIXED 06/22/04 - see update)

- This hack use default usergroup for album level, there're only4levels of Guest, User awaiting, User, Admin. See Extra section attheend for solution
- I didnt look at the "cooke path" and "cookie domain" yet, so it will use the default

Screenshot (thanks to MatrixGL):
https://vborg.vbsupport.ru/attachmen...chmentid=17021

Demo (thanks to MatrixGL):
http://www.randomforum.com/forums/gallery/

NOTE:
You may want to edit your template, in order to have the forum's look and feel .


Previous discussions:
https://vborg.vbsupport.ru/showthread.php?t=62020
http://www.4homepages.de/forum/viewtopic.php?t=10823


Dont forget to click

Update 03/24/2005
If you get error loging out of album:
in page_header.php, line 110

replace
PHP Code:
"url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url(ROOT_PATH."logout.php"), 
by
PHP Code:
"url_logout" =>(!empty($url_logout))?$site_sess->url($url_logout):$site_sess->url($url_app."login.php?do=logout&u=$user_info[user_id]"), 

Update 10/30/2004
Since meny people have problem with vB usergroup, I've add Usergroups arrays,
Now you can set multiple custom user groups to be USER, USER_WAITING, or ADMIN
By default:
Code:
$waitinggroups = array(3, 4); // vB Group should be waiting for moderate. seperate each group by comma
$usergroups = array(2, 7); // Groups that are USERS in album. seperate each group by comma
$admingroups = array(6); // vB groups that are ADMINS in album. seperate each group by comma
Update 10/20/2004
Sincemeny people ignore to config the "VB_TABLE_PREFIX" inconfiguration,I've pull all the prefix into one place, and make STRONGrequest tocheck this one.
If your album works fine, you dont have to update your files.
If you do want to apply the changes, here's where you can check:

constants.php
define('VB_TABLE_PREFIX',''); // your vb tableprefix. vB default is blank
define('SESSIONS_TABLE', VB_TABLE_PREFIX.'session');
define('USERS_TABLE', VB_TABLE_PREFIX.'user');

sessions.php

define('VB_TEMPLATE_TABLE', VB_TABLE_PREFIX.'template');

Update 06/25/2004
Clean up some codes, add some more instructions. Adding constants for Cookie prefix, cookie timeout, album folder ...
If your album works fine, you dont have to update your files.
If you do want to ... work again, just follow all the steps


Update 06/22/04
IF you have "Remember username/password?" problem with album (Album session dont remember your logged in if you go directly to album - installed before 06/22/04)

Edit the attached sessions.php, and replace the VBLICENCE_NUMBER, and upload to your album/include/sessions.php

OR

Manually edit:

In 4images sessions.php

Look for
PHP Code:
 if ($this->read_cookie_data("bbpassword")==$this->user_info['user_password']&&$this->user_info['user_level'] > USER_AWAITING) { 
replace by

PHP Code:
 if ($this->read_cookie_data("bbpassword")==md5($this->user_info['user_password']. 'XXXXXX')&&$this->user_info['user_level'] != USER_AWAITING) { 
CHANGE XXXXXX with your Licence Number, located on top of any of your vB file

NOTE: for those runing into table doesnt exist problem, check your VB_TABLE_PREFIX variable

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #142  
Old 08-29-2004, 07:54 PM
Drache Drache is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool thanks for the reply i am checking. and does this hack support vb 3.03?
Reply With Quote
  #143  
Old 08-30-2004, 01:33 AM
Drache Drache is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet noticed the topic updated that answered my question. it supports 3.03.

Quote:
hacks like that can be found in here: http://www.4homepages.de/forum/viewforum.php?f=15
Caiman I couldn't find the hack that allow to people to view all photo that member uploaded in member's album or profile. could you give me the specify link to the hack? thanks
Reply With Quote
  #144  
Old 09-01-2004, 03:52 PM
Rambo Rambo is offline
 
Join Date: Oct 2003
Location: Scotland, UK
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*clicks install*

Everything seems to be in working order,

I am now trying to figure out how to get it to match with my forum skin hehe :P
Reply With Quote
  #145  
Old 09-02-2004, 04:07 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any idea how to get the header/footer from vbull?
Reply With Quote
  #146  
Old 09-02-2004, 09:39 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I was traveling around Europe last month, didnt have time to go online for supports.

First come first served

Quote:
Originally Posted by Blam Forumz
I'm getting this error :

Code:

DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'blamina_4Img1.template' doesn't exist
....
It does look like you have a different prefix for your table.

try dotcomguy's suggestion and see if it works
https://vborg.vbsupport.ru/showpost....&postcount=124

Quote:
Originally Posted by Blam Forumz
DB Error: Bad SQL Query: SELECT sessionhash FROM session
Table 'blamina_4Img1.session' doesn't exist
Do you have blamina_4Img1.session table? do you have your VB_TABLE_PREFIX being blamina_4Img1?
Did you change this value in constants.php?
define('VB_TABLE_PREFIX',''); // your vb tableprefix. vB default is blank
Please do check them, and it is VB TABLE PREFIX, it is NOT 4images table prefix .... by the way, did you make correction and upload the new constants.php file to 4images folder?


Quote:
Originally Posted by Blam Forumz
I use vBulletin 3.0.2 and I use the latest 4Images
Which version is the LATEST 4Images you have? It only work for 4images 1.7. It may NOT work for 1.8/


Quote:
Originally Posted by Steph2k
Hi, this is a question for those who have installed 4images. Do you have any cookies issues? That was my biggest complaint with photopost. Never could get the cookies to work with vB. I tried to get help on the photopost forums but it just never worked (they made suggestions but nada). People would have to relogin to the gallery, and then when they got back to the forums relogin there. And then some folks could not even log into the gallery (forum members), which makes the gallery pointless for those people.

So any known cookies/session issues ?

Feedback appreciated. Thanks.
Not such a big problem with my board (even I had complains before). I think I have fixed cookie issues (hopefully )

If you do things correctly, you wont have to relogin to gallery (from forum) and vice versa. (however, I did not test will all kind of browsers, so it might still have problems with different browsers. Mine work good with IE, Netscape, Firefox ...

maybe you should give it a try

Quote:
Originally Posted by clio
Hi mtha, I ended up just hard coding the URL in and removing the variable from the template.

But now, I have another problem, a cookie problem.

It's recognizing that I've logged in. But I can't get into the admin.

This was working a when I just installed it about a week ago.

Now, I goto my album:
http://www.learntoquestion.com/class/travels/photos/

and when I login, the form doesn't recognize that I've already logged in and continues to display the login form. It does the same when I try to get into the admin.

Any ideas?

Edit:
This is really weird. Right now it's not working in Safari (1.2.2), a browser for the Mac. I just tried it in Netscape 7.1 for the Mac and it works perfectly fine. WEIRD. Any ideas why?
I dont know much about MAC ... sorry. Does it work with other browsers/OS?


Quote:
Originally Posted by edeab220
I'm a little confused about 4images...
It says in the requirements that prior to installing 4images from this thread I need 4images 1.7 installed. Where do I get this other version, and is that really necessary?
This is an INTEGRATION between 4images gallery and vBulletin 3.0, it is not a new gallery, as you can see. That's why you have to install vB3 and 4Images first, before doing intagration. Links and information should be in the first post or in the instruction file, or it's http://www.4homepages.de
(thanks steph2k to point this out)


Quote:
Originally Posted by steph2k
I'm having the same problem as well.. can't log into admin with vB3.0.3 +4images using IE6 (I know I was able to prior to installing this hack cuz I logged in to check the usergroup IDs to make sure they matched). I just tried in mozilla 1.6 and was able to log ins .
hehe, IE6 is the latest version, isnt it? mine works fine. Did you check the login part in admin file, and remove "secure login" for 4images?


Quote:
Originally Posted by Blam Forumz
Ok, i've checked all of it, still getting the same bloody error
Should I re-install 4Images and see if it makes a difference? or should I just go and use the coppermine ones? which im also getting an error might i add
You should:
- Have your vB3 forum installed and run properly
- Have your 4images gallery installed and run properly (without applying this hack). Fresh installation recommended
- Read and follow instruction CAREFULLY.

Which gallery (4images or coppermine) you should use, that's your preference. Good luck!

Quote:
Originally Posted by deathemperor
hello mtha,
I'd like to have the 4images images display ramdomly in the forumhome, I'm a n00b so please help me with the code ^^
tnx
There IS a hack in 4images forum to do this. You can go there and find the code.

Quote:
Originally Posted by arpy
Ok, I installed 4images and this hack today but I didn't get the "single" login running. When I was changing from board to gallery, often I was logged out. I did some investigation and found and error(?)

PHP Code:
 if ($this->read_cookie_data(COOKIE_PREFIX."password") == md5($this->user_info['user_password'].''VBLICENCE_NUMBER) && $this->user_info['user_level'] != USER_AWAITING) {
          
$this->set_cookie_data(COOKIE_PREFIX."password"$this->user_info['user_password']);
  } 
Does this make sense? If the cookie-PW equals to profileDB-PW*MD5 then replace the Cookie with the PW without MD5???

I have removed the set_cookie statement and now everything seems to be fine...but to be honest, I'm not really sure because nobody else had problems

arpy

[high]* arpy Clicks install [/high]
password in cookie was encoded twice, that's why you need to encode DB password one more time.
That's how mine work anyway, it's good that you find out the solution

Quote:
Originally Posted by boiboi

Quote:
Originally Posted by mtha
I dont see the relationship here, but ... well maybe there's some conflict ... I have no idea what it should be yet.


Just installed this hack yesterday. This error seems unsolved in this thread but here it is again:

When I replace the following in forum/includes/function.php
...
This error shows up:
Parse error: parse error in /home/initial/public_html/forums/includes/functions.php on line 1864

Line 1864:...

It seems like it's totally unrelated, but it's not.
Quote:
Originally Posted by boiboi
Yeah but this guy thinks it has nothing to do with the hack, so just try commenting out the line I mentioned.
Did you have error when install this hack with a fresh version of vB? if it only occures with hacked boards, then I hardly can follow up fixing. If it works when you comment the line out, do it.

Quote:
Originally Posted by hongfire
sweet been looking for something like this. I really want to install it but before i do i have 2 question to ask.

1. Does this support vb 3.03?

2. I've checked your http://www.randomforum.com/forums/gallery/index.php it looks really good. but is it possile to have a option that allow you to view all the photo that member posted? Like when you go to their memer details and you will be able to find all photo or image post by that user.

Looking forward to your reply. Thanks
1. Please read the first port
Hack version: 3.0.1.0625
Compatible vB version: 3.0.1, 3.0.2, 3.0.3. other versions might need minor modifications

2. yes it is posible, but it is not featured in this hack. I think I have mentioned about this once somewhere. Dont remember.

Quote:
Originally Posted by bchawla
any idea how to get the header/footer from vbull?
No. Not for this hack. I wouldnt bother geting header/footer directly from vB.

If you want, you can create a similar header/footer for 4images. It's more template related.

This hack just make 4images and vBulletin work together, not look the same.

it's not too hard to design two template (for forum and 4images) that look the same.

good luck
Reply With Quote
  #147  
Old 09-04-2004, 04:42 PM
Demolition man Demolition man is offline
 
Join Date: Aug 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can log in but i directly log out =/ What can the problem be?
Reply With Quote
  #148  
Old 09-04-2004, 10:23 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thnak you for this mod!
but the gallery seems to be extremely slow on loading. any idea how to debug this ?
Reply With Quote
  #149  
Old 09-05-2004, 01:47 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Demolition man
I can log in but i directly log out =/ What can the problem be?
You meant when you login, you got to the logging in page, but when it comes back to album, you are actually not logged in?

If you read over this thread, I think there're people asking the same thing too.]

The problem would be, you didnt do the integration right. You had the template changed correctly but the files are not correctly setup at some point.

Try to do it agran from a fresh install ... carefully.

Quote:
Thnak you for this mod!
but the gallery seems to be extremely slow on loading. any idea how to debug this ?
The mod has nothing to do with peformance. Did you have your gallery be slow BEFORE having this mod installed?

You should ask over 4images forum for tech support. www.4homepages.de
Reply With Quote
  #150  
Old 09-05-2004, 06:55 PM
Demolition man Demolition man is offline
 
Join Date: Aug 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah thx i had one problem with functions.php if i eddited it with dreamweaver it crashed my forum but works now
Reply With Quote
  #151  
Old 09-12-2004, 08:42 PM
rex_b rex_b is offline
 
Join Date: Jul 2004
Location: LA
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting all kinds of errors. I only got past the first 2 steps and I get these..



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

DB Error: Bad SQL Query: SELECT sessionhash, lastactivity, host, userid FROM VB_TABLE_PREFIXsession WHERE sessionhash = 'da3fdb67cdd62a7bc0d271ce472ad111' AND host = '68.226.130.51'
Table 'rexb2_4images.VB_TABLE_PREFIXsession' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash FROM VB_TABLE_PREFIXsession
Table 'rexb2_4images.VB_TABLE_PREFIXsession' doesn't exist

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

DB Error: Bad SQL Query: SELECT * FROM VB_TABLE_PREFIXuser WHERE userid = 3
Table 'rexb2_4images.VB_TABLE_PREFIXuser' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash FROM VB_TABLE_PREFIXsession WHERE sessionhash = 'f918031efd3c2abcc76f3890c2496299'
Table 'rexb2_4images.VB_TABLE_PREFIXsession' doesn't exist

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rexb2/public_html/4images/includes/db_mysql.php on line 164

DB Error: Bad SQL Query: INSERT INTO VB_TABLE_PREFIXsession (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('f918031efd3c2abcc76f3890c2496299', 0, '68.226.130.51', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; (R1 1.1); .NET CLR 1.1.4322)', 1095024700, '/4images/index.php', '0')
Table 'rexb2_4images.VB_TABLE_PREFIXsession' doesn't exist

DB Error: Bad SQL Query: SELECT s.userid, s.lastactivity, s.host, u.userid, u.usergroupid, u.username FROM VB_TABLE_PREFIXsession s LEFT JOIN VB_TABLE_PREFIXuser u ON (u.userid = s.userid) WHERE s.lastactivity >= 1095022900 ORDER BY u.userid ASC, s.host ASC
Table 'rexb2_4images.VB_TABLE_PREFIXsession' 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 VB_TABLE_PREFIXuser 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 'rexb2_4images.VB_TABLE_PREFIXuser' 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 VB_TABLE_PREFIXuser 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
Table 'rexb2_4images.VB_TABLE_PREFIXuser' doesn't exist

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rexb2/public_html/4images/includes/db_mysql.php on line 116
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05014 seconds
  • Memory Usage 2,373KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_php
  • (19)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete