Matt:
I'm not a programmer, so I'm not the most adept at code.
How would you write this?
Like this:
#showResourceImage ("asap" /images/usrName-logo.gif)
ASAP is the theme
My images will be called:
Asapeditor-logo.gif
Soundoff-logo.gif
Badlanguage-logo.gif
Best regards,
Anthony P. Zeoli
Program Manager, S&T
Associated Press
T: 212-621-7056
E: [EMAIL PROTECTED]
-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 15, 2005 7:15 PM
To: [email protected]
Subject: Re: URGENT Questions: Remove other editors, macro for an image
to show per each blog
On 9/15/05, Anthony Zeoli <[EMAIL PROTECTED]> wrote:
> I have two urgent questions as we're going live on Monday and its
super
> important I get this situated.
>
>
>
> I need to load a graphic in the theme based on the userName.
>
> For example say i create Username "bob" and the Blog resides at
> "/page/bob/"
>
>
>
> I need to have the theme to set the logo based on userName... for
> example bob's logo would be /images/bob-logo.gif and tom's would be
> /images/tom-logo.gif
>
You should be able to use /images/$userName-logo.gif
Matt
>
>
> Any ideas?"
>
>
>
> I saw this Macro, showResourceImage, but we don't want to modify the
> Weblog.vm templates for each blog if we don't have to to point to
> separate images...if anyone ever selected another theme and then went
> back to select the main theme, the code would disappear.
>
>
>
> Declaration macro ( showResourceImage $fileName $linkUrl $alt $border
> $halign $valign ) Parameters
>
>
> Synopsys
>
>
> Show an image IMG tag for an image you have uploaded to Roller,
> optionally surrounded with an 'A HREF' link tag
>
>
>
> Also, I need to know how to disable the other types of editors so no
one
> changes them on us accidentally. Can someone tell me how to just have
> one default editor? Thanks.
>
>
>
>
>
> By the way Dave...it's showRecentEntriesInCategory (10
"/CategoryName"),
> that's the correct syntax, and you can use both RecentEntries and
> RecentEntriesInCategories in the sidebar! Cool!
>
>
>
>
>
>
>
> Anthony P. Zeoli
>
> Program Manager, S&T
>
> Associated Press
>
> 450 W. 33rd Street, 15th Fl
>
> New York, NY 10001
>
> T: 212-621-7056
>
> E: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>
>
> The information contained in this communication is intended for the
use of the designated recipients named above. If the reader of this
communication is not the intended recipient, you are hereby notified
that you have received this communication in error, and that any review,
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify The Associated Press immediately by telephone at +1-212-621-1898
and delete this email. Thank you.
>
>