
Dalgar wrote: Just out of curiousity, is forumimages.com running a new version of nutport??
Godai wrote: They use Smartors ezPortal v2.1.8
Maybe I can please somebody with this little piece of code:
It keeps your not-public part of the forum out of sight in the last topics on the portal-page
[edit]
open portal.php
[/edit]
Code: Select all
******FIND****** $sql = "SELECT t.*, u.username, u.user_id, p.* FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p WHERE p.post_id = t.topic_last_post_id AND u.user_id = p.poster_id ORDER BY t.topic_last_post_id DESC LIMIT 0, 5" ; ******AND REPLACE WITH****** $sql = "SELECT t.*, u.username, u.user_id, p.*,f.* FROM " . TOPICS_TABLE . " t," . FORUMS_TABLE . " f, " . USERS_TABLE . " u, " . POSTS_TABLE . " p WHERE t.forum_id = f.forum_id AND f.cat_id >1 AND p.post_id = t.topic_last_post_id AND u.user_id = p.poster_id ORDER BY t.topic_last_post_id DESC LIMIT 0, 5" ; ************
For AND f.cat_id >1 you just fill in the number of your not-public forum cat. If your section category to hide is p.e. 2 then the code has to be.. ...id <> x where x represents your cat number..
Code: Select all
FIND....
$template->set_filenames(array("pollbox" => "viewtopic_poll_result.tpl")
REPLACE....
$template->set_filenames(array("pollbox" => "nutport_poll_result.tpl")
FIND....
$template->set_filenames(array("pollbox" => "viewtopic_poll_ballot.tpl")
REPLACE....
$template->set_filenames(array("pollbox" => "nutport_poll_ballot.tpl")
- Bond Head Quarters, Random Quote.The number plate on the Corgi model Aston Martin DB5 (with Oddjob figure) is wrong! Yet the box shows the correct number plate!