Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
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.
Attachments
116537-ActiveTopics2.5.txt (0 Bytes, 95 downloads)

Last edited by oceanwest; 07/12/2004 9:29 AM.
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Nice

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
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

Last edited by oceanwest; 07/09/2004 4:36 PM.
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
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
Attachments
116708-ActiveTopicStartPage.txt (0 Bytes, 26 downloads)

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
very very nice! Thanks

Sponsored Links
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
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 />}

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
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>


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)