AuthorMessage
sanne
sanne

(16 posts)

Sep 13, 2008 22:30   Quote
Points: 0   Vote

Hello everybody,

I want to add an external linkt to the links at the top of the page.

(Links, News, Contact Us, About us, Privacy, Terms, FAQ, Add feedback, Invite a friend, Bookmark)

There is a solution by Mrpowless but doesn't work with V6.1.4.

Can  someone explain me, who to add an external link in 6.1.4?

Best regards Sanne

CALTRADE
CALTRADE

(1990 posts)

Sep 13, 2008 23:08   Quote
Points: 0   Vote

redacted - sorry, I posted some erroneous information.  I don't have a solution, but would like to know this also.

lazaru
lazaru

(96 posts)

Sep 14, 2008 02:46   Quote
Points: 0   Vote

I'd just like to know how to edit them so that 'About us' can be capitalised like 'Contact Us' etc, it looks unbalanced at the moment. (plus it would be nice to add/remove links to/from there)

gameutopia
gameutopia

(418 posts)

Sep 14, 2008 05:02   Quote
Points: 0   Vote

Not sure what mrp sollution is there are several ways.

If you are just saying you want to say change where the current Links at top of page goes to from yoursite.com/links.php to something else like yoursite.com/mylinks.html or something...if you have apache you can just use simple redirect. Just 1 line in your .htaccess and you are good to go. However this will not integrate dolphin layout and such. But you said you just want to change where they go to. You could still integrate the dolphin layout if you create a page with related dolphin code. A little more work but not too difficult.

Add something like this to yoursite.com/.htaccess:

Redirect temp /links.php http://www.yoursite.com/mylinks.html

Otherwise if you could be more detailed it would be helpful.


For lazaru if you just want to capitalize the About us part to About Us...admin panel language settings search for strings
_About Us

click on the edit in change string from About us to About Us. Save changes and refresh page.

You can change a ton of text and such with language keys. Just search broad terms for best results in your admin panel.



Other wise to edit them directly open /inc/design.php and find:

// array of top and bottom links
$aMainLinks = array(
'Home'         => array( 'href' => 'index.php',        'Title' => '_Home' ),
'About'        => array( 'href' => 'about_us.php',     'Title' => '_About Us' ),
'Privacy'      => array( 'href' => 'privacy.php',      'Title' => '_Privacy' ),
'Termsofuse'   => array( 'href' => 'terms_of_use.php', 'Title' => '_Terms_of_use' ),
'Services'     => array( 'href' => 'services.php',     'Title' => '_Services' ),
'FAQ'          => array( 'href' => 'faq.php',          'Title' => '_FAQ' ),
'Articles'     => array( 'href' => 'articles.php',     'Title' => '_Articles' ),
'Stories'      => array( 'href' => 'stories.php',      'Title' => '_Stories2' ),
'Links'        => array( 'href' => 'links.php',        'Title' => '_Links' ),
'News'         => array( 'href' => 'news.php',         'Title' => '_News' ),
'Aff'          => array( 'href' => 'affiliates.php',   'Title' => '_Affiliates',      'Check' => 'return ( getParam("enable_aff") == "on" );' ),
'Invitefriend' => array( 'href' => 'tellfriend.php',   'Title' => '_Invite a friend', 'onclick' => 'return launchTellFriend();' ),
'Contacts'     => array( 'href' => 'contact.php',      'Title' => '_Contacts' ),
'Browse'       => array( 'href' => 'browse.php',       'Title' => '_Browse Profiles' ),
'Feedback'     => array( 'href' => 'story.php',        'Title' => '_Add story' ),
'ContactUs'    => array( 'href' => 'contact.php',      'Title' => '_contact_us' ),
'Bookmark'     => array( 'href' => '#',                'Title' => '_Bookmark',        'onclick' => 'addBookmark(); return false;' ),
);


And change links accordingly to where you want them to actually go to.

gameutopia

lazaru
lazaru

(96 posts)

Sep 14, 2008 06:34   Quote
Points: 0   Vote

thanks gameutopia :)

Hadn't thought about the language key and as your copy/paste shows, in the coding it is already capitalised.

gameutopia
gameutopia

(418 posts)

Sep 14, 2008 06:45   Quote
Points: 0   Vote

You can't do everything in the language key's but there is a ton of things you can change and always worth taking a look at. you can change them else where but the admin panel language key is the first step and very easy for most. First try them out and search them.

The last part I posted is actually a regarding editing a php file.

Why the key is capital and the string is not who knows.

Basically they got a few guys programming this and they don't have time or resources to check all the little things like this I guess, which is too bad. There are a number of other key/string errors that cause issues in the admin panel.

gameutopia

RumpyBumpy
RumpyBumpy

(838 posts)

Sep 14, 2008 07:02   Quote
Points: 0   Vote

The exact key you're referring to is "_About Us" (without quotes)   .....

lazaru
lazaru

(96 posts)

Sep 14, 2008 07:05   Quote
Points: 0   Vote

It's actually "_ABOUT_US_H" or at least it is for me, I now have the top menu capitalised as I wanted it. (I think H1 is the page title of the pop-up box)

sanne
sanne

(16 posts)

Sep 14, 2008 13:00   Quote
Points: 0   Vote

Hi everybody,

here is the solution.

To add external links or internal links to the top menu just

1. open templates/tmpl_uni/ and download _header.html

2. find

<!--<div class="topestMenuWrapper">-->
<div class="topestMenu">
__TOP_Links__
__TOP_News__
__TOP_ContactUs__
__TOP_About__
__TOP_Privacy__
__TOP_Termsofuse__
__TOP_FAQ__
__TOP_Feedback__
__TOP_Aff__
__TOP_Invitefriend__
__TOP_Bookmark__
__switch_lang_block__

3. add

<!--<div class="topestMenuWrapper">-->
<div class="topestMenu">
<a href="http://www.new_link_1.com" target="blank">name_1</a>
<a href="http://www.new_link_2.com" target="blank">name_2</a>

__TOP_Links__
__TOP_News__
__TOP_ContactUs__
__TOP_About__
__TOP_Privacy__
__TOP_Termsofuse__
__TOP_FAQ__
__TOP_Feedback__
__TOP_Aff__
__TOP_Invitefriend__
__TOP_Bookmark__
__switch_lang_block__

4. save and upload the new _header.html and refresh your site ( press F5 )

5. done

Best regards Sanne

 
 
 
{before_end}