![]() |
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 ? |
I'm already working on this. :)
|
Add this code in your phpinclude template:
PHP Code:
This will only select the first 20 characters of the post, and add ... after it (with a link to the post). |
Is it possible to use this on a non vb page?
|
Create this page as marquee.php
PHP Code:
Now just use SSI to include it Code:
<!--#include file="vbb/marquee.php"--> |
Great Hack Firefly.
Need an addon if possible. I would like to for example exclude forumid 14, 43, 87 from the marquee.How would I do this? |
Try this code
PHP Code:
|
error with this. it worker before I made the change to exclude forums.
<b>Warning</b>: Cannot add header information - headers already sent by (output started at /home/realweb/public_html/marquee.php:13) in <b>/home/realweb/public_html/forums/admin/functions.php</b> on line <b>1486</b><br> <!-- Database error in vBulletin: Invalid SQL: SELECT postid,LEFT(pagetext,20) AS text FROM post WHERE forumid<>45 AND forumid<>30 AND forumid<>33 AND forumid<>93 AND forumid<>40 AND forumid<>41 AND forumid<>38 AND forumid<>39 AND forumid<>42 AND forumid<>43 AND forumid<>46 AND forumid<>54 AND forumid<>48 AND forumid<>61 AND forumid<>50 AND forumid<>51 AND forumid<>52 AND forumid<>53 AND forumid<>55 AND forumid<>56 AND forumid<>57 AND forumid<>58 AND forumid<>59 AND forumid<>60 AND forumid<>62 AND forumid<>75 AND forumid<>70 AND forumid<>72 AND forumid<>69 AND forumid<>67 AND forumid<>68 AND forumid<>71 AND forumid<>76 AND forumid<>77 AND forumid<>78 AND forumid<>79 AND forumid<>80 AND forumid<>81 AND forumid<>82 AND forumid<>83 AND forumid<>90 AND forumid<>91 AND forumid<>88 AND forumid<>89 AND forumid<>92 ORDER BY dateline DESC LIMIT 10 mysql error: Unknown column 'forumid' in 'where clause' mysql error number: 1054 Date: Saturday 01st of September 2001 06:04:47 AM Script: /marquee.php Referer: --> </td></tr></table> <p>There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.</p>An E-Mail has been dispatched to our <a href="mailto:support@realwebhost.net">Technical Staff</a>, who you can also contact if the problem persists.</p><p>We apologise for any inconvenience.</p><pre> Database error in vBulletin: Invalid SQL: SELECT postid,LEFT(pagetext,20) AS text FROM post WHERE forumid<>45 AND forumid<>30 AND forumid<>33 AND forumid<>93 AND forumid<>40 AND forumid<>41 AND forumid<>38 AND forumid<>39 AND forumid<>42 AND forumid<>43 AND forumid<>46 AND forumid<>54 AND forumid<>48 AND forumid<>61 AND forumid<>50 AND forumid<>51 AND forumid<>52 AND forumid<>53 AND forumid<>55 AND forumid<>56 AND forumid<>57 AND forumid<>58 AND forumid<>59 AND forumid<>60 AND forumid<>62 AND forumid<>75 AND forumid<>70 AND forumid<>72 AND forumid<>69 AND forumid<>67 AND forumid<>68 AND forumid<>71 AND forumid<>76 AND forumid<>77 AND forumid<>78 AND forumid<>79 AND forumid<>80 AND forumid<>81 AND forumid<>82 AND forumid<>83 AND forumid<>90 AND forumid<>91 AND forumid<>88 AND forumid<>89 AND forumid<>92 ORDER BY dateline DESC LIMIT 10 mysql error: Unknown column 'forumid' in 'where clause' mysql error number: 1054 Date: Saturday 01st of September 2001 06:04:47 AM Script: /marquee.php Referer: </pre> |
there is no forumsid column in post table :( we have to search in tread table with threadid, but i dont know how to do in in mySQL :(
|
Yeah you're right.
I'll see if I can do this... |
we have to check ther threadid in thread table and get the forumid from there
|
FireFly, can you make it look like this:
http://www.dynamicdrive.com/dynamicindex2/crosstick.htm ... then that'll be cool! |
How would you make it show just the thread, and not the posts?
Other than that, this is pretty cool :) |
webhost:
PHP Code:
|
hmmm... thanks, but for some reason its not showing the title of the thread, it just shows ...
Any ideas? |
AJ, I don't understand. You want the latest 10 threads' titles to be displayed?
If so, use this: PHP Code:
|
AWESOME... thanks :)
|
No problem. :)
ozone2000: I'll get to you when I fix webhost's version. :) |
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: |
That's wierd, it's working perfect for me. :confused:
|
|
can u show me working php page?
|
Yeah sure.
What version do you want? |
203
|
i mean this **** with executed forums
|
Ok I'm gonna guess you want what webhost wants:
http://forum.t-cove.com/hack.php http://forum.t-cove.com/hack.phps (for the source, but without color - stupid host) |
:eek: oh my god.....
i`m going down for debug now :( |
Why?
Is there something wrong with your board? |
i`ll fix it i hope
|
Firefly
this is what I have, GO here http://forums.realwebhost.net/marquee.php problem somewhere PHP Code:
GET this error still 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 01:58:08 PM Script: /marquee.php Referer: |
Like I said:
[QUOTE]Originally posted by FireFly Bah: http://www.vbulletin.com/forum/showt...threadid=25820 |
All times are GMT. The time now is 11:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|