Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4263
Latest: Cekky
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43455
Total Topics: 7557
Most Online Today: 315
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 40
Total: 40

Author Topic: Gallery user link  (Read 4692 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: 16524
    • 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: 16524
    • 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: 16524
    • 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
12620 Views
Last post October 26, 2006, 05:01:23 pm
by TeamVTEC
6 Replies
5610 Views
Last post January 06, 2007, 10:51:56 pm
by hailtothisvictor
5 Replies
9286 Views
Last post April 30, 2008, 07:20:47 pm
by SMFHacks
2 Replies
4619 Views
Last post December 30, 2008, 08:09:37 pm
by GKDantas
5 Replies
4846 Views
Last post February 07, 2016, 08:38:58 am
by Dragon41673

+- Recent Topics

[Mod]Tenor Posting Animated Gifs by SMFHacks
August 30, 2024, 04:04:26 pm

List of other errors after installing and trying to use by SMFHacks
August 27, 2024, 02:15:52 pm

Subject Error by SMFHacks
August 27, 2024, 02:15:46 pm

Store Not Logging Transactions or Sending Emails for Paid Items, Free Items Work by SMFHacks
August 27, 2024, 05:26:52 am

Don't Know How to Unhide Previously Hidden Items in Latest SMF Store 5.0 by Michael Vail
August 26, 2024, 11:38:33 pm

Undefined array key "session_var" and Undefined array key "session_id" Errors by SMFHacks
August 26, 2024, 11:10:54 pm

SMF Links Error by yamiacaveman
August 22, 2024, 06:21:53 pm

HTTP Error 500 by SMFHacks
August 20, 2024, 12:28:53 pm

Site upgrade to 2.1 by live627
August 18, 2024, 02:47:33 am

Uninstall issue and new licence no email by landyvlad
August 16, 2024, 08:05:48 am

Powered by EzPortal