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.
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
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.)
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
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.
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.
Comments on WSN Directory 6.0.24 issues
Usergroup: Customer
Joined: Apr 20, 2011
Location: Mount Shasta, CA
Total Topics: 3
Total Comments: 10
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?
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
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:
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.
Usergroup: Customer
Joined: Apr 20, 2011
Location: Mount Shasta, CA
Total Topics: 3
Total Comments: 10
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!
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Great!
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
Usergroup: Customer
Joined: Apr 20, 2011
Location: Mount Shasta, CA
Total Topics: 3
Total Comments: 10
Yes, that is correct. In fact that's the way I used to do it before the addition of the type manager
That's good to know, thanks again. For now, my template display codes are BACK in the Type Manager! (I hope they stay!)
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.