vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   4images Gallery 1.7 + vB 3.0.x (update Oct 30) (https://vborg.vbsupport.ru/showthread.php?t=66335)

Chrissicom 07-12-2004 06:53 PM

Hi guys

I am clicking install too now :) finally using this hack for my forums after some problems. I have the forum in the folder /forum/ and had the gallery in the folder /sbcgalleries/. I was never logged in in the forum when I went there and the problem was that I had to move the 4images gallery to /forum/sbcgalleries/. Does the 4images gallery always have to be a subfolder in the forums dir? If so I think this wasn't mentioned in the install.txt for this hack.

although my who is online page says Unknow Location instead of viewing galleries....

this is in my functions_online.php file, anything wrong??

PHP Code:

    // Album user online Mod
            
case 'sbcgalleries':
                
$userinfo['action'] = 'Viewing Galleries';
                
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
                break;
    
// End 


mtha 07-13-2004 06:31 AM

Quote:

Originally Posted by Chrissicom
Hi guys

I am clicking install too now :) finally using this hack for my forums after some problems. I have the forum in the folder /forum/ and had the gallery in the folder /sbcgalleries/. I was never logged in in the forum when I went there and the problem was that I had to move the 4images gallery to /forum/sbcgalleries/. Does the 4images gallery always have to be a subfolder in the forums dir? If so I think this wasn't mentioned in the install.txt for this hack.

NO, I even have 4images installed in another account. as long as it can access the same database.

If you have problem, you may did some step wrong. Please check again.

Quote:

although my who is online page says Unknow Location instead of viewing galleries....

this is in my functions_online.php file, anything wrong??

PHP Code:

     // Album user online Mod
             
case 'sbcgalleries':
                
$userinfo['action'] = 'Viewing Galleries';
                 
$userinfo['where'] = "<a href=\"$userinfo[location]\">$userinfo[location]</a>";
                 break;
     
// End 


there's another place to identify the online status being sbcgalleries
you need to check that part too.

Chrissicom 07-13-2004 01:04 PM

Ok, online status is fixed. But now I have another problem. I usually log in to my forum and then go from a forum link to http://www.sandraboards.com/forum/sbcgalleries/ and I am logged in. But when I go directly to http://www.sandraboards.com/forum/sbcgalleries/ although I am logged in at the boards I am not logged in and when I type in my username and password I am re-directed and still not logged in. Any idea what might be wrong?

I used the latest version of this mod and went through all the steps a few times to check if I did something wrong but didn't find anything :(

Nevermind, fixed the login thing, had a few path set wrong, although changing the path fixed the login problem I have a problem with the Show Online thingy again now lol, it says Unknow location although I fixed this part here to look like this

PHP Code:

    // Album user location
        
else if (strpos($token"/forum/sbcgalleries/") !== false)
        {
            {
                
$userinfo['activity'] = 'sbcgalleries';
            }
            return 
$userinfo;
    } 


Chrissicom 07-13-2004 05:47 PM

I changed the style of the 4images gallery to look like the vBulletin 3.0.3 standard design. If some people want to save time and use my changes as "template" I upload the required files here. The images go in the /gallery/templates/default/images/ folder and the .css file should simply replace with the old one of the default style (Backup your old files first).

There is a little problem with very long gallery names and picture names in the navbar, maybe someone can help me on how to fix this without changing to many template files. ...CSS margin and padding messes up the table so I won't use that as a solution. (Problem: http://www.sandrabullockcentral.com/...hp?image_id=19)

Demo of Style applied: http://www.sandrabullockcentral.com/sbcgalleries/

Note: If your gallery is not a subfolder of yourdomain.com/forum/ you have to change the background: url lines in the .css file

mtha 07-14-2004 03:20 AM

Quote:

Originally Posted by Chrissicom
I have a problem with the Show Online thingy again now lol, it says Unknow location although I fixed this part here to look like this

PHP Code:

     // Album user location
         
else if (strpos($token"/forum/sbcgalleries/") !== false)
         {
             {
                 
$userinfo['activity'] = 'sbcgalleries';
             }
             return 
$userinfo;
     } 


I have no idea why this happen. it should work if you have everything setup correct. Check your database for sessions table, check the activity column for the location. Put the correct token for it, that all I can think of right now.

ntwrkguy 07-14-2004 10:20 AM

It's perfect, only to log in, users have to make sure to uncheck the remember me box. Any way to fix?

mtha 07-14-2004 06:56 PM

Quote:

Originally Posted by ntwrkguy
It's perfect, only to log in, users have to make sure to uncheck the remember me box. Any way to fix?

You have a cookie problem.

Make sure you have everything setup correctly. of if you have your board AND your album setting different, try to change the configuration accordingly. (for example cookie prefix). I have no idea how your board is, what's your setting nor configuration, so I cant give detail way to fix it.


My version works fine, with and without checking "remember me" box.

Chrissicom 07-16-2004 09:12 AM

I have cookie prefix 's' and cooke name 'bb' for both and when I login to the galleries I get logged in but the page is still shown with the login box, unless I go to forum for login and click a link to the galleries then, otherwise the login box is always shown although I am logged in.... why is that?

Also is it possible to connect 4images to 5 usergroups from vB instead of just 4? Because I want to differ between Registered and Paying Registered members.

Koutaru 07-16-2004 06:19 PM

The only reason I wanted to include my default vbulletin header and navbar is because it contains certain conditional statements and some phpincludes that I would like to include into the gallery as well

^^; is there any way to inpliment this? Could you show me how/where to look or start?

mtha 07-16-2004 10:28 PM

Quote:

Originally Posted by Chrissicom
I have cookie prefix 's' and cooke name 'bb' for both and when I login to the galleries I get logged in but the page is still shown with the login box, unless I go to forum for login and click a link to the galleries then, otherwise the login box is always shown although I am logged in.... why is that?

could be something wrong with :login: box or login variable.

Check the template user_loginform.html and login variable in sessions.php file.

I dont have any idea why you get that error yet (unless you did something wrong with your files)

Quote:

Also is it possible to connect 4images to 5 usergroups from vB instead of just 4? Because I want to differ between Registered and Paying Registered members.
should be posible, but I actually dont use default vB groups, I create another field in their profile for this purpose.


Quote:

The only reason I wanted to include my default vbulletin header and navbar is because it contains certain conditional statements and some phpincludes that I would like to include into the gallery as well

^^; is there any way to inpliment this? Could you show me how/where to look or start?
edit template

Look at header and footer template :)


All times are GMT. The time now is 09:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01215 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete