Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:07 am EST

Geeklog Forums

Email and Print icons in article page


MJK

Anonymous
musical
Hello, I am running GL 1.5.2. I'm trying to get the email and print icons to appear on a story page.

Currently they only appear on the index page.

I've been searching the forums for a few hours, and I've read several related posts, but I'm still scratching my head on this one.

My article.thtml looks like this:

Text Formatted Code
       
        {formatted_article}
        <div class="floatleft" style="width:50%;">{whats_related}</div>
        <div class="floatleft" style="width:50%;">{story_options}</div>
        <div class="clearboth">{trackback}</div>
        {commentbar}
 


From my reading, I've learned that {formatted_article} loads the html from storytext.thtml. My storytext.thtml contains {email_icon} and {print_icon}:

Text Formatted Code
   
  <span class="story-icons">
        {email_icon}
        {print_icon}
        {pdf_icon}
        {edit_icon}
    </span>
 


When I view the page source, the span with a class of "story-icons" only contains the Edit icon.

I've looked through configuration files, and all of the template files. Why aren't they appearing on the story page?

I appreciate any help. Thanks.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The idea is that on the article page, you have the "Story Options" block, which already contains those links - in a different place and without the icons.

What you can do is hard-code the icons in the article.thtml template, i.e. instead of using the variables, add them as links and images in plain HTML.

bye, Dirk
 Quote

MJK

Anonymous
awake
Thank you very much for your quick, concise reply Dirk.

That did the trick.
 Quote

MJK

Anonymous
curious
Thanks again for your help Dirk, and one more question.

I now have the Mail story to a friend working correctly on the article pages. While testing this yesterday, I noticed that the mail is being sent with some unencoded characters like (&rsquo; and &ldquo; and &ndashWink

I checked profiles.php and here's how the bodytext is being handled:
Text Formatted Code

        . COM_undoSpecialChars(stripslashes(strip_tags($A['bodytext']))).LB.LB
 


I would think that the undoSpecialChars would handle those....Any ideas why I'm still seeing &rsquo; and &ldquo; in the emails that are sent out?
 Quote

All times are EST. The time is now 01:07 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content