Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Modified links not displayed as updated

Quote Reply
Modified links not displayed as updated
After modifying a link, the "updated" sign does not show up in the main directory or categories, but show up next to the link itself only.

So I checked subvategory.html which does contain:

Code:
<%if Has_New_Links eq 'Yes'%><font color="red"><small><sup>new</sup></small></font><%endif%>
<%if Has_Changed_Links eq 'Yes'%><font color="red"><small><sup>updated</sup></small></font><%endif%>


I assume that Has_Changed_Links must not be equal to 'Yes' for some reason. Where else can I check? What is causing this? Crazy



Thanks,

Adrian Smile
----------------

waffle

Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
In subcategory.html, do a <%GT::Template::dump%> What does that give you?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Sep 19, 2002, 7:55 AM
Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
Here's my solution:

http://www.gossamer-threads.com/...i?post=200979#200979

Laura.
The UK High Street
Quote Reply
Re: [Andy] Modified links not displayed as updated In reply to
Hi Andy,

I'm not quite sure what you mean, but I've added <%GT::Template::dump%> into subcategory.html and got a whole bunch of links displayed with their associated variables.

Laura,

I'm using the dynamic option, so I don't think that by modifying build.pm would change much. I've tried it anyways, but don't see a change though.

Thanks both of you for helping. I would be happy to hear any other suggestions though Smile

Sincerely,

Adrian
----------------

waffle

Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
What does that table stuff print from GT::Templates::dump ??? Thats what I need to know. Just want to see if some certain variables are there....

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Modified links not displayed as updated In reply to
Hi Andy,

Checkout the link:

http://64.69.64.197/...n/links/page.cgi?d=1

You will be able to see the variables. I'll need to take that out soon though. Let me know once you've seen it.

Thanks,

Adrian
----------------

waffle

Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
Ok, you can take it out now. The 'updated' tag you were using, is showing up as 'No', so its not a problem with Links SQL's template parser. What do you have set for the 'updated' variable in the admin panel? 9i.e 2 day, 2 days etc).

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Modified links not displayed as updated In reply to
Andy,

This may be the problem. I don't know where in the admin panel I can set the updated variable. I see under setup, a build_new_cutoff, build_pop_cutoff, but no build_update_cutoff.

Adrian
----------------

waffle

Last edited by:

waffle: Sep 19, 2002, 9:03 AM
Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
Actually, I think I got a little confused there. Not sure there is an 'updated' cutoff variable. Could you please paste the contents of subcateogry.html here?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Modified links not displayed as updated In reply to
Here's my subcategory.html:


Code:
<%--
File : subcategory.html
Description : This template is used when creating your list of
subcategories (either on the home page, or the category
page).
Tags : All the properties of the category being added are available, plus:
Short_Name => The last part of the category name
Related => A flag saying this is a related category
--%>

<table border=0 cellpadding=3 cellspacing=0><tr>

<%-- This is only useful if you have added an Image column to your category table --%>
<%if Image%>
<td width=30 align=center valign=top>
<img src="<%build_images_url%>/default/<%Image%>" border=0></td>
<%else%>
<td width=25>&nbsp;</td>
<%endif%>

<td>
<%body_font%><b><a class="category_links" href="<%URL%>"><%Short_Name%><%if Related%>@<%endif%></a></b> <small><i>(<%Number_of_Links%>)</i></small>
<%if Has_New_Links eq 'Yes'%><font color="red"><small><sup>new</sup></small></font><%endif%>
<%if Has_Changed_Links eq 'Yes'%><font color="red"><small><sup>updated</sup></small></font><%endif%>
<%if Description%><br><%Description%><%endif%>
</font>
</td></tr>
</table>

Adrian
----------------

waffle

Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
I don't think the necessary code is there for dynamic directories. I think this is a bug. There is a set_new sub in Category.pm and I think there should be a similar place that sets the changed flags.

I could be completely wrong though Tongue

Laura.
The UK High Street
Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
Do the flags show in static mode? (i.e aftrer running nph-build)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Modified links not displayed as updated In reply to
Actually, they don't appear even on a static page. You can check it out here:

Static:
http://64.69.64.197/pages/

Dynamically:
http://64.69.64.197/...n/links/page.cgi?d=1

You can find an updated link under:
>Anesthestiology>Mountain>University of Colorado Program

Thanks for your help,
Adrian
----------------

waffle

Quote Reply
Re: [waffle] Modified links not displayed as updated In reply to
Are they not working on static pages even with my mod?