SimplePortal

Development => Feature Requests => Declined Requests => Topic started by: Portugal on January 13, 2012, 04:48:27 PM

Title: Not responded topics list
Post by: Portugal on January 13, 2012, 04:48:27 PM
Hi people,

Well i dont know if is this possibile, but what i need is something like a box with a pre specific boards selected to display all topics without any reply, is that possibile???

Thanks in advance

From Portugal
PC
Title: Re: Not responded topics list
Post by: Portugal on January 26, 2012, 10:06:31 AM
Any idea if is possibile that mod, or aplication????


Regards
Title: Re: Not responded topics list
Post by: Portugal on February 25, 2012, 05:44:42 AM
Hi all,

I still need this block, is that possibile??? Any thing like a "new topics" but instead of a new topics is a "not responded yet".


Regards
Portugal
Title: Re: Not responded topics list
Post by: [SiNaN] on March 07, 2012, 10:38:40 AM
Of course it's possible but it doesn't sound like a useful feature to me. Custom PHP block will accept any kind of PHP code. So if you can get someone to code the necessary PHP code for you, you can use it in a Custom PHP block.
Title: Re: Not responded topics list
Post by: Portugal on September 22, 2012, 07:25:01 AM
Hi Sinan,

Thanks for your atencion. Well and about the utility of that block i think it´s very important to all who haves (like me) a forum to help others, but ok, i respect your opinion.


Thanks in advance.
Title: Re: Not responded topics list
Post by: ccbtimewiz on September 22, 2012, 08:12:42 PM
While the utility might be important, there are other ways to go about it, such as creating a custom PHP block that does it for you.

I haven't tested this yet, but it *should* work in theory...

Open ./SSI.php

Find:
Code: [Select]
ORDER BY num_' . ($type != 'replies' ? 'views' : 'replies') . ' DESC
Replace with:
Code: [Select]
ORDER BY num_' . ($type != 'replies' ? 'views' : 'replies') . ' ASC
Find:
Code: [Select]
ORDER BY t.num_' . ($type != 'replies' ? 'views' : 'replies') . ' DESC
Replace with:
Code: [Select]
ORDER BY t.num_' . ($type != 'replies' ? 'views' : 'replies') . ' DESC
And then make a new PHP block and use this:

Code: [Select]
<?php

require_once('SSI.php');
ssi_topTopics($type 'replies'$num_topics 10'echo');

?>

This will show you the last ten topics that have 0 replies, ordered by latest.
Title: Re: Not responded topics list
Post by: Portugal on September 23, 2012, 08:19:05 AM
Hi Bullet,


Yes it works...very thanks to remember that simple solution....now i will go try to improve more options on that code....(boards options etc.)

Very thanks


Regards
Title: Re: Not responded topics list
Post by: FireDitto on September 23, 2012, 10:41:36 AM
Of course it's possible but it doesn't sound like a useful feature to me. Custom PHP block will accept any kind of PHP code. So if you can get someone to code the necessary PHP code for you, you can use it in a Custom PHP block.

I don't know; I think it would be a pretty useful block for the people who use SP with their RPG forums. It would highlight the open and/or unresponded to topics and thus allow the members to see where they could jump right in, rather than creating a new thread for themselves.

From an RPG pov, it makes a lot of sense ;)
Title: Re: Not responded topics list
Post by: BaghdadGhost on October 15, 2012, 02:27:11 AM
While the utility might be important, there are other ways to go about it, such as creating a custom PHP block that does it for you.

I haven't tested this yet, but it *should* work in theory...

Open ./SSI.php

Find:
Code: [Select]
ORDER BY num_' . ($type != 'replies' ? 'views' : 'replies') . ' DESC
Replace with:
Code: [Select]
ORDER BY num_' . ($type != 'replies' ? 'views' : 'replies') . ' ASC
Find:
Code: [Select]
ORDER BY t.num_' . ($type != 'replies' ? 'views' : 'replies') . ' DESC
Replace with:
Code: [Select]
ORDER BY t.num_' . ($type != 'replies' ? 'views' : 'replies') . ' DESC
And then make a new PHP block and use this:

Code: [Select]
<?php

require_once('SSI.php');
ssi_topTopics($type 'replies'$num_topics 10'echo');

?>

This will show you the last ten topics that have 0 replies, ordered by latest.

Hi Bullet,


Thanks for the instructions above but it seams to me that the second edit is the same!

Title: Re: Not responded topics list
Post by: ccbtimewiz on October 17, 2012, 02:57:04 AM
One has ORDER BY num_' and the other has ORDER BY t.num_'
Title: Re: Not responded topics list
Post by: FireDitto on October 20, 2012, 10:51:57 PM
I think he means the 'Find' and the 'Replace' are the same for the second lot of edits.
Title: Re: Not responded topics list
Post by: Portugal on January 06, 2013, 01:07:43 PM
Hello all,

I have already my code working perfectlly, just i need to improve more...;) for that i need your help.

My code put all topics without any replie in a one block, but now i need some more...i need to make some changes to ignore certain boards, any idea about that???

PS: I can share with all, if have permission to do that.

Thanks in advance