1
cplus
Links in new window disabled?
  • 2004/7/10 21:24

  • cplus

  • Just popping in

  • Posts: 90

  • Since: 2004/7/2 2


how to make links in "Blocks" not to open in a new window, instead to open in the same window?

2
Stewdio
Re: Links in new window disabled?
  • 2004/7/10 21:27

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Edit the Block template's href code in System Admin->templates->[moduleName]->[BlockName.html]

Most links not related to XOOPS core will open in a new window.


3
cplus
Re: Links in new window disabled?
  • 2004/7/10 21:37

  • cplus

  • Just popping in

  • Posts: 90

  • Since: 2004/7/2 2


hum the block isnt there, it's a custom one..

4
Stewdio
Re: Links in new window disabled?
  • 2004/7/10 22:03

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


I didn't realise it was a custom block, thanks for the clarification. If you had mentioned that one detail I would have explained myself better.

Just use: <a href="http://yoursite/page.html" target="_parent">Link text</a> in your custom block. If it is just a plain html page, that's all they will see, essentially taking the user outside of XOOPS.

By default, links open in a new window, unless it's coded into a module. The only way to get them to open in a parent page in XOOPS is modularize your pages like other modules, or create custom pages with XOOPS includes (see below)

<?php
include('mainfile.php');
include('header.php');
$xoopsOption['show_rblock'] = 1;
?>

Your Content

<?php
include('footer.php');
?>

Im not 100% sure, but it may be possible to just change your custom block to php for internal links, but the pages you are linking too will still need to be saved as .php and have the above mentioned code included, otherwise the page will just display as normal without XOOPS "wrapped" around your custom content.

5
cplus
Re: Links in new window disabled?
  • 2004/7/11 0:45

  • cplus

  • Just popping in

  • Posts: 90

  • Since: 2004/7/2 2


sorry for not mentioning it's a custom block, it works fine now thanks

Login

Who's Online

165 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

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

Latest GitHub Commits