1
Longrifle
total noob here
  • 2010/2/16 19:48

  • Longrifle

  • Just popping in

  • Posts: 28

  • Since: 2010/2/16


sorry for asking such a dumb question but I have searched the site and can't find an answer.

How do I create a block with a link and have that link open on the center page of my xoops. (using a 3 panel template) I want the link to open in the center

right now it when I click the link, it opens in a new window.

please help.

thank you

2
dannie
Re: total noob here
  • 2010/2/16 20:24

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


You have to add target _self in the link.

<a href="http://www.gowiththefro.ca/" target="_self"> That opens the link in the same window.</a>

3
wcrwcr
Re: total noob here
  • 2010/2/16 20:36

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

Is the link an external one?
If so i guess you can create a page using for instance mastop_publish or content module and display your link using < iframe >

another approach is to use the my frame module

4
Longrifle
Re: total noob here
  • 2010/2/16 21:53

  • Longrifle

  • Just popping in

  • Posts: 28

  • Since: 2010/2/16


will that open the link in the side? right now my block is set to right but I want the link to open in the middle? is self the name for the middle or does it have another name?

5
ghia
Re: total noob here
  • 2010/2/16 22:28

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


This link to what is it pointing?
An html document or what?
Is it on your site or from a third party?

6
Longrifle
Re: total noob here
  • 2010/2/16 22:32

  • Longrifle

  • Just popping in

  • Posts: 28

  • Since: 2010/2/16


it is a contacts page that I created and lives on the same server as my XOOPS install.

7
ghia
Re: total noob here
  • 2010/2/16 23:10

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


There are several contact modules for XOOPS and also some free formular modules that can serve as such.

If yours is a PHP file, You can incorporate your PHP code in a blanko module as eg Ghost. Or using as already suggested the myFrame module.
You can also let your file use the XOOPS header and footer by placing your code between this:
<?php 
if (file_exists("mainfile.php")) { 
include(
"mainfile.php"); 
} elseif (
file_exists("../mainfile.php")) { 
include(
"../mainfile.php"); 
} else {  
include(
"../../mainfile.php"); 

include(
XOOPS_ROOT_PATH."/header.php"); 
$xoopsTpl->assign'xoops_showrblock'0); // 1 = Avec blocs de droite - 0 = Sans blocs de droite 
$xoopsTpl->assign'xoops_showlblock'0); // 1 = Avec blocs de gauche - 0 = Sans blocs de gauche 

// your code here

include(XOOPS_ROOT_PATH."/footer.php"); 
?>

8
Longrifle
Re: total noob here
  • 2010/2/16 23:56

  • Longrifle

  • Just popping in

  • Posts: 28

  • Since: 2010/2/16


I see, thank you all, this was a big help!!!!!

Login

Who's Online

181 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

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

Latest GitHub Commits