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)

TheCaver 04-11-2002 10:26 PM

Quote:

Originally posted by HiroshiNanami


Anyone got any idea??

What's the point? On index.php, all the user has to do is click "New Posts" and he gets this info :confused:

JC

Courage 04-14-2002 08:52 PM

I keep getting an error

Quote:

Fatal error: Failed opening required 'forum/admin/config.php' (include_path='.:/usr/local/lib/php') in /apache/sites/softnews.totalnet.ro/htdocs/forum/last10.php on line 13
My settings are:

Quote:


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


What can I do ? :(

I need this to include on a SSI page ! :D

FWC 04-14-2002 09:18 PM

It looks like you might have last10.php and last10config.php in your forum directory. If you do, the path to config.php would just be /admin.

Gutspiller 04-26-2002 08:28 PM

Tubedogg, could you help me. I am using this hack for something a little different, but it works the best out of all the hacks that are out there and was hoping to tweak it a little bit.

First off, is it possible to get two (or more) different versions to run on the same page? When I have two different ones running on the same page, different meaning they are both using different files and different config files, one of them repeats the last thread over and over for each thread. So if I say I want it to show 15 threads, it lists the latest thread 15 times.

I don't know if it has to do with pulling the latest threads from a single forum in the php files for the hack or not. I have one forum in the include forum field, and no forums in the exclude field. The weird thing is, is that one works the way it's suppost to and onedoes what I mentioned above. Is it possible to get all of them to run normally on the page?

Another question I had, was is it possible to make one of them not bump a post to the top if it gets a reply? I want it to work more like a databasing list than showing the latest threads.

If you (or anybody really) could help me I would really appreciate it.

Thanks very much.

Gutspiller 04-26-2002 10:31 PM

Quote:

Originally posted by wajones
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.

I tried this and when I put the $last10 in my forum header it limited the number of threads to show on a normal forum page to 10. How can I get it to show 10 in the $last10, but not limit the number of threads shown in a forum??

Please help. :(

Gutspiller 05-03-2002 08:49 PM

tubedogg can you help me with this hack, I am trying to run a few different versions on a page and I ran into a problem. It took me quite some time to troubleshoot it, but I narrowed it down to a single problem.

OK, the problem is that when you have two or more of this hack running on the same page, one of them works fine and the other shows the first thread that is in the forums you have marked for the hack to view. It only shows the one thread, but it repleats it however many times you set the hack to show how many threads.

I narrowed the problem down to the forum title option in the hack. When I turn it off so that it doesn't show the forum that the thread is in more than one version of this hack works fine on a page, but when you turn it on, on one of the hacks on the same page, it does what I mentioned above about repeating the same thread title over and over.

Can you (somebody) help me please? I really love this hack and use it a lot on my forum and if you or anybody could help me I would really really really appreciate it. :(

Thanks for any help you can provide.

Thanks.

ixian 05-10-2002 04:57 AM

First, thanks for a great hack! I got it working no problem on my non-vb home page (test site - hasn't gone live yet)

Second, a formatting question - What do I need to edit to "tighten up" the table? Specifically, it appears as if each link to the latest posts has a line break in between it, so that all the links look like this:

Forum: Thread

Forum: Thread

Forum: Thread

etc, etc. I would like the text spaced closer together, but I don't see where to edit this. It's not in last10config.php and I couldn't find anything in the actual last10.php script either. I'm sure it's flying right over my head.

BTW, playing with the font point size has no effect:)

Thank you for a great hack!

Sketch 05-10-2002 06:07 PM

Quote:

Originally posted by Oliver
we have this installed on a completly different server, when, as sometimes does our vb server goes down, so does the page on the other server. Is there a check that can be done before running last10.php to see if the vb server is up and running?

cheers
oli

Use the gethostbyname() function on your page prior to calling the top 10.

Sketch

ixian 05-10-2002 09:57 PM

Quote:

Originally posted by ixian
First, thanks for a great hack! I got it working no problem on my non-vb home page (test site - hasn't gone live yet)

Second, a formatting question - What do I need to edit to "tighten up" the table? Specifically, it appears as if each link to the latest posts has a line break in between it, so that all the links look like this:

Forum: Thread

Forum: Thread

Forum: Thread

etc, etc. I would like the text spaced closer together, but I don't see where to edit this. It's not in last10config.php and I couldn't find anything in the actual last10.php script either. I'm sure it's flying right over my head.

BTW, playing with the font point size has no effect:)

Thank you for a great hack!

NM, figured it out. For those with the same issue - "show icons" is set to 1 (on) by default. I discovered that even if the thread starter didn't choose an icon for the thread the last10.php script will still leave a space for one. Turn this option off and you get nice tight spacing:)

smleg 05-19-2002 02:48 PM

I just installed it and it's working well, great hack!

www.ramprage.com

Thanks! :beard:


All times are GMT. The time now is 07:17 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.05172 seconds
  • Memory Usage 1,754KB
  • 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
  • (6)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