1
Anonymous
Custom block: code for link..
  • 2007/3/29 21:10

  • Anonymous

  • Posts: 0

  • Since:


Hi,

I have a custom block into which I'd like to put a link to log out the viewer.

On the User Menu the link is something like:

http://www.mysite.org.uk/user.php?op=logout

However, putting that code inside custom block (set to auto format with smilies) with [ url] type code causes a new window to open and the logout to take place in that. The user stays logged in in the original window.

What is the code I need to make the user logout in the current window as per the Logout button in the User Menu?

Many thanks

2
Quest
Re: Custom block: code for link..
  • 2007/3/29 22:06

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


Try not using bbcode use html LOGOUT and set the type to html then submit and the custom block should work fine.

Quest

3
iHackCode
Re: Custom block: code for link..

html. (target="_self")
Logout

code. (if the siteurl tag does open in _self)
logout
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

4
Anonymous
Re: Custom block: code for link..
  • 2007/3/30 6:11

  • Anonymous

  • Posts: 0

  • Since:


Thanks guys - I knew the html code but was really after the BB code.

logout

This code does exactly what I want.

Fantastic

Login

Who's Online

464 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 464


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits