Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Integration: 4images Gallery 1.7.2 + vB 3.5.4 Details »»
User Integration: 4images Gallery 1.7.2 + vB 3.5.4
Version: 1.2, by mtha mtha is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 10-16-2005 Last Update: 04-09-2006 Installs: 73
Uses Plugins
Additional Files  
No support by the author.

=============================================
User Integration 4images 1.7.2 / vBulletin 3.5.x
=============================================

Copyright: ? 2002 Jan Sorgalla
Integration to vBulletin 2.x by Jan Sorgalla ?
Integration to vBulletin 3.0.1 by mtha
Integration to vBulletin 3.5.0 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.5.0.20051117
Compatible with vB 3.5.x and 4images 1.7.2
Translated Versions:
http://www.vbhacks-germany.com/forum...ead.php?t=1969
=============================================
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 file to replace: 5 (sessions.php, constants.php,admin/admin_global.php,templates/default/user_loginform.html)

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.5.0 installed and working
- 4images 1.7 fresh installed and working
-
4images and vBulletin are installed to use the SAME database
=============================================
Limitations:
- This is ONLY users integration. NO template/style integration.
- This hack use default usergroup for album level, there're only 4 levels of Guest, User awaiting, User, Admin. See Extra section at the end for other solution
- I didnt look at the "cooke path" and "cookie domain" yet, so it will use the default

=============================================
Notes before you install
=============================================
1. Back up the files before you edit.

2. 4images tables and vbulletin tables have to be in the same database.

3. If you run 4images and vBulletin under different subdomains,
for example http://4images.domain.com and http://vbulletin.domain.com,
you should use the following setting for vBulletin in

"vBulletin Options -> HTTP Headers and output":

#############################
Cookie Domain = .domain.com
#############################

Dont forget the dot at the beginning, and change domain.com to your domain. If you do not do this, you might experience a login problem.

4. If you delete users, you should delete the user first over the Control Panel of 4images
and after that over the Administration Panel of vBulletin.
This is neccessary to delete/modify all user-related data from the 4images database (images, comments, usergroups).

5. Its is highly recomanded that you use integration only with fresh new installations of 4images because of the following reason:
In the 4images user-table User A has the User-ID "1".
After integration 4images will use the user-table of vBulletin.
There, the User A has the User-ID "2" and User B the User-ID "1".
All images, comments and usergroup memberships are now "owned" by User B.

6. Lot of people are getting logged out after a certain period of time. This could be fixed by changing
"Session timeout in minutes" to "0" in the 4images control panel.
==============================================

==============================================
INSTALLATION (read intergrate-4image-vB35.txt for more detail)
=============================================

-------
Step 1: Edit the included sessions.php

Step 2. Edit the included constants.php

Step 3: Upload the files in UPLOAD folder to your album directory

Step 4: Import Product product-hao_wol_locations.xml from vB 3.5.0 adminCP product manager

-------------------
LOG:

20051117: clean up code, might have some small errors fixed.
20060410: modify for 4images172
-------
The End .

Supporters / CoAuthors

Show Your Support

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

Comments
  #112  
Old 09-26-2006, 06:32 PM
vBFreak's Avatar
vBFreak vBFreak is offline
 
Join Date: Nov 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VViper
I love 4 images and so do the members.

hey has anyone got a method for pulling in random images from the gallery into Vbadvanced?
Ok, there we go.

1) Download the attached random.php (I've modified the one from that mod a bit to fit with vBAdvanced).
Edit it and change:
PHP Code:
define('ROOT_PATH''./4images/'); 
To the folder of your 4images installation. Upload it to the modules/ folder in your forum's root directory (where your vBA-Module files are).

2) Create a new template called adv_portal_gallery and put the following content into it (Don't forget to change ./4images/ to your 4images path:
Code:
<tr>
	<td class="$bgclass">
		Name: $image_name<br /><br />
		<a href="./4images/details.php?image_id=$image_id" target="_blank"><img src="$thumb_src" alt="" border="0" /></a><br /><br />
		Comments: $image_comments
	</td>
</tr>
3) Add a the module to your vBAdvanced, choose PHP-File as the source.
Enter the following data into the fields:
  • Module Title: Gallery
  • Column: Left or Right, depends on where you want to have it (Don't use center!)
  • File to Include: random.php
  • Identifier: gallery
  • Templates Used: adv_portal_gallery

You may now use the following variables in your template:
$total_images - The total number of images in your 4images gallery
$image_id - The ID of the random image
$cat_id - The category of the random image
$image_name - The name of the random image
$image_comments - The number of comments made for the random image
$thumb_src - The link to the random thumbnail file

See also the attached screenshot, it works fine for me
Reply With Quote
  #113  
Old 10-08-2006, 08:35 PM
vBFreak's Avatar
vBFreak vBFreak is offline
 
Join Date: Nov 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are interested in SEOing your Gallery and to integrate it into your vBSEO Sitemap you should first install the 4images SEO mod and then download my small addon for the vBSEO sitemap
Reply With Quote
  #114  
Old 10-09-2006, 04:51 PM
Shinji Ikari Shinji Ikari is offline
 
Join Date: Sep 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this mod no work with 4images 1.7.3? i only have 1.7.3 and i dont found 1.7.2 version
Reply With Quote
  #115  
Old 10-09-2006, 10:50 PM
vBFreak's Avatar
vBFreak vBFreak is offline
 
Join Date: Nov 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not tested it for myself, but I also dislike that 4homepages doesn't offer an archive to find older versions.

Others said that they've confirmed that it works with 1.7.3 aswell, so just give it a try
Reply With Quote
  #116  
Old 01-05-2007, 07:53 PM
nader nader is offline
 
Join Date: Feb 2004
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already test this mod with 4iamges 1.7.4 it does not work fine. any update
Reply With Quote
  #117  
Old 02-15-2007, 05:20 PM
web-rocket web-rocket is offline
 
Join Date: Dec 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes a fix for 3.6.4 would be nice.
Reply With Quote
  #118  
Old 02-15-2007, 07:51 PM
vBFreak's Avatar
vBFreak vBFreak is offline
 
Join Date: Nov 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works fine with vBulletin 3.6.4 and 4images 1.7.2, so I would recommend you to use 4images 1.7.2 for now - however, don't forget to apply all the security fixes if you want to use 1.7.2! You can find them on the 4homepages website.

I don't know what's going on with this hack in the future but for now it seems mtha doesn't have the time to active develop and support it at the very moment, we have to be patient for now and I hope aswell as you to see a new version for this as soon as possible.
Reply With Quote
  #119  
Old 02-16-2007, 01:21 PM
littleone littleone is offline
 
Join Date: Feb 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please give an update for 4images 1.7.4 with VB 3.6.4.

There is no point in going back to older versions of 4images considering the security problem.

..and after all I had bought VB considering this hack would be there ........
Reply With Quote
  #120  
Old 02-16-2007, 08:05 PM
kai3k kai3k is offline
 
Join Date: Jul 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ mtha: Please give us an update to work with 4images 1.7.4

and and guide how to use vbulletin 3.6.4 with 4images 1.7.4 would be great too.

Please!
Reply With Quote
  #121  
Old 02-18-2007, 09:00 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chrissicom View Post
Ok this is a weird bug I have. Internet Explorer users can login without any problems through the picture galleries or forums page without any problems (no matter if remember me is checked or not).

If someone uses Firefox 1.0.4 or 1.0.5 logging in through the galleries page won't work. Also when you login through the forum (which works) you are still not logged in, in the galleries. Is that a Firefox bug??
I have this same problem in Firefox 2.0.0.1 - has anyone found a fix for that? Thanks
Reply With Quote
Reply


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 05:55 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.04488 seconds
  • Memory Usage 2,322KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_php
  • (2)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
  • (1)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