Hey
I'm not good at php at all and can't figure out how to code the following:
display ALL (all time) stories (queued, published, etc) from 1 given category, ordered by most votes.
I hope anyway could help me with this..
thank in advance
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Displaying all stories from 1 category |
| ||||
|
what page are you planning to display the stories. first you'll need to get the category id. select category_id from categories where category_safe_name = 'pligg' once you have the category id you can find all the stories PHP Code: maybe if you can say more about what the page is, i can give you some code snippets to play with
__________________ Anatomy of the Pligg template Help needed |
| The Following User Says Thank You to savant For This Useful Post: | ||
| |||
|
It does not seem to work when using this: PHP Code: |
| ||||
|
I'm sorry i haven't looked at the meneme code, and not sure if it has a database object. Best advice is to contact one of their developers or support forum.
__________________ Anatomy of the Pligg template Help needed |
| |||
| Alright, thanks for the help anyway :)
|
| |||
| can it?
can this go in the index.php file or should it go in the index_center.tpl
|
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Control of meta description - categories | Divisive Cotton | Suggestions | 64 | 11-23-2008 07:37 PM |
| "Top stories in category X" category some error | trh792 | Bug Report | 0 | 05-06-2007 02:53 AM |
| Show Top Stories by Category in Sidebar - A How To | TrailofDead | Modification Tutorials | 0 | 04-23-2007 09:30 PM |
| category related sidebar stories | Andtony | Modification Tutorials | 0 | 04-07-2007 10:55 AM |
| Php code for displaying category (+only 5 items) | Laurent | General Help | 0 | 12-29-2006 07:24 AM |





Linear Mode

