SMFHacks.com
SMFHacks
Community Suite
SMF Gallery Pro
SMF Store
SMF Classifieds
Newsletter Pro
Downloads System Pro
Ad Seller Pro
Hacks and Mods
Latest SMF Hacks
TopTen Hacks
Styles and Themes
Add a Hack
Manage Hacks
Earn Money from Your Forum with these tips
SMF Theme Generator
SMF Package Parser
Free SMF Hosting
HostRocket Webhosting for SMF
Site Showcase
Search Forums
Advanced search
User
Welcome,
Guest
. Please
login
or
register
.
May 23, 2012, 10:28:09 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Stats
Members
Total Members: 10069
Latest:
tetsujrock
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 77
Total: 77
SMFHacks.com
Forum
SMF Gallery Pro
Support
User gallery link from userCP/profile
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: User gallery link from userCP/profile (Read 5254 times)
TeamVTEC
Newbie
Offline
Posts: 45
User gallery link from userCP/profile
«
on:
October 26, 2006, 03:49:18 pm »
question time, i have the user CP mod and I've changed one of the options to "My Gallery" so that when users look at their profile they can click to their personal gallery.
But how do i achieve this? i tried different things like:
http://forum.sirfanaticsholland.com/index.php?action=gallery;user;u=
http://forum.sirfanaticsholland.com/index.php?action=gallery;su=user;u=
here's the part of code i use:
Code:
<a href="', $scripturl, '?action=gallery;su=user;u=', $context['member']['id'], $context['session_id'], '"><b>My Gallery</a><br>
</b></font><font face="Verdana" size="1">Click here to take a look in your personal Gallery, to change and upload your pictures.</font></td>
http://forum.sirfanaticsholland.com/index.php?action=usercp
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 9676
Re: User gallery link from userCP/profile
«
Reply #1 on:
October 26, 2006, 04:00:47 pm »
I would need to the usercp code
It should be something like this
Code:
<a href="', $scripturl, '?action=gallery;su=user;u=', $context['member']['id']
But not sure if usercp has $context['member']['id'] defined.
Logged
TeamVTEC
Newbie
Offline
Posts: 45
Re: User gallery link from userCP/profile
«
Reply #2 on:
October 26, 2006, 04:16:33 pm »
i get this:
An Error Has Occurred!
No user selected.
here's the complete code attached hope that helps.
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 9676
Re: User gallery link from userCP/profile
«
Reply #3 on:
October 26, 2006, 04:27:27 pm »
Change
Code:
<a href="', $scripturl, '?action=gallery;su=', $context['member']['id'], $context['session_id'], '"><img border="0" src="usercp/ecran.png" width="80" height="80"></a></font></td>
To
Code:
<a href="', $scripturl, '?action=gallery;su=user,u=', $context['member']['id'],'"><img border="0" src="usercp/ecran.png" width="80" height="80"></a></font></td>
Logged
TeamVTEC
Newbie
Offline
Posts: 45
Re: User gallery link from userCP/profile
«
Reply #4 on:
October 26, 2006, 04:33:51 pm »
still the same error, no change
http://forum.sirfanaticsholland.com/index.php?action=usercp
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 9676
Re: User gallery link from userCP/profile
«
Reply #5 on:
October 26, 2006, 04:43:06 pm »
Quote from: TeamVTEC on October 26, 2006, 04:33:51 pm
still the same error, no change
http://forum.sirfanaticsholland.com/index.php?action=usercp
Guests will get that error since their is no user id set should work for logged in members.
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 9676
Re: User gallery link from userCP/profile
«
Reply #6 on:
October 26, 2006, 04:44:50 pm »
Oops had a bad comma in their
change
Code:
<a href="', $scripturl, '?action=gallery;su=user,u=', $context['member']['id'],'"><img border="0" src="usercp/ecran.png" width="80" height="80"></a></font></td>
To
Code:
<a href="', $scripturl, '?action=gallery;su=user;u=', $context['member']['id'],'"><img border="0" src="usercp/ecran.png" width="80" height="80"></a></font></td>
Logged
TeamVTEC
Newbie
Offline
Posts: 45
Re: User gallery link from userCP/profile
«
Reply #7 on:
October 26, 2006, 04:50:32 pm »
still nothing
see for yourself, the '?action=gallery;su=user;u=' doesn't seem to point to users numbers when clickin on it
Logged
SMFHacks
Administrator
Hero Member
Offline
Posts: 9676
Re: User gallery link from userCP/profile
«
Reply #8 on:
October 26, 2006, 04:56:01 pm »
Bah
$context['member']['id'] is not defined anywhere thats' why it does not work
Change the globals of the file to
Code:
global $db_prefix, $scripturl, $txt, $user_info,$settings, $modSettings,$ID_MEMBER;
Then change the MyGallery part to
Code:
<a href="', $scripturl, '?action=gallery;su=user;u=', $ID_MEMBER,'"><img border="0" src="usercp/ecran.png" width="80" height="80"></a></font></td>
Logged
TeamVTEC
Newbie
Offline
Posts: 45
Re: User gallery link from userCP/profile
«
Reply #9 on:
October 26, 2006, 05:01:23 pm »
Hehe good job buddy
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMFHacks.com
-----------------------------
=> News
=> Site Discussion
===> Suggestions
===> Bugs
-----------------------------
SMF Gallery Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
SMF Store
-----------------------------
=> Announcements
=> Presales
=> Support
===> Guides and Tips
===> Feature Requests
===> Bugs
-----------------------------
SMF Classifieds
-----------------------------
=> Announcements
=> Presales
=> Support
===> Bugs
===> Feature Requests
-----------------------------
Downloads System Pro
-----------------------------
=> Announcements
=> Presales
=> Support
===> Feature Requests
===> Bugs
-----------------------------
Ad Seller Pro
-----------------------------
=> Presales
=> Support
-----------------------------
Newsletter Pro
-----------------------------
=> Presales
=> Support
===> Feature Requests
-----------------------------
Social Login Pro
-----------------------------
=> Presales
-----------------------------
Badge Awards
-----------------------------
=> Presales
-----------------------------
Tweet Topics/FB Post System
-----------------------------
=> Presales
-----------------------------
SMF Gallery Lite
-----------------------------
=> SMF Gallery Lite
-----------------------------
Modifications/Themes
-----------------------------
=> General SMF Forum
=> Modifications Talk
===> Latest Mods
===> Modification Showcase
=> Theme Talk
===> Theme Showcase
===> Latest Themes
Recent
Store IPN AMOUNT CHANGE
by
ApplianceJunk
[May 21, 2012, 08:54:11 am]
Transferring Db data from...
by
~ Phåråoh ~
[May 20, 2012, 11:06:52 am]
SMF vs PhpBB
by
channgam
[May 20, 2012, 05:58:11 am]
Any news?
by
SMFHacks
[May 19, 2012, 06:16:58 pm]
Social Login Pro domain c...
by
SMFHacks
[May 19, 2012, 05:42:37 pm]
licence information and q...
by
SMFHacks
[May 18, 2012, 03:08:38 pm]
no pictures after upgrade
by
SMFHacks
[May 17, 2012, 06:07:46 pm]
Viewers?
by
ApplianceJunk
[May 17, 2012, 02:22:07 pm]
Incorrect download counts...
by
SMFHacks
[May 17, 2012, 12:38:16 pm]
SMF V2.0.2 compatibility ...
by
~ Phåråoh ~
[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Loading...