View Full Version : 4images Gallery 1.7 + vB 3.0.x (update Oct 30)
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 (http://www.4homepages.de/forum/viewtopic.php?t=1659) by Jan
Integration to vBulletin 3.0.1 by mtha
Constribution:
Matrixgl for re-organize the hack (https://vborg.vbsupport.ru/showthread.php?t=62020)
d1635d for adding the fix for 3.0.1 (https://vborg.vbsupport.ru/showpost.php?p=502952&postcount=112)
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 (http://www.vbulletin.com/) installed and working
- 4images 1.7 (http://www.4homepages.de/) 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/attachment.php?attachmentid=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 :D.
Previous discussions:
https://vborg.vbsupport.ru/showthread.php?t=62020
http://www.4homepages.de/forum/viewtopic.php?t=10823
Dont forget to click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=66335)
Update 03/24/2005
If you get error loging out of album:
in page_header.php, line 110
replace
"url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url(ROOT_PATH."logout.php"),
by
"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:
$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 :D
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
if ($this->read_cookie_data("bbpassword")==$this->user_info['user_password']&&$this->user_info['user_level'] > USER_AWAITING) {
replace by
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
Intex
06-20-2004, 09:44 AM
Very nice work mtha. I personally won't be installed as I have photoshop, but I'm sure there's loads of members waiting for this one :cool:.
skinvb
06-20-2004, 11:18 AM
i have clicked install
MrNase
06-20-2004, 11:54 AM
Nice, i may use it :)
KTBleeding
06-20-2004, 03:33 PM
Thanks mtha!
One question before I start..
Will this work on a 4images I already have installed with matrixgl's mod?
Or is it only for a fresh install?
Thanks again.
Thanks mtha!
One question before I start..
Will this work on a 4images I already have installed with matrixgl's mod?
Or is it only for a fresh install?
Thanks again.This one is just a rewrite, with all the updates in the other post. If you have his mod working fine, (including my update overthere), you dont need to reinstall this one.
They are actually the same thing, (originally released by Jan, modified by me for 3.0.1)
Very nice work mtha. I personally won't be installed as I have photoshop, but I'm sure there's loads of members waiting for this one :cool:.
You mean photopost? I personnaly like 4images better than photopost. I looked over photopost and didnt see any strong advantage over this one, which would worth $199
:)
Tailfeathers
06-20-2004, 08:42 PM
I have a 4images gallery with almost 500 users and of course, those users are not in the same order as on the message board...is there any alternative to getting 4images to just use the vB database? Something I could do so that the users are matched up in some other way, so that vB user ID # 35 doesn't take over gallery user ID #35's pictures and such?
iflux
06-20-2004, 10:26 PM
does anyone know the quickest way of skinning the 4images gallery so it looks like my board?
KTBleeding
06-21-2004, 12:41 AM
does anyone know the quickest way of skinning the 4images gallery so it looks like my board?
View the source of your board, copy the html, and paste the parts of the 4images templates where you want them in the forum layout.
That's what I always do anyways.
You do have to re-do all the CSS with 4images, but it's worth it in the long run.
I have a 4images gallery with almost 500 users and of course, those users are not in the same order as on the message board...is there any alternative to getting 4images to just use the vB database? Something I could do so that the users are matched up in some other way, so that vB user ID # 35 doesn't take over gallery user ID #35's pictures and such?
There is NO automatic and safe way to do this, BUT you can try this method (require that you know enough php and SQL in order to do the job)
What you have are:
01 - vB user database with USERSET1 controled by userid (and username), says user.userid and user.username
02 - Album user database with USERSET2, controlled by user_id (and user_name) says 4images_users.user_id and 4images_users.user_name
Step 1:
- Create a new COMPARE table having 3 fields: username, forum_uid, album_uid
Step 2:
- Compare 4images_users.user_name and user.username
if match => fill in the COMPARE table (username, forum_uid, album_uid) for this user.
if not => fillin COMPARE table, with album's username, album_uid, DEFAULTID where DEFAULTID is the ID given for those who does NOT have account in forum or have different username in forum. If you want to assign this to be GUEST, the ID is 0
Do this for ALL ALBUM users
=> you know the id in forum and album for each album user
(if they have the SAME username for both places. if you think email address would be more appropriate, you can compare email instead, or compare both username and email)
Step 3:
Change user_id in album to the new forum's userid based on the above comparision, in the following tables:
4images_comments, 4images_groupmatch, 4images_images, 4images_images_temp, 4images_lightboxes, 4images_users
Step 4:
Test your album and see if everything works correctly (username, login/logout, image's poster)
Step 5: Apply this hack ... and god bless you :D
good luck.
PS. this will require alot of changes to your database, so Do a FULL BACKUP of your album database first (maybe your files too), and test in a beta version
deathemperor
06-21-2004, 11:50 AM
hey man, remember me ? ^^
great work ~
long time no see, I've noiticed that you have been here for a long time, and it looks like you are a good hacker
well mtha, I want to have some advise from you about choosing a good ablum. I'm thinking between 4image and vgallery (www.vietphp.info). I was testing vgallery but unfortunately it's only integrated with vb2 and I'm running vb3 so of course I can't use that one. My board still doesn't have an album because I cannot use 4images, as my expierence 4images takes alot of database storage (I've backupped 4images once and it's about 40MB in a fresh install T__T ).
So I'm seeking for the best album that fits my board (using sharing server). If you have enough spare time, I hope you can make vgallery to work well with vb3 (instead of vb2) and I also want to hear your opinions about 4images or any other simple photo galleries that can be used for vb3.
thanks in advance, mtha
well mtha, I want to have some advise from you about choosing a good ablum. I'm thinking between 4image and vgallery (www.vietphp.info (http://www.vietphp.info/)). I was testing vgallery but unfortunately it's only integrated with vb2 and I'm running vb3 so of course I can't use that one.
:) vgallery is a very nice gallery, I like that interface. However, I dont use this gallery. just had the lite version for testing, so I have no idea how to manage the code.
It it works with vB2, why dont you try to test on vb3 and see if it works? or send a request to that guy who wrote the hacl?
My board still doesn't have an album because I cannot use 4images, as my expierence 4images takes alot of database storage (I've backupped 4images once and it's about 40MB in a fresh install T__T ).
are you kidding? it's only more than 1MB on a fresh install only. You may have something extra?
I also want to hear your opinions about 4images or any other simple photo galleries that can be used for vb3.
4images is the best that i've known of so far. it's as good, or even better than photopost :D, very easy to customize.
lovevn
06-21-2004, 04:05 PM
thankx mtha . It's a good hack . But now I want my gallery the same with your gallery (http://www.randomforum.com/forums/gallery/ ) Can U tell me how to do this ?
thankx mtha . It's a good hack . But now I want my gallery the same with your gallery (http://www.randomforum.com/forums/gallery/ ) Can U tell me how to do this ?
That's not MY gallery, I think that's MatrixGL's :D
How to do?
You just need to edit your template, change the header, footer, and all the related ones.
As I said, that is not my gallery, so I cant tell you how exactly.
Onkel_Tom
06-21-2004, 11:59 PM
Hi all,
just a question about memory usage with 4images and vBulletin in one database.
I just downloaded 4images today and then found this thread to integrate in vB. thanks to all developers working on that Hack !
Can somebody give me a "feeling" about growing of the database when 4images is installed in the same db ?
Like 100 picture about xyz MB or 500 pictures about abc MB
My opinion is that having both in one db should explode the memory usage.
I have to upgrade a domain with actual 250MB vB2 database and about 1.000 pictures in a phpgallery to a vB3 with 4images.
Hi all,
just a question about memory usage with 4images and vBulletin in one database.
I just downloaded 4images today and then found this thread to integrate in vB. thanks to all developers working on that Hack !
Can somebody give me a "feeling" about growing of the database when 4images is installed in the same db ?
Like 100 picture about xyz MB or 500 pictures about abc MB
My opinion is that having both in one db should explode the memory usage.
I have to upgrade a domain with actual 250MB vB2 database and about 1.000 pictures in a phpgallery to a vB3 with 4images.
Talking about 4images
- 4images save pictures as files in data folder, not in database.
How much space it takes, depends on your image files. If you have big files (images), it takes more, if you have small files, it takes less.
Says I have 9500 pictures, taking about 1.4 Gb of webspace (images + thumbnails) and 3.8Mb of database.
Good luck
PS:
- memory, webspace, and database are three different things.
- domain and website are different too
Onkel_Tom
06-22-2004, 01:11 AM
thanks for your quick reply mtha !
Oops, I think the images were saved also in the database...
thanks for the information
CreedFeed
06-22-2004, 03:45 AM
=============================================
Limitations:
=============================================
- The "Remember username/password?" options only remember sessions for forum. You dont have to login to forum again, when you go to album from forum, you dont have to login again, but if you go directly to your album, you still have to login. Cookie problem!
Ok I believe I have discovered why this limitation is occuring. Assuming you have installed the hack to integrate the 4images gallery and it works fine except for this limitation, here is the problem:
When you visit the 4images gallery the first thing that happens is the sessions.php script is run. First it looks to see if an existing session is found. If no session is found, it returns false. The exact function calls are as follows:
$site_sess = new Session();
The session is initiated
$this->demand_session();
The session tried to grab existing session info
$this->get_session_id();
In demand_session() the above code is first run. The class searches for a cookie "sessionhash" which won't be found the first time you visit the gallery, so this function fails.
if (!$this->load_session_info()) {
Next, the code loads all session info, based upon the value set in $this->get_session_id ... since that function failed the rest of the session script fails. No session is found.
=======================================
The basic problem:
First the function "get_session_id()" is called. Currently the function first checks for an existing cookie "sessionhash." Again, when you visit the gallery the very first time, no existing session will be there (sessions are deleted when you close your browser). Next the function checks to see if "sessionhash" exists in the query string (HTTP_GET_VARS) or from a submitted form (HTTP_POST_VARS). Again, on your very first visit to the gallery, neither of these will exist. Finally the function returns "false" which in essence says there is no session so the user is not logged in.
The basic fix:
We need to edit "get_session_id()" to include some code that will, after not finding an existing session, check to see if the user has cookies on their computer that identify them as a valid forum user. If the user's cookies (userid and password) match the info in the vbulletin user database table, then the user should be automatically logged in - we need to create the seession for them here.
=======================================
I am not super familiar with vB session code. I would have to sit down and spend some time to determine how the vB sessions are handled. If anyone is more familiar with this you can expand on the following basic pseudocode and make this fix so the discussed limitation is fixed. THE FOLLOWING IS NOT A FIX, BUT IS PSEUDOCODE FOR WHAT SHOULD HAPPEN.
// in the Session class, get_session_id() function
// after the check for a cookie, HTTP_POST_VARS
// or HTTP_GET_VARS named "sessionhash" fails...
if (COOKIE[userid] AND COOKIE[password]) {
{ select the password from vb user table for COOKIE[userid] }
if (password == COOKIE[password]) {
{ user is valid, create new sessionhash now }
}
}
That is just the basic idea. If someone can code this up and make it work, that would be great! I'll try to figure out the coding for this myself, but it may take awhile.
=============================================
Limitations:
=============================================
- The "Remember username/password?" options only remember sessions for forum. You dont have to login to forum again, when you go to album from forum, you dont have to login again, but if you go directly to your album, you still have to login. Cookie problem! FIXED - Update 06/22/04
In 4images sessions.php
Look for
if ($this->read_cookie_data("bbpassword") == $this->user_info['user_password'] && $this->user_info['user_level'] > USER_AWAITING) {
replace by
if ($this->read_cookie_data("bbpassword") == md5($this->user_info['user_password']. 'XXXXXXXX') && $this->user_info['user_level'] > USER_AWAITING) {
CHANGE XXXXXX with your Licence Number, located on top of any vB file
Make sure that you have the correct password field in the file
"user_password" => "password",
The new sessions.php file in the first post was updated.
Thank CreedFeed for pushing me to fix this :D Try it and let me know if it works
deathemperor
06-22-2004, 11:31 AM
:) vgallery is a very nice gallery, I like that interface. However, I dont use this gallery. just had the lite version for testing, so I have no idea how to manage the code.
It it works with vB2, why dont you try to test on vb3 and see if it works? or send a request to that guy who wrote the hacl?
are you kidding? it's only more than 1MB on a fresh install only. You may have something extra?
4images is the best that i've known of so far. it's as good, or even better than photopost :D, very easy to customize.
of course I've tried it with vb3 and the result was as I expected and I did send a request to Deathy Smile the coder but have received no response, it's ok since I understand how busy he is.
I know it's insance saying that it took 40MB of my database, but that was true and that's the reason why I don't use 4images. Anyways I'll be installing it once more to make sure ^^ and have a chance to install your hack, mtha
by the way, is this the hack GVN is running or the one in GVN is BM's private work ? now I know the reason why you are an admin of GVN tho you have never posted anything. And do you know any places that share free 4images skins ?.
P.s: do you still online in YIM ? can we chat ? ^^
CreedFeed
06-22-2004, 04:11 PM
I know it's insance saying that it took 40MB of my database, but that was true and that's the reason why I don't use 4images.
You must have backed up more than just 4images, or you were looking at the numbers wrong. 4images right out of the box is just over 1MB in files, and the database without any extra data in it is ~60KB.
KTBleeding
06-22-2004, 04:16 PM
FIXED - Update 06/22/04
In 4images sessions.php
Look for
if ($this->read_cookie_data("bbpassword") == $this->user_info['user_password'] && $this->user_info['user_level'] > USER_AWAITING) {
replace by
if ($this->read_cookie_data("bbpassword") == md5($this->user_info['user_password']. '10532bf3') && $this->user_info['user_level'] > USER_AWAITING) {
Make sure that you have the correct password field in the file
"user_password" => "password",
The new sessions.php file in the first post was updated.
Thank CreedFeed for pushing me to fix this :D Try it and let me know if it works
What?! You're kidding me? You're a saint, mtha!
I'll try it when I get home and let you know!
CreedFeed
06-22-2004, 04:26 PM
mtha,
Actually that fix doesn't solve the problem. I still have the same limitation issue. Like I posted above, the initial check fails so it doesn't start a new session. I believe you need to add a check for the cookie bbuserid and bbpassword in that get_session_id function that will check for an existing session and set the user's session_id...
Since that function fails initially, no session is set up.
Valr the Slain
06-22-2004, 05:22 PM
Hello,
When I edit the "functions.php" file, I receive this error:
Parse error: parse error in /home/initial/public_html/forums/includes/functions.php on line 1864
Fatal error: Call to undefined function: is_browser() in /home/initial/public_html/forums/global.php on line 59
Also, with all the edits on the gallery script, I receive these errors:
DB Error: Bad SQL Query: INSERT INTO session (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('04d73bb5c609bc86ea3728e4a11a4589', GUEST, '68.33.149.140', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)', 1087928437, '/album/index.php', '0')
Unknown column 'GUEST' in 'field list'
Warning: Cannot modify header information - headers already sent by (output started at /home/initial/public_html/gallery/includes/db_mysql.php:188) in /home/initial/public_html/gallery/includes/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/initial/public_html/gallery/includes/db_mysql.php:188) in /home/initial/public_html/gallery/includes/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /home/initial/public_html/gallery/includes/db_mysql.php:188) in /home/initial/public_html/gallery/includes/sessions.php on line 108
I'm asuming I did something wrong. What could be wrong?
Thanks for your time!
Hello,
When I edit the "functions.php" file, I receive this error:
Parse error: parse error in /home/initial/public_html/forums/includes/functions.php on line 1864Could you tell me what is in your /forums/includes/functions.php on line 1864
try: open the ORIGINAL functions.php file,
Look for
$name = COOKIE_PREFIX . $name;
Replace with
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
Also, with all the edits on the gallery script, I receive these errors:
DB Error: Bad SQL Query: INSERT INTO session (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('04d73bb5c609bc86ea3728e4a11a4589', GUEST, '68.33.149.140', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)', 1087928437, '/album/index.php', '0')
Unknown column 'GUEST' in 'field list'
It seems like you didnot assign value for GUEST
Did you edit the album's include/constants.php ?
Make sure that you have this lines:
// User levels
define('GUEST', 0);
mtha,
Actually that fix doesn't solve the problem. I still have the same limitation issue. Like I posted above, the initial check fails so it doesn't start a new session. I believe you need to add a check for the cookie bbuserid and bbpassword in that get_session_id function that will check for an existing session and set the user's session_id...
Since that function fails initially, no session is set up.
that does fix the problem. I was able to login and test over your album and it works fine. You may want to remove your cookies, logout of computer (to make sure the cookie are all gone) and try again.
of course I've tried it with vb3 and the result was as I expected and I did send a request to Deathy Smile the coder but have received no response, it's ok since I understand how busy he is.
I know it's insance saying that it took 40MB of my database, but that was true and that's the reason why I don't use 4images. Anyways I'll be installing it once more to make sure ^^ and have a chance to install your hack, mtha
Are you looking at the whole database (with forum installed)? or what?
anyway, it's up to you for the version you are using.
by the way, is this the hack GVN is running or the one in GVN is BM's private work ? now I know the reason why you are an admin of GVN tho you have never posted anything.what's the different?
And do you know any places that share free 4images skins ?.No. I design the skin to match my site, I dont look for free skins. sorry cant help here :D
Valr the Slain
06-22-2004, 08:11 PM
Could you tell me what is in your /forums/includes/functions.php on line 1864
try: open the ORIGINAL functions.php file,
Look for
$name = COOKIE_PREFIX . $name;
Replace with
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
It seems like you didnot assign value for GUEST
Did you edit the album's include/constants.php ?
Make sure that you have this lines:
// User levels
define('GUEST', 0);
The GUEST value has been fixed. The problem was that when I changed it, it was like this:
// User Levels define('GUEST', 0);
So it couldn't of seen the guest value. ^_^
On line 1864 of functions.php, it has as follows (the edited one):
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "explain=1\">Explain</a>)<br />\n";
When I do the edit on the original code, it works fine. I'm guessing a hack that I have installed is conflicting with the integration?
The GUEST value has been fixed. The problem was that when I changed it, it was like this:
// User Levels define('GUEST', 0);
So it couldn't of seen the guest value. ^_^
Good you solved that.
On line 1864 of functions.php, it has as follows (the edited one):
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "explain=1\">Explain</a>)<br />\n";
When I do the edit on the original code, it works fine. I'm guessing a hack that I have installed is conflicting with the integration?
I dont see the relationship here, but ... well maybe there's some conflict ... I have no idea what it should be yet.
CreedFeed
06-22-2004, 09:08 PM
Just a note: mtha's fix for that limitation talked about a few posts up above actually does work. I had an issue with my browser and it's cookies.
Thanks to mtha for releasing the fix so quickly!
Highlander
06-22-2004, 09:19 PM
is it now possible to write for example an post/Thread and show the screenshots with image gallery?
or is only the comment system integrated .. this way is better than no way .. just asking what exactly the integration dows .. the demo i saw .. but thread/post integration could not be defined .. (on comment system)
CreedFeed
06-22-2004, 11:12 PM
The integration simply integrates vB's user database with 4images - so if you are logged into your vB forum, you are also logged into 4images. No need for two separate logins. It makes it very convienant (sp?) for your users - they don't need to signup for your forums and image gallery.
is it now possible to write for example an post/Thread and show the screenshots with image gallery?
or is only the comment system integrated .. this way is better than no way .. just asking what exactly the integration dows .. the demo i saw .. but thread/post integration could not be defined .. (on comment system)
Dont really understand your question but in the first post:
Screenshot:
https://vborg.vbsupport.ru/atta...achmentid=17021 (https://vborg.vbsupport.ru/attachment.php?attachmentid=17021)
Demo:
http://www.randomforum.com/forums/gallery/
=============================================
Features:
=============================================
- Use vBulletin's user database to access 4images album
All forum's members can access your 4images album and upload pictures (depends on permissions). You dont need to register twice in forum and album.
CreedFeed
06-23-2004, 04:45 AM
I have another question about adding to this hack... when you view your forum's Who's Online page it shows any user who's browsing the gallery as "Viewing Index" and the link below goes to the forum index. How would you edit it to say "Viewing Gallery" and the link below links to your gallery?
KTBleeding
06-23-2004, 05:30 AM
mtha, say I'm running more than one 4images on my site..
I'm using one for a .. let's say "classified" script, and the other as an "album" script.
In the "functions_online.php" how would I make it so one says, "Browsing Album" and the other say, "Browsing Classifieds"??
I have another question about adding to this hack... when you view your forum's Who's Online page it shows any user who's browsing the gallery as "Viewing Index" and the link below goes to the forum index. How would you edit it to say "Viewing Gallery" and the link below links to your gallery?Read the instruction file and follow the steps carefully.
There's a part in step 4 to do it:
======================
<edit file>
includes/functions_online.php
</edit file>
======================
<search for>
switch($userinfo['activity'])
{
</search for>
<add after>
// Album user online Mod
case 'album':
$userinfo['action'] = 'Browsing album';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
// End
</add after>
======================
<search for>
else
{
$userinfo['activity'] = 'modcp';
}
return $userinfo;
}
</search for>
<add after>
// Album user location
else if (strpos($token, "/album/") !== false)
{
{
$userinfo['activity'] = 'album';
}
return $userinfo;
}
</add after>
======================
make sure that you have that part correct
and remember to correct the token too
else if (strpos($token, "/album/") !== false)
mtha, say I'm running more than one 4images on my site..
I'm using one for a .. let's say "classified" script, and the other as an "album" script.
In the "functions_online.php" how would I make it so one says, "Browsing Album" and the other say, "Browsing Classifieds"??
same as above, you have another token for /classified/ add add the same code (replace the name) in the places
by the way, the $token will read the value from $userinfo['location'];
if you dont have the location field for album different from forum's, you may get in trouble with this :D
deathemperor
06-23-2004, 01:54 PM
Are you looking at the whole database (with forum installed)? or what?
anyway, it's up to you for the version you are using.
what's the different?
No. I design the skin to match my site, I dont look for free skins. sorry cant help here :D
of course it's only the 4iamges, and even with the forum the whole database couldn't be that much.
the difference is: I thought all GVN's work is of BM, as far as I've heard from others admin, BM takes care almost all the important things of GVN. now I see you are a good hacker then you may do some role in GVN life ^^
sorry to going off topic. I'm going to install 4images to trouble you by this hack
mtha do you plan to make any hacks ? like a music online hack which fully uses vb3 template and function ? I am looking for a good hack like it.
KTBleeding
06-23-2004, 03:37 PM
Okay, I just reinstalled this mod and when I go directly to the gallery, I'm logged in, but some of my users aren't.. They are logged in to vB, but not 4images.
Was this fix supposed to check if they are logged into vB and have them be logged into 4images, or is it basically they go to the gallery, log in, and then it keeps them logged in/remembered?
CreedFeed
06-23-2004, 04:54 PM
Ahh I just realized I have been looking at the wrong installation file. I've been looking at the old one posted on the 4images website - the one made before this thread. That's why I didn't have the fix for the who's online thing, as that isn't in that installation file. Whoops!
Okay, I just reinstalled this mod and when I go directly to the gallery, I'm logged in, but some of my users aren't.. They are logged in to vB, but not 4images.
Was this fix supposed to check if they are logged into vB and have them be logged into 4images, or is it basically they go to the gallery, log in, and then it keeps them logged in/remembered?
This hack supposed to allow you login directly to album AND login to forum then go to album.
It is working fine in my album/forum :D
why dont YOU try to test it yourself? doing this:
- login to your album (without "remember me" checked)
- login to your album (with "remember me" checked) and close browser and come back to album
- login to your forum (with/without "remember me" checked) and browse to album from there.
Make sure that you CLEAN your cookies before doing this (just to make sure that you dont have other cookie problems)
come back and let me know how it works.
It you can do it fine, and your member cant do it, then the problem could be at your member's side, tell him to clear his cookies or check his computer :D
if you get trouble too, register for me an account over your forum/album, and PM to me, I will take a look
CreedFeed, do you have everything working as it's supposed to?
the difference is: I thought all GVN's work is of BM, as far as I've heard from others admin, BM takes care almost all the important things of GVN. now I see you are a good hacker then you may do some role in GVN life ^^
if you look at this hack, you will see some part if this one from him. He's a great coder though, and he does take care of all the important things of GVN. and you are really funny too. you think that I, having a administrator title, do no role in GVN life? :tired:
mtha do you plan to make any hacks ? like a music online hack which fully uses vb3 template and function ?
No I dont. There're too many "music online" scripts, and I am not interested in this.
CreedFeed
06-23-2004, 06:35 PM
mtha,
Actually I'm still having a problem. It seems that the session fix thing isn't working in Mozilla and Firefox. It works in IE, but not the other two. I've cleared my cookies and all that stuff.
What I'm going to do is reinstall the 4images gallery from the beginning because I ended up missing some of the steps from that installation file. I want to be sure I have done everything. I'll update my status when I'm done. Starting this now...
CreedFeed
06-23-2004, 08:23 PM
I just installed twice and it still isn't working.
mtha, I just signed up for your forums/gallery. When I login through your gallery page, then close my browser, reopen, and go to your gallery it shows me as not logged in. ??
BlackxRam
06-23-2004, 09:10 PM
MTHA!!!! YOU DID IT!!! IT WORKS COMPLETELY!!!! YOU ARE THE MAN! IF I WAS NEAR YOU I WOULD KISS YOU!!!!!! :) :) :) :)
ANYONE still having problems, start with a fresh install or fresh unhacked VB and 4IMAGES files... if you go slow you can't mess it up... ITS PERFECT! YOU ROCK!!! NO MORE LOGGING OUT!!! WOOHOO
STAND UP JOB MTHA!!!
CreedFeed
06-24-2004, 12:57 AM
Mine seems to only remember sessions for admins now. Normal users are not remember as being logged in.
KTBleeding
06-24-2004, 01:00 AM
Mine seems to only remember sessions for admins now. Normal users are not remember as being logged in.
I'm pretty sure that's the same case as me.
Mine seems to only remember sessions for admins now. Normal users are not remember as being logged in.I was wondering why the code is still there, but my testing version was working fine (as I was being an administrator), so I didnt investigate more :D Sorry guys.
the new sessions.php in the first post was updated.
basically, you will only need to change the condition:
Look for:
if ($this->read_cookie_data("bbpassword") == md5($this->user_info['user_password'].''.VBLICENCE_NUMBER) && $this->user_info['user_level'] > USER_AWAITING) {
replace with
if ($this->read_cookie_data("bbpassword") == md5($this->user_info['user_password'].''.VBLICENCE_NUMBER) && $this->user_info['user_level'] != USER_AWAITING) {
this is applied for the sessions.php file in the first post. if you have the VBLICENCE_NUMBER here, just need to replace > USER_AWAITING with != USER_AWAITING
or you can remove the whole
&& $this->user_info['user_level'] != USER_AWAITING
well, I see this doesnt make alot of sence to force those who are awaiting for email confirmation not to be "remembered". but it was is the original code, so ... I just leave it there in case someone use it.
mtha, I just signed up for your forums/gallery. When I login through your gallery page, then close my browser, reopen, and go to your gallery it shows me as not logged in. ??the demo was NOT MY forum/gallery, I think it was MatrixGL. I dont have a demo for my testing work :) sorry.
CreedFeed
06-24-2004, 02:22 AM
That works. Thanks.
One thing though, it is still not displaying that users are viewing the gallery in my vB forum. I went through all the steps several times and it still says Viewing Index (the forum index). Any ideas on this? Is that working on your forum?
That works. Thanks.
One thing though, it is still not displaying that users are viewing the gallery in my vB forum. I went through all the steps several times and it still says Viewing Index (the forum index). Any ideas on this? Is that working on your forum?are you sure you have someone browsing in your album at the time you check WOL?
yes it is working fine on my forum.
https://vborg.vbsupport.ru/showpost.php?p=525505&postcount=35
instead of using album for token, use gallery in your case.
in gallery/include/sessions.php
$this->user_location = '/album/'.$this->get_user_location();
use gallery here too.
make sure that you have this lines correct in sessions.php too
function update_session() {
global $site_db;
$sql = "UPDATE ".SESSIONS_TABLE."
SET lastactivity = $this->current_time, location = '$this->user_location'
WHERE sessionhash = '$this->session_id'
AND host = '$this->user_ip'";
$site_db->query($sql);
$this->session_id = $this->generate_session_id();
$sql = "INSERT INTO ".SESSIONS_TABLE."
(sessionhash, userid, host, useragent, lastactivity, location, styleid)
VALUES
('$this->session_id', ".$this->user_info['user_id'].", '$this->user_ip', '". %4$s SERVER['HTTP_USER_AGENT']."', $this->current_time, '$this->user_location', '".$this->read_cookie_data("bbstyleid")."')";
$site_db->query($sql);
if it does not seem to work, do some test:
- access your album (either login or not login). Make sure that leave the browser stay IN ALBUM, dont go to forum :D
- login to your database, maybe using phpMyadmin
- browse to session table, and look for your record (based on your IP, maybe)
here's the query to show it:
SELECT * FROM `session` WHERE host = 'XXX.XXX.XXX.XXX';
replace XXX.XXX.XXX.XXX with your IP
- check the location field, and see if there's anything in there.
it should show /gallery/xxxx if you have everything correct.
It does seem like you didnt have your album location saved in database (looking from "guest" view).
if the above doesnt work, you may want to put some text before $this->user_location and see if the text is saved in database. :D
function update_session() {
global $site_db;
$sql = "UPDATE ".SESSIONS_TABLE."
SET lastactivity = $this->current_time, location = '$this->user_location'
WHERE sessionhash = '$this->session_id'
AND host = '$this->user_ip'";
$site_db->query($sql);
CreedFeed
06-24-2004, 03:55 AM
I found the problem. I didn't set the case check in the vB functions_online.php file to be "gallery"
deathemperor
06-24-2004, 04:27 AM
if you look at this hack, you will see some part if this one from him. He's a great coder though, and he does take care of all the important things of GVN. and you are really funny too. you think that I, having a administrator title, do no role in GVN life? :tired:
because I couldn't figure out what was your job in GVN, at that time I don't know you know php this well, I could guess that you must be a good coder since others admin take care the forums and you always like to hide yourself as you told me
No I dont. There're too many "music online" scripts, and I am not interested in this.
too many ? I don't think so. even it's so, all of them don't use the vb templates, they just use the user table of vb3 and it's impossible to manage via ACP.
perhaps it's unreasonable to ask you to make a hack I want however I believe vb3 communities really need a hack like that. vb.org has no music online script. I anyways hope you will change your mind somedays
I found the problem. I didn't set the case check in the vB functions_online.php file to be "gallery"
Good to hear that.
BlackxRam
06-24-2004, 07:01 PM
I posted this in the wrong post before, but the issue of logging out and closing the browser and returning DIRECTLY to the gallery does not show you as logged in. I am running IE and I have ran the steps 3 times and it doesnt work. It worked for the first few times as noted by my post above but now its doesnt work at all. I think Creed might be on to something, its just not picking up the vbcookie
KTBleeding
06-24-2004, 10:09 PM
I posted this in the wrong post before, but the issue of logging out and closing the browser and returning DIRECTLY to the gallery does not show you as logged in. I am running IE and I have ran the steps 3 times and it doesnt work. It worked for the first few times as noted by my post above but now its doesnt work at all. I think Creed might be on to something, its just not picking up the vbcookie
Works fine for me now.
I am having a few problems with the functions_online.php but I haven't done everything mtha was explaining yet.
Did you install this updated mod on the first post of this thread?
BlackxRam
06-24-2004, 11:24 PM
Yes I Did, I did everything twice however it has stopped functioning. It worked the first day or so, but now it doesnt work. I am not hte only one as every member of my forum is having difficulty.
If you care to test it out goto my website www.mogusland.com register on the forums and then check out the multimedia link on the main page.
CreedFeed
06-25-2004, 12:51 AM
Mine works now. Actually the problem I had was it was only remembering Admin users, not regular users. mtha posted a fix for this, which I think is included in the zip download now. Try redownloading the zip and reinstalling, or follow his instructions in a post a few points up.
Also note that I was having problems with IE caching. I found it easier to use Firefox or Mozilla to debug and test with. When it worked on those browsers I then made sure it worked in IE.
BlackxRam
06-25-2004, 01:18 AM
If it doesnt work in IE why would it work in those other browsers lol ;) I donwload the zip this morning.
BlackxRam
06-25-2004, 01:22 AM
Which post are you referring to? If i close my browser and return to the gallery directly I am not logged in...so which post has the fix for this?
Which post are you referring to? If i close my browser and return to the gallery directly I am not logged in...so which post has the fix for this?
https://vborg.vbsupport.ru/showpost.php?p=525787&postcount=45
better clean the cache files, and download the file from first post. make sure that you dont download the old one. (ie problem sometime)
If it doesnt work in IE why would it work in those other browsers lol I donwload the zip this morning.
lol. I dont know why I still stick with a buggie IE. maybe just bcuz it's easy, eventhough I have both Mozilla + Firefox version, Netscape, Opera, for testing :D
I'm getting to like Firefox, maybe will switch someday
Which post are you referring to? If i close my browser and return to the gallery directly I am not logged in...so which post has the fix for this?If that doesnt fix, do this test:
go to your /4images/includes/sessions.php
look for
function start_session($user_id = GUEST, $login_process = 0) {
global $site_db;
$this->user_info = $this->load_user_info($user_id);
if ($this->user_info['user_id'] != GUEST && !$login_process) {
Add bellow it:
echo '- Cookie password: '.$this->read_cookie_data("bbpassword").'<br>- User encripted password: '. md5($this->user_info['user_password'].''.VBLICENCE_NUMBER).'<br>- Input: '. $this->user_info['user_password'].''.VBLICENCE_NUMBER;
Open a NEW window, go straight to your album (assuming that you already have your cookie select/saved before that)
Read the text on top of your browser, compare string 1 and 2, and see if they are the same.
if they are NOT, check the licence_number and the input string
remember to remove the echo line afterward, it's only for TESTING
BlackxRam
06-25-2004, 03:50 AM
This Code doesnt display anything on my Gallery Page.
BlackxRam
06-25-2004, 04:25 AM
I have edited every single file Again and still no go. If i close my browser and return to the gallery directly i am still logged out.
do you have your forum setup sessions ad .mogisland.com ? seems like you have your forum setup in a subdomain.
It seems like your album didnt read cookie at all
if you want to try,
look for
function start_session($user_id = GUEST, $login_process = 0) {
global $site_db;
$this->user_info = $this->load_user_info($user_id);
add bellow:
echo 'User Id: '.$user_id.' - '.$this->read_cookie_data("bbuserid").'<br>- Cookie password: '.$this->read_cookie_data("bbpassword").'<br>- User encripted password: '. md5($this->user_info['user_password'].''.VBLICENCE_NUMBER).'<br>- Input: '. $this->user_info['user_password'].''.VBLICENCE_NUMBER;
you have to open a NEW browser, in order to see the result.
lol.
I wrote the hack based on a standard vb version, which has bb as cookieprefix
You have your cookieprefix being moguslandforums
that's why
now you need to do some more work:
edit the sessions.php
replace all bb by moguslandforums
they are in bbuserid, bbpassword, bbstyleid (this one is not important), bblastvisit
Onkel_Tom
06-25-2004, 11:32 AM
Hi all,
integration in vB3 works fine. I've just a problem when I logout out of the forum or the 4images Gallery I get a message saying that there was a problem to log me out.
Is that normal or missed I something ?
KTBleeding
06-25-2004, 02:27 PM
Hi all,
integration in vB3 works fine. I've just a problem when I logout out of the forum or the 4images Gallery I get a message saying that there was a problem to log me out.
Is that normal or missed I something ?
I believe that has to do with the..
Open: "forums/includes/functions.php"
Find:
$name = COOKIE_PREFIX . $name;
Replace with:
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
Close and Save: forums/includes/functions.php
Someone correct me if I'm wrong?
Onkel_Tom
06-25-2004, 05:25 PM
I have this kind of code in my functions.php of vB but still get the error while login off. I checked my code and the instructions three times to be sure that all parts are correct ;)
Hi all,
integration in vB3 works fine. I've just a problem when I logout out of the forum or the 4images Gallery I get a message saying that there was a problem to log me out.
Is that normal or missed I something ?
https://vborg.vbsupport.ru/showpost.php?p=517354&postcount=161
that's the direct post where I have the fix, for vB 3.0.1
it should be included in the instruction file
pay attention to these lines:
in sessions.php
$url_logout = $url_app."login.php?do=logout&u={myuserid}";
includes/page_header.php
$myuserid = $user_info['user_id'];
BlackxRam
06-25-2004, 09:26 PM
lol.
I wrote the hack based on a standard vb version, which has bb as cookieprefix
You have your cookieprefix being moguslandforums
that's why
now you need to do some more work:
edit the sessions.php
replace all bb by moguslandforums
they are in bbuserid, bbpassword, bbstyleid (this one is not important), bblastvisit
MTHA, That did it. I feel like such a tool that I didnt think of that, when I read your post I literally smacked my forehead. heheh.
Perhaps you should put something in your installation instructions now if people are having issues with the cookie to check that there cookie is 'bb' or something else because I have a cookie issue on my computer with a 'bb' prefix cookie and thats why I had to change mine. Perhaps some other people have a different cookie prefix as well and it wouldnt hurt to add that in your instructions.
My INTEGRATION works PERFECTLY so far and its all thanks to MTHA for following up on MatrixGL's work. I would say lets nominate this for Hack of the Month as it wasnt an easy integration to code up it seems heeheh.
Way to go MTHA, I salute you for being a pillar of the VB community! You literally ROCK! :)
Everyone with 4IMAGES and VB needs this hack. :)
Perhaps you should put something in your installation instructions now if people are having issues with the cookie to check that there cookie is 'bb' or something else because I have a cookie issue on my computer with a 'bb' prefix cookie and thats why I had to change mine. Perhaps some other people have a different cookie prefix as well and it wouldnt hurt to add that in your instructions.
well, make life easier, I make the file ... more complicated, by adding some more variables on top.
have fun
Updated on the first post: (Update 06/25/2004)
https://vborg.vbsupport.ru/showpost.php?p=524537&postcount=1
BlackxRam
06-26-2004, 09:22 PM
Hey MTHA, I am having a text error where Registered board members are appearing as GUESTS and not Registered Members on the Comments Portion of the Gallery, any ideas? My Gallery is closed off to Guests and Only Registered Members can post so he didnt post as a guest.
Hey MTHA, I am having a text error where Registered board members are appearing as GUESTS and not Registered Members on the Comments Portion of the Gallery, any ideas? My Gallery is closed off to Guests and Only Registered Members can post so he didnt post as a guest.
did you mean the picture's owner (poster)?
I didnt see the error over your http://www.mogusland.com/media/index.php
cant tell anything now, because I havent seen the errors nor the reason for it :P
could be cookie-prefix again?
I'm not going tu guess what the bug would be. I will try to fix it if I see it. Can you show me a demo?
BlackxRam
06-28-2004, 03:05 AM
Ok, here you go.
http://www.mogusland.com/media/details.php?image_id=2095
If you look at the comments, under Lord-of-Shadow it says 'GUEST' Only that comment has been made after the integration and they say they don't have as many options as a registered user does to upload or add comments. It seems it recognizes them as a Registered User but the script labels them as a GUEST. Anyone else having this issue? It still works but its just displaying Members Incorrectly.
Ok, here you go.
http://www.mogusland.com/media/details.php?image_id=2095
If you look at the comments, under Lord-of-Shadow it says 'GUEST' Only that comment has been made after the integration and they say they don't have as many options as a registered user does to upload or add comments. It seems it recognizes them as a Registered User but the script labels them as a GUEST. Anyone else having this issue? It still works but its just displaying Members Incorrectly.dont see any comment there, cant add comments either (using my account - mtha)
I have no problem with comments at all, but I've been using 4images since vB2, and my board using different naming table, so ... it's just different.
since I still DONT see the problem, I cant give you a hint. Just a question. did you install 4images (the original version) and test it, did it work?
Well, you may want to run this querry, to see what comments you have for that image
SELECT * FROM `4images_comments` WHERE image_id=2095;
(change 4images_comments to whatever your comments table would be)
Onkel_Tom
06-28-2004, 10:00 AM
https://vborg.vbsupport.ru/showpost.php?p=517354&postcount=161
that's the direct post where I have the fix, for vB 3.0.1
it should be included in the instruction file
pay attention to these lines:
in sessions.php
$url_logout = $url_app."login.php?do=logout&u={myuserid}";
includes/page_header.php
$myuserid = $user_info['user_id'];
thanks mtha,
I checked your instructions again, found no missmatch, put the files again on the server via ftp and now it works ;)
perhaps I forgot to ftp some files...
thanks for your great support on this Hack !
KTBleeding
06-28-2004, 01:28 PM
thanks for your great support on this Hack ! Yes, I agree with this 100%.
perhaps I forgot to ftp some files...
this I cant help, heheh
thanks for your great support on this Hack !
yo welcome
Onkel_Tom
06-29-2004, 12:12 AM
If I click on the email Button of the comments in 4 images Gallery I get a incomplete URL
http://www.yourdomain.com/forum/sendmessage.?do=mailmember&u=XY
I think this is a problem of vB because they use variables for extensions.
How this can be fixed ?
the right url should look like:
http://www.yourdomain.com/forum/sendmessage.php?do=mailmember&u=XY
If I click on the email Button of the comments in 4 images Gallery I get a incomplete URL
http://www.yourdomain.com/forum/sendmessage.?do=mailmember&u=XY
I think this is a problem of vB because they use variables for extensions.
How this can be fixed ?
the right url should look like:
http://www.yourdomain.com/forum/sendmessage.php?do=mailmember&u=XY (http://www.yourdomain.com/forum/sendmessage.php?do=mailmember&u=XY)
I think you've downloaded the old session file.
you can either download the new file in the first post, or go to edit your sessions.php and there's a link there for messages, add the .php in there
http://www.yourdomain.com/forum/sendmessage.php?do=mailmember&u=XY (http://www.yourdomain.com/forum/sendmessage.php?do=mailmember&u=XY[/QUOTE)
Onkel_Tom
06-29-2004, 08:51 AM
thanks again mtha ;)
deathemperor
06-29-2004, 01:54 PM
great, have just installed it successfully
/me clicks install ^^
gonna modify the style to fit my board
thanks mtha !
BlackxRam
06-29-2004, 10:11 PM
The 4images is running on a brand new install. There was no changes, however it is still portraying some members as guests thats why some people cant see anything and some can.
Have you tried logging into your 4images as a normal registered user of vbulletin and seeing if you can see everything there is, including comments and all the functions?
The 4images is running on a brand new install. There was no changes, however it is still portraying some members as guests thats why some people cant see anything and some can.
Have you tried logging into your 4images as a normal registered user of vbulletin and seeing if you can see everything there is, including comments and all the functions?
You must have something wrong in your settings, but it seems that even when you are logged in, you are still treat as guest.
do you have your admin account working fine?
Do you have this part setup right, and please DO CHECK and see if forum's member has groupID =2
// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
Koutaru
07-04-2004, 03:45 AM
A quick question, will this allow me to use the default vbulletin $header, $headerinclude, phpinclude, and/or $footer variables so that the layout is nicely integrated?
:) Thanks
A quick question, will this allow me to use the default vbulletin $header, $headerinclude, phpinclude, and/or $footer variables so that the layout is nicely integrated?
:) Thanks
:) you have to edit your 4images' header, footer template for this purpose. It's just easier to make another html template for this purpose.
Pagandream
07-10-2004, 07:43 AM
hi,
after my update on vb 3.0.3 I can not log into 4Images anymore.
At first it's was okay, but I cleaned up my Cache & Cookies and then I can't get into it.
New Member can't get into it also.
Slowy, I'm fed up with these free stuff!
BYe
y2krazy
07-10-2004, 01:08 PM
I integrated a 4images module to the CMPS homepage. Take a look here:
http://www.vbadvanced.com/forum/showthread.php?t=1629
-y2k-
hi,
after my update on vb 3.0.3 I can not log into 4Images anymore.
At first it's was okay, but I cleaned up my Cache & Cookies and then I can't get into it.
New Member can't get into it also.
Slowy, I'm fed up with these free stuff!
BYe
More info please. I cant help with nothing at all.
I use vB 303 + 4images and it works fine.
Did you have 4images worked with older vB versions?
Pagandream
07-11-2004, 08:12 AM
More info please. I cant help with nothing at all.
I use vB 303 + 4images and it works fine.
Did you have 4images worked with older vB versions?
Thx.
Okay after I have updated my vb 3.0.1 to 3.0.3 I checked if the Gallery works and at first it has. But after I logged out of the forum, an deleted my cookies, I logged me again into the forum an went over it to the Gallery but now I wasn't logged in anymore in the Gallery. I filed up the login Form from the Gallery but it says only "Thanks for logging in Pagan!" and redirect me on the Gallery startpage but I am not logged in.
All my members have now the same Problems!
Did I miss something? Have I to change some files after I have updated to vb3.0.3?
I need help!!!!!!!!!
Bye
Pagandream
07-11-2004, 08:48 AM
Problem Fixed! Forgotten to change the Files functions_online.php & functions.php after the update :D
But thx anway...
Problem Fixed! Forgotten to change the Files functions_online.php & functions.php after the update :D
But thx anway...
:) good to know that you found the problem.
Chrissicom
07-12-2004, 06:53 PM
Hi guys
I am clicking install too now :) finally using this hack for my forums after some problems. I have the forum in the folder /forum/ and had the gallery in the folder /sbcgalleries/. I was never logged in in the forum when I went there and the problem was that I had to move the 4images gallery to /forum/sbcgalleries/. Does the 4images gallery always have to be a subfolder in the forums dir? If so I think this wasn't mentioned in the install.txt for this hack.
although my who is online page says Unknow Location instead of viewing galleries....
this is in my functions_online.php file, anything wrong??
// Album user online Mod
case 'sbcgalleries':
$userinfo['action'] = 'Viewing Galleries';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
// End
Hi guys
I am clicking install too now :) finally using this hack for my forums after some problems. I have the forum in the folder /forum/ and had the gallery in the folder /sbcgalleries/. I was never logged in in the forum when I went there and the problem was that I had to move the 4images gallery to /forum/sbcgalleries/. Does the 4images gallery always have to be a subfolder in the forums dir? If so I think this wasn't mentioned in the install.txt for this hack.
NO, I even have 4images installed in another account. as long as it can access the same database.
If you have problem, you may did some step wrong. Please check again.
although my who is online page says Unknow Location instead of viewing galleries....
this is in my functions_online.php file, anything wrong??
// Album user online Mod
case 'sbcgalleries':
$userinfo['action'] = 'Viewing Galleries';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
// End
there's another place to identify the online status being sbcgalleries
you need to check that part too.
Chrissicom
07-13-2004, 01:04 PM
Ok, online status is fixed. But now I have another problem. I usually log in to my forum and then go from a forum link to http://www.sandraboards.com/forum/sbcgalleries/ and I am logged in. But when I go directly to http://www.sandraboards.com/forum/sbcgalleries/ although I am logged in at the boards I am not logged in and when I type in my username and password I am re-directed and still not logged in. Any idea what might be wrong?
I used the latest version of this mod and went through all the steps a few times to check if I did something wrong but didn't find anything :(
Nevermind, fixed the login thing, had a few path set wrong, although changing the path fixed the login problem I have a problem with the Show Online thingy again now lol, it says Unknow location although I fixed this part here to look like this
// Album user location
else if (strpos($token, "/forum/sbcgalleries/") !== false)
{
{
$userinfo['activity'] = 'sbcgalleries';
}
return $userinfo;
}
Chrissicom
07-13-2004, 05:47 PM
I changed the style of the 4images gallery to look like the vBulletin 3.0.3 standard design. If some people want to save time and use my changes as "template" I upload the required files here. The images go in the /gallery/templates/default/images/ folder and the .css file should simply replace with the old one of the default style (Backup your old files first).
There is a little problem with very long gallery names and picture names in the navbar, maybe someone can help me on how to fix this without changing to many template files. ...CSS margin and padding messes up the table so I won't use that as a solution. (Problem: http://www.sandrabullockcentral.com/sbcgalleries/details.php?image_id=19)
Demo of Style applied: http://www.sandrabullockcentral.com/sbcgalleries/
Note: If your gallery is not a subfolder of yourdomain.com/forum/ you have to change the background: url lines in the .css file
I have a problem with the Show Online thingy again now lol, it says Unknow location although I fixed this part here to look like this
// Album user location
else if (strpos($token, "/forum/sbcgalleries/") !== false)
{
{
$userinfo['activity'] = 'sbcgalleries';
}
return $userinfo;
}
I have no idea why this happen. it should work if you have everything setup correct. Check your database for sessions table, check the activity column for the location. Put the correct token for it, that all I can think of right now.
ntwrkguy
07-14-2004, 10:20 AM
It's perfect, only to log in, users have to make sure to uncheck the remember me box. Any way to fix?
It's perfect, only to log in, users have to make sure to uncheck the remember me box. Any way to fix?
You have a cookie problem.
Make sure you have everything setup correctly. of if you have your board AND your album setting different, try to change the configuration accordingly. (for example cookie prefix). I have no idea how your board is, what's your setting nor configuration, so I cant give detail way to fix it.
My version works fine, with and without checking "remember me" box.
Chrissicom
07-16-2004, 09:12 AM
I have cookie prefix 's' and cooke name 'bb' for both and when I login to the galleries I get logged in but the page is still shown with the login box, unless I go to forum for login and click a link to the galleries then, otherwise the login box is always shown although I am logged in.... why is that?
Also is it possible to connect 4images to 5 usergroups from vB instead of just 4? Because I want to differ between Registered and Paying Registered members.
Koutaru
07-16-2004, 06:19 PM
The only reason I wanted to include my default vbulletin header and navbar is because it contains certain conditional statements and some phpincludes that I would like to include into the gallery as well
^^; is there any way to inpliment this? Could you show me how/where to look or start?
I have cookie prefix 's' and cooke name 'bb' for both and when I login to the galleries I get logged in but the page is still shown with the login box, unless I go to forum for login and click a link to the galleries then, otherwise the login box is always shown although I am logged in.... why is that?
could be something wrong with :login: box or login variable.
Check the template user_loginform.html and login variable in sessions.php file.
I dont have any idea why you get that error yet (unless you did something wrong with your files)
Also is it possible to connect 4images to 5 usergroups from vB instead of just 4? Because I want to differ between Registered and Paying Registered members.
should be posible, but I actually dont use default vB groups, I create another field in their profile for this purpose.
The only reason I wanted to include my default vbulletin header and navbar is because it contains certain conditional statements and some phpincludes that I would like to include into the gallery as well
^^; is there any way to inpliment this? Could you show me how/where to look or start?
edit template
Look at header and footer template :)
Koutaru
07-17-2004, 04:25 AM
could be something wrong with :login: box or login variable.
Check the template user_loginform.html and login variable in sessions.php file.
I dont have any idea why you get that error yet (unless you did something wrong with your files)
should be posible, but I actually dont use default vB groups, I create another field in their profile for this purpose.
edit template
Look at header and footer template :)
Hmm but editing the HTML won't do anything if I have conditionals included in the HTML that only work for vbulletin (trust me I've tried and it screws up) Plus the phrases..
Is there something I'm doing wrong? ?_?
sasjamal
07-18-2004, 01:37 AM
I am getting some error messages...
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 = '306bbfc285210bfca0d84486f0fc0145' AND host = '65.60.139.107'
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 = 142 AND l.user_id = u.userid
Table 'gallery.user' doesn't exist
DB Error: Bad SQL Query: SELECT * FROM user WHERE userid = 142
Table 'gallery.user' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash FROM session WHERE sessionhash = '952382793777ad4cc61475519bcf7167'
Table 'gallery.session' doesn't exist
DB Error: Bad SQL Query: INSERT INTO session (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('952382793777ad4cc61475519bcf7167', 1, '65.60.139.107', 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)', 1090117656, '/gallery/index.php', '0')
Table 'gallery.session' doesn't exist
DB Error: Bad SQL Query: SELECT s.userid, s.lastactivity, s.host, u.userid, u.usergroupid, u.username FROM session s LEFT JOIN user u ON (u.userid = s.userid) WHERE s.lastactivity >= 1090115856 ORDER BY u.userid ASC, s.host ASC
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) ORDER BY i.image_date DESC LIMIT 3
Table 'gallery.user' doesn't exist
Koutaru
07-18-2004, 05:19 PM
It seems like the tables aren't there in your database. I'm guessing your database name is gallery? It should be the name of your vbulletin database
sasjamal
07-18-2004, 08:03 PM
my 4images databse name is gallery
should i be using the same db?
Also, i ma using vb 3.0.3 if that makes a difference.
sasjamal
07-18-2004, 08:04 PM
uh, im an idiot im suppose to use same db lol
redlabour
07-18-2004, 09:20 PM
So i see 3.0.3 is not a problem with this Hack ?
KTBleeding
07-18-2004, 09:28 PM
So i see 3.0.3 is not a problem with this Hack ?
So far so good.. :)
Granted, I've only upgraded to 3.0.3 a couple hours ago.
Tailfeathers
07-18-2004, 10:27 PM
There is NO automatic and safe way to do this, BUT you can try this method (require that you know enough php and SQL in order to do the job)
What you have are:
01 - vB user database with USERSET1 controled by userid (and username), says user.userid and user.username
02 - Album user database with USERSET2, controlled by user_id (and user_name) says 4images_users.user_id and 4images_users.user_name
Step 1:
- Create a new COMPARE table having 3 fields: username, forum_uid, album_uid
Step 2:
- Compare 4images_users.user_name and user.username
if match => fill in the COMPARE table (username, forum_uid, album_uid) for this user.
if not => fillin COMPARE table, with album's username, album_uid, DEFAULTID where DEFAULTID is the ID given for those who does NOT have account in forum or have different username in forum. If you want to assign this to be GUEST, the ID is 0
Do this for ALL ALBUM users
=> you know the id in forum and album for each album user
(if they have the SAME username for both places. if you think email address would be more appropriate, you can compare email instead, or compare both username and email)
Step 3:
Change user_id in album to the new forum's userid based on the above comparision, in the following tables:
4images_comments, 4images_groupmatch, 4images_images, 4images_images_temp, 4images_lightboxes, 4images_users
Step 4:
Test your album and see if everything works correctly (username, login/logout, image's poster)
Step 5: Apply this hack ... and god bless you :D
good luck.
PS. this will require alot of changes to your database, so Do a FULL BACKUP of your album database first (maybe your files too), and test in a beta version
Finally went to do this and chickened out, lol. Too worried. Maybe someday, it'd be possible to make this an automatic php install thingy or something. I'd probably destroy both my board and gallery trying to do this, hehe...
For now, people will just have to register at both separately, I guess!
Hmm but editing the HTML won't do anything if I have conditionals included in the HTML that only work for vbulletin (trust me I've tried and it screws up) Plus the phrases..
Is there something I'm doing wrong? ?_?
:) then try to convert to html-understandable header. it's easier and less troublesome than doing anonther script.
if you have conditionals that only work for vBulletin, then you did know it ONLY works for vBulletin, didnt you :> well, my suggestion is, find some similar things in 4images and use it, or simplify the conditions.
Finally went to do this and chickened out, lol. Too worried. Maybe someday, it'd be possible to make this an automatic php install thingy or something. I'd probably destroy both my board and gallery trying to do this, hehe...
For now, people will just have to register at both separately, I guess!
:P I did migrate my album once, (I used another album script), and ... well I accept to remove all album users, and change posters to ... me. it's better to use one user database in one system tho :>
romanticyao
07-27-2004, 12:25 AM
hello
i m using vb3.03 and i m having problem with this interantion
I followed all the steps and it was fine untill i changed cookie timeout in 4images to 0 right after the installtion, i was logged out as admin and never have any chance to login again...
i m still being able to login my forum, but when i logout i get a error ask me to click the link again to logout.
i tried to login using a registered member "demo", 4images logged demo into the system and it worked. however after i click logout, i get the same error message. after logout, cookie for demo at forum was cleared but demo still logged into 4image... so i cleared all the cookie in my IE(also checked folder to make sure none of the cookies left) open up IE again and i m still logge in as demo in 4image.
i have my forum and 4images both running on different subdomains...
please help!
romanticyao
07-27-2004, 12:32 AM
nevermind problem sloved for no reason...thank you anyways..
Should we be posting here or on 4images website?
Anyhow, I had a redirection problem with the login form from the 4images site. For some reason, it would redirect to my domains index page instead of the gallery, so in user_loginform.html:
I took:
<input type="hidden" name="url" value="{self_full}" />
and replaced it with:
<input type="hidden" name="url" value="http://www.mydomain.com/path/to/my/4images/folder/" />
Before I did that it was redirecting to: http://www.mydomain.com./index.php?
Any idea why? And YES, I bolded the period after the domain. Cause that's what it says. My guess is that the {self_full} variable is messed up.
Other than that, it seems to be working perfectly with vB 3.0.3
did you have this in constants.php setup correct?
// If 4images has problems to find out the right URL, define it here.
define('SCRIPT_URL', 'http://www.yourforum.com/album'); //no trailing slash
remember to put the correct URL for your 4images album
page_header.php: "self_full" => $site_sess->url($script_url."/".$self_url),
First of all sorry for my broken english.
After I implemented hacked to integrated vb and 4images - onething I'm found that when you click at user name it alway re-direct to vb profile page and it difficult to show all photo uploaed by someone specialy. so I did more modified user profile link to 2 different function..
As see in attached image. if user click at name under a photo (highlight with yellow) 4images won't re-direct you to vB user profile but it will search and show all photos uploaded by that user but if user click at name on "curent active users" (highlight with magenta) it will re-direct and show vb profile page. (see live action at http://www.thaidphoto.com/gallery/ )
if someone interest in this I will post the hack here.
Just want to give something to this hack. ;)
not bad, but come to the point of profile, I'd add a link in profile (when you view someone profile), something like "Find All Images by xxx", and link back to your search.
You can also integrate a images count for user profile, so that you can know how many images someone has uploaded.
I've heard that 4images 1.8 is on the way, so I wouldnt touch too much for right now :D
Blam Forumz
08-04-2004, 07:01 PM
I'm getting this error :
DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'blamina_4Img1.template' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash, lastactivity, host, userid FROM session WHERE sessionhash = '499eb95af60bba8a0622fc347dafbe04' AND host = '81.155.5.216'
Table 'blamina_4Img1.session' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash FROM session
Table 'blamina_4Img1.session' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash FROM session WHERE sessionhash = '133a211366c69ffd6dbfbcca5837c3ee'
Table 'blamina_4Img1.session' doesn't exist
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/blamina/public_html/forum/album/includes/db_mysql.php on line 164
DB Error: Bad SQL Query: INSERT INTO session (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('133a211366c69ffd6dbfbcca5837c3ee', 1, '81.155.5.216', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1', 1091649604, '/album/index.php', '0')
Table 'blamina_4Img1.session' doesn't exist
Warning: Cannot modify header information - headers already sent by (output started at /home/blamina/public_html/forum/album/includes/db_mysql.php:188) in /home/blamina/public_html/forum/album/includes/sessions.php on line 111
Warning: Cannot modify header information - headers already sent by (output started at /home/blamina/public_html/forum/album/includes/db_mysql.php:188) in /home/blamina/public_html/forum/album/includes/sessions.php on line 111
Warning: Cannot modify header information - headers already sent by (output started at /home/blamina/public_html/forum/album/includes/db_mysql.php:188) in /home/blamina/public_html/forum/album/includes/sessions.php on line 111
DB Error: Bad SQL Query: SELECT s.userid, s.lastactivity, s.host, u.userid, u.usergroupid, u.username FROM session s LEFT JOIN user u ON (u.userid = s.userid) WHERE s.lastactivity >= 1091647804 ORDER BY u.userid ASC, s.host ASC
Table 'blamina_4Img1.session' doesn't exist
Parse error: parse error, unexpected '<' in /home/blamina/public_html/forum/album/includes/page_header.php on line 274
Help please, I use vBulletin 3.0.2 and I use the latest 4Images
Steph2k
08-04-2004, 09:23 PM
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.
Never had any problems with that. :)
Works just fine.
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?
edeab220
08-05-2004, 08:27 PM
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?
Blam Forumz
08-05-2004, 10:25 PM
I'm getting this error :
DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'blamina_4Img1.template' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash, lastactivity, host, userid FROM session WHERE sessionhash = '499eb95af60bba8a0622fc347dafbe04' AND host = '81.155.5.216'
Table 'blamina_4Img1.session' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash FROM session
Table 'blamina_4Img1.session' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash FROM session WHERE sessionhash = '133a211366c69ffd6dbfbcca5837c3ee'
Table 'blamina_4Img1.session' doesn't exist
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/blamina/public_html/forum/album/includes/db_mysql.php on line 164
DB Error: Bad SQL Query: INSERT INTO session (sessionhash, userid, host, useragent, lastactivity, location, styleid) VALUES ('133a211366c69ffd6dbfbcca5837c3ee', 1, '81.155.5.216', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1', 1091649604, '/album/index.php', '0')
Table 'blamina_4Img1.session' doesn't exist
Warning: Cannot modify header information - headers already sent by (output started at /home/blamina/public_html/forum/album/includes/db_mysql.php:188) in /home/blamina/public_html/forum/album/includes/sessions.php on line 111
Warning: Cannot modify header information - headers already sent by (output started at /home/blamina/public_html/forum/album/includes/db_mysql.php:188) in /home/blamina/public_html/forum/album/includes/sessions.php on line 111
Warning: Cannot modify header information - headers already sent by (output started at /home/blamina/public_html/forum/album/includes/db_mysql.php:188) in /home/blamina/public_html/forum/album/includes/sessions.php on line 111
DB Error: Bad SQL Query: SELECT s.userid, s.lastactivity, s.host, u.userid, u.usergroupid, u.username FROM session s LEFT JOIN user u ON (u.userid = s.userid) WHERE s.lastactivity >= 1091647804 ORDER BY u.userid ASC, s.host ASC
Table 'blamina_4Img1.session' doesn't exist
Parse error: parse error, unexpected '<' in /home/blamina/public_html/forum/album/includes/page_header.php on line 274
Help please, I use vBulletin 3.0.2 and I use the latest 4Images
Bump
Steph2k
08-05-2004, 10:42 PM
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?
I think what they mean is that you need to have a fresh install of 4images. What is attached in this thread is simply the edits that you need to do to make this hack work as well as file replacements. Go here (http://www.4homepages.de/4images/download.php) to get 4images 1.7 and install it, then use the contents of the zip file attached in this thread to install the hack to integrate vbulletin with 4images..
Dont know if that was the answer you were looing for but that was my interpretation of your question :)
Steph2k
08-06-2004, 04:35 AM
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'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 .
dotcomguy
08-06-2004, 04:26 PM
DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'blamina_4Img1.template' doesn't exist
I was having that problem also, but I found a solution. Add the following line to constants.php:
define('VB_TEMPLATE_TABLE', VB_TABLE_PREFIX.'template');
For the other errors, I suggest you double check the table names in constats.php, and also make sure you have the prefix set correctly if you are using a prefix.
Blam Forumz
08-06-2004, 04:33 PM
Where about sin constants.php do i add it? at the end?
Edit - whats a prefix? excuse my naiveness please
dotcomguy
08-06-2004, 04:40 PM
Where about sin constants.php do i add it? at the end?
Edit - whats a prefix? excuse my naiveness please
No worries. :)
You can add it anywhere in constanst.php. There are a few lines similar to that under "// Table names". I just added it there. I suppose the author left that out in the documentation.
The prefix is the table prefix you may have specified when you installed vBulletin. My prefix is "vb3_" for example. It allows you to use a prefix on all tables vBulletin uses in the database. This is helpful if you have other tables in the database because you can easily differentiate between vBulletin tables and other tables and also prevent naming conflicts.
Blam Forumz
08-06-2004, 04:43 PM
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
deathemperor
08-12-2004, 04:33 AM
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
ImportPassion
08-14-2004, 03:53 AM
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
don't know if u still need this, but in sessions.php find
define('VB_TEMPLATE_TABLE', 'template');
and relpace with
define('VB_TEMPLATE_TABLE', '**vb_prefix**template');
replace **vb_prefix** with whatever the characters are in front of your template table in vb.
deathemperor
08-18-2004, 02:57 AM
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
anyone ?
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(?)
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
* arpy Clicks install ;)
boiboi
08-25-2004, 05:31 AM
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
<search for>
$name = COOKIE_PREFIX . $name;
</search for>
<replace>
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
</replace>
This error shows up:
Parse error: parse error in /home/initial/public_html/forums/includes/functions.php on line 1864
Line 1864:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "explain=1\">Explain</a>)<br />\n";
It seems like it's totally unrelated, but it's not.
BlackxRam
08-26-2004, 06:13 AM
First you guys. This hack right now is perfect unless you have changed the NAME of your COOKIES FOR VBULLETIN. IF you do that, go back and search this thread for the fix he gave me.
Second, this hack only integrates the LOGIN SYSTEMS... not the functionality of it. REMEMBER THAT LOL.
If your trying to get 4images to appear on vbulletin then this is not the hack your looking for. This hack will only allow you to use your vbulletin login on 4images. This hack is mainly on the 4images side. If there are any errors its probably your own fault NOT this hack. This hack is perfect if your using VB 3.0.1 and up. I have now installed this mod on over a dozen installations.
Start over, and work at it SLOWLY and it will work for you. If yout not accustomed to working with 4images then you shouldnt have tried installing this hack right now. Try some smaller hacks over at 4homepages.de to get used to the pages you will be editing.
BlackxRam
08-26-2004, 06:16 AM
Bump
Blam, I have no idea what you did but you didnt install it properly. Start over with clean files. Work it through step by step. usually a BUNCH of errors like that means you didnt upload the sessions.php file to the 4images includes folder or you messed up that file. there is only ONE CHANGE OF VBULLETIN and thats in the INCLUDES/functions.php file. Thats the only thing you change on vbulletin. Everything else is 4images related.
BlackxRam
08-26-2004, 06:18 AM
anyone ?
Death, this hack is for integrating the login systems not putting images on another page. There is a hack on 4homepages.de that outputs the latest additions to a page on your website. You can use that and the phpinclude template of vbulletin to add your images. Either that, or request a hack in the requests forum. This thread is the wrong place for that.
boiboi
08-26-2004, 08:14 PM
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
<search for>
$name = COOKIE_PREFIX . $name;
</search for>
<replace>
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
</replace>
This error shows up:
Parse error: parse error in /home/initial/public_html/forums/includes/functions.php on line 1864
Line 1864:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "explain=1\">Explain</a>)<br />\n";
It seems like it's totally unrelated, but it's not.
I've installed much more complicated hacks than this. Try vbulletin integrated with Horde framework. I commented out line 1864 now your hack works.
Guz2003
08-27-2004, 03:32 PM
I have same problem
boiboi
08-28-2004, 05:58 AM
Yeah but this guy thinks it has nothing to do with the hack, so just try commenting out the line I mentioned.
Drache
08-28-2004, 09:49 PM
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
Caiman
08-29-2004, 05:33 PM
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
hacks like that can be found in here: http://www.4homepages.de/forum/viewforum.php?f=15
Drache
08-29-2004, 07:54 PM
cool thanks for the reply i am checking. and does this hack support vb 3.03?
Drache
08-30-2004, 01:33 AM
Sweet noticed the topic updated that answered my question. it supports 3.03.
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 :)
Rambo
09-01-2004, 03:52 PM
*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
Bhuwan
09-02-2004, 04:07 PM
any idea how to get the header/footer from vbull?
:) Sorry I was traveling around Europe last month, didnt have time to go online for supports.
First come first served
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.php?p=540582&postcount=124
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?
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/
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 :D )
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 :D
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?
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)
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?
Ok, i've checked all of it, still getting the same bloody error https://vborg.vbsupport.ru/
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!
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.
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(?)
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
* arpy Clicks install ;)
password in cookie was encoded twice, that's why you need to encode DB password one more time.
That's how mine work :D anyway, it's good that you find out the solution
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.
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.
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.
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
Demolition man
09-04-2004, 04:42 PM
I can log in but i directly log out =/ What can the problem be?
Bhuwan
09-04-2004, 10:23 PM
Thnak you for this mod!
but the gallery seems to be extremely slow on loading. any idea how to debug this ?
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.
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
Demolition man
09-05-2004, 06:55 PM
yeah thx i had one problem with functions.php if i eddited it with dreamweaver it crashed my forum but works now
rex_b
09-12-2004, 08:42 PM
I'm getting all kinds of errors. I only got past the first 2 steps and I get these..
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
I'm getting all kinds of errors. I only got past the first 2 steps and I get these..
DID you read and follow ALL steps carefully as in the instruction file?
if you only do first 2 steps, it surely will NOT work.
DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'rexb2_4images.template' doesn't exist This means that you DID NOT give the correct table name for table template.
check this one in your sessions.php
define('VB_TEMPLATE_TABLE', 'template');
Table 'rexb2_4images.VB_TABLE_PREFIXsession' doesn't exist Please DO check your constants.php file for this one:
define('VB_TABLE_PREFIX',''); // your vb tableprefix. vB default is blank
and as it was mentioned in the instruction file:
-------
Step 1.
-------
Edit the included sessions.php
Correct the variables in the Configuration part
-------
Step 2.
-------
Edit the included constants.php
Correct the variables if neccessary.
=> Please do read over the two files and define the variables correctly.
If you have the variables set correct, you wont have the above database problem.
good luck
btw, please DO read over the replies, you will get alot of question answered. Your question was ask and answered in this page:
https://vborg.vbsupport.ru/showthread.php?t=66335&page=9&pp=15
rex_b
09-12-2004, 11:27 PM
Thanks for the help. I read most of the replies and I did set the variables to my prefix which is "vb3" I will try again later and hopefully it will work.
Just frustrating at times you know..
Thanks again.
Rex
Hoffi
09-13-2004, 08:00 PM
I just into the same Problem and there a small misunderstanding in the Doc.
define('VB_TEMPLATE_TABLE', 'template');
You must enter the Prefix and the Table Name. e.g.
define('VB_TEMPLATE_TABLE', 'vb3_template');
I just into the same Problem and there a small misunderstanding in the Doc.
define('VB_TEMPLATE_TABLE', 'template');
You must enter the Prefix and the Table Name. e.g.
define('VB_TEMPLATE_TABLE', 'vb3_template');
// Define here the name of the template database table.
// Normally no need to change.
define('VB_TEMPLATE_TABLE', 'template');
The default template name is template, and if you have different name for template table (such as vb3_template or anything else), you are told to DEFINE the name of that template table
SnitchSeeker
09-18-2004, 08:51 AM
Is there any way to transfer a full and functioning version?
I am using InvisionBoard currently, and have 4images integrated successfully with that. But I am moving over to vb3 (from Invision).
I want to transfer the gallery over without having to re-enter all the images - especially al the members since i have nearly 50,000.
Please tell me this is possible!! :cry: :paranoid:
Maniaz
09-19-2004, 12:23 AM
bummer, i tried to install but have got mysql errors :s there on different sub domains but i changed the cookie path in vbb. any suggestions?
http://gallery.yerix.com/index.php?
http://forum.yerix.com
Is there any way to transfer a full and functioning version?
I am using InvisionBoard currently, and have 4images integrated successfully with that. But I am moving over to vb3 (from Invision).
I want to transfer the gallery over without having to re-enter all the images - especially al the members since i have nearly 50,000.
Please tell me this is possible!! :cry: :paranoid: if you did have your 4images integrated with InvisionBoard, and you have your forum user posting pictures, then this should work fine (theorically)
I did not use IPB nor look at the integration for it, I cant say for sure if it work or not. But I think 4images should have used your IPB user table for users. ... why dont you try to convert your forum to vB, and try the integration (on pre-existing 4images database)? (remember to test and backup first)
bummer, i tried to install but have got mysql errors :s there on different sub domains but i changed the cookie path in vB. any suggestions?
http://gallery.yerix.com/index.php?
http://forum.yerix.com (http://forum.yerix.com/) Could you PLEASE READ over the posts above? you will find answers.
and could you please also read the instruction files carefully? it seems that you didnt config the files.
I dont mind answering questions, but I cannot answer the SAME question again and again.
Thanks
Maniaz
09-19-2004, 09:18 AM
lol theres 11 threads in this single thread and when on 56k its a bit harsh :( and ive followed all your instructions, twice, and still no luck. i'll have a gander through the thread then. :s
ok, read page 9 and page 11.
Maniaz
09-19-2004, 05:54 PM
thnx (k) lol
boiboi
09-24-2004, 11:16 PM
I get this on my vb's who's online
Is there anyway I can fix this to replace unknown location with 4images?
Guest Unknown Location /4images/categories.php?cat_id=11 202.81.174.xx
Bhuwan
09-25-2004, 09:59 AM
my gallery has been running smoothly for nearly 3 weeks. now all of a sudden im getting these errors:
Warning: move_uploaded_file(./data/media/4/jiji.jpg): failed to open stream: Permission denied in *on line 114
Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\TEMP\php25B.tmp' to './data/media/4/jiji.jpg' in *on line 114
I checked the Windows\temp permissions and they are okay (I verified it by uploading an image using vBULLETIN, which works).
why after 3 weeks does this fail?
I get this on my vb's who's online
Is there anyway I can fix this to replace unknown location with 4images?
Guest Unknown Location /4images/categories.php?cat_id=11 202.81.174.xx Could you PLEASE read the instruction file and pay GREAT attention to step 5? Thank you very much
=======================
Step 5: Edit vBulletin FILES (3.0.1)
------
forums/includes/functions.php
includes/functions_online.php
........
<add after>
// Album user location
else if (strpos($token, "/album/") !== false)
{
{
$userinfo['activity'] = 'album';
}
return $userinfo;
}
</add after>
======================
* Change the ($token, "/album/") according to your album location defined as ALBUM_FOLDER in sessions.php
my gallery has been running smoothly for nearly 3 weeks. now all of a sudden im getting these errors:
Warning: move_uploaded_file(./data/media/4/jiji.jpg): failed to open stream: Permission denied in *on line 114
Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\TEMP\php25B.tmp' to './data/media/4/jiji.jpg' in *on line 114
I checked the Windows\temp permissions and they are okay (I verified it by uploading an image using vBULLETIN, which works).
why after 3 weeks does this fail? are you out of quota? did you try to upload another file?
P.Jackson
09-25-2004, 08:22 PM
does this hva eto be installed into the same database as vbulletin or? as i have a install scrip in fantistico (cpanal) and it creates it in a new database just want to know b4 i install
P.Jackson
09-26-2004, 10:16 AM
is there no way we can ge tthis to automatically use the forums header and footer like photopost does?
vietnamscript
10-01-2004, 01:58 AM
dear all I have a problem:
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
Table 'sinhvien_diendan.4images_settings' doesn't exist
please help me
SnitchSeeker
10-01-2004, 04:34 PM
Holy Moly it looks like it worked!!!
Wooo Hoo!!!!!
Now I just need to fix the templates and upload the 3,000+ images I used to have before the switch...
does this hva eto be installed into the same database as vbulletin or? as i have a install scrip in fantistico (cpanal) and it creates it in a new database just want to know b4 i install
for this script, it need to be in the same database.
is there no way we can ge tthis to automatically use the forums header and footer like photopost does?
no, sorry.
dear all I have a problem:
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
Table 'sinhvien_diendan.4images_settings' doesn't exist
please help me
the error says: Table 'sinhvien_diendan.4images_settings' doesn't exist
Questions:
01. Did you install 4images seperately (follow the original instruction) and make it work? If it doesnt work, make it work first!
02. Do you have the above table exist in your database? (you can use phpMyAdmin)
vietnamscript
10-03-2004, 12:28 PM
I was config database file config.php of 4images same database of forum but when I install it. I have error, can you help me?
I was config database file config.php of 4images same database of forum but when I install it. I have error, can you help me?
which means you was NOT be able to install at the first time, even with FRESH version of 4images?
As I stated in the instruction. The integration in only work when you already have vBulletin and 4images installed AND working fine.
you need to download the original 4images version from 4homepages.de and install again. Folow their install instruction and try to have your 4images works first. Alot of help on original version given in their forum.
peterska2
10-05-2004, 02:15 PM
I've got a little problem.
I've installed 4images and am getting ready to start the modding for the integration but I can't get it in English. I've uploaded the language pack but due to my complete lack of German knowledge I can't find where to switch the language.
Any help?
[edit]
Deoasn't matter, I've got it.
good old bablefish!
peterska2
10-05-2004, 03:14 PM
<font color="red">I click install</font>
Just one question, what's the best way to link usergroups created in 4images to usergroups in vB?
I click install
Just one question, what's the best way to link usergroups created in 4images to usergroups in vB?
I myself create another seperated field for album's group, with default to be member (2), and I will only care about the admins and members. All new members are automatically in member group for forum_level. Admins are set manually.
If you want to have a "waiting for moderation" group too, make the default to be the value for moderating, and add some code in activation form so that when he/she activate profile, the value of album_level changed to member.
That way I dont have to worry about vB's groups.
SnitchSeeker
10-07-2004, 06:49 PM
Is there a way to include the "style picker" (bottom left of every vb page) in the 4images gallery? That 4images gallery could also trace which style/skin is selected, and feed the stylesheet (not the vb templates, only the css file). I want to customize the 4images templates to use the vb classes, and have the users personal settings determine which css is fed.
Also, how to make gallery comments increase in vb post count.
Bhuwan
10-08-2004, 01:25 PM
keep getting
Fatal error: Call to undefined function: imagegif() in image_utils.php on line 79
keep getting
Fatal error: Call to undefined function: imagegif() in image_utils.php on line 79
You didnt have your 4images installed properly or your server doesnt support some image functions.
This hack REQUIRE you to have your 4images installed and running. You can get help on 4images website.
Is there a way to include the "style picker" (bottom left of every vb page) in the 4images gallery? That 4images gallery could also trace which style/skin is selected, and feed the stylesheet (not the vb templates, only the css file). I want to customize the 4images templates to use the vb classes, and have the users personal settings determine which css is fed.
Not as I think of right now.
currently, 4images use "styles" globally, based on 4images' setting, not based on users' setting.
However, you can change this to "user setting", and read the "style setting" for each user. by that way, you can change style easier.
This could be a cool hack, but I cant help right now.
Also, how to make gallery comments increase in vb post count.
I'd suggest to use another field for gallery comments count. Create another field in user table, and give the table name in sessions.php, that's all what you need to do. If you want the field to be displayed in profile, put some hacking to your vB display too.
I'm having problems; Everything worked great except for the login form...
Basically, (ive attached screenshots) it says Im logged out, yet myself and the members can upload images, go to the usercp and lightbox etc (I can even access the admincp) but it still shows the login form on the left... Please see the screenies
Rick Sample
10-10-2004, 04:03 PM
I've noticed you said this hack is for vbulletin 3.0.1. Will it work with 3.0.0?
Also, where do we install the 4images at? in our sites main directory or in the /forums folder?
I'm having problems; Everything worked great except for the login form...
Basically, (ive attached screenshots) it says Im logged out, yet myself and the members can upload images, go to the usercp and lightbox etc (I can even access the admincp) but it still shows the login form on the left... Please see the screenies Do you change the user_loginfo.html template?
Try to upload the original user_loginfo.html and includes/page_header.php files again. I think you might have change that template to the one I gave somehow.
It should be the original:
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top" align="left">
{lang_loggedin_msg}<br /><br />
» <a href="{url_lightbox}">{lang_lightbox}</a><br />
» <a href="{url_control_panel}">{lang_control_panel}</a><br />
» <a href="{url_logout}">{lang_logout}</a></td>
</tr>
</table>
I've noticed you said this hack is for vbulletin 3.0.1. Will it work with 3.0.0?
It may work with 3.0.0 as well, there were some small code changes between versions for 3.0.0 and 3.0.1 but I think it still may work. However, I suggest you to upgrade your vB to 3.0.3 which is the latest one.
Also, where do we install the 4images at? in our sites main directory or in the /forums folder? It doesnt matter, you can install it anywhere you want, as long as you use the same database and dont have cookie domain conflict.
deathemperor
10-11-2004, 06:40 AM
cool, thanks Mtha and blackxRam (hey don't be so critical) I found it.
for anyone wants to display random images on vbulletin 3.x pages: here's the link: http://4homepages.de/forum/viewtopic.php?t=1688&start=0
The templates were fine; Exactly as you said. This problem is still occuring... Any other ideas?
Rick Sample
10-12-2004, 10:19 PM
What does this mean in the installation instructions
2. 4images tables and vbulletin tables have to be in the same database.
Does this mean we have to combine or tell 4images to use the vbulletin mysql database? If so, how?
The templates were fine; Exactly as you said. This problem is still occuring... Any other ideas?
It seems like the value in page_header.php doesnt read properly
if ($user_info['user_level'] >= USER) doesnt return TRUE even when you logged in.
Check:
- constants.php
// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
-sessions.php
$user_table_fields = array(
"user_id" => "userid",
"user_level" => "usergroupid",
"user_name" => "username",
"user_password" => "password",
"user_email" => "email",
"user_showemail" => "",
"user_allowemails" => "",
"user_invisible" => "",
"user_joindate" => "joindate",
"user_activationkey" => "",
"user_lastaction" => "lastactivity",
"user_location" => "",
"user_lastvisit" => "lastvisit",
"user_comments" => "",
"user_homepage" => "homepage",
"user_icq" => "icq"
make sure you have correct user_level
If you dont use forum's groupid, make sure that the field is filled with "user#" value
check includes/page_header.php
this should be default, but still chec, just incase
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
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);
}
else {
$user_box = $site_template->parse_template("user_loginform");
$site_template->register_vars(array(
"user_box" => $user_box,
"user_loggedin" => 0,
"user_loggedout" => 1,
"is_admin" => 0
));
$site_template->un_register_vars("user_loginform");
unset($user_box);
}
let me know how you come up with..
What does this mean in the installation instructions
2. 4images tables and vbulletin tables have to be in the same database.
Does this mean we have to combine or tell 4images to use the vbulletin mysql database? If so, how?
this mean both of them use the same database (supposed 4images has a different prefix)
if you dont have any table with the same name, then you can just dump one database and restore into the other, using phpMyAdmin maybe?
SnitchSeeker
10-13-2004, 08:26 AM
It seems like the value in page_header.php doesnt read properly
if ($user_info['user_level'] >= USER) doesnt return TRUE even when you logged in.
Check:
- constants.php
// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
-sessions.php
$user_table_fields = array(
"user_id" => "userid",
"user_level" => "usergroupid",
"user_name" => "username",
"user_password" => "password",
"user_email" => "email",
"user_showemail" => "",
"user_allowemails" => "",
"user_invisible" => "",
"user_joindate" => "joindate",
"user_activationkey" => "",
"user_lastaction" => "lastactivity",
"user_location" => "",
"user_lastvisit" => "lastvisit",
"user_comments" => "",
"user_homepage" => "homepage",
"user_icq" => "icq"
make sure you have correct user_level
If you dont use forum's groupid, make sure that the field is filled with "user#" value
check includes/page_header.php
this should be default, but still chec, just incase
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
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);
}
else {
$user_box = $site_template->parse_template("user_loginform");
$site_template->register_vars(array(
"user_box" => $user_box,
"user_loggedin" => 0,
"user_loggedout" => 1,
"is_admin" => 0
));
$site_template->un_register_vars("user_loginform");
unset($user_box);
}
let me know how you come up with..
this mean both of them use the same database (supposed 4images has a different prefix)
if you dont have any table with the same name, then you can just dump one database and restore into the other, using phpMyAdmin maybe?
Some of my users are complaining that they can't view images once there are comments for it. They can view all images fine that don't have comments, but when there are comments to an image, the whole page loads - except the image itself. It shows up blank, like it isn't even part of the page.
I have no idea how many people are experiencing this, but at least a few are since they have PM'ed me about it.
Any idea why this might be?
Some of my users are complaining that they can't view images once there are comments for it. They can view all images fine that don't have comments, but when there are comments to an image, the whole page loads - except the image itself. It shows up blank, like it isn't even part of the page.
I have no idea how many people are experiencing this, but at least a few are since they have PM'ed me about it.
Any idea why this might be?
can you replicate the problem? I registered and view one with comment, andit was displayed fine.
I did not do anything with comments, nor display pictures.
- did you have this problem before integration?
- were you able to see the problem yourself?
- can you get your user's account, and using his account to see the problem?
I found the error,
- constants.php
// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
For 'user' I was using another groupid of registered users which have 1+ posts as opposed to user's with 0 posts which made up the user groupid '2'...
Anyways, I sorted out the problem, thanks for leading me to the fix :)
InsaneContender
10-13-2004, 07:30 PM
I work at CommunityForums as well, and I've noticed that the fix works great for just registered users, however - it does not work for administrators (who's usergroupid is still 6)
What could be causing this?
I work at CommunityForums as well, and I've noticed that the fix works great for just registered users, however - it does not work for administrators (who's usergroupid is still 6)
What could be causing this?
could be the same reason :)
defi sorted out the problem, he should know what cause it, right? do the same check!
InsaneContender
10-13-2004, 09:15 PM
I think I may know - when I first registered it - I used my name as the admin (userid: 1)
My userid is 1 on the forums as well
Could this conflict?
I think I may know - when I first registered it - I used my name as the admin (userid: 1)
My userid is 1 on the forums as well
Could this conflict?
This hack uses vBulletin's user table, and it doesnt care about what you did with the old registration you did with 4images.
because your board has custom groups, with custom settings (which I dont know), so I cant guess the reason.
try to check and play with the code I gave above.
If you want, you can test, getting your user_level ,
in page_header.php
FINE
if ($user_info['user_level'] >= USER) {
ADD ABOVE:
echo "Userlevel: ". $user_info['user_level'] ." - ";
echo "User setting: ". USER;
then go to your album, read the value for user level on top of your page. Should this be the correct user_level?
compare this with the second number .
InsaneContender
10-14-2004, 07:20 PM
This is what I got:
Userlevel: 1 - User setting: 2
I am an admin, so shouldn't I be a 6?
This is what I got:
Userlevel: 1 - User setting: 2
I am an admin, so shouldn't I be a 6?
You should have userlevel = 6.
Check your group setting, user_level setting (which assign to forum's group) ...
you need to provide me detail information on how you did to your forum and album, otherwise, I cant just guess around the reason for your modifications.
InsaneContender
10-15-2004, 08:59 PM
Well, everything in the database (ids and such) match the other superadmin (Defi) and it works just fine for him. In fact - I am the only user which has this problem, and it's really bothering me... here are some of the things that are setup...
4IMAGES - Constants.php
==================================
// User levels
define('GUEST', 1);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
// Permission levels
define('AUTH_ALL', 0);
define('AUTH_USER', 2);
define('AUTH_ACL', 3);
define('AUTH_ADMIN', 6);
==================================
4IMAGES - page_header.php
==================================
//-----------------------------------------------------
//--- User Box ----------------------------------------
//-----------------------------------------------------
echo "Userlevel: ". $user_info['user_level'] ." - ";
echo "User setting: ". USER;
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);
}
else {
$user_box = $site_template->parse_template("user_loginform");
$site_template->register_vars(array(
"user_box" => $user_box,
"user_loggedin" => 0,
"user_loggedout" => 1,
"is_admin" => 0
));
$site_template->un_register_vars("user_loginform");
unset($user_box);
}
============================
vBulletin - Usergroup IDs
============================
Admins: 6
Mods: 7
Registered (0 posts - no access): 2
Super Mods: 5
Unreg: 1
Awaiting Confirm: 3
Banned: 8
Registered 2 (1+ posts - access): 12
============================
It works fine for all users but me. So I really have no idea what is wrong...
And OH - my userid IS 1 and my group ID IS 6.... everything seems configured properly...
4IMAGES - Constants.php
==================================
// User levels
define('GUEST', 1);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
...
And OH - my userid IS 1 and my group ID IS 6.... everything seems configured properly...
Did I have GUEST ID = 1? I think I had it be 0 in the instruction file
and the checking was stated again here
https://vborg.vbsupport.ru/showpost.php?p=561764&postcount=183
make that change back to ZERO, and you will be fine.
define('GUEST', 0);
InsaneContender
10-16-2004, 06:06 AM
Yup, that did it! I wonder why I didn't notice that in the posts... well - whatever it was - it worked! Thanks!
Any explination on why it was that?
Yup, that did it! I wonder why I didn't notice that in the posts... well - whatever it was - it worked! Thanks!
Any explination on why it was that?
There's a misleading in 4images config file. 4Images sometime check "user-id" and "user_level" for GUEST. you are unlucky enough to put 1 as user_level for guest :) => there's several user_info['user_id'] = GUEST; => seeing you as guest (and show the login box), but in the admin function part,it only check for userlevel :)
Bhuwan
10-17-2004, 11:36 AM
You didnt have your 4images installed properly or your server doesnt support some image functions.
This hack REQUIRE you to have your 4images installed and running. You can get help on 4images website.
It only fails when you upload a GIF file (it tries to create a THUMBNAIL, which cuases it to error out).
Any Suggestions?
It only fails when you upload a GIF file (it tries to create a THUMBNAIL, which cuases it to error out).
Any Suggestions? check your graphic setting (Conversion tool for thumbnails)
Control Panel/ Settings / Conversion tool for thumbnails
if you dont have this setting correct, you wont be able to create thumbnails.
what it should be, based on your server, if your server has IM, GD or NetPBM. you can ask your host, or test
refer their manual for instruction
Cheertobi
10-19-2004, 05:52 PM
Does this also works with 4images 1.7.1 ?
Tobi
Chadi
10-19-2004, 07:30 PM
I'm getting some crazy error:
http://www.talkjesus.com/4images/admin/index.php
How do I fix this?
I'm getting some crazy error:
http://www.talkjesus.com/4images/admin/index.php
How do I fix this?
DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'chadi_4images.template' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash FROM session
Table 'chadi_4images.session' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash FROM session WHERE sessionhash = '62acf9f66e454d30ab0189ddec368746'
Table 'chadi_4images.session' doesn't exist
You missed some step. You can either read the instruction and do the steps carefully or read my answer few page up. this question has been asked and answered many time!
Does this also works with 4images 1.7.1 ?
I dont know. didnt try, didnt bother to upgrade to 1.7.1 either. Anyone have any luck on answering this question? :)
Chadi
10-20-2004, 01:48 AM
I double checked everything, actually 3-4 times by now.
I've attached all files that were edited / included.
I double checked everything, actually 3-4 times by now.
I've attached all files that were edited / included. Refer back to this post:
https://vborg.vbsupport.ru/showpost.php?p=552042&postcount=151
on page 11:
(https://vborg.vbsupport.ru/showthread.php?t=66335&page=11&pp=15)
01: constant.txt:
Do you have vb table prefix in your database?
define('VB_TABLE_PREFIX',''); // your vb tableprefix. vB default is blank
02: sessions.php
Are you sure your template table name is "template"? or if you need any prefix?
// Define here the name of the template database table.
// Normally no need to change.
define('VB_TEMPLATE_TABLE', 'template');
btw, do you have your 4images and vb tables in the SAME database?
PAINTBALLM
10-20-2004, 09:20 PM
I could install this myself, but I dont really have the time with the tons of work I am doing lately with the company I work for now. I will pay $15 or so via paypal to have it installed on my site www.pbmessage.com LMK ;)
Actually.. $20. To have it working with my vb3.0.3 site/database, and set up to match the rest of the site.
Neal-UK
10-21-2004, 12:46 PM
Do u have a version for vb 3.0.3?
I installed this, and it appeared to be working fine except on the gallery homepage is showed active users but not the words 'Currently active users:' or to that effect.
I also logged out via the gallery and it came up with the old VB messages, error whilst attempting to log you out, click here to logout.
I've removed it again but would very much like it on my forums.
Do u have a version for vb 3.0.3? this version should work for 3.0.3
I installed this, and it appeared to be working fine except on the gallery homepage is showed active users but not the words 'Currently active users:' or to that effect. dont really understand what you mean, but it seems that you have problem with your template or language file. Check them out.
I also logged out via the gallery and it came up with the old VB messages, error whilst attempting to log you out, click here to logout.
The logout link should have userid &u=xxx in there. it was included in my instruction file.
James T Brock
10-22-2004, 06:02 AM
Ok, I have this installed and working fine except for one problem. My moderators can login but they are complaining that the upload buttun is greyed out and they are not being allowed to upload images.
Is there some kind of glitch in the permissions system that is not allowing their usergroup to upload pics?
Ok, I have this installed and working fine except for one problem. My moderators can login but they are complaining that the upload buttun is greyed out and they are not being allowed to upload images.
Is there some kind of glitch in the permissions system that is not allowing their usergroup to upload pics?
groupID problem.
Member has group = 2, admin has group = 6, but moderators groupID are unclassified in 4images.
I think the easiest way is adding another field for album level in user table, giving default value = 2 (member). For those who need to be admin, just change the value to be 6
bkbelew
10-24-2004, 04:15 AM
Im having some issues with my install, everytime i try to upload a picture i get this:
Warning: Unable to create './data/media/1/4575.jpg': No such file or directory in /var/vhosts/gamesite/html_docs/gallery/includes/upload.php on line 114
Warning: Unable to move '/tmp/phpskgnZH' to './data/media/1/4575.jpg' in /var/vhosts/gamesite/html_docs/gallery/includes/upload.php on line 114
the chmod for the data directory is 777 i dont see what its deal is, can someone help me?
Im having some issues with my install, everytime i try to upload a picture i get this:
the chmod for the data directory is 777 i dont see what its deal is, can someone help me?
This is a problem related to original 4-images install that you have, which has nothing to do with this hack.
I think I saw the problems several times. I think it is related to safe_mode property. Check over 4-images forum. they should be able to answer your question.
XrayHead
10-24-2004, 07:14 PM
This hack uses vBulletin's user table, and it doesnt care about what you did with the old registration you did with 4images..
OK, I have installed this hach and have the same table issue!!!
DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'gallerydb.template' doesn't exist
DB Error: Bad SQL Query: SELECT sessionhash, lastactivity, host, userid FROM session WHERE sessionhash = '9f580daff7691a3a3d9fc7edee1a4580' AND host = '82.69.76.24'
Table 'gallerydb.session' doesn't exist
I DO UNDERSTAND that I have to have the 4images tables in the VB database BUT how the hell do I get them into there?
Also do I have to change the config.php in 4images route to also have my forums database name and password (if so I did not see that in the install readme).
Xrayhead
[edit]
OK when you say a FRESH install........ Do you mean that when you run the install script for 4images you have to fill in the database as your on VB details???????
XrayHead
10-24-2004, 08:18 PM
Right I have fixed this now.
I did a fresh install of 4images and when I ran the install I put my VBulletin database details into the 4images database settings. Ran the install and hey presto I now have the correct tables in my VB database!!!
It dose not say this anywhere in the install instructions and it would be really useful if you could add what I have just stated.
Xrayhead
Right I have fixed this now.
I did a fresh install of 4images and when I ran the install I put my VBulletin database details into the 4images database settings. Ran the install and hey presto I now have the correct tables in my VB database!!!
It dose not say this anywhere in the install instructions and it would be really useful if you could add what I have just stated.
Xrayhead
When I say "fresh install", I mean you make a NEW installation for your album.
It does state clearly in the instruction note that
2. 4images tables and vbulletin tables have to be in the same database.
maybe you skip the "Notes before you install" section.
XrayHead
10-25-2004, 08:14 PM
No I did not skip the notes, (I read them about 20 times and could not understand how to get the tables into my database) I was also searching for a script in this thread that would install the new tables into my database for me!!!
I think the hack is very good indeed and a lot of work must have gone into it.
I have had my forum running for 3 years now, why would I not read or skip something that could mess it all up?
2. 4images tables and vbulletin tables have to be in the same database.
I would suggest that you include in the install file that you have to enter YOUR OWN forum database details when you run the install.php for 4images!!
As you know when you install Vbulletin fresh it destroys ALL tables within the database, I was worried that the 4images would damage my database (although I had backed it up prior).
I hope this makes more sense of what I am trying to say and I hope it helps others with the same problem.
Xrayhead
PS, Thanks again for a really good hack (have it installed and working a treat on my site) finally. :squareeyed:
Mattius
10-28-2004, 11:27 AM
Did the integration today and i got problems accessing the admin area.
I never did have problems previous to the integration...
When you check this pic below, its obvious i have a path problem somewhere but ive double checked it all and cant figure out where it is...Exactly what bit of code is being utilized here.
Once i get this once sorted, then ill move onto login...Quite frankly ive had exactly the same problem with Coppermine and spent 2 days on it...gave up on that in the end...but it worked flawlessly before integration. I feel like just forcing my users to double login if they want to use it...personally i wouldnt bother me..
Anywayz if somebody could help id really appreciate it...
XrayHead
10-28-2004, 01:20 PM
Did the integration today and i got problems accessing the admin area.
I never did have problems previous to the integration...
When you check this pic below, its obvious i have a path problem somewhere but ive double checked it all and cant figure out where it is...Exactly what bit of code is being utilized here.
Once i get this once sorted, then ill move onto login...Quite frankly ive had exactly the same problem with Coppermine and spent 2 days on it...gave up on that in the end...but it worked flawlessly before integration. I feel like just forcing my users to double login if they want to use it...personally i wouldnt bother me..
Anywayz if somebody could help id really appreciate it...
Ok what directory did you install the 4images to?
I have mine in the following "/home/lsmith/public_html/vboard/gallery/"
And access it via http://www.my_url.com/vboard/gallery/
And Admin would be via http://www.my_url.com/vboard/gallery/admin/
I have just installed this and it works a treat, let me know if you need any help.
Xrayhead
XrayHead
10-28-2004, 01:35 PM
Ok I had a look at your site and you are useing the wrong url to login.
Have a look at the attached.
I never did have problems previous to the integration...
Interesting. How can you call a login.php when it never exists in admin folder? or you created one? It should be index.php
album/admin/index.php
I feel like just forcing my users to double login if they want to use it...personally i wouldnt bother me..
with this hack, if everything works properly, your users dont have to double login.
rockyou
10-29-2004, 02:41 AM
I installed for my 4images, but I can't login. Can you help me ?
I installed for my 4images, but I can't login. Can you help me ? yes but how do you want me to help you? :rolleyes:
Mattius
10-29-2004, 07:31 AM
Thx for the response guys...
I have my forums setup in my root directory. So www.gamerscurse.com for me, is everybody elses www.gamerscurse.com/forums/
so the full path is /home/httpd/vhosts/gamerscurse.com/httpdocs
4images is set up in www.gamerscurse.com/gallery/
so path wise its /home/httpd/vhosts/gamerscurse.com/httpdocs/gallery
Ive rechecked the installation and cant see where i stuffed up, all i did was change the word "album" for "gallery" in a couple instances.
I have this in constants.php, other than that its all standard.
// If 4images has problems to find out the right URL, define it here.
define('SCRIPT_URL', 'http://www.gamerscurse.com/gallery'); //no trailing slash
define('VB_TABLE_PREFIX',''); // your vb tableprefix. vB default is blank
I have the main config for sessions.php as follows
define('USER_INTEGRATION', 'VBULLETIN');
define('VBLICENCE_NUMBER', 'XXXXXXXX'); // The correct number is here btw. This is just to hide my licence number..
define('SESSION_NAME', 's'); // Default of vBulletin is "s".
define('COOKIE_PREFIX', 'bb'); //Default of vBulletin is "bb".
define('COOKIE_TIMEOUT','1800'); //Set the same with your vB timeout, in second
define('ALBUM_FOLDER','/gallery/'); //Your Album Folder WITH trailing slash
// Define here the name of the template database table.
define('VB_TEMPLATE_TABLE', VB_TABLE_PREFIX.'template');
// 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" => "userid",
"user_level" => "usergroupid",
"user_name" => "username",
"user_password" => "password",
"user_email" => "email",
"user_showemail" => "",
"user_allowemails" => "",
"user_invisible" => "",
"user_joindate" => "joindate",
"user_activationkey" => "",
"user_lastaction" => "lastactivity",
"user_location" => "",
"user_lastvisit" => "lastvisit",
"user_comments" => "",
"user_homepage" => "homepage",
"user_icq" => "icq"
);
// Set here the URL to your vBulletin forum. WITH trailing slash!
$url_app = "http://www.gamerscurse.com/";
// Set here different URL's to your vBulletin forum.
// Normally no need to change.
$url_register = $url_app."register.php?do=signup";
$url_lost_password = $url_app."login.php?do=lostpw";
$url_control_panel = $url_app."usercp.php";
$url_mailform = $url_app."sendmessage.php?do=mailmember&u={user_id}";
$url_show_profile = $url_app."member.php?u={user_id}";
$url_login = $url_app."login.php";
$url_logout = $url_app."login.php?do=logout&u={myuserid}";
$clientscript_md5 = $url_app."clientscript/vbulletin_md5.js";
Now i notice in the installation it says to replace
if ($user_info['user_level'] != ADMIN) {
show_admin_header();
?>
<br /><br /><br />
<table cellpadding="1" cellspacing="0" border="0" align="center" width="500"><tr><td class="tableborder">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr class="tablerow"><td align="center" nowrap><p><?php echo $lang['no_admin']; ?></p>
<form action="<?php echo ROOT_PATH; ?>admin/index.php" method="post">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php echo $site_sess->url(ROOT_PATH."admin/".$self_url); ?>">
<table cellpadding="0" cellspacing="1" border="0">
<tr>
<td><input type="text" name="loginusername" size="<?php echo $textinput_size2; ?>"></td>
<td><input type="password" name="loginpassword" size="<?php echo $textinput_size2; ?>"></td>
<td><input type="submit" value=" <?php echo $lang['admin_login']; ?> "></td>
</tr>
<tr>
<td><font size="1" class="smalltext"><?php echo $lang['field_username']; ?></font></td>
<td colspan="2"><font size="1" class="smalltext"><?php echo $lang['field_password']; ?></font></td>
</tr>
</table>
</form>
</td></tr></table>
</td></tr></table>
<p align="center">4images Administration Control Panel</p>
<?php
show_admin_footer();
exit;
}
with
if ($user_info['user_level'] != ADMIN) {
show_admin_header();
?>
<br /><br /><br />
<table cellpadding="1" cellspacing="0" border="0" align="center" width="500"><tr><td class="tableborder">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr class="tablerow">
<td align="center" nowrap>
<p><?php echo $lang['no_admin']; ?></p>
<form action="/forum/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="/forum/clientscript/vbulletin_md5.js"></script>
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="redirect" value="<?php echo $site_sess->url(ROOT_PATH."admin/".$self_url); ?>">
<table cellpadding="0" cellspacing="1" border="0">
<tr>
<td>
<input type="text" name="vb_login_username" size="<?php echo $textinput_size2; ?>">
</td>
<td>
<input type="password" name="vb_login_password" size="<?php echo $textinput_size2; ?>">
</td>
<td>
<input type="submit" value=" <?php echo $lang['admin_login']; ?> ">
</td>
</tr>
<tr>
<td>
<font size="1" class="smalltext"><?php echo $lang['field_username']; ?></font>
</td>
<td colspan="2">
<font size="1" class="smalltext"><?php echo $lang['field_password']; ?></font>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td></tr></table>
<p align="center">4images Administration Control Panel</p>
<?php
show_admin_footer();
exit;
}
Now those bold areas have the "/forum/" removed because its in my root directory...so its just "login.php" (should i have a slash at the front?) and "/clientscript/vbulletin_md5.js".
Also based on what you guys said isnt
<form action="<?php echo ROOT_PATH; ?>admin/index.php" method="post">
...the old version
correct and not
<form action="/forum/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)"> which is what the instructions say to put in...
im calling login.php there and not the old index.php?
Mattius
10-29-2004, 07:33 AM
ok i put the "/" infront of login.php and now i dont get the error i got before but it keeps just bouncing me back to the admin login screen after i entered it.
permabanned.net
10-29-2004, 10:10 AM
So far, it looks awesome and it seems to be working correctly. Thanks for an awesome hack :)
How can I add a Navbar link to the gallery?
How about a link in Quick Links?
At least knowing the relevant Admin CP path and code to look for would be a big help.
THanks!
permabanned.net
10-29-2004, 10:17 AM
Found this relevant bit for navbar (http://www.vbulletin.com/forum/showthread.php?t=108961) still working on it...
ok i put the "/" infront of login.php and now i dont get the error i got before but it keeps just bouncing me back to the admin login screen after i entered it.
The login.php is vBulletin's login file:
Change ALL /forum/ by / or you can use your full path:
<form action="http://www.gamerscurse.com/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_ login_md5password_utf)">
<script type="text/javascript" src="http://www.gamerscurse.com/clientscript/vbulletin_md5.js"></script>
after making changes, clear all cookie, logout and login again.
Test: you may try to login in your forum home first, change to your album, and then browse to your AdminCP. You shouldnt have to login at these points.
Bhuwan
10-29-2004, 08:25 PM
Anyone wanna show me how to customize the look of 4 images?
Mattius
10-29-2004, 08:52 PM
The login.php is vBulletin's login file:
Change ALL /forum/ by / or you can use your full path:
<form action="http://www.gamerscurse.com/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_ login_md5password_utf)">
<script type="text/javascript" src="http://www.gamerscurse.com/clientscript/vbulletin_md5.js"></script>
after making changes, clear all cookie, logout and login again.
Test: you may try to login in your forum home first, change to your album, and then browse to your AdminCP. You shouldnt have to login at these points.
ok i tried the changes in the code you mentioned, i used the full path, and it shows me as a registered user on the gallery index page but I STILL have to login both at the gallery index and the admin and it still redirects me without actually loggin in...
Are there other areas where i have to change this code?
ok i tried the changes in the code you mentioned, i used the full path, and it shows me as a registered user on the gallery index page but I STILL have to login both at the gallery index and the admin and it still redirects me without actually loggin in...
Are there other areas where i have to change this code?
I was able to register and login your gallery WITH my name. so the login part is working fine.
What is your groupID? you have to be in groupid 6 (Admin) in order to login to admin area.
And you should have this number right, according to your forum setting
- constants.php
// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
https://vborg.vbsupport.ru/showthread.php?t=66335&page=13&pp=15#post561764
Anyone wanna show me how to customize the look of 4 images?
Go to your Admin Control Panel
Go to Templates, and edit templates there.
Detail instruction should be available at www.4homepages.de
snap_com
10-30-2004, 09:24 PM
I just wanted to say thank you for this hack, but I am having one problem. I have installed this hack about 6 times now and reinstalled vb and 4images just as much. I am still having the same problem.
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/domain/public_html/forum/includes/functions.php on line 1887
Anyone know what I am doing wrong or what the problem is?
Thanks
snap_com
I just wanted to say thank you for this hack, but I am having one problem. I have installed this hack about 6 times now and reinstalled vb and 4images just as much. I am still having the same problem.
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/dreamxs/public_html/forum/includes/functions.php on line 1887
Anyone know what I am doing wrong or what the problem is?
Thanks
snap_com
What is line 1887 in your code says?
Do you have problem after this hack?
snap_com
10-30-2004, 09:51 PM
I am using verion 3.0.3 of vb. This is what 1887 says:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "explain=1\">Explain</a>)<br />\n";
not sure what is the problem. Basically after I upload the functions.php and functions_online.php that error is the only thing I get on the forums. But 4images gallery works fine. Just vb won't work.
snap_com
Just one question, what's the best way to link usergroups created in 4images to usergroups in vB?
I've release an update version for those who have multiple vB custom groups, so you can set multiple vB groups to be Album's USER group, ADMIN group, or WAITING for MODERATION group.
(updated in the first post)
Just want to make changes? here's how:
NOTE: remember to backup the old files if you had them working good. I just make this work, didnt have time to fully test it. Let me know if it works good.
In constants.php:
Look for
// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
Replaced by
// User default levels
define('GUEST', 0); // GUEST group or ID
define('USER_AWAITING_DEFAULT', 3);
define('USER_DEFAULT', 2);
define('ADMIN_DEFAULT', 6);
// User groups level
$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
Define the groups that should be user, admin in $waitinggroups, $usergroups, $admingroups, seperate each group by comma
In sessions.php:
Look for
// Get Userinfo
$session_info = $site_sess->return_session_info();
$user_info = $site_sess->return_user_info();
Add after:
// Set USERGROUP levels
if (in_array($user_info[user_level], $admingroups))
{
define('ADMIN', $user_info[user_level]);
}
else define('ADMIN',ADMIN_DEFAULT);
if (in_array($user_info[user_level], $usergroups))
{
define('USER', $user_info[user_level]);
}
else define('USER',USER_DEFAULT);
if (in_array($user_info[user_level], $waitinggroups))
{
define('USER_AWAITING', $user_info[user_level]);
}
else define('USER_AWAITING',USER_AWAITING_DEFAULT);
I am using verion 3.0.3 of vb. This is what 1887 says:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "explain=1\">Explain</a>)<br />\n";
not sure what is the problem. Basically after I upload the functions.php and functions_online.php that error is the only thing I get on the forums. But 4images gallery works fine. Just vb won't work.
snap_com I think I saw someone had this problem before, either here or somewhere in 4homepages.de site. could you just do some search with that?
I think that guy was just comment out that line, and everything works fine.
...
read Valr the Slain posts here
https://vborg.vbsupport.ru/showthread.php?t=66335&page=2&pp=15
The answer is somewhere around there, or you can ask him for a solution
James T Brock
10-30-2004, 11:02 PM
groupID problem.
Member has group = 2, admin has group = 6, but moderators groupID are unclassified in 4images.
I think the easiest way is adding another field for album level in user table, giving default value = 2 (member). For those who need to be admin, just change the value to be 6
My moderators are all in a moderator usergroup. If I add those changes with your latest update, and add the moderator usergroup to level user in the gallery, would that be sufficient without the database changes?
My moderators are all in a moderator usergroup. If I add those changes with your latest update, and add the moderator usergroup to level user in the gallery, would that be sufficient without the database changes?
yes it should be.
remember, this has to be primary group.
303Nate
11-01-2004, 02:12 AM
I tried to install it on my v3.0.3 and I'm getting this error
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/x303/public_html/forums/includes/functions.php on line 1893
this is what is around line 1893
$debughtml = '<hr />';
//$debughtml .= "<ul><a href=\"#\" onclick=\"set_cookie('vbulletin_collapse', ''); window.location=window.location\">vbulletin_collapse</a>:<br /><li>" . str_replace("\n", '</li><li>', $_COOKIE['vbulletin_collapse']) . "</li></ul>";
$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";
The "<a href" line is 1893.
Any help?
Mattius
11-01-2004, 05:35 AM
Thx to Mtha i finally managed to get my site working. In the end the admin problem appears to be that i had
define('GUEST', 1);
instead of
define('GUEST', 0);
and that appeared to solve it straight away, i have no idea why because admin group is 6 but there you go. Now i have another question. What is the best way to go about changing the templates so it fits in with the rest of my site. I notice the templates are .html. so calling php files might be an issue?...im not sure.
Once i get the templates sorted it will be mission complete.
Thx again Mtha for your perserverance and help.
I tried to install it on my v3.0.3 and I'm getting this error
this is what is around line 1893
The "<a href" line is 1893.
Any help?
https://vborg.vbsupport.ru/showpost.php?p=567243&postcount=234
and that appeared to solve it straight away, i have no idea why because admin group is 6 but there you go. Now i have another question. What is the best way to go about changing the templates so it fits in with the rest of my site. I notice the templates are .html. so calling php files might be an issue?...im not sure.
dont understand what you mean by calling php files. if you want to change templates, just edit those html files.
Guys, check this out ...
This is a full integration of vB3.0.3 with 4images 1.7 :rolleyes:
with much more features.
I'll need to wrap things up, "still in beta stage" then post all the new features.
http://www.uaeart.com/main/
James T Brock
11-01-2004, 10:35 PM
Guys, check this out ...
This is a full integration of vB3.0.3 with 4images 1.7 :rolleyes:
with much more features.
I'll need to wrap things up, "still in beta stage" then post all the new features.
http://www.uaeart.com/main/
If this is in beta, than it may be a good idea to post the code so that others can beta test it for you. It also would be a good idea to start your own thread so as not to hijack this one. I'm assuming, of course, that you are actually considering releasing this hack and aren't just throwing a tease.
One simple question; I looked the site over and obviously the 4images is TOTALLY integrated with the forum, the comments are forum threads(I was just going to ask for someone to post an add-on to the current mod that would allow that), etc. But would a regular forum still be able to operate and the gallery and all of those stats would just be in a subforum?
You really should post the early beta's and let other people test it out for themselves. JMO
deathemperor
11-02-2004, 02:37 AM
since the random images hack in 4images.de doesn't work with vb3, I've released one for myself:
https://vborg.vbsupport.ru/showthread.php?t=71267
NexVision
11-03-2004, 10:20 PM
here is the error i get not sure wut i did wrong either also I cannot even login it tells me login successful but then brings me back to the login prompt
here is the error i get not sure wut i did wrong either also I cannot even login it tells me login successful but then brings me back to the login prompt
You either DONT have your 4images and vBulletin in the SAME database, or you have configured wrong TABLE NAME.
Check that, or read the instruction carefully. in you still cant solve the problem, read over the posts along this thread, you surely will get the answer
.
There are ALOT of people having the same problem. please look over the answer on few page up.
NexVision
11-04-2004, 03:56 AM
You either DONT have your 4images and vBulletin in the SAME database, or you have configured wrong TABLE NAME.
Check that, or read the instruction carefully. in you still cant solve the problem, read over the posts along this thread, you surely will get the answer
.
There are ALOT of people having the same problem. please look over the answer on few page up.
U r correct I moved them into the DB and everything worked perfect now is there a way to set whether or not users have to wait for validation on pix or not i have input the usergroups in the constants.php and its still awaiting moderation
James T Brock
11-04-2004, 07:55 AM
The pic validation thing has nothing to do with this hack and is a 4images feature. Go into your GALLERY admin panel and click the edit categories option and modify the permissions.
NexVision
11-04-2004, 02:12 PM
The pic validation thing has nothing to do with this hack and is a 4images feature. Go into your GALLERY admin panel and click the edit categories option and modify the permissions.
I have done that but it seems that the only people who can upload without a problem are admins.
NexVision
11-06-2004, 07:52 PM
Ok I have gone over this for almost a week now trying diffrent settings I am running 4 images with vbulletin 3.0.3 and users can upload however all there uploads require approval and I cannot for the life of me figure out Y I have edited the constants file as stated to accomidate all the usergroups on my forum please tell me if I have done something wrong in the attached pic.
Ok I have gone over this for almost a week now trying diffrent settings I am running 4 images with vbulletin 3.0.3 and users can upload however all there uploads require approval and I cannot for the life of me figure out Y I have edited the constants file as stated to accomidate all the usergroups on my forum please tell me if I have done something wrong in the attached pic.
I think I have to quote Jame's answer again for this problem:
"Go into your GALLERY admin panel and click the edit categories option and modify the permissions."
if you want your USERS to be able to upload without moderation, you have to let "Direct Upload" = Registered Users
NexVision
11-08-2004, 05:58 PM
I think I have to quote Jame's answer again for this problem:
"Go into your GALLERY admin panel and click the edit categories option and modify the permissions."
if you want your USERS to be able to upload without moderation, you have to let "Direct Upload" = Registered Users
That is exactly how I had it set and still nothing would work without validation at the suggestion of someone on the 4-images forum I uninstalled the gallery and reinstalled and now it worx perfectly so thanks to all who helped and if anyone else occurs this problem try uninstalling and reinstalling.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.