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)

Ryan McBain 12-06-2002 03:05 AM

This hack is great. My question is how do I change it show it shows the actual date and time of the last post? You can see what I have done at http://www.ryanmcbain.com

Visionray 12-06-2002 06:34 AM

open up last10config.php and find this code

Code:

$lastpostdate = "0"; // show last post date and time? 1 = yes; 0 = no
Change the "0" to "1"

Also, look for this code

Code:

$showdate = "0"; // show the date, as well as the time? if the posts that show up in the list are likely to all be
from today (or you set $last24 to "1"),
you can set this to 0. if the posts are spread over multiple days, you probably want this set to 1.

Change that "0" to "1" as well.


Changing both of those will display both the date and time. If you only want to show the time, then just change the second code I posted to 1, and leave the first to 0.


Dude, if you can find a way to make the links bold I will give you a million dollars. It would look much nicer bold don't you think? I haven't been able to find a way.

Ryan McBain 12-08-2002 02:49 PM

I did that and nothing happens. And also. I made a new thread just to check and see if the hack works. And the same 5 threads are up there. I must of done something wrong there, and thats why I cant get the hack to show the date and time.

DO you have any suggestions?



Quote:

Originally posted by Visionray
open up last10config.php and find this code

Code:

$lastpostdate = "0"; // show last post date and time? 1 = yes; 0 = no
Change the "0" to "1"

Also, look for this code

Code:

$showdate = "0"; // show the date, as well as the time? if the posts that show up in the list are likely to all be
from today (or you set $last24 to "1"),
you can set this to 0. if the posts are spread over multiple days, you probably want this set to 1.

Change that "0" to "1" as well.


Changing both of those will display both the date and time. If you only want to show the time, then just change the second code I posted to 1, and leave the first to 0.


Dude, if you can find a way to make the links bold I will give you a million dollars. It would look much nicer bold don't you think? I haven't been able to find a way.


Katman 12-09-2002 02:38 AM

So far I love this hack but............

The smilies in the post don't show up, and I can't put forumid's in both the $excludeforums and $includeforums. If I put numbers seperated by commas without spaces into both of these I get an error: "Error: $includeforums and $excludeforums are both set with numbers. Please remove the numbers from one of these two to proceed."

$path = "forums/admin"; // path to your config.php file (usually in the /admin directory) - NO TRAILING SLASH! Do not include "config.php"
$url = "http://www.katanaplanet.com/forums"; // URL to your board - NO TRAILING SLASH!
$urlimg = "http://www.katanaplanet.com/forums/images"; // URL to your board's images - NO TRAILING

Smilies Source Code as displayed by browser with above configuration:
<img src="http://www.katanaplanet.com/forums//forums/images/smilies/cool.gif" border=0>

Web Site:
http://www.katanaplanet.com

ericsmith 12-12-2002 10:18 PM

Could you add ability to show the Rating column in the next version.

rharbison 12-18-2002 03:16 AM

Can this hack be installed to a regular html page? The instructions say the following:

> To include it on a PHP-parsed page (.php, .php3, .phtml, etc.)...
> To include it on a server-parsed page (.shtml, .shtm, .ssi, etc.)...

I want to install it on my index.html page. I'd really rather not change that to index.php or index.shtml etc, as it's currently listed on google etc as index.html

Can I use this without changing the page type/extension?

Hal 12-20-2002 01:35 AM

Quote:

Originally posted by rharbison
Can this hack be installed to a regular html page? The instructions say the following:

> To include it on a PHP-parsed page (.php, .php3, .phtml, etc.)...
> To include it on a server-parsed page (.shtml, .shtm, .ssi, etc.)...

I want to install it on my index.html page. I'd really rather not change that to index.php or index.shtml etc, as it's currently listed on google etc as index.html

Can I use this without changing the page type/extension?

With an Apache server, you can use the "XBitHack on" directive in an .htaccess file and chmod the html file to be executable. This adds to server load somewhat but will parse the html files for server side includes. (If you are on a shared host, check with host staff first).

Ryan McBain 12-20-2002 02:56 AM

I got it to work, check it out at http://www.ryanmcbain.com :)

julius 01-01-2003 07:38 AM

I want to exclude some threads to show, but config let me only to exclude some forum.
Anyone know if is it possible?

jimmy mac 01-10-2003 06:33 AM

i'm having a problem getting anything to show up. i am pretty sure i configured everything right but i'm adding this to a block on nuke and nothing happens when i add the code to pull up last10.php.

i even tried uploading a plain html page and trying it and still got nothing. any ideas on what i'm doing wrong? i have both the .php files uploaded to my main directory.


All times are GMT. The time now is 01:19 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
  • Page Generation 0.01754 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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