1
Graviton
linking or removing links
  • 2006/1/3 9:07

  • Graviton

  • Just popping in

  • Posts: 60

  • Since: 2005/8/10


Hey,

I downloaded the neoblue theme, it has links like newbb, contact, links in the top section.
Howto remove some of these and make the correct links inthere for the rest? So for instance linking the "contactbutton" not to /contact but to /archcontact.
Also it says "http://www.timebrokers.be" in the top, I want to remove the http// bit and only leave "TIMEBROKERS" without changing the rest.
the website is ofcourse like stated above www.timebrokers.be

thx in advance,

Filip

2
dickinsd
Re: linking or removing links
  • 2006/1/3 14:23

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Ok the website name that appears at the top can be changed in 2 ways:

1. Go to Admin, General Settings and change the site name to TIMEBROKERS (Or TIMEBROKERS.be)

2. edit the theme.html file and 'hard code' the TIMEBROKERS name.

To change the links, again you need to edit the theme.html file, just open the file with your favourite web publishing package (for example: Frontpage) you can then make the changes in a GUI environment, alternatively you can open the file with a text editor and make then changes in something like Notepad.

Dave

PS: I think I just blurted that lot out so if you need more info please ask.

3
Graviton
Re: linking or removing links
  • 2006/1/4 7:59

  • Graviton

  • Just popping in

  • Posts: 60

  • Since: 2005/8/10


Hey,

Apparently I cannot insert php into the code, only news and contact work, but when I try to for instance inserthttp://web457.hercules.sprintweb.de/modules/myalbum/viewcat.php?cid=33 as a link .... no go.
Are the $ in php predefined somewhere else or so ?

Thx,

Filip

4
Shine
Re: linking or removing links
  • 2006/1/4 9:48

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


As far as I can see the provided link works. It is a main category which shows the subcategories. So I don't understand the problem.

5
Graviton
Re: linking or removing links
  • 2006/1/4 12:32

  • Graviton

  • Just popping in

  • Posts: 60

  • Since: 2005/8/10


Hi,

I changed the links to appropriate paths but somehow I wasn't able to do this on all the links that where in the original design, like 'portfolio', 'forums' etc., only on 'news' and 'contact'.
When I tried inserting a php line it didn't appear on the site.
My php knowledge doesn't go any further then $ :).

Filip

6
dickinsd
Re: linking or removing links
  • 2006/1/4 13:25

  • dickinsd

  • Quite a regular

  • Posts: 278

  • Since: 2004/11/14


Ok inserting links to php pages is fine.

You should see something like this in the theme.html file:

<div id="navsections">
<
ul>
<
li><a href="<{$xoops_url}>"><{$smarty.const._MA_MENU_HOME}></a></li>
...
...
...

This part: <a href="<{$xoops_url}>"> is the link.
This part: {$smarty.const._MA_MENU_HOME} is what the link will be called on your site.

Using Smarty values should mean that the site will work with multiple laguages (For example you may have an option somewhere to display everything in French?). So is your site aimed at more than one language or is all of your content English?
Basically the smarty value calls a constant and if the language is English I will see Home, News, Contact, where as a French could for example click on a French flag on your site and would see the French alternatives as long as they have been declared in the French Language files...

If your site is aimed at an English audience then you can just pull those smarty values out and make the links look like this instead:

<div id="navsections">
<
ul>
<
li><a href="<{$xoops_url}>">HOME</a></li>

So lets try a couple more of your links:

<div id="navsections">
<
ul>
<
li><a href="<{$xoops_url}>">Home</a></li>
<
li><a href="<{$xoops_url}>/modules/myalbum">ArtAntiques</a></li>
<
li><a href="<{$xoops_url}>/modules/myalbum/viewcat.php?cid=33">Clocks</a></li>
<
li><a href="<{$xoops_url}>/modules/myalbum/viewcat.php?cid=17">Pocket Watches</a></li>
<
li><a href="<{$xoops_url}>/modules/myalbum/viewcat.php?cid=18">Wrist Watches</a></li>
<
li><a href="<{$xoops_url}>/modules/archcontact">Contact Us</a></li>
<
li><a href="<{$xoops_url}>/modules/myguestbook">Guest book</a></li>
</
ul></div>

Hope this helps you a little further.

Dave

7
Graviton
Re: linking or removing links
  • 2006/1/4 15:04

  • Graviton

  • Just popping in

  • Posts: 60

  • Since: 2005/8/10


Hi,

Wow dude, been a long time since I got that kinda response on a forum question, thx !!!
I'll give it a try.

Filip

Login

Who's Online

239 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

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

Latest GitHub Commits