Gossamer Forum
Quote Reply
Globals - formatting
I have UltraGlobals installed but even if I use a single global I still have the same problem.

Example 1:

If I use Latest_Reviews to display the last 3 reviews on the home page:

On the reviews page the date shows as 11-Aug-2009 but on the home page it displays as 2009-08-11 17:43:10.

Example 2:

If I use Latest_New_Links to display the last 3 new links on the home page:

Listing the last 3 new links doesn't format the title font. I have tried altering the css for .linklisting h4.linktitle but it just ignores it.

Last edited by:

MJB: Aug 12, 2009, 12:55 AM
Quote Reply
Re: [MJB] Globals - formatting In reply to
Hi,

You could try this:

Code:
<%GT::Date::date_transform($Review_Date,'%yyyy%-%mm%-%dd%','%ddd% %mmm% %dd% %yyyy%')%>

..instead of just:

Code:
<%Review_Date%>

(you may need to make a copy of review_include.html though, cos otherwise this will also affect the review.cgi templates)

Re the other problem - you got an example?

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] Globals - formatting In reply to
Perfect. I did have to make a copy of review_include.html as suggested as replacing the date tag in the original resulted in a blank date field on the Detailed pages.

With regards to the title formatting I haven't got an example yet. I'm not sure if I'm going to use it permanently, just experimenting at the mo.

Thanks Andy.