Author Topic: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]  (Read 14490 times)

0 Members and 1 Guest are viewing this topic.

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
[MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« 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

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
[MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #1 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']])
);

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.421
    • View Profile
    • 4images - Image Gallery Management System
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #2 on: September 26, 2007, 09:00:15 AM »

I succefulley integrated 4images and vbuleltin board.

Which mod did you use?
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
[MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #3 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

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #4 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 ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #5 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
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.

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #6 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 ...

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #7 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 ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #8 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  <-- OKEJ
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. );

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #9 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.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #10 on: October 12, 2007, 05:18:33 PM »
There is no such word as userid only user_id.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #11 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 ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline airliner

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #12 on: October 15, 2007, 08:19:51 AM »
Well,

Tricky part, eh? :)
Do not know that.

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: [MOD] 4images vbulletin / page_header.php issue [PHP-NEWBIE]
« Reply #13 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

English Please :@