Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43333
Total Topics: 7528
Most Online Today: 220
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 57
Total: 57

Author Topic: Gallery user link  (Read 4637 times)

0 Members and 1 Guest are viewing this topic.

Offline GKDantas

  • Member
  • *
  • Posts: 43
    • View Profile
    • Carrara Lounge
Gallery user link
« on: March 11, 2009, 11:29:09 am »
Hi people, I am using the User Control Painel that alow a more simple interface for Members control.
I added a "My Orders" button very easy for SMF Store, and now I want to add a button so people can go to your gallery from there, but I dont know what code to use since the link will need to redirect to logged user id:


http://carraralounge.com/index.php?action=gallery;su=user;u= "what code use here??"

Thanks

Marcelo Teixeira

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16468
    • View Profile
Re: Gallery user link
« Reply #1 on: March 11, 2009, 12:06:22 pm »
For SMF 1.1.x
You can use $ID_MEMBER

For SMF 2.0.x
You would use $user_info['id']
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline GKDantas

  • Member
  • *
  • Posts: 43
    • View Profile
    • Carrara Lounge
Re: Gallery user link
« Reply #2 on: March 11, 2009, 12:20:13 pm »
Hi, thanks for the faster answer, but I am getting this error now: No user exists.

This is the line that I am using:

http://carraralounge.com/index.php?action=gallery;su=user;u=$ID_MEMBER

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16468
    • View Profile
Re: Gallery user link
« Reply #3 on: March 11, 2009, 12:36:05 pm »
I need to see the php code for that line.
The whole line area if you could

$ID_MEMBER needs to be a global
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline GKDantas

  • Member
  • *
  • Posts: 43
    • View Profile
    • Carrara Lounge
Re: Gallery user link
« Reply #4 on: March 11, 2009, 12:47:37 pm »
Thats the problem, the User CP only give a field to add the link

http://custom.simplemachines.org/mods/index.php?mod=698

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16468
    • View Profile
Re: Gallery user link
« Reply #5 on: March 11, 2009, 01:08:49 pm »
I would check with the mod author if they have support for a custom url that supports the ID_MEMBER of the user. That is the only way to get it to work without modified the USER CP mod itself
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline GKDantas

  • Member
  • *
  • Posts: 43
    • View Profile
    • Carrara Lounge
Re: Gallery user link
« Reply #6 on: March 11, 2009, 01:28:24 pm »
mant thanks, hope that he can help, this is a good simple mod to get a better User Control view.

 

Related Topics

  Subject / Started by Replies Last post
9 Replies
12592 Views
Last post October 26, 2006, 05:01:23 pm
by TeamVTEC
6 Replies
5573 Views
Last post January 06, 2007, 10:51:56 pm
by hailtothisvictor
5 Replies
9230 Views
Last post April 30, 2008, 07:20:47 pm
by SMFHacks
2 Replies
4595 Views
Last post December 30, 2008, 08:09:37 pm
by GKDantas
5 Replies
4786 Views
Last post February 07, 2016, 08:38:58 am
by Dragon41673

+- Recent Topics

Site upgrade to 2.1 by SMFHacks
July 12, 2024, 07:47:03 am

Issues with Pretty URLs 4.1 by Randem
June 27, 2024, 07:32:22 pm

Failed to open stream: File name too long by Randem
June 26, 2024, 02:13:37 pm

Attachment images Upsidedown or Sideways by SMFHacks
June 18, 2024, 10:53:24 am

JSON decode error: The maximum stack depth has been exceeded by SMFHacks
June 14, 2024, 10:15:16 pm

“Insert from Gallery” by donk
June 10, 2024, 01:26:57 pm

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Powered by EzPortal