UBB.Dev
Posted By: oceanwest Beta-[6.5] Active Topic Search Options v2.5 - 07/08/2004 5:41 AM
Mod Name / Version: Active Topic Search Options v2.5

Description: The active topic link is great now 6.5 we can show all posts or only the topic starter (like in .classic) and have the ability to turn on or off the body preview.

I have included a the ubbt_registerednav.tmpl, ubbt_unregisterednav.tmpl and a new active.php script that will give the users a popup menu in the menubar so users can choose for them self how they want to view the active topics.

This new version will allow the users to set their default options.

Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites: 6.5b4

Author(s): oceanwest

Date: 07/07/04

Credits: scroungr & threads dev

Files Altered: ubbt_registerednav.tmpl, ubbt_unregisterednav.tmpl, editdisplay.tmpl, editdisplay.php, changedisplay.php, language/english/active.php, ubbt.inc.php,

New Files: language/english/active.php, active.php

Database Altered: YES add 1 field to w3t_Users field name U_ActiveTopic

Info/Instructions: Modify the templates add the field to the db, and create the new script.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
116537-ActiveTopics2.5.txt  (95 downloads)
Nice
I updated the attachment and version number to v2.5 because I reworked some of the instructions and created a new language file also members can now find "My Posts" instead of doing a search or looking for the link on the showprofile.php.

Enjoy
In this attachment you can add the ability for users to go to "Active Topics" as their main page. Instead of only My Home / Main Index.

Enjoy

Attached File
very very nice! Thanks
Help....
This code that I add to ubbt.inc.php
to automatically go to active topics on login prevents
them from accessing their My Home.

What did I do wrong?

Code
<br />	 	if ($startpage == "at") {<br />			$option = $user['U_ActiveTopic'];<br />		<br />	 // -------------<br />// Search The Forums<br />	if ($option == "1") {<br />	header("Location: {$config['phpurl']}/search.php?Cat=0");<br />	}<br /><br />// -------------<br />// Active topics - Main No Preview<br />	if ($option == "2") {<br />	header("Location: {$config['phpurl']}/dosearch.php?Cat=0&Forum=All_Forums&Words=&daterange=1&newertype=d&newerval=1&Limit=25&topic=1&fromsearch=1&bodyprev=0");<br />	}<br /><br />// -------------<br />// Active topics - Main w/ Preview<br />	if ($option == "3") {<br />	header("Location: {$config['phpurl']}/dosearch.php?Cat=0&Forum=All_Forums&Words=&daterange=1&newertype=d&newerval=1&Limit=25&topic=1&fromsearch=1&bodyprev=1");<br />	}<br /><br />// -------------<br />// Active topics - All Posts No Preview<br />	if ($option == "4") {<br />	header("Location: {$config['phpurl']}/dosearch.php?Cat=0&Forum=All_Forums&Words=&daterange=1&newertype=d&newerval=1&Limit=25&topic=0&fromsearch=1&bodyprev=0");<br />	}<br /><br />// -------------<br />// Active topics - All Posts w/ Preview<br />	if ($option == "5") {<br />	header("Location: {$config['phpurl']}/dosearch.php?Cat=0&Forum=All_Forums&Words=&daterange=1&newertype=d&newerval=1&Limit=25&topic=0&fromsearch=1&bodyprev=1");<br />	}<br />}
ok it works now needed to fix this in the ubbt_registerednav.tmpl

<a href= "$phpurl/myhome.php?Cat=$Cat">{$ubbt_lang['MY_HOME']}</a>
© UBB.Developers