Webmastersite.net
Register Log In

WSN Directory 6.0.24 issues
Links don't display?

Comments on WSN Directory 6.0.24 issues

mschamber


Usergroup: Customer
Joined: Apr 20, 2011
Location: Mount Shasta, CA

Total Topics: 3
Total Comments: 10
Posted Apr 20, 2011 - 8:07 PM:

I am setting up WSN Directory as a Chamber of Commerce member directory due to launch at the end of this month. For weeks I've been working with this script with six link types, with no major issues.

Today I upgraded to 6.0.24 and I've run into several issues. Under Settings -> Type Manager, all six of my types show NO Template Display Code (they used to!), no matter how many times I copy/paste it in there and update. On the front-end, clicking on a category shows a link count and the Google map, but no links display beneath the map. The search results display, but the category results do not.

I have tried replacing templates I modified with the defaults from a freshly-downloaded 6.0.24 install, but no luck.

Can anyone shed light on this?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 20, 2011 - 9:37 PM:

It sounds as if the templates that use the link-bit (the bit in your type manager) were overwritten with the default templates for some reason, so the link types that you added are no longer there. This would happen if you did a manual upgrade and uploaded all the default templates, rather than allowing the system to upgrade itself.

The type manager customises the templates, so if you overwrite them with the default templates your custom types will disappear.

It means that you will have to manually update the necessary templates and add the different link types you have (other than regular and reciprocal). There are three templates: displaylinks.tpl, searchall.tpl and albums.tpl.

In these templates you will find the following:


<IF {SHOWRECIP}>
<table class="standardtable">
<!-- BEGIN RECIP LINKS -->
[INSERTFILE=linkbit]
<!-- END RECIP LINKS -->
</table>
</IF>

<IF {SHOWREGULAR}>
<table class="standardtable">
<!-- BEGIN REGULAR LINKS -->
[INSERTFILE=linkbit]
<!-- END REGULAR LINKS -->
</table>
</IF>


What you need to do is in each of those templates mentioned above copy the bit between and including <IF {SHOWREGULAR} and </IF> and paste just below that for each new link you have made. Then you must change SHOWREGULAR to SHOWYOURNAME and REGULAR to YOURNAME - where YOURNAME is the name of your link type.

Once this is done you can then customise how it looks in the type manager and those links will also display once again in the categories

Hope this helps.
mschamber


Usergroup: Customer
Joined: Apr 20, 2011
Location: Mount Shasta, CA

Total Topics: 3
Total Comments: 10
Posted Apr 20, 2011 - 10:57 PM:

Thank you so much, that did the trick!

Am I right in thinking that if I changed [INSERTFILE=linkbit] to, say, [INSERTFILE=linkbit2], would it insert the linkbit2.tpl file, if it existed? I'm wondering if I can set up my different link templates via .tpl files that way. (Each type has a different display.)

I really appreciate your help!
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 20, 2011 - 11:05 PM:

Great! smiling face

mschamber wrote:

Am I right in thinking that if I changed [INSERTFILE=linkbit] to, say, [INSERTFILE=linkbit2], would it insert the linkbit2.tpl file, if it existed? I'm wondering if I can set up my different link templates via .tpl files that way. (Each type has a different display.)


Yes, that is correct. In fact that's the way I used to do it before the addition of the type manager smiling face

mschamber


Usergroup: Customer
Joined: Apr 20, 2011
Location: Mount Shasta, CA

Total Topics: 3
Total Comments: 10
Posted Apr 20, 2011 - 11:43 PM:

babrees wrote:
Yes, that is correct. In fact that's the way I used to do it before the addition of the type manager smiling face


That's good to know, thanks again. For now, my template display codes are BACK in the Type Manager! (I hope they stay!)
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 22, 2011 - 3:20 AM:

Note you can also type template code directly between the begin and end lines, don't have to use an INSERTFILE.

I have tried replacing templates I modified with the defaults from a freshly-downloaded 6.0.24 install, but no luck.

Could it be that you did something along these lines before to cause the problem? Reverting to the default version of a template that contains various listing types means you lose all listing types except regular and recip (the only ones that are in the default templates).

Or perhaps something caused the upgrade to revert templates, though I can't see how that would happen.

Maybe it would be better if I automanage the types in the future and just generate linkbit templates for each. Though somebody might want to put a particular listing type in a place removed from the other listing types, which makes this idea difficult.
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.