Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: A problem in the "Featured Content Slider "<?php featured_articles( array( 0, 3,  (Read 3684 times)

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .


I have already put forward topics in Mende, but without any response

To enter the heart of the matter I have read an article in this room he found a new way to view the news on the magazine snews1.6 .  I Follow the full steps, but still there is a problem I do not know what I will put in this line
Content 1 Here. 
I've put this code, but to no avail this code.

Code: [Select]
<div id="featured">
<?php featured_articles( array( 03) ); ?>
</div>

This is the link to the article
http://snewscms.com/forum/index.php?topic=8858.0
Code: [Select]
<div class="contentdiv">
Content 1 Here.
</div>
</div>

<div class="contentdiv">
Content 2 Here.
</div>

<div class="contentdiv">
Content 3 Here.
</div>

</div>

<div id="paginate-slider1" class="pagination">

</div>

<script type="text/javascript">

featuredcontentslider.init({
id: "slider1",  //id of main slider DIV
contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["قبل", "التالي"],  //labels for "prev" and "next" links. Set to "" to hide.
revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
enablefade: [true, 0.2],  //[true/false, fadedegree]
autorotate: [true, 3000],  //[true/false, pausetime]
onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
}
})

</script>



I hope the professor nukpana & Patric Ahlqvist that would benefit me in solving this problem
Logged
“Fifty years of programming language research, and we end up with C++?”

nukpana

  • Hero Member
  • *****
  • Karma: 71
  • Posts: 663

I have no idea what you did, so I don't know how to help - what you posted isn't enough to base a solution from.  I don't see any of the code from the mod you linked here, except for the function call, which will output nothing if the remainder of the code isn't present.  I see you are referring to the originating thread which I didn't understand, hence me writing the linked mod (which isn't clear if you are using or not).

BTW Why is sNews called a "magazine"?  And how am I a professor?
Logged

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
« Last Edit: April 15, 2012, 04:36:30 pm by adminphp »
Logged
“Fifty years of programming language research, and we end up with C++?”

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com

could this be an alternative: http://p-ahlqvist.com/blog/jquery-slider-using-jflow/ ? If so there's a link to the creator's website and a pretty simple guide. You can have that slider either automatic as I have or static which need nuttons to be pressed in order to show next and previous.

and with basic knowledge of PHP, CSS and HTML you can alter and play with content inside to be only text, img and text or just plain imagery... it's all up to you.
« Last Edit: April 18, 2010, 08:02:48 pm by Patric Ahlqvist »
Logged
"It's only dead fish that goes with the flow... "
Updated

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
« Last Edit: April 15, 2012, 04:37:31 pm by adminphp »
Logged
“Fifty years of programming language research, and we end up with C++?”

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .
Logged
“Fifty years of programming language research, and we end up with C++?”

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .

up please
Logged
“Fifty years of programming language research, and we end up with C++?”

nukpana

  • Hero Member
  • *****
  • Karma: 71
  • Posts: 663

Your best bet is to ask in the forums where you got the script - Dynamic Drive. The featured_articles() code is not being used (not to my knowledge), so the issue does not appear to be there. 
Logged

adminphp

  • Full Member
  • ***
  • Karma: 4
  • Posts: 150
  • you must be a great snewser .

Your best bet is to ask in the forums where you got the script - Dynamic Drive. The featured_articles() code is not being used (not to my knowledge), so the issue does not appear to be there. 


I know the way for the inauguration of the property, but do not know what I will here
<div class="contentdiv">
Content 3 Here.</div> & Content 2 Here  &   Content 3 Here

Now I have Featured Content Slider works fine but does not display the News(articles)

Should I put the code in the box to display  articles


I put this code  <div id="featured
<?php featured_articles( array( 0, 3, 4 ) ); ?>
 </div>
   
  in each box (content 1&2&3 here)  but to no avail is sabotage Page


Logged
“Fifty years of programming language research, and we end up with C++?”

nukpana

  • Hero Member
  • *****
  • Karma: 71
  • Posts: 663

Quote
I put this code  <div id="featured
<?php featured_articles( array( 0, 3, 4 ) ); ?>
 </div>   
  in each box (content 1&2&3 here)
Well, you are calling the function, but where is the rest of the code to allow the function to run?  You are not showing it to be present, and I am surprised you are not getting an error because you don't have the code.  Additionally, why you would put the code in 3 other boxes?  You don't need to do that. Are you basing that on the dynamic drive script (which I noted before, is highly confusing)?
Logged