Jump to content

Community

noj75

Members
  • Posts

    124
  • Joined

  • Last visited

1 Follower

About noj75

  • Birthday October 1

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

noj75's Achievements

  1. +1 i have changed domains and get the 500 error too. Is there something we have missed please?
  2. +1 I have the same problem but my site map has NOTHING in it.
  3. @Kevin Carwile you sir, are an absolute star
  4. Thanks Nathan, I have tried with that method but to no avail, anyone else have any ideas?
  5. @Ralf H Yeh, I did look at that but you can't edit below the forum root. i.e: I can only do: Friendly URL http://yoursite.com/forum/ (My Profile URL HERE) I want to do: Friendly URL http://yoursite.com/ (My Profile URL HERE) My forums do not sit in the domain root. They sit in the /forum/ sub-directory.
  6. Just to add to this, is there a way to change the URL of ALL username links so that they point to a custom profile page?
  7. @newbie LAC EDIT: Sorry, I meant @Vikestart The code below works fine for me. Hopefully this will help you out. Sorry for the delay. <?php /* ############### CALL THE IPS MEMBER INFO ############### */ require_once( 'path/to/your/init.php' ); \IPS\Session\Front::i(); $memCSRF = \IPS\Session::i()->csrfKey; $member = \IPS\Member::loggedIn(); /* ### SET THE MEMBER VARIABLES ### */ $memName = $member->name; $memEmail = $member->email; $memID = $member->member_id; /* ############### END IPS MEMBER INFO ############### */ ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <p>Hello <?php echo $memName; ?></p> <p><a href="forum/logout/?csrfKey=<?php echo $memCSRF; ?>">Logout</a></p> <!-- ## CHANGE THE LINK TO YOUR LOGOUT PAGE ## --> </body> </html>
  8. Off to work for a few hours but I will post my full code for you when I return.
  9. @newbie LAC you are an absolute star! Thank you very much!
  10. Hi all, I am creating an external page that pulls the member data from the database, that is no problem. I need to create a logout link on this external page but am unable to do this as I do not know how to get the current (logged in) members CSRF Key. So when I point the link to forum/logout/ I get the The CSRF protection key did not match, error page. Does anyone know how I can get the CSRF key data to be able to log the user out please? Kind regards
  11. Thank you for that. Very handy for my needs.
  12. Seriously. It's that simple? lol Thank you very much mate, did not spot that at all.
×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy