[SOLVED] external l...
 
Notifications
Clear all

[SOLVED] external link needed in the main menu

6 Posts
4 Users
0 Reactions
1,934 Views
(@guest1734)
Posts: 0
 

Can anyone help me to put a link to an external site on the main menu?
I am running efiction 3.1 and want to link back to my main Joomla! site and can't find any info on the forum on how and indeed if this is possible. Sorry if I have missed it and am repeating an old request.

If you have instructions, please be clear with them as my knowledge of php is growing but is still limited.


 
Posted : 26/01/2007 12:13 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

You can either use a pagelinks, or code it using html in a header.tpl file of each skin you want it to show up on.

Personally, this is what I did to create an external link

Go here: /admin.php?action=links

Click on Add New Link.

Name: whateveryouwant
Text of Link: Joomla!
Link URL: http://www.urlhere.com
Link Target: Same Window
Link Access Level: All

If you want to use it as a variable on a header.tpl file, like the way {home} {browse} {search} work, you would use {whateveryouwant}, the same as the Name.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 26/01/2007 3:03 am
(@guest1734)
Posts: 0
 

Thanks Jan_AQ! It works like a charm. πŸ˜€


 
Posted : 26/01/2007 7:20 am
(@jacci)
Posts: 503
Honorable Member
 

Hey Jan_AQ

site url:    http://www.hansoloprincess.org/efiction/index.php
version 3.1
brigdes/mods: none
skin: fanfic

i added a link in page links

title: forum
Name: Forum
url: http://www.hansoloprincess.org/forum
link target: New window
link access: all

then in the varialbes file i used the same type as i do for custom pages

it is number 11 in the array

<?php
$blocks["categories"]["status"] = 2;
$blocks["featured"]["status"] =  '2';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (
  0 => 'home',
  1 => 'recent',
  2 => 'authors',
  3 => 'catslink',
  4 => 'titles',
  5 => 'series',
  6 => 'search',
  7 => 'tens',
  8 => 'challenges',
  9 => 'help',
  10 => 'contactus',
  11 => 'forum_link',
  12 => 'login',
  13 => 'logout',
  14 => 'adminarea');
$blocks["menu"]["style"] = 1;
$blocks["login"]["status"] = 2;
$blocks["random"]["status"] = 2;
$blocks["recent"]["status"] = 2;
$blocks["recent"]["status"] = 1;
$blocks['recent']['num'] = 3;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
?>

but it still isnt showing up in the menu listing

i have also tried using {forum} in the array wth no success.
and it is in my links list when i check it so i am not sure what to do now
thanks
jacci


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 20/02/2007 10:00 pm
(@tammy)
Posts: 2577
Member Moderator
 

It's just "forum" in the list.  If you used it in the .tpl file itself it would be {forum}.


 
Posted : 21/02/2007 12:18 am
(@jacci)
Posts: 503
Honorable Member
 

thanks soo much tammy, didnt think to try just that, duh to me.

thanks again, as always you are a champion.

πŸ˜€


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 21/02/2007 1:26 am
Share: