Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Individual news poster images.

Asked Modified Viewed 1,370 times
J
James
J
James 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

My apologies if this is the incorrect thread.

I'm trying to use a different style/image for the news-footer depending on the poster of the article but so far i haven't had much luck.
I can edit the style sheet but this image is set and doesn't recognize the user, could someone point me in the right direction?.

See attached images + The current style sheet code I use to produce the image.
.news-info {
    font-size: 11px;
    padding: 10px 11px 7px 55px;
    background-image: url(images/bar1.png);
    background-size: 581px 43px;
    background-repeat: no-repeat;
    background-position: left;
    vertical-align: middle;
}
Edited by James on 17-01-2017 01:39,
James attached the following file:
untitled-5.png [No information available / 71 Downloads]
post1.png [No information available / 79 Downloads]
0 replies

1 post

F
Falk
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

make a new .news-info class like .news-info-1 , news-info-2 etc. Connect to user_id´s. use something like
if ($userdata['user_id'] == "1") {
   echo "<div class='news-info-1'> stuff </div>";
} elseif ($userdata['user_id'] == "2") {
   echo "<div class='news-info-2'> stuff </div>";
}


Hope it helps.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 148
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
J
J
James 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet