vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Last XX Posts on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=12324)

04-03-2001 02:24 AM

Ok,

Go to

http://www.hometheaterforum.com/htforum/active.php

Parker

04-03-2001 02:26 AM

Ok,

I see if you go to that page directly what you are talking about. I doubt that anyone would go to the page directly like this so.............

Again, thanks for the heads up.

Parker

Robert Basil 04-03-2001 03:37 PM

Quote:

Originally posted by Parker Clack
Ok,

I see if you go to that page directly what you are talking about. I doubt that anyone would go to the page directly like this so.............

Again, thanks for the heads up.

Parker

So now you see why most of us can't use it because we place the code on our front page. :(

tubedogg 04-04-2001 09:13 PM

fahad,

You must use the exclude forums variable for any forums which you wish to exclude.

Find the ID number of the forum. (Go to your main forums page (index.php) and roll your mouse over the link of the forum you wish to exclude. In the status bar at the bottom, look for forumid= and then make a note of that number.) Then, edit the last10config.php file, and find where it says
PHP Code:

$excludeforums ""

In between the " and the other " put the number of the forum you wish to exclude.

fahad 04-05-2001 04:15 AM

thanks tubedogg

tubedogg 04-07-2001 11:11 AM

updated (see the first post in this thread).

see this post as to why i updated it.

Jonathan@Refresh 04-08-2001 05:54 PM

I'm getting the error:
Code:

Fatal error: Call to undefined function: bbcodeparse() in /home/sites/site5/web/vb2/last10/last10.php on line 134
any ideas?

tubedogg 04-09-2001 05:21 AM

That will happen if you used the code that Parker suggested without including global.php. Keep in mind that if you are putting this on your front page, your visitors will get an error if they haven't visited your forums yet; that's why the bbcodeparse is not part of the official release in the first post in this thread.

Jonathan@Refresh 04-09-2001 05:27 AM

Quote:

Originally posted by tubedogg
That will happen if you used the code that Parker
I used the code in the zip file from the first post in this thread... is there some code somewhere that doesn't have the bbcodeparse in?

I thought I tried including global.php too, though, and that didn't work.

tubedogg 04-09-2001 05:34 AM

Sorry - you're right. I don't know how it got into the official release. I replaced the zip file - try downloading it again.:o

Jonathan@Refresh 04-09-2001 05:49 AM

Thanks Tubedogg :)

Snoozy 04-25-2001 10:47 PM

Ok I found some more bugs, you can't use body tag to define the background color of a table, just use bgcolor attribute in table tag, also, you can create a variable, that lets people modify this, so that when they allow cellspacing, they can choose the border color. Also, at the very end of the code, you frogot to close the table row.

Code:

// close it all up
echo("</tr></table>");
// bye!

that way it'll be more browser friendly.

tubedogg 04-26-2001 01:21 AM

The body tag is not a bug, it was accidentally left in after testing. The missing <tr> was just an oversight.

Snoozy 04-26-2001 01:31 AM

Just trying to make it perfect!

NN hates when HTML is screwed up, just making sure that it reders correctly.

julius 04-26-2001 11:57 AM

Quote:

Originally posted by tubedogg
That will happen if you used the code that Parker suggested without including global.php. Keep in mind that if you are putting this on your front page, your visitors will get an error if they haven't visited your forums yet; that's why the bbcodeparse is not part of the official release in the first post in this thread.
If I enter myhost.com in this control panel option
Quote:

Cookie Domain
The domain on which you want the cookie to have effect. If you want this to affect all of yourhost.com rather than just forums.yourhost.com, enter yourhost.com here. Can be left blank.
the bbcodeparse could be included?

jojo85 04-26-2001 11:59 AM

i have got a problem:

http://www.agnfr.com/portail/

The script show the [QUOTE][i] :(

Is there a way to correct that?

VAN 04-26-2001 02:42 PM

Tubedogg.....if I wasn't a 100% heterosexual male, I'd seriously consider making love to you right now.

Great work bud!!!

I'm busy over here making some changes to it and I have a few questions for you...

1) How can I modify this sucker to also display the Forum Title along with the Thread Title?

2) How can I modify this sucker to disply the users chosen post icon alongside the Thread Title?

Thanks for the great work man!

tubedogg 04-26-2001 04:37 PM

Quote:

Originally posted by julius
If I enter myhost.com in the control panel option the bbcodeparse could be included?
No, because the visitor must still have gone to the forums first. That just means that once they do go to the forums, do you want the cookie to be set for your whole domain or just the forums.

tubedogg 04-27-2001 12:52 AM

[QUOTE]Originally posted by VAN
Quote:

Tubedogg.....if I wasn't a 100% heterosexual male, I'd seriously consider making love to you right now.
....trying very hard to keep my comments PG-13....:D

Quote:

1) How can I modify this sucker to also display the Forum Title along with the Thread Title?
Now a standard feature :)

Quote:

How can I modify this sucker to disply the users chosen post icon alongside the Thread Title?
Now also a standard feature ;)

I thought you also echoed JoJo's comments about parsing vBcode, but anyway I added that too, at least a limited version of it. I'll figure out a better way to do it down the road.

eva2000 04-27-2001 03:58 PM

can this be included on a separate domain site on the same server ?

i want to include the threads using SSI from my forums on my site at eva2000.com

tubedogg 04-27-2001 06:48 PM

hmm...I don't see why not. It may take a bit of playing to get it right, but...

You could change
Code:

require("$path/config.php");
to
Code:

require("/full/path/to/eva2000/admin/config.php");
in last10.php, then put last10.php and last10config.php into a directory in the other domain's area.

It should work. (Should being the key word there ;))

VAN 04-27-2001 08:55 PM

The changes sound great, now how bout adding 'em to the zip? :) (its still version 0.1.0 in post #1)

tubedogg 04-27-2001 09:05 PM

No it's not...:confused:

:)

VAN 04-27-2001 09:23 PM

Odd. I must be having some funky caching probs in MSIE. I can't get the new file even after clearing the cache and restarting. I fired up NN and pulled down the current zip....thanks, tubedogg.

conan 04-27-2001 11:52 PM

Amazing job tubedogg!
The update is excellent, well done man!

claypots 04-27-2001 11:52 PM

tube this is a great hack! 5 stars!

One thing I caught though, when I tried to create the same format as your last two images/examples, everyhting went great, however when I enabled the smilies ($showicon=1), they would not show. Am I missing something?

VAN 04-28-2001 12:10 AM

Tubedogg, you rule!

I made a few formatting changes. Take a look.....
www.bsboard.com/recent.php


Also, another suggestion....

How about adding a field in the user options where they can choose how many recnt posts to dispaly? I have mine set to show 30, but some people may wanna see less, while others may wanna see more.


Thanks again for the awesome work. (they need this feature in the gold version)

tubedogg 04-28-2001 02:21 AM

Van: Looks good! :) As for your suggestion, I'm not sure. I might look into it, but I might also try a separate hack for use as you are using it. I have some ideas for that one from the UBB hack that I (and apparently you) used to use :) so we'll see what happens.

Claypots: Whoops! I screwed up. I'll post the new version (1.0.1) in the first post in this thread. I overlooked something. Duh! :rolleyes:

julius 04-28-2001 09:52 AM

Thanks Tube, I like it very much!
-----------
Posts show server time (ET), while my forum is GMT +1.

How can I show the same time of the forum?
-----------
If I set to show the message, at very beginning of the table I see:
0
10
0
30
0 (If I set 5 posts)

0
10
0
30
0
20 (If I set 6 posts)

7 times 0 (if I set 7 posts) etc.

"0" if there is not icon and the other numbers are the icons number.

what could it be?

tubedogg 04-29-2001 12:08 AM

The numbers are something that was accidentally left in after testing. Sorry...I have released v1.0.2 in the first post to correct this.

I will look into the times for the future. However, you do know that any unregistered/logged-out visitors see the time on your board as GMT, right? I believe that's the closest I can get without going into member cookies, which is something I don't want to do with this script.

julius 04-29-2001 09:30 AM

Thx Tubedogg, it's perfect now. :)

For all (registered, guests and unlogged) it would be fine just something like server time +- n hours (or GMT +- n hours), without using cookies.

If in this way there are some problem with showing the correct date, it could be let it off.

eiko 04-29-2001 12:36 PM

Works great (except): When I put a forum number(s) in either (only 1 of the two) include or exclude forums, "can't select info" .

If I leave these blank, display's with no problem. Help!

Excellent hack.

tubedogg 04-29-2001 09:48 PM

Odd...I can't reproduce that problem. Make sure you are only putting numbers and commas into those two variables, and separating the numbers with commas. So it might look like:
Code:

$includeforums = "3,4,5,6";

eiko 04-29-2001 10:25 PM

That's exactly how I did it.
Would it be a good idea (or possible) to have the script automatically exclude private forums?

wajones 05-04-2001 11:25 PM

Nice hack tubedogg, it fit right in with what I was needing. Here is how I used it.

tubedogg 05-04-2001 11:47 PM

looks good, wajones! :)

wajones 05-07-2001 01:05 AM

Thought I'd share this, a few of my users wanted to include tubedogg's last10 hack on a vbulletin page and this is what I came up with...

In a copy of the last10.php script comment out or delete the following

require("$path/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassw ord) or die("Can't open connection to MySQL");
mysql_select_db($dbname) or die("Can't select database");

now add this to the phpinclude template

ob_start();
include_once("./last10.php");
$last10 = ob_get_contents();
ob_end_clean();

Then I was able to add $last10 into any vbulletin template to display the last10 table. Saved a lot of work trying to create templates and changing his code, plus if he changes it, it's simple to upgrade.

tubedogg 05-07-2001 01:57 AM

very cool idea. thanks, wajones! :)

Essam 05-07-2001 05:24 AM

tubedogg

any plans to add javascript, so that last posts can be shown in remote sites without actually accessing mysql.? I think it will be very useful for many ppl.

wajones 05-09-2001 02:17 PM

Quote:

Originally posted by tubedogg
very cool idea. thanks, wajones! :)
I like this better...
Create another copy of the last10.php named thelatest.php so you can set different param's.
Create a new forum and name it 'The latest posts" or what ever set it to "act as forum = no and open for posts = no" now put this into the phpinclude in place of what I told you before... $forumid being that forum you created

ob_start();
if ($forumid==34){
include_once("./thelatest.php");
$thisweek= ob_get_contents();
}else{
include_once("./last10.php");
$last10 = ob_get_contents();
}
ob_end_clean();


Now in the forumdisplay template find...

$forumdisplay[forumslist]

then right above it put $thisweek

Now the last10 or $thisweek in this case will show as a forum and be in the jumpforum box for quick access :D

Let me know if you see any conflicts....


All times are GMT. The time now is 11:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03082 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete