Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by charsima (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-28-2001 Last Update: Never Installs: 0
 
No support by the author.

I need the hack that shows the last 10 posts in a marquee at the top of the forum .

Does anyone know from where to get it ?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-01-2001, 12:11 PM
Stasik Stasik is offline
 
Join Date: Nov 2001
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

we have to check ther threadid in thread table and get the forumid from there
Reply With Quote
  #13  
Old 09-01-2001, 07:11 PM
ozone2000 ozone2000 is offline
 
Join Date: Nov 2001
Location: Denmark
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly, can you make it look like this:
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm
... then that'll be cool!
Reply With Quote
  #14  
Old 09-03-2001, 01:17 PM
WebMasterAJ WebMasterAJ is offline
 
Join Date: Oct 2001
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would you make it show just the thread, and not the posts?

Other than that, this is pretty cool
Reply With Quote
  #15  
Old 09-03-2001, 01:31 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

webhost:
PHP Code:
<?php

error_reporting
(7);

require(
"./global.php");

$latestposts=$DB_site->query("SELECT post.postid AS id,LEFT(post.pagetext,20) AS text FROM post LEFT JOIN thread ON thread.threadid WHERE thread.forumid<>14 AND thread.forumid<>43 AND thread.forumid<>87 GROUP BY post.postid ORDER BY post.dateline DESC LIMIT 10");
$marquee "";
while (
$latestpost=$DB_site->fetch_array($latestposts)) {
  if (
$marquee) {
    
$marquee .= "&nbsp;&nbsp;";  // String to seperate between each link
  
}
  
$marquee .= "<a href=\"showthread.php?s=$session[sessionhash]&postid=$latestpost[id]\">$latestpost[text] ...</a>";
}
?>
<? echo("$marquee"); ?>
(working)
Reply With Quote
  #16  
Old 09-03-2001, 01:45 PM
WebMasterAJ WebMasterAJ is offline
 
Join Date: Oct 2001
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm... thanks, but for some reason its not showing the title of the thread, it just shows ...

Any ideas?
Reply With Quote
  #17  
Old 09-03-2001, 02:00 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AJ, I don't understand. You want the latest 10 threads' titles to be displayed?
If so, use this:
PHP Code:
<?php

error_reporting
(7);

require(
"./global.php");

$latestposts=$DB_site->query("SELECT threadid,title FROM thread ORDER BY dateline DESC LIMIT 10");
$marquee="";
while (
$latestpost=$DB_site->fetch_array($latestposts)) {
  if (
$marquee) {
    
$marquee .= "&nbsp;&nbsp;";  // String to seperate between each link
  
}
  
$marquee .= "<a href=\"showthread.php?s=$session[sessionhash]&threadid=$latestpost[threadid]\">$latestpost[title] ...</a>";
}
?>
<marquee-code-here value="<? echo("$marquee"); ?>">
Reply With Quote
  #18  
Old 09-03-2001, 02:06 PM
WebMasterAJ WebMasterAJ is offline
 
Join Date: Oct 2001
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME... thanks
Reply With Quote
  #19  
Old 09-03-2001, 02:07 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem.

ozone2000:
I'll get to you when I fix webhost's version.
Reply With Quote
  #20  
Old 09-03-2001, 04:03 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firefly

I get this error now

Database error in vBulletin: Invalid SQL: SELECT post.postid,LEFT(post.pagetext,20) FROM post LEFT JOIN thread ON thread.threadid WHERE thread.forumid<>30 AND thread.forumid<>33 AND thread.forumid<>38 ORDER BY post.dateline DESC LIMIT 10
mysql error: Got error 28 from table handler
mysql error number: 1030
Date: Monday 03rd of September 2001 10:51:55 AM
Script: /marquee.php
Referer:
Reply With Quote
  #21  
Old 09-03-2001, 06:01 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's wierd, it's working perfect for me.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04373 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete