The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
4images Gallery 1.7 Details »» | |||||||||||||||||||||||||
A lot of people, both here and at 4homepages.de have been requesting for a mod/hack that would integrate vBulletin 3 RCX with 4images 1.7 lately. The solutions are scattered around the forums, but nobody has it all in one page.
So I've decided put them all togather, and release it, so it will be easier for people to do the intigration successfully. Please note that all the codes in this hack/mod are property of Jan and mtha. http://www.4homepages.de/forum/viewtopic.php?t=1659 http://www.4homepages.de/forum/viewt...tart=165#32514 I have tested this on vBulletin 3.0.0 RC3 and it worked successfully. Features:
Attached Demo: http://www.randomforum.com/forums/gallery *NEW (Please note the gallery sports a custom style, not the default) http://www.vb-es.com/galeria/ (Non-English) Show Your Support
|
Comments |
#162
|
||||
|
||||
try this:
in album\includes\sessions.php change $clientscript_md5 line to: $clientscript_md5 = $url_app."clientscript/vbulletin_md5.js"; go to function delete_old_sessions() part, find $site_db->query($sql); and replace by // $site_db->query($sql); see if it works. Fix for LOGOUT link: <edit file> includes/page_header.php </edit file> <search for> if ($user_info['user_level'] >= USER) { $site_template->register_vars("lang_loggedin_msg", preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU", $user_info['user_name'], $lang['lang_loggedin_msg'])); $user_box = $site_template->parse_template("user_logininfo"); $site_template->register_vars(array( "user_box" => $user_box, "user_loggedin" => 1, "user_loggedout" => 0, "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0 )); $site_template->un_register_vars("user_logininfo"); unset($user_box); } </search for> <replace> //HN -Intergration with vB3 - BEGIN if ($user_info['user_level'] >= USER) { $site_template->register_vars("lang_loggedin_msg", preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU", $user_info['user_name'], $lang['lang_loggedin_msg'])); $user_box = $site_template->parse_template("user_logininfo"); $myuserid = $user_info['user_id']; $site_template->register_vars(array( "user_box" => $user_box, "myuserid" => $myuserid, "user_loggedin" => 1, "user_loggedout" => 0, "is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0 )); $site_template->un_register_vars("user_logininfo"); unset($user_box); } //HN -Intergration with vB3 - END </replace> in sessions.php, replace $url_logout line by $url_logout = $url_app."login.php?do=logout&u={myuserid}"; |
#163
|
||||
|
||||
Quote:
SO far it's working perfectly! WOO! Seriously, this is so exciting, hahahaha. Thanks a TON dude. I haven't tested it much, but so far it's passed without logging us out. YES! |
#164
|
||||
|
||||
Quote:
|
#165
|
||||
|
||||
hmmm but this code above works only if you do the following:
Find (4images /includes/sessions.php) PHP Code:
PHP Code:
If you are logged in you can access the admin-cp via an edit- or delete-link of a picutre... |
#166
|
|||
|
|||
I am having a table prefix issue. what file in the 4images directory tells 4images what the vbulletin table prefix is?
not the 4images prefix, but the vbulletin prefix. i am getting errors that have the login page looking for dbname.tablename, when it needs to be looking at dbname.vb3_tablename |
#167
|
|||
|
|||
Well, I just went in and manually changed the user and session table in constants.php and template table in session.php, but now I am having group issues. Vbull groups didn't get ported over in this integration. is this possible or are the systems incompatible?
|
#168
|
||||
|
||||
Quote:
Make sure that you have correct prefix for these two variable. // Table names define('SESSIONS_TABLE', 'session'); define('USERS_TABLE', 'user'); Quote:
// User levels define('GUEST', 0); define('USER_AWAITING', 3); define('USER', 2); define('ADMIN', 6); the number means groups. ... are you sure you did read the installation and intergration instruction correctly? |
#169
|
|||
|
|||
Those 4 groups ported fine, but The other 15 groups I have in Vbull didn't get ported. I have to setup 4images groups independently of the vbulletin groups?
My site uses more than just admin, registered users, unregistered users. It looks like I'd have to set up an array similar tot he user array in sessions.php for groups for it to integrate properly. does 4images support users being members of several groups? is there a way to get 4images to use some sortof is_member_of functionality to assign permissions or will it always be limited to primary groups? |
#170
|
|||
|
|||
HEY KT, is the Cookie STILL holding? Did MTA's fix work for the logging out issue? What about logging into the ADMIN of 4images and staying logged in?
So many questions. Can the FIRST zip file in this POST be updated with the NEW changes? So I KNOW i wont miss anything? lol |
#171
|
||||
|
||||
Quote:
For my album, I use another field for album level, so I dont think I'm going to write a fix for this. However, if you wanna make another field for album_level, create this element in user table, with the default value = 2, and change the value for admins to 6 (or whatever admin value should be) in this case, all members (including waiting for moderation ...) in any group are treated as user, except for those who are set to be admin. for those who have some field in userfield table for "name", then you can use "userfield" instead of "user" table. In this case, you only need to creat another field for album level (using add user field) in user profile. => you can control the levels easier. Quote:
been using it for months without trouble. good luck. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|