Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogIs there a way to assign a Blog Editor Image to each Blog?Is there a way to assign a Blog Editor Image to each Blog?
Previous
 
Next
New Post
9/7/2008 8:58 AM
 

Next to each blog, which can be written by any of 4 different editors, i want to put a Profile image.
I would love to use something kludgy, like img src=blogeditor{username}.jpg, but I know that's neither robust, or possible, because the username variable adds a whole long <span tab, etc.
Is there a way for me to define an editor blog profile image, or else, how can I extract the username and JUST the username of the blog editor, whitout any added tags?

This is what the tag looks like:

<span style="font-weight:normal;color:#5F9B04;font-size:13pt;"><span id="dnn_ctr479_MainView_ViewBlog_lstBlogView_ctl00_lblUserName"> robodad </span></span></div>
 
New Post
9/7/2008 11:38 AM
 

 ok, this is so kludgy, but whatever.. it works:

 

<script type="text/javascript">

            var bioname = new String('<asp:label id="lblUserName" runat="server" visible="false"></asp:label>')

            str = bioname.indexOf(">")

   str2 = bioname.indexOf("</")

 

   bioname = bioname.substring(str+2,str2-1)

   document.write('<img src=/images/blog_profileimage_' + bioname + '.jpg><br>')

            document.write(bioname)

</script>

 

I just have to make sure i have an image named blog_profileimage_name.jpg...

but that's no biggie.

 
New Post
9/8/2008 9:30 AM
 

Bomb-

That's cool. It's been down the list on my feature reqs for sometime and just hadn't gotten to it. Appreciate you posting it!

Thanks,

-Jeff

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogIs there a way to assign a Blog Editor Image to each Blog?Is there a way to assign a Blog Editor Image to each Blog?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out