Webmastersite.net
Register Log In

Add 1. next to link name

Comments on Add 1. next to link name

Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Nov 27, 2006 - 8:32 AM:

What is the variable for adding the link number in front of link name

example:
1. link name
2. link name
3. link name

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 27, 2006 - 10:06 PM:

{NUMBER} should do it.
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Nov 28, 2006 - 6:04 AM:

Thanks Paulgringrin
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Nov 28, 2006 - 11:25 AM:

{NUMBER} dont work in displaylinks.tpl
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 29, 2006 - 10:24 PM:

Confirmed and fixed for 4.0.7.
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Nov 30, 2006 - 12:33 AM:

yes but {LINKNUMBER} work
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 30, 2006 - 2:41 AM:

{LINKNUMBER} is slower since it performs queries to calculate. On a small site you might not notice a difference, on a big one you would.
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Nov 30, 2006 - 2:56 AM:

Ok looking forward to the update
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 02, 2006 - 8:57 AM:

The number field does not work correctly if a category have say 3 pages on every page the number starts with 1.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Dec 03, 2006 - 3:31 AM:

In classes/onelink.php replace
 $template = str_replace('{NUMBER}', $linkssofar + 1, $template); $linkssofar++;
with
global $start; $template = str_replace('{NUMBER}', $linkssofar + $start + 1, $template); $linkssofar++;
and that should do it.
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
#11 - Quote - Permalink
Posted Dec 04, 2006 - 9:28 AM:

Ok works thanks Paul
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.