Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Upgrading error

Quote Reply
Upgrading error
Hi

After upgrading to the newest version...
the following tags are not working righ:

<%if isNew%>
<img alt="This is a New Link" src="<%build_root_url%>/images/new_1.gif">
<%endif%>

<%if isChanged%>
<%if isPopular%>
<%endif%>

All the links are considered Changed, New, and polpular..
Any idea?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Upgrading error In reply to
You can try <%if isNew eq 'Yes'%> , but I don't think this works correctly in dynamic mode.
Maybe <%if New eq 'Yes'%>

Regards

minesite
Quote Reply
Re: [minesite] Upgrading error In reply to
Hi
Thanks.. that does not work.. Frown
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Upgrading error In reply to
Repair DB and Build All.
See if that removes the error...
Seen this happening pretty frequently on few sites where build is run through cron... especailly with that Days_old plugin. Either the images appear broken, or everything starts showing as New...

HyTC
Quote Reply
Re: [HyperTherm] Upgrading error In reply to
Thanks

I have already tried all that and I also removed the mentioned plug in and still have the same issue.. Mad
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Upgrading error In reply to
Sorry if i am not able to follow:

http://2muslims.com/...Findex.shtml&d=1

This shows that "Days_Old" plugin graphichs very much there unless you are using the same graphics for some other plugin.

HyTC
Quote Reply
Re: [HyperTherm] Upgrading error In reply to
No I just have one image new_1.gif and it is defaulted for all new links..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Post deleted by HyperTherm In reply to
Quote Reply
Re: [katabd] Upgrading error In reply to
In case pre upgrade db recovery also does'nt get it back, try this temporary solution:

global transform_date==>

sub {
my ($date, $new_format) = @_;
my $old_format = $CFG->{date_user_format};
require GT::Date;
return GT::Date::date_transform($date, $old_format, $new_format);
}

In link.html :

Right at top:

<%set date2day = GT::Date::date_get()%>
<%set dateadded = transform_date($Add_Date)%>
<%set date2new = GT::Date::date_diff($date2day, $dateadded)%>

Then wherever you are displaying the conditional image/text just add the following: (commenting out the current one which is giving you all "NEW" )

&nbsp;<%ifnot date2new > '7'%>New<%endif%>

7 is just an example and you could change to any value you would like to (whatever you are deciding to classify a link as New)

It's tested so it works :)

HyTC

Last edited by:

HyperTherm: Aug 24, 2004, 10:08 PM
Quote Reply
Re: [HyperTherm] Upgrading error In reply to
Thanks that works great for the quick fix.

The problem that all major tags are not working:

isPopular
isChanged
isNew

they are all having the same problem..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Upgrading error In reply to
Glad that it got one error gone at least from Visitor's perspective Smile

Also, Just In case you have other templates in it's default state (unmodified default/av/etc) could you check the same on those templates? The Flags of All Enum Yes/No Columns have been updated to "Yes" during the Upgrade it seems.

Not too sure, but unsupported plugins do land webmasters into painful surprises :/

HyTC
Quote Reply
Re: [katabd] Upgrading error In reply to
Hi Katabd

Did you get this sorted out as I'm having similar problems.

Regards

minesite
Quote Reply
Re: [minesite] Upgrading error In reply to
No I did not..
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] Upgrading error In reply to
Are you sure it isn't fixed if you change all tags to
<%if isPopular eq 'Yes'%> etc. I'm sure this fixed it for me.
Quote Reply
Re: [afinlr] Upgrading error In reply to
I just went through my links table and was showing as 59,000 plus as new.

Now this is probably related to the thread in the Development Forum re Site Stats.

Regards

minesite
Quote Reply
Re: [minesite] Upgrading error In reply to
Ah, yes.

What are the dates that are in the database for the Add_Date field? Can you check what you have in admin->setup under Date Options - is it possible that you might have changed these as this would also explain the problems?
Quote Reply
Re: [afinlr] Upgrading error In reply to
Admin > Setup > Date details:

date_db_format - %yyyy%-%mm%-%dd%
date_user_format - %ddd% %mmm% %dd% %yyyy%
date_expiry_format - %dddd% %mmm% %d% %yyyy% %h%:%MM% %tt%
date_long_format - %dddd%, %mmmm% %dd% %yyyy%

These should be the default as I've had no reason to change them.

I reset all the new links to No via MySQLMan and rebuilt the database, I still have 12 showing as new but the latest additions are not showing as new.

In the links table for the last link added.
Add Date 2004-09-11

I have noticed that I have 2 Timestamp, is this standard ?
Timestamp 20040911071616
timestamp 0

Regards

minesite
Quote Reply
Re: [afinlr] Upgrading error In reply to
No it does not..

I think there is some sort of a bug or something..
I have worked on this for hours with no luck weeks ago..
I gave up and waitting on a smart person's solution Pirate
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [minesite] Upgrading error In reply to
I'm not really sure what to suggest now. I don't think you should have 2 timestamps - but I don't think this has anything to do with the new links problem.

When the new flags are set, the date to compare is found using
my $date = GT::Date::date_sub( GT::Date::date_get(), $CFG->{build_new_cutoff} );
I think that if you have a strange date format set somewhere it may be causing a problem here.
Quote Reply
Re: [afinlr] Upgrading error In reply to
Thanks Laura

I'll have to dig a little deeper to see what I can find.

The second timestamp has been there for some time, but unsure how or when.

Regards

minesite