Advertisement:

Author Topic: user public profile bug osc_used_id()  (Read 2074 times)

Cris

  • Full Member
  • ***
  • Posts: 125
user public profile bug osc_used_id()
« on: May 07, 2012, 03:29:28 am »
on my 2.3.7 installation i added voting plugin and list seller items on public profile. Now, with 2.4 version these script don't work...they use osc_user_id() and osc_item_user_id() to generate the links, but i notice osc_user_id() value is 0!!

on contact form i changed
Code: [Select]
<input type="hidden" name="id" value="<?php echo osc_user_id();?>" />

in
Code: [Select]
<input name="id" value="<?php echo osc_user_id();?>" />

and value is 0!!!

but i can't find the problem....
« Last Edit: May 07, 2012, 03:31:12 am by Cris »

Cris

  • Full Member
  • ***
  • Posts: 125
Re: user public profile bug osc_used_id()
« Reply #1 on: May 10, 2012, 07:40:31 pm »
any help?

learner

  • Jr. Member
  • **
  • Posts: 50
Re: user public profile bug osc_used_id()
« Reply #2 on: May 28, 2014, 10:43:26 pm »
Hi
I was running through this problem, if user is logged in you can use osc_logged_user_id() function.
Regards