View Full Version : 4images Gallery 1.7
Matrixgl
02-28-2004, 10:00 PM
A lot of people, both here and at 4homepages.de have been requesting for a mod/hack that would integrate vBulletin 3 RCX with 4images 1.7 lately. The solutions are scattered around the forums, but nobody has it all in one page.
So I've decided put them all togather, and release it, so it will be easier for people to do the intigration successfully.
Please note that all the codes in this hack/mod are property of Jan and mtha.
http://www.4homepages.de/forum/viewtopic.php?t=1659
http://www.4homepages.de/forum/viewtopic.php?t=1659&start=165#32514
I have tested this on vBulletin 3.0.0 RC3 and it worked successfully.
Features:
Uses your existing vBulletin powered forum's login account for authentication.
Uses your existing vBulletin powered forum's whos online feature
Can be modified to display any information from your existing vBulletin database, perticularly from the "user" table, which means you can display any information about the logged in user.
Since it is integrated with the database, you can display any gallery information such as latest picture, how many pictures a member have submitted etc... on your vBulletin powered forum.
Extra modifications can be found here (http://www.4homepages.de/forum/viewforum.php?f=15)
Screenshot:
Attached
Demo:
http://www.randomforum.com/forums/gallery *NEW
(Please note the gallery sports a custom style, not the default)
http://www.vb-es.com/galeria/ (Non-English)
corsacrazy
02-28-2004, 10:32 PM
Got a demo or screeny mate?
Matrixgl
02-28-2004, 10:37 PM
Unfortuantely, I have it installed it on my new boards, which is not available to public yet. So I cant post a screenshot right now :(.
However, in the default template set, it looks exactly like the screenies located here:
http://www.4homepages.de/4images/demo.php
It uses vBulletin's login accounts, so your forum members will be able to upload in the gallery with their forum account. It also uses your forum's whos online rather than its own. And when the user clicks on Control Panel it takes them to forum user cp.
lasto
02-28-2004, 10:48 PM
lo m8 nice hack by the way but how integrated is this ?
can it be used to call up a link etc of how many pics people have each in the gallery and clickig it will take u to their pics.
Matrixgl
02-28-2004, 10:57 PM
lo m8 nice hack by the way but how integrated is this ?
can it be used to call up a link etc of how many pics people have each in the gallery and clickig it will take u to their pics.
Yes, but it will require external code modifications. It stores vb's userid with the picture, so you can easily query the database :)
mello_mike
02-28-2004, 11:58 PM
When I installed this ... it logged everyone out of my forum.... and I couldn't log into the media gallery.
VeoMorphine
02-29-2004, 01:57 AM
Does this also support english lang?
deathemperor
02-29-2004, 08:28 AM
Does this also support english lang?
4images supports the language package, you can use English one or translate for yourself.
BTW, nice hack.
Osterling
02-29-2004, 09:29 AM
i will install when i see a working demo
MindTrix
02-29-2004, 09:47 AM
Id rather see some screenies of it in action with vB to be honest :p Then i think i would definetly try this out, nice work
Osterling
02-29-2004, 09:53 AM
yes.. i dont want to install somethign that i am not sure how it will fully look
Schorsch
02-29-2004, 10:42 AM
I agree, please provide a demo or screenshot!
Charlie Argueta
02-29-2004, 11:13 AM
Interesting, and also I would like some screenshots:D
The spanish support, who did it?
See Ya
AutomatikStudio
02-29-2004, 12:54 PM
Unfortuantely, I have it installed it on my new boards, which is not available to public yet. So I cant post a screenshot right now :(.
I'm confused as to why your boards not being available to the public yet has anything to do w/ you not being able to take a screenshot...
MindTrix
02-29-2004, 01:40 PM
I just installed on my test board and after a while got it working, then had to download english language pack because everything was another language :p Ummm i dont see how it is intergrated with vB apart from using vB's userlogin etc and whos online.
Would be nice if it was actually combined on the forum, for example links too it on the forum, latest pictures on the forum homepage etc.
Elmer
02-29-2004, 01:43 PM
what kind of demo you peple wants? ooh well here is a gallery using this hack but you will se nothing just a gallery hehe
http://www.vb-es.com/galeria/
by the way, I've clicked the install button ;)
Interesting, and also I would like some screenshots:D
The spanish support, who did it?
See Ya
Charlie just login and go to the gallery and you will be able to upload pics with the same username in the foros :)
Also I've added another hack that shows the resents images from the gallery in the forums :)
MindTrix
02-29-2004, 01:53 PM
Any chance of telling us how you got them to show on the forum homepage?
Matrixgl
02-29-2004, 02:07 PM
When I installed this ... it logged everyone out of my forum.... and I couldn't log into the media gallery.
The reason it probably logged everyone out was because you changed the cookie domain. What is the cookie domain now? Are you using subdomains?
What is your directory structure? Like where are the forum and the gallery folders located? Did you change this "http://www.yoursite.com/forums/" line in your sessions.php? And its sessions.php of the 4images folder though, not your vBulletin sessions.php
Matrixgl
02-29-2004, 02:18 PM
Demo and Screenshot added.
Id rather see some screenies of it in action with vB to be honest :p Then i think i would definetly try this out, nice work
Alright, I've set up a test gallery. Read the first post for the url :). I've also attached a screenshot. In order to post something in the gallery, you have to register at the forums.
But it will look exactly the same as it would look without intigration, after intigration, it just uses different database tables :). That was one of the reasons why I didnt set up a test gallery before.
I'm confused as to why your boards not being available to the public yet has anything to do w/ you not being able to take a screenshot...
1) The domain does not have a vB license yet, as I havent changed my license url to the new domain from the old domain. I dont want to do anything illigal :). And the new url will be kept a secret untill the release date.
2) The gallery uses my new vBulletin 3 style. It looks nothing like the original. So people might look at the screenshot, or demo, and then look at their gallery, and might get confused. Also, I have a lot of mods installed, so it would obviously look different than the default gallery. :)
I just installed on my test board and after a while got it working, then had to download english language pack because everything was another language :p Ummm i dont see how it is intergrated with vB apart from using vB's userlogin etc and whos online.
Would be nice if it was actually combined on the forum, for example links too it on the forum, latest pictures on the forum homepage etc.
Yeah, cause by default, 4images comes with a different language than english :(.
Well, it is intigrated because it uses vBulletin's login system rather than its own. The structure have been layed out, now its upto you to build the building :). You can display any information (like user title, posts etc..) about the logged in user. Since the userid is saved in the database with the picture, you can display many gallery information on your vBulletin. I am planning to add 5 latest picture that a member have submitted on his forum profile and how many picture he has submitted in the postbit. You can do all kinds of stuff like display the latest pictures on vB, show gallery stats etc...
You can find many released mod here: http://www.4homepages.de/forum/viewforum.php?f=15
what kind of demo you peple wants? ooh well here is a gallery using this hack but you will se nothing just a gallery hehe
by the way, I've clicked the install button ;)
That is exactly why I didnt bother setting up a test gallery, because in the frontend, it all looks the same :D
And thanks for clicking install....much appreciated ;)
Elmer
02-29-2004, 02:33 PM
Any chance of telling us how you got them to show on the forum homepage?sure, here is the link to the mod I used to the last images in forumhome
http://www.4homepages.de/forum/viewtopic.php?t=10523&highlight=vbulletin
but the html i'm using it's not the same showed there .. here i'ts what i'm using instead.
Note that i'm not using phrases ...
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_galeria')"><img id="collapseimg_forumhome_galeria" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_galeria].gif" alt="" border="0" /></a>
<a href="http://www.yoursite.com/4image" target="_blank" title="Ir a la galeria">Gallery</a></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_galeria" style="$vbcollapse[collapseobj_forumhome_galeria]">
<tr>
<td class="thead" nowrap="nowrap">Radom Image</td>
<td width="100%" class="thead">Last Images</td>
</tr>
<tr>
<td class="alt2" align="center">
$randompic
</td>
<td width="100%" align="center" class="alt1">
$newpics
</td>
</tr>
</tbody>
</table>
<br />
MindTrix
02-29-2004, 02:43 PM
Cheers for the link, i got one showing a different way, wish this could be edited to use the forum's style though :)
Matrixgl
02-29-2004, 03:53 PM
Cheers for the link, i got one showing a different way, wish this could be edited to use the forum's style though :)
Elmer's code does use the variables and settings from the forum style :)
MindTrix
02-29-2004, 04:10 PM
I meant i want the gallery script, like its main page and all of that, to show up like the boards style.
Matrixgl
02-29-2004, 04:27 PM
I meant i want the gallery script, like its main page and all of that, to show up like the boards style.
Oh :o...I am sorry :p...
You could do that, you have to make the script use the template in the vB database instead of the file in the templates folder. I will try to come up with something :)
MindTrix
02-29-2004, 04:42 PM
No need to say sorry when theres nothing to be sorry for ;) Consider it a request :p
If you could make it work with the boards style scheme i will make you my new god :) (Html isnt my thing)
mello_mike
02-29-2004, 11:23 PM
The reason it probably logged everyone out was because you changed the cookie domain. What is the cookie domain now? Are you using subdomains?
What is your directory structure? Like where are the forum and the gallery folders located? Did you change this "http://www.yoursite.com/forums/" line in your sessions.php? And its sessions.php of the 4images folder though, not your vBulletin sessions.php
Thanks Matrixgl for your replay,
Well the cookie domain or my site is .showtimemag.com it's always been that.
my forum is located at:
http://www.showtimemag.com/forum/
my gallery is located at:
http://www.showtimemag.com/forum/media/
And yes I edited everything in the 4images sessions.php file.
Any more ideas for why this is happening to me?
ChuanSE
03-01-2004, 01:22 AM
So, is this hack complety or does it needs a lot of tweaking before it works?
* ChuanSE likes complete hacks :p
:) nice to see the hack posting over here, thanks Matrixql. I didnt think that so many people will get interested like this :D
So, is this hack complety or does it needs a lot of tweaking before it works?
This is a complete hack, doing fine on what it does. If you want to do more than that, you are free to do more tweaking or hacks or whatever.
I meant i want the gallery script, like its main page and all of that, to show up like the boards style
I suggest you look over at photopost.com. They have exactly what you need, except for ... it's not free.
When I installed this ... it logged everyone out of my forum.... and I couldn't log into the media gallery.
It logged EVERYONE or it log you out of the forum?
if it kicks everyone out of the forums, means it may delete the session table somehow, to write in some incorrect way.
Check your sessions.php file.
Charlie Argueta
03-01-2004, 07:23 AM
what kind of demo you peple wants? ooh well here is a gallery using this hack but you will se nothing just a gallery hehe
http://www.vb-es.com/galeria/
by the way, I've clicked the install button ;)
Charlie just login and go to the gallery and you will be able to upload pics with the same username in the foros :)
Also I've added another hack that shows the resents images from the gallery in the forums :)
Hi Elmer ;)
I just noticed the gallery, but I think is killing the server because the charge of the page is too slow.
Btw nice girl ;)
See Ya
ChuanSE
03-01-2004, 07:41 AM
So, it's better then coppermine gallery? (integrates with vB)
BlackxRam
03-01-2004, 10:58 AM
Ok , i just installed it. However trying to login into the 4IMAGES admin only takes me to the FORUMS URL. It doesnt accept me in my 4images.. Also upon installing the SESSIONS.php my templates became jumbled a little bit. Am i missing a step in the configuration of sessions.php? Constants.php worked fine as thats the same from the vb 2.x installation. But what needs to be fully changed in the sessions.php file?
mello_mike
03-02-2004, 02:38 AM
Ok , i just installed it. However trying to login into the 4IMAGES admin only takes me to the FORUMS URL.
That's exactly what it did to me also.
ChuanSE
03-02-2004, 04:50 AM
I guess a better wait with this :p
gmarik
03-02-2004, 04:32 PM
Man, you could add more pictures - still nice.
Ok , i just installed it. However trying to login into the 4IMAGES admin only takes me to the FORUMS URL. It doesnt accept me in my 4images.. Also upon installing the SESSIONS.php my templates became jumbled a little bit. Am i missing a step in the configuration of sessions.php? Constants.php worked fine as thats the same from the vb 2.x installation. But what needs to be fully changed in the sessions.php file?hehe, maybe I'll need to check out what's that in the file, when I have time :p
btw, did you check the 4image URL in include/constants.php?
// If 4images has problems to find out the right URL, define it here.
define('SCRIPT_URL', 'http://www.yourdomain.com/album'); //no trailing slash
Man, you could add more pictures - still nice.
There's nothing different from the original 4images album except for it's using vB usertable. Other functions depend on the add-on you put in, and templates ..
webrats
03-03-2004, 01:18 AM
well i got it but the cookie thing is giveing me a headache
Shock.r
03-03-2004, 03:27 AM
it workes but it has its own little website, i would like to see it open up in vB somehow
sphinx
03-03-2004, 08:36 AM
it workes but it has its own little website, i would like to see it open up in vB somehow
me too
and i would like to see it using the vbb attachments in the gallery
n00belit3
03-04-2004, 08:47 AM
This is a great hack wich i will definitly be using. Now if i could only get thumbnails to work id be all set :tired:
Davey-UK
03-05-2004, 08:14 AM
This is a great hack wich i will definitly be using. Now if i could only get thumbnails to work id be all set :tired:
What do you mean about the thumbnails?
Have you got Netpbm installed?
webrats
03-05-2004, 09:24 PM
What do you mean about the thumbnails?
Have you got Netpbm installed?
mine dont creat the thumbnails when people upload.
i have to go in and tell it to run the program
webrats
03-05-2004, 09:25 PM
it also resets my whosonline stats when i visit the gallery
Chrissicom
03-05-2004, 11:57 PM
is it possible to have the thumbnails of the images first open in a slightly increased version of the pic and then when you click that open the full version in a new window? I have some pictures with ~3000x2000 pixels, actually many of that size and they wouldn't fit well on a page with other content like the rating bar, comments, pic description etc.
and is it possible to bulk add images? adding 1000 pics each alone would be kinda annoying when I have 100 DVD Screenshots from one movie to add with the same description and keywords.
cool2005
03-07-2004, 07:53 PM
bonsoir
comment svp definir dans ce code php le prefixde base de donee fixe; exemple "cool2004_" dans la ligne 2
define('POSTCARDS_TABLE', $table_prefix.'postcards');
define('SESSIONS_TABLE', 'session');
merci
phenomenon
03-09-2004, 06:08 AM
btw, did you check the 4image URL in include/constants.php?
// If 4images has problems to find out the right URL, define it here.
define('SCRIPT_URL', 'http://www.yourdomain.com/album'); //no trailing slash
I was having the admin login problem as well and this fixed it!
MATRIXGL THANK YOU!!!! I'll make sure to go drop some kudos at the 4images site as well, but this is fricken awesome!
I haven't reskinned my gallery to look like my forum yet, but if anyone wants to see an example of a working gallery with nothing in it as of this writing (I'll go start uploading our crap)
http://www.staytunedtheband.com/gallery
http://www.staytunedtheband.com/vb3 <-- that's our temp forum directory while I set all this shazbot up.
As for NetPBM, I've installed it into my server, but in the set up for 4images it said to specify the directory and the application name, but it doesn't give syntax example. Anyone know how to specify for sure?
for example, mine is currently /usr/local/netpbm
I'm assuming maybe it should say /usr/local/netpbm/netpbm or something?
cool2005
03-09-2004, 08:11 AM
es ce que quelqu'un a changer le css pour une meuilleur integration dans vbulletin
?????????????????????????????????????????????????? ?????????????????????????
merci
cool2005
03-09-2004, 08:17 AM
j'ai choisie ce style??????
voire ceci
http://www.vierstra.com/4images_templates.htm
visite mon site aussi
http://www.coolprof.com/gallery
ChuanSE
03-09-2004, 08:23 AM
es ce que quelqu'un a changer le css pour une meuilleur integration dans vbulletin
?????????????????????????????????????????????????? ?????????????????????????
merci
If anybody has a good style template for his integration with vb? ^^
Cool2005: l'anglais est obliger i?i ;)
translations => http://www.tranexp.com:2000/InterTran
Braindg
03-09-2004, 10:41 PM
this logging in problem is giving me a headache..
wheni log into admin, i get redirected to forum.
when i log into 4images main page i uses the forum "thanks for logging in" and bounces me back to 4 images with the login prompt... however if i go to forums, that user is logged in....
i have the "Members Personal Category" installed if that helps..
thanks
NyCwill
03-10-2004, 12:49 AM
Braindg - are you using subdomains? if you are did you make sure to set the cookie domain to .domain.com (replace domain with your site domain)
You got the "Members Personal Category" to work with vb3? if so can you tell me how?
thakikka
03-10-2004, 12:20 PM
Whenever someone uses any gallery page the who is online in the forum gets resetted :(
Braindg
03-10-2004, 02:37 PM
Braindg - are you using subdomains? if you are did you make sure to set the cookie domain to .domain.com (replace domain with your site domain)
You got the "Members Personal Category" to work with vb3? if so can you tell me how?
RE: MPC - not with vb3, with 4 images yes.. works great!
regarding my main problem, no im not using any subdomains..
i might have missed a bit of code somewhere. ill review the changes... or do them again
NyCwill
03-10-2004, 04:44 PM
So the MPC doesnt work with the integration?
Braindg
03-11-2004, 03:50 PM
i dont think it interfers with it?.. not sure, but of a dumbass me :)
NyCwill
03-11-2004, 03:57 PM
you got a demo of it? .. I want to see it working hehe....
Matrixgl
03-11-2004, 04:40 PM
I am really sorry guyz, for not replaying to this thread for the past couple of days. Lately, I have been busy with lots of other things, and I had to finish the new vB3 style for my new forums asap.
Thank you mtha for helping out, and I will be replying to all your posts tonight or tommorow.
You can see my gallery here:
http://www.randomforum.com/forums/gallery/index.php
and my new board:
http://www.randomforum.com/forums/index.php
NyCwill
03-11-2004, 05:00 PM
Sorry hehe I dont if you were replying to my post or not but my post was referring to braindg.. hehe.. btw nice site I love how you integrate the style of your forums with the gallery...... how did you do it? did you pull the style from vb or just plug in the images??
Braindg
03-12-2004, 04:46 PM
you got a demo of it? .. I want to see it working hehe....
its not public yet..
still need to sort out why i cant use the forum users table..
would save me alot of hassle!
phenomenon
03-12-2004, 05:36 PM
You can see my gallery here:
http://www.randomforum.com/forums/gallery/index.php
and my new board:
http://www.randomforum.com/forums/index.php
Matrix,
Very cool. A couple questions for you as I try to decide how much hacking I want to attempt:
I see your footer on the gallery page is the same as the footer on the forum page. Did you just enter the html from the forum template into the gallery template? Or did you hack the gallery php with an if statement to include the template from vbulletin for the footer?
I'm trying to decide right now the best way of altering the 4images to fit my site. The 4images gallery has loose CSS control; all the table widths are defined in the html, which is kind of a pain. To go through and change everything to fit my site would require a global find/replace; I'm thinking if I am going to do that I might as well go through and just rewrite the html using <div> and css to control everything. Along those lines, I started thinking if I did that, I may as well use all the same css classes/ids as vbulletin, then just copy the <style> portion of the vbulletin html (vbulletin doesn't use an external style sheet) and paste it into style.css. That way if I change the look of my forum, I can just copy the css from there and paste it into 4images and be done with it.
However, if you've hacked the 4images php further to use templates from vbulletin like the header and footer, i'd love to know how you did it, as that would make things like adding the $navbar from vbulletin into 4images, etc. I'm thinking of having a look at how some of the other hacks here work and altering 4images, but I'm not much of a php person and am a bit intimidated.
anyway, thanks!
ChuanSE
03-14-2004, 06:17 AM
I think that this hack should stay in beta releases, as it isn't a full release worthy atm :/ (imho)
phenomenon
03-15-2004, 04:30 AM
... edited this
Whenever I alter anything and I log out and log back in, I seem to suddenly have problems getting into the admin section. It starts redirecting me at random to the vb3 home page.
Other times it seems to work fine and I'm able to log in. I'm trying to nail down exactly when it quits working, starts working again -- seems like it may be Safari in 10.3.2 cacheing at bad times, as firefox 0.8 works great. hmm...
BlackxRam
03-15-2004, 10:13 PM
Matrix, is the stuff fixed that screwed up my templates? I stil try adding it and whenever i upload the modified files my templates mess up in 4images.
Any word?
poetic
03-16-2004, 03:40 PM
Does anyone have any clue why when I login to the admin control panel for 4images.. it redirects me to the main page of my forums? I used IE and Firefox and it doesn't work.
lasto
03-16-2004, 05:39 PM
cause the hack has problems and a problem hack just aint worth installing
after reading most of the posts in here reckon this hack should go back to Beta Forum and have a vb warning `Install at own risk` LOL
MindTrix
03-16-2004, 05:41 PM
Negative :) I installed 4 times on seperate forums and did not get a single problem or error.
phenomenon
03-16-2004, 06:43 PM
this is what I'm seeing happen:
I'm editing in one tab (firefox/safari) and refreshing in another. I have a third tab with vbulletin open.
If I log out of vbulletin, it doesn't matter if I log into the gallery or not, I will not be able to open the admin in gallery.
if I log out of the gallery, I will be logged out of both vbulletin and the gallery. If I try to make any edits in the admin tool in the first tab, it will ask me to login. However, that login won't work, and will redirect me to the forum. If I log into the forum, then go back and hit the control panel button, I will login to the gallery control with no problems.
the <if> statements in vbulletin -- I'd love to use those in the navbar I'm recreating for Gallery. Basically I'm recreating the vbulletin navbar so that the search searches the gallery (not vb), and if the user logs in they'll get their logout/lightbox/control panel links in the navbar like on vb. The easiest way to do this is to use the if statement structures, but I'm guessing since it isn't working for me that this is something that vb3 uses and the gallery can't. Does anyone know?
phenomenon
03-17-2004, 12:00 AM
ok I found this in the 4images sessions.php that either mtha or matrix put together, and I want to confirm that this is correct, as it may be explaining my cookie problems. Should cookie_path be pointing at $cookiedomain? etc:
line 425 I believe
define('COOKIE_NAME', '');
define('COOKIE_PATH', $cookiedomain);
define('COOKIE_DOMAIN', $cookiepath);
$secure = (isset($SERVER_PORT) && $SERVER_PORT == "443") ? 1 : 0;
define('COOKIE_SECURE', $secure);
phenomenon
03-17-2004, 12:02 AM
also, in sessions.php clientscript/md5.js should be clientscript/vbulletin_md5.js (at least as of vb rc4)
DrkFusion
03-17-2004, 12:25 AM
Great! Notice that this will result in headers/cookie problems for people with older versionf of mozilla, alot of users used to get header errors with the older versions.
phenomenon
03-17-2004, 12:30 AM
Ok, I think I have a feeling about why one of my problems is occurring:
If I have two windows open (or two tabs) -- one of the 4images gallery home page let's say, the other of the 4images gallery control panel, and I'm working on the login/pw for example. If I click logout in the home page tab, then my cookies are cleared, I'm logged out. If I then switch to the 4i control panel and try to do something, of course I'm logged out so it asks me to login/pw. When I do this, it opens the vb3 home page in the edit frame of the 4i control panel, and i'm not logged in yet in vb3 either. So I log in there, and click on the templates link or something in the control panel and the 4i accepts that I'm logged in.
Basically, the problem is in the 4i control panel login. You can find this in admin_global.php, around line 89 or so. My gut feeling is that though we're instructed to update the user_loginform.html file, we're never instructed to update that login. So it's still calling old code. Can we get that fixed?
thanks
phenomenon
03-18-2004, 09:44 PM
I wonder... does anyone who has the problem of being forced to log back in when another user logs into the gallery/looks at the gallery also have a portal page installed? I have vBadvanced installed. I was required to make the same change to the cookie path that 4images requires -- basically set it to .yourdomain.com
But there's another setting, the "Path to saved cookies" that is by default set to '/'
I have tried changing this and had nothing on the board or gallery or home page work. Anyone know if whether hardcoding this in somehow would make them all work better?
phenomenon
03-18-2004, 11:58 PM
cripes, maybe I should just consolidate into one post.
I changed the sessions.php variables around to see if that would help, and it didn't.
basically from
define('COOKIE_NAME', '');
define('COOKIE_PATH', $cookiedomain);
define('COOKIE_DOMAIN', $cookiepath);
$secure = (isset($SERVER_PORT) && $SERVER_PORT == "443") ? 1 : 0;
define('COOKIE_SECURE', $secure);
to
define('COOKIE_NAME', '');
define('COOKIE_PATH', $cookiepath);
define('COOKIE_DOMAIN', $cookiedomain);
$secure = (isset($SERVER_PORT) && $SERVER_PORT == "443") ? 1 : 0;
define('COOKIE_SECURE', $secure);
I logged into the gallery and the forum both with IE 6, and with Firefox 0.8, and logged in as different users. Basically if I did anythiing at all -- clicked anywhere, etc. with one browser, the other would lose its cookie and force me to relog in.
I've reinstalled. I am not using the gallery on different subdomain -- gallery is
http://www.staytunedtheband.com/gallery
and forum currently is
http://www.staytunedtheband.com/vb3 (will change soon to forum)
the cookie is set up in vb3 as .staytunedtheband.com -- this was done for the vbadvanced portal hack.
I made sure to write into the sessions.php file the domain without the following slash.
i can't think of anything else to do. I don't know php enough to be able to trouble shoot. Crap I'm a bass player in a band. I'd just like this to work. Is there a solution, or has this hack been abandoned?
Lionel
03-22-2004, 06:44 AM
If I log out of vbulletin, it doesn't matter if I log into the gallery or not, I will not be able to open the admin in gallery.
if I log out of the gallery, I will be logged out of both vbulletin and the gallery. If I try to make any edits in the admin tool in the first tab, it will ask me to login. However, that login won't work, and will redirect me to the forum. If I log into the forum, then go back and hit the control panel button, I will login to the gallery control with no problems.
I am having the same problem too on VB Gold. Logging out of the gallery does not log me out of VB. Besides that, it is a great hack and thanks to the author for making it available.
phenomenon
03-25-2004, 01:53 AM
I dunno. as much time as I spent integrating this to look like the forum, I'm getting no response here, no response on 4images. Perhaps trying to integrate coppermine instead is the way to go. Funny, I've seen a few phpBB photo hacks now (4images is one). Kind of annoying that there are several great ones and virtually nothing for vbulletin.
BlackxRam
03-25-2004, 06:08 AM
This looks like it might work for me. Has this been successful Phenomenon?
I wouldnt count on ANY support from the actual 4IMAGES website. ITS ALMOST NON-EXISTANT. The creater of 4IMAGES is created 4IMAGES 2.0 and is not even active on the site until its released.
BlackxRam
03-25-2004, 06:10 AM
Hey Phenomenon, what exactly did you change from the original hack version to make it work? I still cant work it out. hmm
BlackxRam
03-25-2004, 06:34 AM
I have just RE-TRIED the Installation and it DOES WORK. It worked flawlessly, which means i screwed up somewhere down the road. heheh.
This integration DOES work for VB3. WONDERFUL JOB MAN! :)
Now, I have yet to see myself get logged out, so heres hoping. :)
BlackxRam
03-25-2004, 07:12 AM
I dunno. as much time as I spent integrating this to look like the forum, I'm getting no response here, no response on 4images. Perhaps trying to integrate coppermine instead is the way to go. Funny, I've seen a few phpBB photo hacks now (4images is one). Kind of annoying that there are several great ones and virtually nothing for vbulletin.
Coppermine isnt as pretty as 4IMAGES is. I do not get logged out of the 4IMAGES page while im in there. However I do get logged out when i Close my Browser. To relogin again all i have to do is visit the forums AND then visit my Gallery.
phenomenon
03-25-2004, 07:24 AM
yeah but the creator of 4images isn't the person who released the hack here. grumble grumble. If I had time in the day to teach myself php I'd figure out the problems myself. As it is I'm going to probably go to a php pro and get this fixed once and for all.
4Images is ALMOST working for me. I want the netPBM; the version of php installed on my host is pretty old and I hear bad things about older GD quality. I don't want to install imagemagik -- I've got netPBM already! However, coppermine doesn't work with netPBM. Menalto gallery does but I hate the popup windows.
And I've spent a good 30 hours working on 4images.
Anyway, what isn't working:
1. Login is erratic. On Firefox win/mac I log right in and it recognizes I'm logged in. Safari I log in, it sees me online, but keeps the login/pw box up. I haven't tested on IE for mac because it sucks more booty than a retired porn star.
2. Once logged in, getting into the admin cp is erratic. Sometimes I go right in. Sometimes it logs me into the forum and I have to go back. Sometimes it appears to login then refreshes the screen with the login/pw.
3. Cookies get hosed when other users look at either the forum or the gallery (i'm not sure about the rest of the site). If I'm working on a template, and I try to save, and someone else has visited I suddenly have to relog in and have lost my changes.
4. Thumbnail creation is buggy. I have two domains with the same host; both have/had 4images. One works fine with netPBM. One doesn't at all. Same install, from the same binaries, installed into the same place on the server. Only difference is one is working with a vbulletin forum, and one was just totally independant.
So that's that. I get all these problems with a fresh install, or with my skinned install. don't matter. It's driving me nucking futs; especially that my posts are just being ignored.
phenomenon
03-25-2004, 07:25 AM
Coppermine isnt as pretty as 4IMAGES is. I do not get logged out of the 4IMAGES page while im in there. However I do get logged out when i Close my Browser. To relogin again all i have to do is visit the forums AND then visit my Gallery.
REALLY.
have you had someone else log into the forum while you're dorking around on it?
Have you used Safari on mac? What browser are you using?
phenomenon
03-25-2004, 07:30 AM
Hey Phenomenon, what exactly did you change from the original hack version to make it work? I still cant work it out. hmm
Ok. I basically followed instructions that were in this thread.
I Installed 4images into my forum database, using the 4image_ prefix, and a temp admin name.
I changed the cookie to .staytunedtheband.com -- hmm. maybe I shouldn't do that...
I set session timeout to 0
I then replaced the loginform with the text in instructions
I then edited the sessions.php according to the instructions. Interestingly, my define admin_safe_login was already set to 0, rather than 1. Is that backwards in the instructions?
Next I tried to login before updating with my skin. Didn't work right/was buggy.
Next I tried uploading my previously altered-to-match my site. Stil doesn't work/still is buggy.
Did you change anything?
phenomenon
03-25-2004, 07:41 AM
ok well at the moment it's now working fine. sigh. I removed the .staytunedtheband.com from the cookies setting in the forum. However, I could have sworn that vBadvanced required that to work right.
now the question is, does it work with my updated graphics -- basically using the 4lightgray template from viaxon
phenomenon
03-25-2004, 04:56 PM
Ok. It seems to be working fine for me now -- the big problem was the cookie path. I could have sworn I needed to have that set to .mydomain.com for the vbadvanced, but when I looked through that documentation I didn't see it anywhere.
Interestingly, I now have a new problem: when I log in with Internet Explorer 6 on winXP, I get a runtime error, line 139, object expected. I do NOT get this error on the forum itself. I DID go through sessions.php and change
$clientscript_md5 = $url_app."clientscript/md5.js";
to
$clientscript_md5 = $url_app."clientscript/vbulletin_md5.js";
***EDIT*** My proxy server at work is giving me troubles and just redirected me to a directory the forum was in for testing. so I think this is probably working fine, but is just cached. *$#^%* proxies.
BlackxRam
03-26-2004, 01:02 AM
Mine is working perfectly. Except for the Logging out whenever i close the browser. Everything is peachy. I tried playing with the cookie settings but i dont know... ill keep trying. You set the session timeout in 4images to 0? Ill have to try that
DigitalEclipse
03-26-2004, 01:17 PM
I just installed this and I'm getting this error when I try to upload pictures.
Warning: move_uploaded_file(./data/media/1/brian.jpg): failed to open stream: No such file or directory in /nfs/home/alclub2/public_html/4images/includes/upload.php on line 114
Warning: move_uploaded_file(): Unable to move '/tmp/phpobJFP7' to './data/media/1/brian.jpg' in /nfs/home/alclub2/public_html/4images/includes/upload.php on line 114
phenomenon
03-26-2004, 01:52 PM
DigitalEclipse:
There are two methods of uploading, which did you use? I just went and checked both ways in my install and it worked fine. (one way is to upload a single image using the 4images admin cp, the other is upload pictures to the corresponding id number folder in /data/media/ and then hit the 'check new images' link in the 4images admin cp)
Did you make sure to upload the new sessions.php document to the 4images/includes folder (NOT the vBulletin/includes folder!!!) Did you set
// Set here the URL to your vBulletin forum. WITH trailing slash!
$url_app = "http://yourdomain.com/forum/"; in sessions.php of 4images?
DigitalEclipse
03-26-2004, 02:13 PM
I dont understand what you mean about the 2 ways. yes I did upload the session.php file and put my URL in there. I try uploading the pictures here: http://www.al-club3g.org/4images/member.php?action=uploadform&cat_id=2
Here is my 4images homepage: http://www.al-club3g.org/4images
Mr. Brian
03-26-2004, 02:34 PM
Alright my question is, can I know what's the code changes in session.php? I just don't wish to ovewrite my session.php.
thanks
phenomenon
03-26-2004, 09:48 PM
hmm digital eclipse I have no idea. we just had a weird error where we uploaded a bunch of pictures, hit the thumbnailer and suddenly the gallery is totally down.
BlackxRam
03-27-2004, 11:39 PM
Matthew.. The session.php is the SESSION.php FOR 4IMAGES NOT VBULLETIN. the 4images one NEEDS to be overwritten.
BlackxRam
03-27-2004, 11:41 PM
Digital Eclipse... if its not UPLOADING thats an ISSUE with your host. You cant have SAFE MODE on your server. ASK YOUR HOST. This integration is nowhere related to the uploading feature.
phenomenon
03-28-2004, 07:52 PM
hmm digital eclipse I have no idea. we just had a weird error where we uploaded a bunch of pictures, hit the thumbnailer and suddenly the gallery is totally down.
So -- don't name pictures with apostrophes -- I don't mean the file name (because that's pretty obvious I hope) but I mean in th application itself. Apostrophes will take down the entire gallery. It's back up and except for being logged out of the admin whenever someone else logs into the website, it works.
www.staytunedtheband.com/gallery
SpeedysWorld
03-29-2004, 06:17 PM
I can't get this hack to unzip, it says curropt file or something another. Also how stable is it, is anyone working on trying to get it to work 100%, and are there any other Gallary hacks out there?
- SpeedysWorld
rockergrrl
03-29-2004, 06:34 PM
I think there's something wrong with the attachment table...
I can't get any zips to work from vB.org....
:/
BlackxRam
03-31-2004, 07:09 AM
Right now the integration works just fine, however the cookie has trouble holding when the browser is closed. Either you have to install the gallery into your FORUMS folder as well as the SAME Database as your Forums, or you can use my VERY CHEAP way of getting around it. Ill release it very soon and it will work to keep the cookie active in the GALLERY.
Ill keep you guys posted. Keep in mind... its a VERY cheasy way to do it but it works for me and no one is the wiser. ;)
BlackxRam
03-31-2004, 04:23 PM
If you guys toss this hack: https://vborg.vbsupport.ru/showthread.php?p=493555#post493555
In your main site.. or in your 4 Images Templates it will keep your cookie alive because it will keep a constant connection to the Forums Database. I have placed my hack on my front page so if a member does come to the site to check out my gallery he is already logged in via that hack of mine. Its a cheasy way to get around it but no one is the wiser.. heheh. works for me. :)
Ian Cunningham
04-06-2004, 01:16 PM
Has anyone managed to include any templates from within VBulletin into the 4images templates, as I can't manage to do it with includes (I get an error about redeclaring something)?
Ian Cunningham
04-07-2004, 10:05 AM
If you guys toss this hack: https://vborg.vbsupport.ru/showthread.php?p=493555#post493555
In your main site.. or in your 4 Images Templates it will keep your cookie alive because it will keep a constant connection to the Forums Database. I have placed my hack on my front page so if a member does come to the site to check out my gallery he is already logged in via that hack of mine. Its a cheasy way to get around it but no one is the wiser.. heheh. works for me. :)
Do you know the exact portion of code that makes it work, and I will modify my hack :)
KTBleeding
04-07-2004, 01:49 PM
Ever since I installed this hack, I can't login to the login fields on the forum home page. (In the navbox)..
I put my name/password in and it goes back to the default "Username" in the name field.
Any ideas why? It's rather annoying to have to go to "post a new topic" to login correctly..
Thanks,
KevinLe
04-07-2004, 04:45 PM
Hi, I just install this hack in my gallery and my forum working fine. But I have 1 problem and I can not fix it. Like when you login the gallery right. I saw there is 10 members online in gallery and on the forum also, but after one min, there were zero members online on both gallery and forum. Then few min after that, it shows 10 members online again. And it just keep doing this again and again. Is anybody have this problem or know how to fix this. I need help on this one. Thank you very much.
flee2
04-11-2004, 02:05 AM
I have little problems with login from the 4images, when i enter in the forum and after enter the galery, works perfect.. buy if i visit first galery and try to login from 4images, don't log, if i enter again the forum, and back to galery i appear as logged.
bonken
04-14-2004, 03:56 AM
4image is better than VB hack ! I think not need to hack VB !
calvinnguyen
04-15-2004, 04:14 AM
A lot of people, both here and at 4homepages.de have been requesting for a mod/hack that would integrate vBulletin 3 RCX with 4images 1.7 lately. The solutions are scattered around the forums, but nobody has it all in one page.
So I've decided put them all togather, and release it, so it will be easier for people to do the intigration successfully.
Please note that all the codes in this hack/mod are property of Jan and mtha.
http://www.4homepages.de/forum/viewtopic.php?t=1659
http://www.4homepages.de/forum/viewtopic.php?t=1659&start=165#32514
I have tested this on vBulletin 3.0.0 RC3 and it worked successfully.
Features:
Uses your existing vBulletin powered forum's login account for authentication.
Uses your existing vBulletin powered forum's whos online feature
Can be modified to display any information from your existing vBulletin database, perticularly from the "user" table, which means you can display any information about the logged in user.
Since it is integrated with the database, you can display any gallery information such as latest picture, how many pictures a member have submitted etc... on your vBulletin powered forum.
Extra modifications can be found here (http://www.4homepages.de/forum/viewforum.php?f=15)
Screenshot:
Attached
Demo:
http://www.randomforum.com/forums/gallery *NEW
(Please note the gallery sports a custom style, not the default)
http://www.vb-es.com/galeria/ (Non-English)
When I install 4images 1.7 as same as username & database that I used for vb3 I got this error message:
Warning: mysql_connect(): Access denied for user: 'vietmyen_xsdwdj@localhost' (Using password: YES) in /home/vietmyen/public_html/4images/includes/db_mysql.php on line 39
DB Error: Could not connect to the database server (localhost, vietmyen_xsdwdj).
What can I do?
When I install 4images 1.7 as same as username & database that I used for vb3 I got this error message:
Warning: mysql_connect(): Access denied for user: 'vietmyen_xsdwdj@localhost' (Using password: YES) in /home/vietmyen/public_html/4images/includes/db_mysql.php on line 39
DB Error: Could not connect to the database server (localhost, vietmyen_xsdwdj).
What can I do?
The error says what the error is :D
check your database configuration for the album.
it seems like you put a wrong username/password for the database.
calvinnguyen
04-15-2004, 09:12 PM
The error says what the error is :D
check your database configuration for the album.
it seems like you put a wrong username/password for the database.
Do I need the use different username, not the same usernam that I used for vb to use it for 4image, but the same database name?
Do I need the use different username, not the same usernam that I used for vb to use it for 4image, but the same database name?
it doesnt matter, whichever account can access to the database, use it.
if your 4image and vB are on the same database, you can use the same database account (assuming that the account have access to all tables in that database)
i myself use two different account, with different permission set, however, to make life easier, you should use the same account first, and make sure it works.
cihangir
04-17-2004, 11:23 AM
does anyone have login problems in after upgradating to 3.0.1?
KTBleeding
04-18-2004, 02:10 PM
How do we go about displaying the newest images in vBulletin, preferrably vBindex?
flash7
04-19-2004, 11:13 AM
here vb 3.0.0 gold
the upload function don't work!
any idea?
thanx
flash7
04-19-2004, 01:18 PM
here vb 3.0.0 gold
the upload function don't work!
any idea?
thanx
ok now work :)
but an issue found in session :ermm:
4images don't read cookie??
vonedaddy
04-19-2004, 02:56 PM
I have it integrated into my VB3 site and it works nice other than ONE problem. It seems that people are logged in then when they click something and the page reloads it logs them out. And them when you try to log in again it, after the redirect page you go to the forums. ANY help would be greatly appreciated. If you would like to look at the site go here www.hereyah.com
Thanks
d1635d
04-19-2004, 03:10 PM
TO~3.0.1
open:includes/functions.php
Find this code
========================
$name = COOKIE_PREFIX . $name;
========================
The replace is
=====================
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
=====================
OK
cihangir
04-20-2004, 08:56 AM
@d1635d, thank you very much ;)
a bugfix, that solves the problem with validating images uploaded by guests. found at: http://www.4homepages.de/forum/viewtopic.php?t=1659&postdays=0&postorder=asc&highlight=validate&start=105 (http://www.4homepages.de/forum/viewtopic.php?t=1659&postdays=0&postorder=asc&highlight=validate&start=105)
problem:
A Guest uploads an image and the image gets uploaded on the server and I see the ?1 image awaiting for validation? on the Control Panel. I click on the link to go and validate the image and there are no results on the ?Validate Images? page. As if nothing was pending for validation.
Found: 1 Displayed: 1-1.
Images marked with ! denote image file that cannot be found on the server.
But on the list below that, nothing appears!!!
solution:
Open admin/validateimages.php and find this part
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_date, i.image_media_file".get_user_table_field(", u.", "user_name")."
FROM ".IMAGES_TEMP_TABLE." i, ".USERS_TABLE." u
WHERE $condition AND ".get_user_table_field("u.", "user_id")." = i.user_id
ORDER BY $orderby $direction
LIMIT $limitstart, $limitnumber";
Replace it with
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_date, i.image_media_file".get_user_table_field(", u.", "user_name")."
FROM ".IMAGES_TEMP_TABLE." i
LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
WHERE $condition
ORDER BY $orderby $direction
LIMIT $limitstart, $limitnumber";
LeonHartHVA
04-21-2004, 02:18 PM
Step 3.
-------
Open includes/constants.php and edit the following parts:
I can't find constants.php in includes folder. Why? I'm using vbb 3.0.1
cihangir
04-21-2004, 02:55 PM
I can't find constants.php in includes folder. Why? I'm using vbb 3.0.1
you have to edit the constants.php of 4images.
NS_007
04-21-2004, 08:19 PM
TO~3.0.1
open:includes/functions.php
Find this code
========================
$name = COOKIE_PREFIX . $name;
========================
The replace is
=====================
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
=====================
OK
This is in the forums functions.php?? If so, when I use this the forum and all other pages on my machine/server become blank pages.
d1635d
04-22-2004, 09:28 AM
I use Vb 3.0.1 + 4images 1.7 to be normal
http://www.d1635d.com/BAD/
13th_Disciple
04-24-2004, 01:40 AM
is this integration complete? are the directions and information in the first post correct?
if not, does the person who created this thread still post and regularly talk to people and post issues on 4images? i haven't seen him post lately and am not sure if I want to install this if the information is not solid and complete.. if someone can answer, i would really appreciate it.. also, maybe do a comple instruction set, assuming the original post is not thorough..
I have yet to see any gallery mod that works flawlessly yet 13th disciple. They all seem to have similar login issues, where they are not remembering users, or are totally going ape++++ when more than one person visits the gallery. both the coppermine installations and 4images seem to have the same issues with logging in and out and stuff.
if i understood how the cookies in both systems worked it would be a lot easier to track down, and I am sure soon I will end up plugging away at the research to get it to work.
it sucks because a good gallery integration is probably one of the last things that needs to be fleshed out for vb3.
13th_Disciple
04-24-2004, 12:19 PM
thank you, ohgeetee.. i appreciate the response.. i guess i will just wait a bit longer then to see if anything comes of either this or the coppermine deal..
BlackxRam
04-25-2004, 10:30 AM
I would personally go with 4IMAGES gallery. Its alot more pleasing to the eye and has a TON of more features than Coppermine. I removed my integration since I dont really need Guests uploading. I created my Staff Accounts manually and set uploading on Admins only and everything else is set to ALL.
I will stick it out with 4IMAGES 1.7 for now until a login fix is made. However 4Images 2.0 is said to be almost completed and it will feature complete VB3 compatibility.
Even though the support kinda sucks over at 4homepages.de its still the more superior script. The LightBox just makes it all worthwhile. :)
I will stick it out with 4IMAGES 1.7 for now until a login fix is made. However 4Images 2.0 is said to be almost completed and it will feature complete VB3 compatibility.
=D> have any idea when 4images 2.0 coming out? it'd be cool
C.Birch
04-25-2004, 05:54 PM
i have 1.8 and its alot better then 1.7, still trying to get this to work on 1.8 mind you all the edits are the same basicy.
i just get this:
DB Error: Bad SQL Query: SELECT s.session_user_id as user_id, u.user_name, u.user_level, u.user_invisible FROM session s LEFT JOIN user u ON (u.user_id = s.session_user_id) WHERE s.session_lastaction > 1082918717 AND s.session_location REGEXP 'categories\.php[?]cat_id=3(&*)?$'
Unknown column 's.session_user_id' in 'field list'
i have 1.8 and its alot better then 1.7, still trying to get this to work on 1.8 mind you all the edits are the same basicy.
mind telling us where we can get 1.8? I didnt see it nowhere over 4homepages :(
kiengio
04-26-2004, 03:34 AM
where i can download 4images
C.Birch
04-26-2004, 06:23 PM
mind telling us where we can get 1.8? I didnt see it nowhere over 4homepages :(
you can download it from a beta site here http://come.no-ip.com/4images/ links at the bottom along with the copyright, note its only for new install's and you have to edit the config file yourself and make the database via the mysql file and in the zip because the installer dont work, well did not for me.
the 1.7 hack for vb also dont work on it, more edits are needed but i have mine working now as you can see from here http://www.lisascottlee.com/gallery/ but a mate did the edits so i dont know what they are.
C.Birch
04-26-2004, 06:25 PM
where i can download 4images
here for 1.7
http://www.4homepages.de/
vBFreak
05-03-2004, 07:52 PM
It doesn't work for me... If I try to login, the login message of vB appers, and after the redirect i'm not logged in. If I set the cookie domain it's the same, but then I can't login/logout correctly at the forums, too... Using vB 3.0.1, plz help
vBFreak
05-03-2004, 08:23 PM
TO~3.0.1
open:includes/functions.php
Find this code
========================
$name = COOKIE_PREFIX . $name;
========================
The replace is
=====================
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
=====================
OK
There's no "$name = COOKIE_PREFIX . $name;" in the includes/functions.php oO
flash7
05-03-2004, 08:30 PM
TO~3.0.1
open:includes/functions.php
Find this code
========================
$name = COOKIE_PREFIX . $name;
========================
The replace is
=====================
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
=====================
OK
vb 3.0.0 gold is set in this mode, but the problem was here:
[QUOTE]
It seems that people are logged in then when they click something and the page reloads it logs them out.
flash7
05-03-2004, 08:32 PM
There's no "$name = COOKIE_PREFIX . $name;" in the includes/functions.php oO
yes, in vbulletin !
vBFreak
05-03-2004, 08:41 PM
4images is really a great gallery, and the integration works with 3.0.1, the one and only, but very important thing is that you can't login :/
vBFreak
05-03-2004, 08:47 PM
yes, in vbulletin !
yes, now it seems to work... but in which inclues/functions.php you should write in the post in future ^^
flash7
05-04-2004, 01:08 PM
:rolleyes:
animate
05-04-2004, 09:47 PM
it works now on my homepage, but i have found a bug, if i login/ logout with 4images gallery, they delete all sessions of the users, and the VB user Activity is set to 0 ,
have anyone the same problem?
greets seiya
Serenity
05-06-2004, 11:06 PM
i don't understand what i'm doing wrong.
i have gone over this entire thread like 10 times, did all the edits i'm upposed to do, even the ones that were suggested to some others that were having the same problems as myself.
every time i log into the admin for the gallery it goes to the forum. i changed the path to point to it in constants.php
every time i try to log into the gallery itself it says "thank you for logging in" with the vbulletin looking screen, but then i'm still not logged in.
someone please give me some suggestions before i make myself bald!
tia
vBFreak
05-11-2004, 07:08 PM
I've discovered a bug... If I want to enter the 4images Admin-CP it asks me always for my login, and after that I am redirected always to the forum's home... I can't administrate my gallery, plz help...
the login and so on works fine after the fix a few posts before in one of a vB-file...
flash7
05-11-2004, 08:52 PM
the login and so on works fine after the fix a few posts before in one of a vB-file...
where?
vBFreak
05-11-2004, 09:08 PM
a few posts before... the login works, but If 2 or more users are logged in in the gallery, all logged in users are logged out... some users hat problems, so I've tested that and recognized that the login works not so fine how I've thought...
Also I can't login in the admin-cp of 4images... so I can't administrate it...
You can't use the whole gallery correct with this hack... and the author? where is he/she? Shouldn't he/she give support and bugfixes for his/her "hack"? The complete hack is a major bug, what is the use of the gallery if you can't administrate and login? :mad:
The vB-File modification can you find a few pages before this... with it you can login and post and upload if nobody else visits the gallery...
flash7
05-11-2004, 09:24 PM
oh no :(
please anyone help!
:ermm:
vBFreak
05-12-2004, 09:51 PM
I don't think that we will get help longer... the users can't solve the many problems if they don't know how 4images works...
I think we have to wait for 4images 1.8 and then anyone will make a new integration hack... I would upgrade to 1.8, but I have already installed the whole 1.7 and there are many pictures which would get lost, because there's no updater at the beta at this time :(
ogetbilo
05-13-2004, 05:56 AM
I also have that kicking out problem when two or more users are logged in to 4images 1.7
But I found a 'kind of' workaround for this.
The kicking out only occurs when one of the users uses internet exploder. I forced my users to download mozilla or any other browser and prevented access to 4images for IE users.
I know it is weird, but this is my solution.
I don't care about most people using Internet Exploder. Microzoft sucks anyway...
InsaneContender
05-14-2004, 05:21 AM
So is nobody like trying to fix these problems now? Or what?
KTBleeding
05-23-2004, 05:33 AM
So is nobody like trying to fix these problems now? Or what?
Yeah.. what's up?
insanctus
05-23-2004, 05:41 AM
Yeah.. what's up?
Your best off buying something that works with vb..... photopost or vbgallery.
So is nobody like trying to fix these problems now? Or what?
:) My board is running fine (vB301 + 4i 1.7) except for I've disabled the WOL in album.
Forum's member can login/upload/download ... fine,
the only problem I have right now is ... guest records are duplicated in forum's WOL, and member's who're in the album is not recorded in sessions.
however, I dont have time to fix bugs or figure out your problems.
I might use this but not sure yet :)
KTBleeding
05-23-2004, 02:18 PM
Your best off buying something that works with vb..... photopost or vbgallery.I did buy photopost. I'm not going to buy more than one though! haha. Plus, photopost is very difficult to skin, the support (for me so far) has been very close to horrible, and I have had quite a few integration problems with it as well. Even when it's supposedly made to integrate very well.
I dunno, maybe if it was like.. 50 bucks for a second license, then sure. But if I'm paying 129.99 for a script, I'd either like to see it work perfectly, or very good support behind it and I have yet to experience this from Photopost. :ermm:
What is vBgallery?
Thanks,
KTBleeding
05-23-2004, 02:20 PM
:) My board is running fine (vB301 + 4i 1.7) except for I've disabled the WOL in album.
Forum's member can login/upload/download ... fine,
the only problem I have right now is ... guest records are duplicated in forum's WOL, and member's who're in the album is not recorded in sessions.
however, I dont have time to fix bugs or figure out your problems.
Even when multiple users are browsing 4images?
What exactly do you mean by disabling WOL? :)
Thanks,
KTBleeding
05-23-2004, 02:28 PM
OH wait, WOL = Who's Online, right? haha
insanctus
05-23-2004, 06:37 PM
I did buy photopost. I'm not going to buy more than one though! haha. Plus, photopost is very difficult to skin, the support (for me so far) has been very close to horrible, and I have had quite a few integration problems with it as well. Even when it's supposedly made to integrate very well.
I dunno, maybe if it was like.. 50 bucks for a second license, then sure. But if I'm paying 129.99 for a script, I'd either like to see it work perfectly, or very good support behind it and I have yet to experience this from Photopost. :ermm:
What is vBgallery?
Thanks,
vBGallery is my creation........ http://sanguin.net/forums/gallery.php :)
KTBleeding
05-24-2004, 03:12 AM
Hmm. That actually looks pretty decent.
I'm afraid (by the looks of it) that it just doesn't have all the features I need with it I'm very picky about this whole thing right now. :p
But really, keep up the work, should turn out to be a great gallery script. And in future releases may be just what I'll be looking for. ;)
For now, about 4images.. I think I'll ask the guy that does the intranet at my job for some help on it. If I get a fix out of him, I'll be sure to post it up here.
Thanks,
vBFreak
05-27-2004, 09:43 PM
I've always used 4images gallery, now I have many pictures in it and can't delete them all to get another gallery :/
Also 4images is the best gallery I know, and I think that I have to wait for 1.8 until someone makes a new integration which works better than this :/
[edit: I've found a bug in the code of 4images in the header template...
after this:
window.open('','detailwindow','toolbar=no,scrollba rs=yes,resizable=no,width=680,height=480');
add a }
I don't think that it will fix the problem, but I'll try it out now ;)]
[edit2: Now the browser doesn't report a problem, but the login isn't fixed :(]
vBFreak
05-28-2004, 06:15 PM
hmmm... I don't know why and I don't know how to fix, but if I look to my cookies, there is a cookie named 4images_userid, my vB-Userid is 1, and the vaue of this cookie is -1... can it be that this is our cookie/login problem?
KTBleeding
05-28-2004, 10:03 PM
hmmm... I don't know why and I don't know how to fix, but if I look to my cookies, there is a cookie named 4images_userid, my vB-Userid is 1, and the vaue of this cookie is -1... can it be that this is our cookie/login problem?
Could be.. Good luck in figureing it out! If you get it, pleeeeeeeease let me know! :)
ogetbilo
05-28-2004, 10:27 PM
Since there is no support for this hack, and there is still this login/logout problem, I uninstalled my 4 images and now I use Coppermine (which is also free). It is quite easy to transfer the images from 4images. the only saddelty is there is no easy way of transfering the comments made for images.
KTBleeding
05-28-2004, 11:29 PM
Since there is no support for this hack, and there is still this login/logout problem, I uninstalled my 4 images and now I use Coppermine (which is also free). It is quite easy to transfer the images from 4images. the only saddelty is there is no easy way of transfering the comments made for images.
I use coppermine as well, 4images template system is very customizable and that's what I like about it. Really, the template system for 4images is way ahead of its time IMO. The competitors (Coppermine, Photopost, etc) really don't stand a chance as far as templating goes at the moment.
BlackxRam
05-29-2004, 05:37 AM
There is a problem because while you CAN login and the integration DOES work with vbulletin 3 it doesn't however HOLD the cookie and login information. Until someone figures out how to get 4images to recognize the vbulletin cookie and keep a user logged in the script will keep requiring you to login. So there needs to be SOMETHING added to the script.
The integration works perfectly for VB gold and above but the ONE bug is the LOGGING in, you just cant stay logged in.
And i agree that 4images was always the BEST gallery script out there... its presentation and appeal is unmatched. Its simply the BEST designed gallery out there but support for it is very lacking. Supposedly Version 1.8 and 2.0 will be VB3 compatible so for the time being I am just allowing Anyone to post comments or download or wtv because frankly I can wait. I would also suggest that you guys do that as well for the time being. Just keep everything set to ALL or use the PASSWORD PROTECT NON-VB pages with MEMBER INFO hack for certain pages. It wouldnt be hard.
But I would still suggest using 4images as it is BY FAR the best gallery out there. Other galleries are just plain ugly INCLUDING Photopost... that i can't understand is so bloody expensive when there are BETTER galleries out there for free... some people just have delusions of grandeur and some people actually buy into that bull crap and fork over the cash just because its integratable with there forums... sometiems its nto worth it. But 4images would be worth it and Ill still try to make it work.
BlackxRam
05-29-2004, 05:42 AM
Since there is no support for this hack, and there is still this login/logout problem, I uninstalled my 4 images and now I use Coppermine (which is also free). It is quite easy to transfer the images from 4images. the only saddelty is there is no easy way of transfering the comments made for images.
Og, I wouldnt have gotten rid of 4images because the 1.8 version is right around the corner and JAN who created 4images wrote the VB2.x integration that worked PERFECTLY so he will almost certainly create a VB3 integration.
4IMAGES compared to Coppermine is like comparing a STEAK to a measely Mcdonalds Cheeseburger..
Like i said above you should just either password protect certain files or just turn off registrations to 4images and allow anyone to view or download. I Personally dont let anyone but my admins upload anything but everythig else in my 4images is set to ALL. and I even use the hack to password protect pages with Vbulletin info on some of them.
This is the best choice right now if you use 4images.
Even when multiple users are browsing 4images?
What exactly do you mean by disabling WOL? :)
Thanks,
yes, I dont get any report of big problem sofar.
Some minor problems in my 4i are:
- for vB3.0.1, logout require userID and I dont have it in logout code yet
- users are browsing album aint be tracked in session (session only show the last action in forum). Who is Online only shows guests who are browsing album.
- 4i cant use the "remember me", because of the cookie path. it doesnt matter if you select it or not, you still have to login next time (close browser) if you go directly to album. If you go from forum to album, it's ok.
(I have them setup as http://domain/album and http://domain/forum)
btw, if you have cookie problem, check cookie setting for vB too (ACP/VB options). make sure that the cookie setting is "general" enough to take care album too.
(for example, I just use .domain as domain, and nothing for path)
maybe I will take sometime rewrite the hack, then you can try and see if it works.
I did buy photopost. I'm not going to buy more than one though! haha. Plus, photopost is very difficult to skin, the support (for me so far) has been very close to horrible, and I have had quite a few integration problems with it as well. Even when it's supposedly made to integrate very well.
I dunno, maybe if it was like.. 50 bucks for a second license, then sure. But if I'm paying 129.99 for a script, I'd either like to see it work perfectly, or very good support behind it and I have yet to experience this from Photopost. :ermm:
heheh, I spent few hours trying photopost 4.6 for my friend, but didnt like it. Dont talk about the support, but the program itself doesnt make a big step over other free album scripts, in order to be worth 129 some bucks.
Some good things are:
- easy to intergrate. However, it's not that important. People buy a album, for a good album first, before thinking about intergration.
- have the "forum look", which is only a "different in style", you can change the layout by making another template.
what else? didnt see any yet.
try this:
in album\includes\sessions.php
change $clientscript_md5 line to:
$clientscript_md5 = $url_app."clientscript/vbulletin_md5.js";
go to function delete_old_sessions() part,
find
$site_db->query($sql);
and replace by
// $site_db->query($sql);
see if it works.
Fix for LOGOUT link:
<edit file>
includes/page_header.php
</edit file>
<search for>
if ($user_info['user_level'] >= USER) {
$site_template->register_vars("lang_loggedin_msg", preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU", $user_info['user_name'], $lang['lang_loggedin_msg']));
$user_box = $site_template->parse_template("user_logininfo");
$site_template->register_vars(array(
"user_box" => $user_box,
"user_loggedin" => 1,
"user_loggedout" => 0,
"is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0
));
$site_template->un_register_vars("user_logininfo");
unset($user_box);
}
</search for>
<replace>
//HN -Intergration with vB3 - BEGIN
if ($user_info['user_level'] >= USER) {
$site_template->register_vars("lang_loggedin_msg", preg_replace("/".$site_template->start."loggedin_user_name".$site_template->end."/siU", $user_info['user_name'], $lang['lang_loggedin_msg']));
$user_box = $site_template->parse_template("user_logininfo");
$myuserid = $user_info['user_id'];
$site_template->register_vars(array(
"user_box" => $user_box,
"myuserid" => $myuserid,
"user_loggedin" => 1,
"user_loggedout" => 0,
"is_admin" => ($user_info['user_level'] == ADMIN) ? 1 : 0
));
$site_template->un_register_vars("user_logininfo");
unset($user_box);
}
//HN -Intergration with vB3 - END
</replace>
in sessions.php, replace
$url_logout line by
$url_logout = $url_app."login.php?do=logout&u={myuserid}";
KTBleeding
05-30-2004, 08:31 PM
try this:
in album\includes\sessions.php
change $clientscript_md5 line to:
$clientscript_md5 = $url_app."clientscript/vbulletin_md5.js";
go to function delete_old_sessions() part,
find
$site_db->query($sql);
and replace by
// $site_db->query($sql);
see if it works. :ninja: !!!!!!!!!!!!! FINALLY!
SO far it's working perfectly! WOO! Seriously, this is so exciting, hahahaha.
Thanks a TON dude. I haven't tested it much, but so far it's passed without logging us out. YES!
Also I can't login in the admin-cp of 4images... so I can't administrate it...
You can't use the whole gallery correct with this hack... and the author? where is he/she? Shouldn't he/she give support and bugfixes for his/her "hack"? The complete hack is a major bug, what is the use of the gallery if you can't administrate and login? :mad:
The vB-File modification can you find a few pages before this... with it you can login and post and upload if nobody else visits the gallery...
:) there's another login code you need to work on, in /admin/admin_global.php. check out my attached file in the above post for detail.
vBFreak
06-04-2004, 05:58 PM
hmmm but this code above works only if you do the following:
Find (4images /includes/sessions.php)
define('COOKIE_PATH', $cookiedomain);
define('COOKIE_DOMAIN', $cookiepath);
And change it to:
define('COOKIE_PATH', $cookiepath);
define('COOKIE_DOMAIN', $cookiedomain);
After I've flipped this, and made the above code changes it seems to work ;)
If you are logged in you can access the admin-cp via an edit- or delete-link of a picutre...
I am having a table prefix issue. what file in the 4images directory tells 4images what the vbulletin table prefix is?
not the 4images prefix, but the vbulletin prefix. i am getting errors that have the login page looking for dbname.tablename, when it needs to be looking at dbname.vb3_tablename
Well, I just went in and manually changed the user and session table in constants.php and template table in session.php, but now I am having group issues. Vbull groups didn't get ported over in this integration. is this possible or are the systems incompatible?
I am having a table prefix issue. what file in the 4images directory tells 4images what the vbulletin table prefix is?
not the 4images prefix, but the vbulletin prefix. i am getting errors that have the login page looking for dbname.tablename, when it needs to be looking at dbname.vb3_tablename
4images/include/constant.php
Make sure that you have correct prefix for these two variable.
// Table names
define('SESSIONS_TABLE', 'session');
define('USERS_TABLE', 'user');
Well, I just went in and manually changed the user and session table in constants.php and template table in session.php, but now I am having group issues. Vbull groups didn't get ported over in this integration. is this possible or are the systems incompatible?
check the section bellow that
// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);
the number means groups.
... are you sure you did read the installation and intergration instruction correctly?
Those 4 groups ported fine, but The other 15 groups I have in Vbull didn't get ported. I have to setup 4images groups independently of the vbulletin groups?
My site uses more than just admin, registered users, unregistered users. It looks like I'd have to set up an array similar tot he user array in sessions.php for groups for it to integrate properly.
does 4images support users being members of several groups?
is there a way to get 4images to use some sortof is_member_of functionality to assign permissions or will it always be limited to primary groups?
BlackxRam
06-06-2004, 07:52 AM
HEY KT, is the Cookie STILL holding? Did MTA's fix work for the logging out issue? What about logging into the ADMIN of 4images and staying logged in?
So many questions. Can the FIRST zip file in this POST be updated with the NEW changes? So I KNOW i wont miss anything? lol
Those 4 groups ported fine, but The other 15 groups I have in Vbull didn't get ported. I have to setup 4images groups independently of the vbulletin groups?
My site uses more than just admin, registered users, unregistered users. It looks like I'd have to set up an array similar tot he user array in sessions.php for groups for it to integrate properly.
does 4images support users being members of several groups?
is there a way to get 4images to use some sortof is_member_of functionality to assign permissions or will it always be limited to primary groups?
hehe, I see what you mean now.
For my album, I use another field for album level, so I dont think I'm going to write a fix for this.
However, if you wanna make another field for album_level, create this element in user table, with the default value = 2, and change the value for admins to 6 (or whatever admin value should be)
in this case, all members (including waiting for moderation ...) in any group are treated as user, except for those who are set to be admin.
for those who have some field in userfield table for "name", then you can use "userfield" instead of "user" table. In this case, you only need to creat another field for album level (using add user field) in user profile. => you can control the levels easier.
HEY KT, is the Cookie STILL holding? Did MTA's fix work for the logging out issue? What about logging into the ADMIN of 4images and staying logged in?
heheh, my album work just fine, including login-logout-log in to adminCP ...
been using it for months without trouble.
good luck.
KTBleeding
06-06-2004, 06:49 PM
HEY KT, is the Cookie STILL holding? Did MTA's fix work for the logging out issue? What about logging into the ADMIN of 4images and staying logged in?
So many questions. Can the FIRST zip file in this POST be updated with the NEW changes? So I KNOW i wont miss anything? lol
Yep. All of that is still holding strong for me.
:)
Although, I never had the 4images admin login problem. I always just clicked the "Control Panel" link on the bottom and it worked fine.
flash7
06-06-2004, 08:51 PM
NO MORE LOGOUT PROBLEM WITH
PHP 4.3.7
vb 3.0.0
*edit* fixed...
www.communityforums.net/gallery
customized css.
legendarysk8er
06-07-2004, 04:46 AM
Great hack!
Odoin
06-07-2004, 05:30 AM
I made this change:
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
And everything is working now...
Anyone have any luck getting it to match their site? Can I pull vb stuff inside of the gallery such as $navbar?
I made this change:
if ($name != 'sessionhash')
{
$name = COOKIE_PREFIX . $name;
}
And everything is working now...
Anyone have any luck getting it to match their site? Can I pull vb stuff inside of the gallery such as $navbar?
You can create something look similar to the navbar, and add in your album header. checkout the code for navbar template and album's header template, in order to do so.
BlackxRam
06-08-2004, 03:43 PM
Still Does not work for me. Whenever I close the Browser I am logged out again.
Anyone have any ideas?
BlackxRam
06-08-2004, 04:03 PM
Still not working for me Guys,
I have it to the point where it accepts my Forums Login However when I close the browser and come back to it, I am logged out of it.
Did I miss a step here? I went through EVERYTHING atleast 3 times.
Do i NEED php 4.3.7 Cause I have 4.3.3 on my server right now... MTA HELP!!! lol
I was able to get a random image generation from the gallery onto my forum header template;
http://www.communityforums.net/forum/index.php?styleid=28
(not customized into the style yet)
I will release an add-on hack for this later on this week.
Still not working for me Guys,
I have it to the point where it accepts my Forums Login However when I close the browser and come back to it, I am logged out of it.
Did I miss a step here? I went through EVERYTHING atleast 3 times.
Do i NEED php 4.3.7 Cause I have 4.3.3 on my server right now... MTA HELP!!! lol
In the admincp, open this
settings > sessions and user settings
In the form for "session timeout in minutes" set to 0.
BlackxRam
06-10-2004, 12:33 AM
In the admincp, open this
settings > sessions and user settings
In the form for "session timeout in minutes" set to 0.
Done that Defi and it still does not work
BlackxRam
06-10-2004, 12:40 AM
This Mod is still not working as I have tried the install a dozen times and I even took the files from a apparently working integration from KTBleeding, changed the information to my server information and it still does not keep me logged in. My cookie in VB is set to my domain which is .mogusland.com and my session timeout in 4images is set to 0.
Is there anything I missed?
Still not working for me Guys,
I have it to the point where it accepts my Forums Login However when I close the browser and come back to it, I am logged out of it.
Did I miss a step here? I went through EVERYTHING atleast 3 times.
Do i NEED php 4.3.7 Cause I have 4.3.3 on my server right now... MTA HELP!!! lol
my name is MTHA, not MTA please.
I dont see the biggie for this problem tho. If you login to your forum, and access album from forum, then you are fine :)
I dont have solution for this yet :) sorry
BlackxRam
06-10-2004, 05:15 PM
Ok, so it does still log you out when you close the browser. Ok good, because I thought this fixed that issue. Then Im fine in waiting because right now I just enabled everyone to be able to post comments ect. I never allowed member uploads because I am using this as a gallery for my site content anyways at www.mogusland.com so no worries then.
vBFreak
06-11-2004, 12:09 AM
hmmm... the login works perfect with all this fixes... Has anyone fixed yet the problem with the admin-login?
And then I've discovered that some things are missing in the users gallery profile... You can't go there normally, but I have placed a small link in my forums in the profile and in the popup if you click on a nick in a post to see this... but the info Comments:, Email:, and the ICQ-Status are empty... Email and ICQ-status isn't important, cause you can see it in the forums-profile, but comments would be useful...
For everyone who don't know how to access the gallery-profile: 4images-url/member.php?action=showprofile&user_id=userid (userid is the user's userid from your vB), can anyone try to fix that? ;)
Also it would be nice to integrate the gallery to the Who's online list... so that you can see that the users are in the gallery or if it would be perfect the action that they're doing there... but I think that's a suggestion which is far far away from the possibilitys now ;>
hmmm... the login works perfect with all this fixes... Has anyone fixed yet the problem with the admin-login?
Did you make changes to the admin/admin_global.php? I think there's some of my instruction to do this step
And then I've discovered that some things are missing in the users gallery profile... You can't go there normally, but I have placed a small link in my forums in the profile and in the popup if you click on a nick in a post to see this... but the info Comments:, Email:, and the ICQ-Status are empty... Email and ICQ-status isn't important, cause you can see it in the forums-profile, but comments would be useful...
For everyone who don't know how to access the gallery-profile: 4images-url/member.php?action=showprofile&user_id=userid (userid is the user's userid from your vB), can anyone try to fix that? ;)
You are really funny man :) For this intergration, you try to use forum's user table (and skip the album's user table). Now you try to PULL it out from the trash and use it?
I did not check the member.php file (as of I use forums' member file, to view profile and manage users), but you can set Constant variable for these values (ICQ, Email ...) I dont know what do you mean by comments (never use it, so I dont know). Maybe you will need to add a comments field to the user table for this to work.
Also it would be nice to integrate the gallery to the Who's online list... so that you can see that the users are in the gallery or if it would be perfect the action that they're doing there... but I think that's a suggestion which is far far away from the possibilitys now ;>
would be great if so.
BlackxRam
06-13-2004, 01:42 AM
There's gotta be a way to see why the VB 2.xx integration worked and make it work with VB3... that integration of vb2.xx was perfect and everything was perfect... is vb3 THAT different from VB2 regarding this login thing?
vBFreak
06-13-2004, 09:56 PM
Did you make changes to the admin/admin_global.php? I think there's some of my instruction to do this step
damn, I can't find the instructions... only for login/logout ^^
You are really funny man :) For this intergration, you try to use forum's user table (and skip the album's user table). Now you try to PULL it out from the trash and use it?
I did not check the member.php file (as of I use forums' member file, to view profile and manage users), but you can set Constant variable for these values (ICQ, Email ...) I dont know what do you mean by comments (never use it, so I dont know). Maybe you will need to add a comments field to the user table for this to work.
Comments are the number of comments a user has made... ans that you can't see in the forums like the other unimportant stuff :D
hm, I'll test what happens when I set the comments-table to the 4images table in constants... but I'm not really familiar with php ans/or mySQL, so I can't do more...
No, I won't use the 4images usertables, but it would be nice if you cold link this... Then it looks nicer... I think it's a good idea, if you can, can you then try to fix this? :)
insanctus
06-13-2004, 10:00 PM
There's gotta be a way to see why the VB 2.xx integration worked and make it work with VB3... that integration of vb2.xx was perfect and everything was perfect... is vb3 THAT different from VB2 regarding this login thing?
Yes vB3 has salt .. :)
vBFreak
06-13-2004, 10:19 PM
hm, I've set now the follwoing:
includes/constants.php
define('COMMENTS_TABLE', $table_prefix.'comments');
includes/sessions.php
"user_comments" => "user_comments",
I've also tried there "comments" and "4images_comments" (4images is the table prefix)
It seems that nothing is broken, but it also doesn't work and shows the number of user's comments... can anyone help?
damn, I can't find the instructions... only for login/logout ^^
<edit file>
admin/admin_global.php
</edit file>
Search for
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;
}
Replace with
//HN -Intergration with vB3 - BEGIN
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="/~forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="/forums/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;
}
//HN -Intergration with vB3 - END
hm, I've set now the follwoing:
includes/constants.php
define('COMMENTS_TABLE', $table_prefix.'comments');
includes/sessions.php
"user_comments" => "user_comments",
I've also tried there "comments" and "4images_comments" (4images is the table prefix)
It seems that nothing is broken, but it also doesn't work and shows the number of user's comments... can anyone help?
You did it WRONG.
In sessions.php:
$user_table_fields = array( ... "user_comments" => "user_comments"
This field is for a column in user table showing the number of comments that some user has, not the same with the one in constants.php
I would suggest you to do this:
Add one field in your FORUM' user table, name it "user_album_comments"
and make this one be
"user_comments" => "user_album_comments"
It may work, I didnt test.
vBFreak
06-14-2004, 09:00 AM
can you say me the command which I have to enter with phpMyAdmin to alter the table with this field? Then I'll try it out... ^^
To the integration: nice work... It's very nice that you have done that things that Matrixgl had to do for us, it works great... The only minor problem is that all users are logged out if they are 900 seconds not on a page of the forum, then the cookietime of the vB-loggedincookie expires...
insanctus
06-14-2004, 09:02 AM
can you say me the command which I have to enter with phpMyAdmin to alter the table with this field? Then I'll try it out... ^^
ALTER TABLE user ADD `user_album_comments` VARCHAR( 100) NOT NULL
vBFreak
06-14-2004, 09:05 AM
hey, that was a fast reply... thanks :D
I'll now try this out and then I'll say you if it works...
insanctus
06-14-2004, 09:06 AM
Most welcome :) Just surfin about drinkin coffee before bed.
vBFreak
06-14-2004, 09:14 AM
Great work mtha, it works perfect... now it shows the nuber of the comments... thanx :)
The only problem is that everyone has to make a comment now to update it... can I use any sql-query to update it from all users? And what about new registered users, there should be a 0 then :)
Can you try to fix the same with the email field? it looks so empty ;)
I've set this in includes/sessions.php, but the field is empty =(
"user_email" => "email",
skinvb
06-14-2004, 02:11 PM
I integrated in successfully but members send new images.It require admin Validate images .How can i turn off this option?
KTBleeding
06-14-2004, 05:26 PM
I integrated in successfully but members send new images.It require admin Validate images .How can i turn off this option?
4images settings.
ALTER TABLE user ADD `user_album_comments` VARCHAR( 100) NOT NULLactually, it should be
ALTER TABLE user ADD `user_album_comments` SMALLINT( 9 ) DEFAULT '0' NOT NULL;
it should be number, with default = 0 => new registered members will have this number = 0
The only problem is that everyone has to make a comment now to update it... can I use any sql-query to update it from all users?
Idea is, you have to export a list of members (array of members ID), says $user[userid]
and for each member, do a querry to count # of comments, assign the value for $comments
SELECT COUNT( * ) AS comments FROM 4images_comments WHERE user_id =$user[userid]
then update the value of this counter
UPDATE user SET user_album_comments=$comments WHERE userid = $userid"
that's only the idea, you should modify and put it in proper form :D
You should check the "Update counter" or userpost from vB ACP part.
line 191, misc.php
$users = $DB_site->query("SELECT userid FROM " . TABLE_PREFIX . "user WHERE userid >= $startat AND userid < $finishat ORDER BY userid DESC");
while ($user = $DB_site->fetch_array($users))
{
$totalposts = $DB_site->query_first("
SELECT COUNT(*) AS posts FROM " . TABLE_PREFIX . "post AS post
INNER JOIN " . TABLE_PREFIX . "thread AS thread USING (threadid)
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog_t ON (deletionlog_t.primaryid = thread.threadid AND deletionlog_t.type = 'thread')
LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog_p ON (deletionlog_p.primaryid = post.postid AND deletionlog_p.type = 'post')
WHERE post.userid = $user[userid] AND
thread.forumid IN (0$gotforums) AND
deletionlog_t.primaryid IS NULL AND
deletionlog_p.primaryid IS NULL
");
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET posts=$totalposts[posts] WHERE userid = $user[userid]");
echo construct_phrase($vbphrase['processing_x'], $user['userid']) . "<br />\n";
flush();
}
MAYBE something like
$users = $DB_site->query("SELECT userid FROM " . TABLE_PREFIX . "user ORDER BY userid");
while ($user = $DB_site->fetch_array($users))
{
$totalcomments = $DB_site->query_first("
SELECT COUNT(*) AS comments FROM 4images_comments
WHERE user_id = $user[userid] ");
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET user_album_comments=$totalcomments[comments] WHERE userid = $user[userid]");
echo construct_phrase($vbphrase['processing_x'], $user['userid']) . "<br />\n";
flush();
}
vBFreak
06-14-2004, 09:06 PM
hmmm yes, worked without any problems :D
hmmm couldn't the problem with the email-field be, that the user is hiding his mailadress?
I wanted to test this, but it seems that in vB3 the mailaddress is hidden by default, I couldn't find an option in my profile settings like it was in vB 2 for this...
To the admincp-fix: the login works, but I'm still always redirected to the forum's home after it :/
//HN -Intergration with vB3 - BEGIN
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="/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="/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;
}
//HN -Intergration with vB3 - END
That's my code now, I had to change the paths a bit, because my forums are in /, is there an error now?
hmmm yes, worked without any problems :D
hmmm couldn't the problem with the email-field be, that the user is hiding his mailadress?
I wanted to test this, but it seems that in vB3 the mailaddress is hidden by default, I couldn't find an option in my profile settings like it was in vB 2 for this...
This option is combined in value "options" in vB's userfield table. You need to de-compile the value, in order to get this showemail value.
I'm not interested in showing email nor showing useronline in album, so I cant help you right now.
That's my code now, I had to change the paths a bit, because my forums are in /, is there an error now?
is this a question of an answer?
FIX to SHOW MEMBERS who are browsing album to show in forum's whoisonline page
in album's sessions.php
FIND
$sql = "UPDATE ".SESSIONS_TABLE."
SET lastactivity = $this->current_time
WHERE sessionhash = '$this->session_id'
AND host = '$this->user_ip'";
REPLACE BY
$sql = "UPDATE ".SESSIONS_TABLE."
SET lastactivity = $this->current_time, location = '$this->user_location'
WHERE sessionhash = '$this->session_id'
AND host = '$this->user_ip'";
vBFreak
06-17-2004, 05:43 PM
where can I add this then to my Who's online list? It shows only that the user is on the forums-index...
where can I add this then to my Who's online list? It shows only that the user is on the forums-index...add in album's sessions.php
it should show in your FORUM's who's online list. open your who'sonline list, then open another windows, browse to your album to test.
btw, check your sessions.php and see if you have this part correct
function Session() {
global $cookietimeout;
$this->session_timeout = $cookietimeout;
$this->user_ip = $this->get_user_ip();
$this->user_location = '/album/'.$this->get_user_location();
$this->current_time = time();
$this->demand_session();
change /album/ to what it should be in your case
CreedFeed
06-20-2004, 03:27 AM
For those of you having problems with this script, download the zip file here:
https://vborg.vbsupport.ru/showpost.php?p=517354&postcount=161
and follow the instructions one by one. It is very easy and works perfectly with vb3.0.1 and 4Images 1.7
I've run into ZERO bugs with this. Everything works perfectly.
Well, after the whole bunch of changes and fixes, I decided to re-release this integration, which would work for vB 3.0.1, giving as much support as I can.
Hope MatrixGL wouldnt mind. (if you do, then update your first post, and let me know, I will delete the other :D )
https://vborg.vbsupport.ru/showthread.php?t=66335
BlackxRam
06-24-2004, 01:45 AM
Check that, its nto working now, whenever i close my browser i am logged off 4images. Anything?
Here's the UPDATED version. I CANNOT support an out_of_date version.
https://vborg.vbsupport.ru/showthread.php?t=66335
mrcancel
11-14-2004, 09:26 PM
When i integration 4images with vbulletin , i have a error :
DB Error: Bad SQL Query: SELECT COUNT(*) as users FROM user WHERE user_id <> 0
Unknown column 'user_id' in 'where clause'
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 music_images i, music_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 DESC LIMIT 1
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC LIMIT 1' at line 5
When i integration 4images with vbulletin , i have a error :
DB Error: Bad SQL Query: SELECT COUNT(*) as users FROM user WHERE user_id <> 0
Unknown column 'user_id' in 'where clause'
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 music_images i, music_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 DESC LIMIT 1
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC LIMIT 1' at line 5
from the error, you DID NOT setup field names for user table right. You may have installed an OUT OF DATE version of this integration.
Here is my post right above yours, I hope you dont mind reading it again:
Here's the UPDATED version. I CANNOT support an out_of_date version.
https://vborg.vbsupport.ru/showthread.php?t=66335
Wordplay
12-14-2004, 04:40 PM
is it possible to have pictures uploaded count for your REPUTATION?
and to have comments to the pictures in the gallery count as your post count?
Chadi
12-19-2004, 04:08 AM
getting an error
Parse error: parse error, unexpected T_CASE, expecting ':' or '{' in /home/chadi/public_html/includes/functions_online.php on line 153
line 153 is the 3rd line..and it looks fine
[CODE]
switch($userinfo['activity'])
// Album user online Mod
case 'album':
$userinfo['action'] = 'Browsing album';
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
break;
// End
[CODE]
intrigue
12-26-2004, 12:47 AM
still cant find a vbadvanced module anyone have any idea where this is?
.matt
Tinh.Nhi
11-09-2007, 07:19 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=141648" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=141648</a> here you go
Tinh.Nhi
11-09-2007, 07:25 PM
<a href="http://www.vbadvanced.com" target="_blank">www.vbadvanced.com</a> i believe this is what you are looking for
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.