View previous topic :: View next topic |
Author |
Message |
tauhid webmaster
Joined: Mar 19, 2006 Posts: 6
|
Posted: Mon Mar 26, 2012 1:27 am Post subject: Block Slider News ? |
|
|
Can I use this block for News or Tricked Out News ? if yes, How can I make that, please?
Only registered users can see links on this board! Get registered or login! |
|
Back to top |
|
|
kguske Site Admin
Joined: May 12, 2005 Posts: 876
|
Posted: Mon Mar 26, 2012 11:32 am Post subject: |
|
|
You may need to modify the SQL used to retrieve the information, but it might work. Have you tried it with RavenNuke 2.5 or with Tricked Out News from http://www.trickedoutnews.com ? _________________ |
|
Back to top |
|
|
tauhid
|
|
Back to top |
|
|
Guardian webmaster
Joined: Dec 25, 2005 Posts: 364 Location: Vsetin, Czech Republic
|
Posted: Mon Mar 26, 2012 7:09 pm Post subject: |
|
|
I don't understand what you are trying to say?
You posted in the TON forum on their website and got an answer to your question in 3 hours (the same answer you got here).
Were you expecting someone to download it, install it and tell if it would definitely work or not?
The best thing to do is install it yourself and see if there are any problems. Report any errors and then maybe someone can give you more advice. |
|
Back to top |
|
|
tauhid
|
|
Back to top |
|
|
Guardian
|
Posted: Mon Mar 26, 2012 8:31 pm Post subject: |
|
|
There seem to be several problems with that code (apart from being old and poorly written).
It looks for a function in the News module called 'NEArticle', which doesn't exist (I think it was in an older module from NukeScripts called NSN News, which sadly no longer exists) and it is also trying to get data from a field called 'haberresim' in the nuke_stories table which doesn't exist.
Looking at the code, that field is supposed to be for an image but the News module has never had an image field so it looks like that News Slider was meant to work with a modified News module. |
|
Back to top |
|
|
tauhid
|
Posted: Mon Mar 26, 2012 8:38 pm Post subject: |
|
|
Thank you. I understand that it has no sense to inquire further.
thank you again |
|
Back to top |
|
|
kguske
|
Posted: Mon Mar 26, 2012 8:52 pm Post subject: |
|
|
You could add the field called haberresim to your nuke_stories table, and some way to maintain it (that is, to specify the picture for each story), or you could create a function to extract an image from the content of the story.
As for the NEArticle function, I believe Guardian is correct that it was used with the NSN News module. I'm not sure what that function did, but I'm guessing it may have retrieve the content, so you could replace it with something different.
All of that assumes you are able to program in PHP.
Just for reference, I am working on a module to enable this sort of slideshow, but can not focus on it now nor do I have an estimate of when it will be available. |
|
Back to top |
|
|
tauhid
|
|
Back to top |
|
|
tauhid
|
Posted: Tue Mar 27, 2012 9:30 pm Post subject: |
|
|
|
|
Back to top |
|
|
|