add new link
 
Notifications
Clear all

add new link

12 Posts
5 Users
0 Reactions
2,727 Views
 Brad
(@brad)
Posts: 3
New Member
Topic starter
 

I've just installed the software and have found it great so far!

Unfortunately I can't integrate it with my current CMS (Xoops) so I need to add a link back to my main Xoops site from within eFiction.

I tried adding a new link, but I keep getting the error message "_BADVARNAME" which I guess refers to the Link URL.  Seeing as I can't include any punctuation, I'm at a loss as to how I can add an external link that will be generated under the main menu, no matter which skin the user selects.  I had tried adding it to the .tpl file, but it doesn't seamlessly integrate with {menu_content} output.

Any suggestions? I tried reading through https://efiction.org/forums/index.php?topic=4474.0 but it just confused the issue for me even more...

EDIT>
I checked out Tammy's tutorial on editing skins, specifically, "Fun with variables.php!"  However it refers to editing a file called func.pagemenu.php, which I can't seem to find.  I tried to edit variables.php anyway, but only ended up with a < bracket where the new link should be.

Brad


 
Posted : 20/03/2007 1:23 am
(@jacci)
Posts: 503
Honorable Member
 

This is how i got an external link in my main menu

1. go into your admin area and select page links, add a new link.
2. Fill in the info for name, text, url etc, and your access level and submit it.
3. then in your skin variables.php you can add it in your menu array .

for example, my link is sim and the text is Forum and my code looks like this:

$blocks["menu"]["content"] = array (
    0 => 'home',
1 => 'sim',
2 => 'search',
3 => 'browse',
4 => 'art_link',
6 => 'credit_link',
7 => 'contactus',
8 => 'adminarea',
9 => 'login',
10 => 'logout'
);

And Forum shows up in my menu which then links be to an external page, the smf forum


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/03/2007 7:22 am
(@chelle)
Posts: 122
Estimable Member
 

If I'm not mistaken, func.pagemenu.php is no longer used in version 3.0+ as was removed.


 
Posted : 20/03/2007 10:33 am
 Brad
(@brad)
Posts: 3
New Member
Topic starter
 

I finally figured out the problem.

No matter what I entered, the link did not take, and I end up with the message "_BADVARNAME".

It seems as though the Link name must be more than 2 characters.  As soon as I changed my link name to 3 characters, it worked fine.

Brad


 
Posted : 20/03/2007 10:34 am
(@honey)
Posts: 30
Eminent Member
 

Good day,

I have a different problem with the external link. I have followed the steps of jacci but cannot  see the link in my menu. The only place of my link is visible it is in Page link. I would like that all my users see the link.  I have changed my variables in the file skin and give acces level for all. Does somebody have an idea or another trick? Thank you so much for you help.


 
Posted : 24/03/2007 5:06 pm
(@babaca)
Posts: 722
Member Moderator
 

Did you put the proper name of the link in your variables.php?

For instance on one site I have a link to a yahoogroup. I named it Yahoo, but if I have it listed on the variables.php as {yahoo} noting shows up. I have to make sure it's case sensitive, if I type in {Yahoo} it appears.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 24/03/2007 5:21 pm
(@honey)
Posts: 30
Eminent Member
 

I checked and that does not change anything. Do I absolutely need  add this character { ?


 
Posted : 24/03/2007 6:41 pm
(@babaca)
Posts: 722
Member Moderator
 

Ah... {} are used in tpl files. Sorry. in the variables, it's single quote marks. What skin are you trying to add this information on? Some skins like the ones Kali does sometimes you have to add info into the header.tpl files also to make it work). Of course a link to you website might help as well.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 24/03/2007 6:45 pm
(@honey)
Posts: 30
Eminent Member
 

Yes I use a skin of Kali: Nirvana. Do I need to go in the file header?


 
Posted : 24/03/2007 7:04 pm
(@babaca)
Posts: 722
Member Moderator
 

Just downloaded nirvana to look...

Yes, open the header.tpl file

<!-- START BLOCK : header -->
<body>
<div id="container">
<div id="menu">
<ul id="menulist">
<li>{home}</li>
<li>{tos}</li> 
<li>{login}</li>
<li>{help}</li>
<li>{contactus}</li>
<li>{adminarea}</li> 
</ul>
</div>
<div id="banner">&nbsp;
</div>
<div id="submenu">
<ul id="submenulist">
<li>Browse By:</li>
<li>{recent}</li>
<li>{authors}</li>
<li>{catslink}</li>
<li>{titles}</li>
<li>{series}</li>
<li>{challenges}</li>
<li>{tens}</li> 
<li>{search}</li>
</ul>
</div>
<div id="mainpage">
<!-- END BLOCK : header -->

Add your page link there as

<li>{whateveryour pagelink is}</li>

I almost never use challenges on my pages, so I tend to overwrite the {challenges} with the link I want there instead.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 24/03/2007 7:19 pm
(@honey)
Posts: 30
Eminent Member
 

Awesome! Im so happy. Everything is ok! Thank you so much for your help  πŸ˜†


 
Posted : 24/03/2007 10:05 pm
(@babaca)
Posts: 722
Member Moderator
 

No problem. I'm glad it worked for you.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 24/03/2007 10:22 pm
Share: