Webmastersite.net
Register Log In

Links [#] twice in top left corner
On some pages

Comments on Links [#] twice in top left corner

PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
Posted Jan 12, 2008 - 4:55 AM:

Hi,

I am seeing Links [#], where # is the number of links twice in top left corner on certain pages of my site www.hostectory.com

Example pages: www.hostectory.com/suggest....php?action=addlink&catid=2

How can I overcome this problem? Not sure what I did, but i am getting that on some pages.

Thanks for any help.

Cheers
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 12, 2008 - 12:16 PM:

Can you post a screenshot? I'm not seeing anything unusual at your link: http://www.webmastersite.net/screenshots/31601.jpg
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
Posted Jan 12, 2008 - 7:41 PM:

Paul...

I have attached one screenshot.

Attached Files:
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
Posted Jan 12, 2008 - 11:40 PM:

Looks like this is happening when the user is logged in.. i mean a registered user when navigating to certain pages.

One of the change i made was, i moved some links visible when user is logge din only to any guest user also cal access those links.

Another example of the calender page...


Attached Files:
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 13, 2008 - 12:35 PM:

You have a cookie problem making it impossible to login. Edit: I see how you have to add the www. subdomain to login. Try a cookie domain of .hostectory.com.

Somewhere in one of your templates, or maybe a tweaks file or something else you added, you generate "links [something] <br>links [something] <br>" -- so search for that. I'd say the invalid XHTML should make it easy to find if you didn't have 366 HTML errors.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
Posted Jan 14, 2008 - 5:30 AM:

Paul,

By cookie issue you mean the value in Settings >> System Config >> Cookie Details >. Domain field ??

This Domain field is currently blank.
Should i put a value of '.hostectory.com' without the single quotes in that field to fix the login cookie problem??

Thanks much
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 14, 2008 - 8:44 PM:

Yes.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
Posted Jan 14, 2008 - 11:11 PM:

Thanks Paul.

I have now set the cookie domain value as '.hostectory.com'

Regarding the actual issue in this thread, i checked all the templates and I dont find any links{something}. Would you like to login and check and see if you could isolate the issue?

Thanks
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 15, 2008 - 9:40 PM:

I can do it as site inspection under the usual terms: scripts.webmastersite.net/w...dex.php?section=inspection
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
#10 - Quote - Permalink
Posted Jan 16, 2008 - 4:28 AM:

Paul...

This Links [number] is appearing only on reviews pages, post reply pages and user panel options pages.

Also, this appears only when the user is logged in and navigates to those above mentioned pages.

Any idea of why this could be happening?

Thanks for any help.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
#11 - Quote - Permalink
Posted Jan 17, 2008 - 6:10 AM:

Is this happening because of this variable {CATNUMLINKS}??

Okay... I just tried adding another link to a different directory and now the it shows the value for {TOTALLINKS}

Where could this come from??

Thanks
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#12 - Quote - Permalink
Posted Jan 17, 2008 - 11:15 AM:

I've no idea, I only know I don't see it any of my directories.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
#13 - Quote - Permalink
Posted Jan 18, 2008 - 6:48 AM:

Paul...

I identified the source of this problem, but not sure why it should happen and how can I fix it... I need your help here.

It was the wrapper.tpl which was causing this issue.

I had moved this piece of code...

	<IF {SWITCH_SEARCHINCAT}>
<div align="left">
<form action="search.php?filled=1&condition={DEFAULTSEARCHTYPE}" method="post"><input type="hidden" name="whichtype" value="links" />
Search for <input type="text" name="search" size="{STANDARDSIZE}" />
in <select name="incat"><option value="">All Categories</option>{CATOPTIONS}</select>
<input type="submit" value="Search" class="button" /></form></div>
</IF>


from displaylinks.tpl to wrapper.tpl and placed in the footer of wrapper.tpl

BUT why should this move cause such a problem? How can I overcome the issue?

Thanks

Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#14 - Quote - Permalink
Posted Jan 21, 2008 - 10:02 PM:

Confirmed and fixed.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.