Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Mod Name: Active Topics for Threads
Version 1.0
Credits: JustDave and the YASM Modification and ExtremeBikini for the alt tag preview
Description : This Modification adds an active topic like Ubb.Classic, displaying the latest 25 posts, it's a link in the main menu.

Working Under: 6.2.3
Demo : here

Files Altered:
ubbt_registerednav.tmpl.

New Files:
dosearchlatest.php
dosearchlatest.tmpl

Database Altered : No

Disclaimer:
Please make a backup of your files and database before doing any code modifying. I'm not responsible for any problems you encounter and infopop will not provide tech support unless you restore your files to their original state.

Follow instructions in the zip!


Attachments
72496-activetopicsmod.zip (0 Bytes, 23 downloads)

Sponsored Links
Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
nice one.... does it add many queries for that page? it looks good.


- Allen wavey
- What Drives You?
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Yeah, how bout' someone that knows more about it tell me!

lmao! I'm hoping people that are good with these can look over it and either change it or tell me what to change.

Though, all it really is is using JustDave's Search Hack, and ExtremeBikini's Hover over and get topic..... So, if those are both used here, I can't imagine it's that many extra queries.


-peter

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Well done!

*Dal adds this one to his "to do" list for Da LAN Tech *

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
The dosearchlatest.php file in your zip is zero length

Sponsored Links
Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Yeah, you have to copy and paste the contents of your dosearch.php file, and put it in there. Then, you modify that file ....


I explained it in the instructions, but may have not been clear.


Should I explain more?

(Basically, you create dosearchlatest.php by modifying dosearch.php, but dosearch.php is left intact and original, so technically you're adding files and really only touch the ubbt code by changing the registerednav template.)


-peter

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
You might want to include that in your instructions and leave out the zero length file

I figured out what you were trying to do in the template and I modified your template to use the existing variables in the dosearch.php file (so there is no need to edit the dosearch.php).

In your template you had:

Code
{$postrow[$i]['Body']}  


I replaced it with:

Code
 {$searchrow[$i]['Alt']} 


You can see the results here

I created a copy of dosearch.php and named it dabuzz.php because I thought I might have to change the way dosearch.php works, but it wasn't necessary. The only advantage I have with the new file is calling the new template.

You might be able to reduce this hack to just a template

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
Okay, so I just tried what you said...

Did you get this to work with an unhacked copy of dosearch.php, just renamed ?

Cause, I just tried it and didn't get it to work.

I guess I'm just unclear about how to get this down to just the template.... I really just played around with JustDaves YASM and ExtremeBikini's mod, so I don't know that I completely get what it's doing. lol. What I did was get it to work, and I was happy with that. LOL. But, if you've got an easier way please help!

(Also, the instructions did include the bit about copy/pasting into the blank file....)

-peter


Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I have YASM installed

I saw the blank file, skipped the instructions, and rewrote the template

Joined: May 2002
Posts: 362
Junior Member
Junior Member
Offline
Joined: May 2002
Posts: 362
LMAO!

Okay, so should I just redo it by including your template change and preface it by saying you should install YASM first?

So basically, instructions will read to install YASM, upload template, and then insert the line in the registerednav template?

-peter

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Looks really nice.. which version we gonna use

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
You would also need to make a copy of the dosearch.php file and change the template that it includes.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I got it up and running ... nice one thanks. I followed your instructions and copied the entire file over. I already had the yasm installed so had to use partial strings to locate some replace strings.

Nice work I really missed the old Active Topics.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I can't take credit for this one since a lot of people put some real time and effort into making it work

I've attached a template that I modified for this hack to clean up some of the html.
Attachments
72888-active.tmpl (0 Bytes, 61 downloads)

Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
I am using it since a few minutes and really like it.
Would be nice if the amount of last topics that will be shown could be set in the admin menu.


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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 7368
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 7
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)