Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
i tryed in hack forum vithout any respons..

please someone repost this addon og send eit to me on a e-mail ;O)

i neeed it bad..

the links dosnt work for me ;O((

Sponsored Links
Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
come on please, why vont you help me????


I go live in a few days, but not vithout this hack....

Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
I´m not sure of what addon you are speaking...
But could you be wanting the one that comes included with ubbthreads, in the addon folder? Take a look and see. []https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]

Joined: May 1999
Posts: 149
Enthusiast
Enthusiast
Offline
Joined: May 1999
Posts: 149
I believe we're talking about https://www.ubbdev.com/threads/php/showthreaded.php?Cat=&Board=phpcustomizing&Number=43365 , which used to be on the home page of threadsdev. It's no longer there, and the original hack is no longer accessible.

The integrated index page hack from Dave https://www.ubbdev.com/threads/php/showflat.php?Board=integration&Number=43830 is now driving the home page of threadsdev. A future version, under preview on http://www.chattersonline.com/test/, does contain a "Current Threads" box which I believe to be the same thing as "latest threads".

Cheers,
Max

Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
does anyone have the latest threads anywhere ??

Problem is :

i need to show latest 10 threads from 2 forums, just like i am doing here in ubb board.

http://www.venuslogen.dk

i cant use the addon top threads, i vant to show the latest 10 not sortet by anything but the time they are postet.

pleeaaase ;O)

Thomas

Sponsored Links
Joined: May 1999
Posts: 149
Enthusiast
Enthusiast
Offline
Joined: May 1999
Posts: 149
The third box down from the left on http://www.chattersonline.com/test/ is what you're talking about I think. That version of the integrated home page is about to be released by Dave.
Max

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Dave's stuff should work well for you.. if not, I have the script at work and will post it when I go in tomorrow []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]


- Allen wavey
- What Drives You?
Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
thanx alot ;O)

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I put this together rather quickly. The instructions are included in the file for set up. It seems to be working.

This will not check a user's groups so if you don't want posts from a particular board to be seen by everyone don't use this hack to display current posts on that board.

You will want to change the html I'm sure. It's very basic and dull. Just wanted to see what it was creating. []https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]

Hope it works for you...
Attachments
44691-5.5-currentposts.php.txt (0 Bytes, 90 downloads)

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
oops, forgot myself []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]

This is the modification MattyJ did to the topthreads.php script - do this and rename it latestthreads.php, then ssi it to your other pages []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]

#
# FIND:
#

// Set this variable to the total number of threads that you wish to show
$totalthreads = 10;

#
# Paste Under:
#

// set this variable to show only main topics or replies
$type = "topic"; # topic/reply/all
if ($type == "topic") {
$qual = "B_Number = B_Main";
} else if ($type == "reply") {
$qual = "B_Number <> B_Main";
} else {
$qual = "B_Number > 0";
}

#
# FIND:
#

$sort;
if ($topthreads == "views") {
$sort = "B_Counter";
}
else {
$sort = "B_Replies";
}

#
# REPLACE WITH:
#

$sort = "B_Last_Post";

#
# FIND:
#
FROM w3t_Posts
WHERE B_Number = B_Main
AND B_Last_Post > '$date'
ORDER BY $sort DESC

#
# REPLACE WITH:
#
FROM w3t_Posts
WHERE $qual
AND B_Last_Post > '$date'
ORDER BY $sort DESC


That should do it []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
i am just to stupid...
how do i tell the script what boards it is to look in ??

i tryed this:
<?
$myBoard = "Pigernes egne frække annoncer";
include "/www/sites/4701.dk/httpdocs/ubbthreads/currentposts.php";
?>
and this
<?
$myBoard = "UBB21";
include "/www/sites/4701.dk/httpdocs/ubbthreads/currentposts.php";
?>

but nothing worked ???

do i have to edit anything in currentpost.php ??

Thanx

thomas

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
The "keyword" you named the board when it was created is needed.

If you hover over a link while viewing your ubbthreads.php script for the board you want to use you will see Board=SomeBoard in the status bar. That's the keyword for that board. []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]

Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
oki now i get it ;O)
is it possible to get it to show the posters name to on every post in the list ??


Great job Dave ;O)

Joined: Apr 2001
Posts: 186
Member
Member
Offline
Joined: Apr 2001
Posts: 186
show the posters name to on every post in the list ??


anyone ???blush

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Attachments
44957-5.5-currentposts-2.0.php.txt (0 Bytes, 214 downloads)


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
hatter
hatter
USA
Posts: 69
Joined: January 2001
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
WebGuy 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 20240506)