Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
News Title not Selected
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Seriosk" data-source="post: 388305" data-attributes="member: 72056"><p>Your classes are formatted wrong</p><p></p><p>Your code:</p><p>[CODE]</p><p><?php</p><p>if($news_id !== $a['id'])</p><p>{</p><p> echo "<a href='".$path."/news/".$a['id']."' class='article-".$a['id'].",selected'>";</p><p>}</p><p>?></p><p>[/CODE]</p><p></p><p>Correct code:</p><p>[CODE]</p><p><?php</p><p>if($news_id !== $a['id'])</p><p>{</p><p> echo "<a href='".$path."/news/".$a['id']."' class='article-".$a['id']." selected'>";</p><p>}</p><p>?></p><p>[/CODE]</p><p>See the difference? The class attribute is allowed multiple classes but are separated by a space, not a ,</p><p>If this doesn't fix it then ensure you have the css code for class "selected"</p></blockquote><p></p>
[QUOTE="Seriosk, post: 388305, member: 72056"] Your classes are formatted wrong Your code: [CODE] <?php if($news_id !== $a['id']) { echo "<a href='".$path."/news/".$a['id']."' class='article-".$a['id'].",selected'>"; } ?> [/CODE] Correct code: [CODE] <?php if($news_id !== $a['id']) { echo "<a href='".$path."/news/".$a['id']."' class='article-".$a['id']." selected'>"; } ?> [/CODE] See the difference? The class attribute is allowed multiple classes but are separated by a space, not a , If this doesn't fix it then ensure you have the css code for class "selected" [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
News Title not Selected
Top