Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Forgot Password?
Navigation

Help Needed - Combine 2 Scripts Into One

Last updated on 5 years ago
D
douwe_yntemaSenior Member
Posted 5 years ago

Grimloch wrote:

@Grimloch -

douwe_yntema wrote:

@douwe_yntema - Because there is always a maintitle and a subtitle, both links are displayed. That's why you have the maintitles twice.

You are not understanding me; I DO NOT want it that way. I want main title with sub-titles underneath each main title in the proper sequence. Main titles AND sub-titles can have their own distinct posts. If I forget all this and use the added 'topic_order' field that I manually added to the table I can make everything display properly with post counts AND the correct topic_id's but it's a cheat and I can't do it that way. Because the 'topic_order' will change everytime a sub-topic is added or deleted which would require manually changing that field every time.
Anyway I think your suggestion will work I just have to figure out the display part but I need a 'distinct topic_id'; so far everything I've tried won't work with your code.


I understand what you want, but the way it is displayed now is because there is always a maintitle and a subtitle. That fact is causing it is not displayed you want it.
G
GrimlochSenior Member
Posted 5 years ago
Thanks for trying to help douwe. Your code actually works just not in the way I need. I guess I'll just stick with the added dbfield and will just have to modify it manually on sub-topic changes.
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
You cannot set up a bounty in this discussion thread.
Moderator: Support Team
Users who participated in discussion: Grimloch, douwe_yntema, RobiNN