HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

mobile template modify news avatar

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75286 (In Topic #15607)
Avatar

Fan in training

need to disable author's avatar on news only on mobile template.

searched on templates NEWS_FULL_SCREEN.tpl:

<div{$?,{$value_option,html5}, itemprop="articleBody"><br />
{NEWS_FULL}<br />


so need to modify {NEWS_FULL} to have avatar on normal version and have avatar disabled on mobile version…

where have I to go?

i understand i need to add a {+START,IF,{$MOBILE}}…code for mobile…{+END} in {NEWS_FULL} but i cannot find {NEWS_FULL} template…


Last edit: by alko
Back to the top
 
Posted
Rating:
#75290
Avatar

Community saint

{NEWS_FULL} is not a template but an argument to the NEWS_FULL_SCREEN template.

Try using "show template edit links" from the admin tools drop-down list at the bottom left of the screen to show all templates in use on that screen.

Visit Last Gamer because its made with ocPortal.

Stay for the content - Video game retrospectives, reviews, galleries and discussions.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75292
Avatar

Fan in training

found!!!
really thanks!!!
for people interested template is /NEWS_PIECE_SUMMARY.tpl

code is:
{+START,IF,{$NOT,{$MOBILE}}}
   {+START,IF,{$NOT,{$IS_NON_EMPTY,{AUTHOR_URL}}}}
      <div class="newscat_img_member">
         {+START,IF_NON_EMPTY,
{$USERNAME*,{SUBMITTER}}}
            <div class="news_by">
               
<a class="poster_member" href="{$MEMBER_PROFILE_LINK*,{SUBMITTER}}">{$USERNAME*,{SUBM
ITTER}}</a>
            </div>
         {+END}
   
         {+START,IF_NON_EMPTY,
{$AVATAR*,{SUBMITTER}}}
            <img src="{$AVATAR*,{SUBMITTER}}" title="{!AVATAR}" alt="{!AVATAR}" />
         {+END}
         
         {+START,IF,{$OCF}}
            <br /><br />
            {$OCF_RA
NK_IMAGE,{SUBMITTER}}
         {+END}
      </div>
   {+END}
{+END}
Back to the top
 
Posted
Rating:
#75293
Avatar

Fan in training

the problem is that standard mobile theme on smartphone with 320x240 res has news template with avatar of author that broke news layout…

if there is any  better solution it would be welcome but for now my only need is to remove the whole author box…


Last edit: by alko
Back to the top
 
Posted
Rating:
#75296
Avatar

Community saint

When designing for such a tiny resolution you have to really think hard as to what is important enough for your to display.

Visit Last Gamer because its made with ocPortal.

Stay for the content - Video game retrospectives, reviews, galleries and discussions.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: