Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 10:51 pm EST
Geeklog Forums
Having a topic display stories from other topics - possible?
Status: offline
jager
Forum User
Newbie
Registered: 11/13/03
Posts: 12
Here's what I'm trying to do.
I have a "Movie Reviews" topic. Using the menu plugin, I have 5 sub-topics for different ratings of movie reviews.
What I would like to have happen is for the "Movie Reviews" topic to act sort of like the homepage for the Movie Reviews section. The idea is that when a review is posted in any of the sub categories, it will show up in the main "Movie Reviews" topic as well. Ideally, the Movie Reviews topic would simply do a query which will display the stories from any of the other topics I indicate - but I'm not a PHP stud to know how to do that.
Can anyone help or point me to somewhere where this was done in the past? I tried searching through the forum with no luck.
Thanks! You can see the website where I'm trying to do this here.
-Jager
10
8
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
Hmmm, since I've never used sub-topics, I'm not sure if there is an easy way to get the functionality you want. I know that it wouldn't be too hard to hack your way through it with php, but since you aren't a php stud, I'm not sure how you are going to do it.
If I were going to hack it with php, I would find where the query was being done for the stories (start with index.html). Then, you can hack it by saying that if topic==MovieReviews_, hard code in a database query that says WHERE topic = 'MovieReviews_4Star' OR topic = 'MovieReviews_3Star' ... etc.
It's not easy, and not elegant, but doable. Maybe someone out there knows an easier way to do it...
Let me know if this helps, doesn't, etc.
If I were going to hack it with php, I would find where the query was being done for the stories (start with index.html). Then, you can hack it by saying that if topic==MovieReviews_, hard code in a database query that says WHERE topic = 'MovieReviews_4Star' OR topic = 'MovieReviews_3Star' ... etc.
It's not easy, and not elegant, but doable. Maybe someone out there knows an easier way to do it...
Let me know if this helps, doesn't, etc.
13
9
Quote
All times are EST. The time is now 10:51 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content