Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4267
Latest: ramiroelliot
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 43538
Total Topics: 7565
Most Online Today: 49
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 35
Total: 35

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

+- Recent Topics

Gallery Pro reinstalation by Lirorobert
October 06, 2024, 04:16:25 pm

quoting part of message by Lirorobert
October 04, 2024, 03:21:40 pm

Does SMF Gallery support by SMFHacks
October 02, 2024, 06:14:26 am

Restoring a deleted photo by Monocero
September 28, 2024, 04:12:20 am

Item count on Gallery Tab shows double by SMFHacks
September 26, 2024, 12:59:20 pm

Forum post missing when image over 4000x pixels is uploaded to gallery by Michel68
September 24, 2024, 01:37:17 pm

Setting a photo as invisible by Monocero
September 17, 2024, 02:11:56 pm

Two gallery names by SMFHacks
September 15, 2024, 02:17:49 pm

Bar during the regeneration of miniatures by Monocero
September 15, 2024, 12:35:08 pm

Error on upgrade by SMFHacks
September 14, 2024, 09:54:07 pm

Powered by EzPortal