>>
Site Map
>>
Forums
>>
Modules
Forum module - topics in forum:
Modules - Get help on installing any module or add-on here
Modules help
Im trying to add modules into my menu block that are basically links to new URLs in a new window browser, but im unsure of wat coding i need to do this.
I have tried putting various codes into the index.php file but with no luck so far. So could someone tell me or point me in the right direction as to how to do this. I did uses the "Module Creator" on this site and it did do wat i wanted in the end but when i click on the link it opens up a table in the middle of the website with the title of the link there which when u click on opens up a new browser window with the URL of the new address, but i want to cut out the table bit and just have the link open a new window, rather than go to a new table then the link. Below is the code that i got from the module creator:
| Code: : |
<?php
#### Generated by Module Creator - By Disipal site (www.disipal.net) ####
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo"<strong>·</strong> <a target=\"_blank\" href=\"http://s11.invisionfree.com/The_Second_Coming/\">={TSC}= Forums</a>";
CloseTable();
include("footer.php");
?> |
So if someone could even edit this code to wat i want it to do i would be greatful
Thnx
Razor
You have your coding all wrong try
| Code: : |
| <a href="http://s11.invisionfree.com/The_Second_Coming/" target=\"_blank"\>{TSC}= Forums</a>"; |
use that for your link.
I used that coding u showed and put that code in place of the other code of:
echo"<strong>·</strong> <a target=\"_blank\" href=\"http://s11.invisionfree.com/The_Second_Coming/\">={TSC}= Forums</a>";
But when i click on the module link the following error shows up:
Parse error: syntax error, unexpected '<' in /home/admin/domains/simtu.com/public_html/tsc/modules/Talk/index.php on line 13
The coding i showed in my earlier post did work, but instead of opening a new window straight away to the URL link it put the link title of "={TSC}= Forums" into the middle of the page of the site like a new table and then when u clicked on that link it then took u to the new URL. I want to have the link in the module of Main Menu for ={TSC}= Forums like the links below that in "Resources", if u look on my site.
Razor
After doing some investigating I think you can only create this as a block and have it open in a new browser. If I am wrong I am sure one of the other admins will correct me. You should create this as a block. When creating this as a block use this code to plugin the block creator | Code: : |
| <a href="http://s11.invisionfree.com/The_Second_Coming" target="_blank">={TSC}= Forums</a> |
. When posting code please use the code tags you use these by clicking the # button above.
Ok, but if u look at my site under the Menu block and see the links under "Resources", how do they get those links in there?
Razor
You will need to provide a link to your website. I dont see a link to it in any of the posts.
Opps sry, here it is http://www.tsc.simtu.com
Just look on the left hand side under Menu, then under sub menu "resourves"
Thnx
Razor
OK you are using platnum.. would have helped to say so. This modules block you are using was made for platnum. You would do better asking on a platnum support site. We have no knowledge of this block.
I agree with Sevenofnine, I would also remove your forums module listing from under your Clan module heading this is producing a syntax error.