SimplePortal
Customization => Custom Coding => Topic started by: andreblue on June 17, 2012, 07:42:29 PM
-
So i want to be able to get a person's username from within a simple portal php page. What wwould i do to do so?
-
First add at the beginning:
global $context;
and in place where should be username:
', $context['user']['name'], '
-
First add at the beginning:
global $context;
and in place where should be username:
', $context['user']['name'], '
Thank you.
Now to figure out what causes this:
Database Error
Table 'andreblu_melon.smf_sessions' doesn't exist
File: /xxx/xxx/public_html/melon/forum/Sources/Load.php
Line: 2467
Could it be due to me connecting to a database from within the page itself?