4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: airliner on September 26, 2007, 08:16:47 AM

Title: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on September 26, 2007, 08:16:47 AM
Hi!

I have a question.
I succefulley integrated 4images and vbuleltin board.
When I click on the index.php page in 4images gallery index everuthing is nice.

When I click on the serach.php page I get this:

Notice: Undefined index: userid in /home/vbulletinmysiste.com/www/forum/gallery/includes/page_header.php on line 45
Title: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on September 26, 2007, 08:45:20 AM
Hi!

I have a question.
I succefulley integrated 4images and vbuleltin board.
When I click on the index.php page in 4images gallery index everuthing is nice.

When I click on the serach.php page I get this:

Notice: Undefined index: userid in /home/vbulletinmysiste.com/www/forum/gallery/includes/page_header.php on line 45

In that file the line looks like this

$cache_id = create_cache_id(
  'cat.data.auth_and_info',
  array($user_info[$user_table_fields['user_id']])
);
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: kai on September 26, 2007, 09:00:15 AM

I succefulley integrated 4images and vbuleltin board.

Which mod did you use?
Title: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on September 26, 2007, 11:21:43 AM
Hi!

I have a question.
I succefulley integrated 4images and vbuleltin board.
When I click on the index.php page in 4images gallery index everuthing is nice.

When I click on the serach.php page I get this, appears only on this site:

Notice: Undefined index: userid in /home/vbulletinmysiste.com/www/forum/gallery/includes/page_header.php on line 45

The part of the code looks like this...

Code: [Select]
$cache_id = create_cache_id(
  'cat.data.auth_and_info',
  array($user_info[$user_table_fields['user_id']])
);

My homepage:

http://airliners-atc.com/forum/gallery/index.php  <--- working

http://airliners-atc.com/forum/gallery/search.php  <--- error message
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: thunderstrike on September 26, 2007, 12:41:35 PM
Quote
$cache_id = create_cache_id(
  'cat.data.auth_and_info',
  array($user_info[$user_table_fields['user_id']])
);

I no see userid in code but user_id ... if you have error line ... is no correct one for support ...
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on September 26, 2007, 12:47:34 PM

I succefulley integrated 4images and vbuleltin board.

Which mod did you use?

this one.
http://www.vbulletin.org/forum/showthread.php?t=98640 (http://www.vbulletin.org/forum/showthread.php?t=98640)
It is for 3.5.x but it works with 3.x I presume, reading threads there

Hmm ... I only get this in Mozilla.
IE works fine.
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on September 26, 2007, 04:48:36 PM
Quote
$cache_id = create_cache_id(
  'cat.data.auth_and_info',
  array($user_info[$user_table_fields['user_id']])
);

I no see userid in code but user_id ... if you have error line ... is no correct one for support ...

What do you mean writing this?
is no correct one for support ...
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: thunderstrike on September 26, 2007, 08:20:54 PM
Quote
$cache_id = create_cache_id(
  'cat.data.auth_and_info',
  array($user_info[$user_table_fields['user_id']])
);

I no see userid in code but user_id ... if you have error line ... is no correct one for support ...

What do you mean writing this?
is no correct one for support ...

You say userid but code you post for that line say $user_info['user_id'] ... sure is correct line ?
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on September 27, 2007, 08:52:54 AM
Notice: Undefined index: userid in /home/airliners-atc.com/www/forum/gallery/includes/page_header.php on line 45

http://airliners-atc.com/forum/gallery (http://airliners-atc.com/forum/gallery)  <-- OKEJ
http://airliners-atc.com/forum/gallery/search.php (http://airliners-atc.com/forum/gallery/search.php) <--- Not okej.

test those in Mozilla.
When logged in through vBulletin the line Notice: Undefined index: userid in /home/airliners-atc.com/www/forum/gallery/includes/page_header.php on line 45
disapears.

Line 45 in page_header.php

Code: [Select]
43. $cache_id = create_cache_id(
44. 'cat.data.auth_and_info',
45. array($user_info[$user_table_fields['user_id']])
44. );
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: thunderstrike on September 27, 2007, 12:36:52 PM
Ok, so in page_header.php file - search for text: userid (exact word) and post here. The block you post is no right block for error.
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on October 12, 2007, 05:18:33 PM
There is no such word as userid only user_id.
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: thunderstrike on October 12, 2007, 08:48:27 PM
Quote
Notice: Undefined index: userid in /home/vbulletinmysiste.com/www/forum/gallery/includes/page_header.php on line 45

If so, why is say here for userid and no user_id ?
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: airliner on October 15, 2007, 08:19:51 AM
Well,

Tricky part, eh? :)
Do not know that.
Title: Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
Post by: Mr_LovaLove on March 03, 2008, 06:23:10 PM
Well, well :P

i also have this problem, i search alot via the net  and i found something about missing a field or what i can see im tryin to get a result from a table but set that parameter without get

in fact, line 89 in page_header is the same in this topic

so let me try to start this again :

i have integrate the 4image with the VB

everything almost running fine except the search ( only with Guest )

whenever the guest click on new pictures

he or she got nothing and this message appears on the top:

Notice: Undefined index: userid in /home/alwasmy/public_html/143/image/includes/page_header.php on line 89

and line 89 is :

Code: [Select]

$cache_id = create_cache_id(

  'data.auth_and_info',

array($user_info[$user_table_fields['user_id']])


);


the table in vb is USER and the field is userid

but the constants is totally changed

im attaching the contents and page_header as a txt

hope someone can solve this !

best regards...

MrLovaLove