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)

Tenny 03-22-2005 09:03 PM

Great hack, works like a charm, most of the time.

Sometimes though, I just installed it so I'm not sure why or anything none of the links work. I can click wahtever a million times and nothing happens, it doesn't even try going to the link.

Anyone with idea's?

EDIT: BTW, I'm running 3.0.3 w/ 1.7 vbb wasn't a fresh install, but 4images was.

mtha 03-23-2005 01:48 AM

Quote:

Originally Posted by Tenny
Great hack, works like a charm, most of the time.

Sometimes though, I just installed it so I'm not sure why or anythingnone of the links work. I can click wahtever a million times andnothing happens, it doesn't even try going to the link.

Anyone with idea's?

EDIT: BTW, I'm running 3.0.3 w/ 1.7 vbb wasn't a fresh install, but 4images was.

:) have no idea why either. I would suggest restarting your computer.sometime, it's just browser/os errors. if doesnt work, give me yoururl, i will take a look.

nosaj 03-23-2005 01:52 AM

Fixed: The disappearing login box. I replaced the "page_header.php" form the working "gallery1" includes folder into gallery2 and gallery3 includes folders. At first, I edited the page_header.php file separately for each gallery increasing the chances of me making a mistake. So, the cause of the problem was poor copying and pasting on my part. :cross-eyed:

Not Fixed: The logout problem causing this error: "An error occurred while attempting to log you out. Click here to log out."
Most likely it is another editing problem on my part. So I am going to take my time and look over everything very carefully. And see if I can find another mistake I may of made. I'll let you know how it turns out.

Thanks again for your help.
Jason

mtha 03-23-2005 02:02 AM

Quote:

Originally Posted by nosaj
Fixed: The disappearing login box. I replaced the"page_header.php" form the working "gallery1" includes folder intogallery2 and gallery3 includes folders. At first, I edited thepage_header.php file separately for each gallery increasing the chancesof me making a mistake. So, the cause of the problem was poor copyingand pasting on my part. :cross-eyed:

good that you have it sort out.

Quote:

Not Fixed: The logout problem causing this error: "An erroroccurred while attempting to log you out. Click here to log out."
Most likely it is another editing problem on my part. So I am going totake my time and look over everything very carefully. And see if I canfind another mistake I may of made. I'll let you know how it turns out.
there's something changed from 1.7.0 to 1.7.1 that deletingmyuserid value from the logout link. I have few copies in 1.7.0 workingfine, and one in 1.7.1 giving that error.

The idea is to add your userid into logout link.

will come back later with a fix.

mtha 03-24-2005 02:05 AM

Quote:

Originally Posted by nosaj
Not Fixed: The logout problem causing this error: "Anerroroccurredwhileattempting to log you out. Click here to logout."

try this:

in page_header.php, line 110

replace
PHP Code:

"url_logout" => (!empty($url_logout)) ? $site_sess->url($url_logout) : $site_sess->url(ROOT_PATH."logout.php"), 

by
PHP Code:

"url_logout"=>(!empty($url_logout))?$site_sess->url($url_logout):$site_sess->url($url_app."login.php?do=logout&u=$user_info[user_id]"), 


and in sessions.php, take out the url_logout line:
replace

PHP Code:

$url_logout        $url_app."login.php?do=logout&u={myuserid}"

by
PHP Code:

//$url_logout        = $url_app."login.php?do=logout&u={myuserid}"; 


nosaj 03-24-2005 03:56 AM

I tried the new code, only in gallery1, and then signed in and out of gallery1 and the same error happened. The error is nothing major, basically just one extra click for the users.

But everything else is working amazingly well! :)

mtha 03-24-2005 05:38 AM

Quote:

Originally Posted by nosaj
tried the new code, only in gallery1, and then signedinandout of gallery1 and the same error happened. The error isnothingmajor,basically just one extra click for the users.

But everything else is working amazingly well!

Error is error, and I still dont like this error :>

I tried on my album, and it works well.

when you get your mouse over logout link, do you see your useridattheend of that link? it should besomethinglike.../forum/login.php?do=logout&u=xxx

or you can try this code instead. if it gives error or doesnt work, give the other one back. I didnt test this one right now.
PHP Code:

"url_logout"=>(!empty($url_logout))?$site_sess->url($url_logout):$site_sess->url($url_app."login.php?do=logout&u=".$user_info['user_id']), 




regarding to Chrissicom post on his update for version 1.7.1:https://vborg.vbsupport.ru/showpost....&postcount=286

I dont see any differences in the filesconstants.phpandsessions.phpthatneed for the integration, exept forchangingcookietimeout valueand thisline: * Modified to workwithvBulletin3.0.6byChrissicom *
My code is some kinda messy, but I still ignore his constribution tothecode. The other two files might be for 4-images improvement, notforthis integration.
I am sorry but this Chrissicom "law" student is really funny though.

nosaj 03-24-2005 02:11 PM

Quote:

when you get your mouse over logout link, do you see your useridattheend of that link? it should besomethinglike.../forum/login.php?do=logout&u=xxx
Right now when holding the mouse over the Log Out on Gallery1 there is nothing after =
example: .../forum/login.php?do=logout&u=

When holding the mouse over the Log Out in the forum, the user number is shown after =
example: .../forum/login.php?do=logout&u=1

note: my page_header.php file was modified once before for this mod:
http://www.4homepages.de/forum/index.php?topic=3842.0

should I attach my page_header.php file to see if I am doing something wrong?

mtha 03-24-2005 02:30 PM

Quote:

Originally Posted by nosaj
should I attach my page_header.php file to see if I am doing something wrong?


yes, or PM me your url, I will take a quick look

nosaj 03-24-2005 10:51 PM

Wow you are good! I am now error free! :)

I am going to make a post about giving credit (on our sites) to people like mtha who help many in this forum and who ask for nothing in return.

note to others: I will post my site url to show as a sample of how you can use 1 vb forum with multiple 4images galleries once the site is made public.


All times are GMT. The time now is 12:19 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.02208 seconds
  • Memory Usage 1,760KB
  • 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
  • (5)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