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)

pdatoon 01-14-2002 02:33 PM

Hi Guys,

Do you know how it can be used to make some syndication?
I want other sites to display that info.

Steve Machol 01-14-2002 02:34 PM

There is a syndicated news hack somewhere in these forums. I use it on my site and it works great. Search for 'syndicated news'.

Gutspiller 01-16-2002 05:17 PM

Does this hack work on other urls too? Or does it only work on one url? Is there a way to make it work on two urls, but one forum?

Gutspiller 01-18-2002 04:55 PM

If the thread is multiple pages, it still only links to page 1 of the thread. Is it possible to get it to link to the last page of the thread so they don't think the system is screwed up? If this could be changed it would really help me out.

I would really appreciate it if this modification could be made. :)

discussfitness 01-27-2002 09:06 PM

Is there anyway of displaying the "last x" posts on another domain and on a .html page? Maybe there is some javascript that you could use? Please help.

LanciaStratos 01-28-2002 02:00 AM

Well, is there any way I can use this on another site? My forums are at http://forums.gtplanet.net, but I want to show the last 10 threads on my homepage, http://www.gtplanet.net. I've tried all kinds of little tricks, but none of them work. Can anyone help?

Lionel 01-28-2002 06:02 AM

Quote:

Originally posted by LanciaStratos
Well, is there any way I can use this on another site? My forums are at http://forums.gtplanet.net, but I want to show the last 10 threads on my homepage, http://www.gtplanet.net. I've tried all kinds of little tricks, but none of them work. Can anyone help?
have you tried that:

<?
$fd= fread(fopen("http://www.site.com/forum/page.php", "r"), 100000);
if ($fd)
echo $code;
?>

this code grabs any info from any site and can be used with a starting point and an end point, making you grab only what you need, but I don't think that you need that in your case. My experience with that, it slows things down a bit, because it has to go and read from another site.

Gutspiller 01-28-2002 04:51 PM

Can you please make it so that if the thread is two pages, that the link links to the second page, instead of the first? Great hack Tube. If you want to see how I modified it, check out this link:

http://www.theforumz.com/forumz/show...=&postid=47239

-=dm=- 01-28-2002 07:39 PM

Hi
I runing postnuke on my server can I also use this hack?

thanx for any information:)

LanciaStratos 01-28-2002 10:44 PM

Quote:

Originally posted by Lionel


have you tried that:

<?
$fd= fread(fopen("http://www.site.com/forum/page.php", "r"), 100000);
if ($fd)
echo $code;
?>

this code grabs any info from any site and can be used with a starting point and an end point, making you grab only what you need, but I don't think that you need that in your case. My experience with that, it slows things down a bit, because it has to go and read from another site.

Thanks Lionel, but I'm using SSI. :( Is there still some way I can do this?

newvbuser 01-29-2002 01:02 PM

Hi I want a simple listing in a table that is 25 rows and 2 columns wide, with each topic occupying one row (topic title, with link to it in like this:

<a href="titlelinkhtml">title topic name</a>,

so 25 topics per column as follows:

. Topic 1 . Topic2
. Topic 3 . Topic 4
. Topic 5 . Topic 6
. Topic 7 . Topic 8
. Topic 9 . Topic 10
.... upto Topic 50
And so on.....25 rows, 2 columns. How the format of the table looks (width etc.) should be customizable hopefully.

It is hard for me to draw the table but I guess you guys get the idea (or so I hope!).

The hack seems to draw up one huge table one column wide and XX rows long?

Is there any way to modify this hack to display the table in 2 columns, and to be able to use style sheet being used in that non-vb page..? UBB 5.x had a very simple active thread hack that worked great and displayed a great looking table.

-=dm=- 01-29-2002 02:12 PM

Im getting this error can someone plse help?
Im using it with postnuke.

Warning: Unable to access /forums/admin/config.php in /web/www.mydomain.dk/portal/last10.php on line 13

Fatal error: Failed opening required '/forums/admin/config.php' (include_path='.:/usr/local/lib/php') in /web/www.mydomain.dk/portal/last10.php on line 13

FWC 01-29-2002 04:35 PM

Quote:

Originally posted by -=dm=-
Im getting this error can someone plse help?
Im using it with postnuke.

Warning: Unable to access /forums/admin/config.php in /web/www.mydomain.dk/portal/last10.php on line 13

Fatal error: Failed opening required '/forums/admin/config.php' (include_path='.:/usr/local/lib/php') in /web/www.mydomain.dk/portal/last10.php on line 13

You need to put last10.php in your web root below your forums directory. Or you need to supply the entire path to config.php if you want to put it in your portal directory. In last10config you would put something along the lines of /web/www.mydomain.dk/forums/admin as the path to you config.php file. You'll have to experiment if you don't want keep last10.php in the web root.

-=dm=- 01-29-2002 07:05 PM

all postnuke files are in root
and I have a dir called "forums"

last10.php--->forum root right?
last10config---> in root(my server) right?

and in which file should add this?(in post nuke)
include("last10.php"); ?>

thanx in advance
dm

-=dm=- 01-30-2002 12:13 AM

ok done:)

now I have another question.
I want the Lastxxx in the center Block how can I activate this?

FWC 01-30-2002 01:54 AM

Quote:

Originally posted by -=dm=-
ok done:)

now I have another question.
I want the Lastxxx in the center Block how can I activate this?

Put <? include("last10.php"); ?> where you want it in the center block.

-=dm=- 01-30-2002 02:41 AM

hmm I got error when I put this code.
everything working fine but I really need this last touch:)

and then Im a happy guy hehe

Action-N 01-30-2002 04:02 AM

Hey Guys, I use Post Nuke and tried inserting it into the post nuke code. Well I got errors, it took awhile to get it to work and even then it wasn't right. What I determined was when this hack opens the MySQL connection to the vBulletin database it's then left open and Post Nuke then tries to query the wrong database. Even though I tried closing the vB connection it still showed PN trying to access it. So bottom line, it won't work if you run a website that already has a MySQL database.

Want to know my solution to the problem? I simple downloaded my vB database data & structure and added it to my Post Nuke database. This is killing my page load times when working with the database, but I get so much out of this merge it's worth it.

FWC 01-30-2002 04:04 AM

Quote:

Originally posted by -=dm=-
hmm I got error when I put this code.
everything working fine but I really need this last touch:)

and then Im a happy guy hehe

My bad, you need to put the complete path to the file if it's not in the same directory. So it would be <? include("/web/www.mydomain.dk/portal/last10.php") ?> if it's still where it was before.

newvbuser 01-30-2002 02:44 PM

Hi could anyone please help me modify this hack so that it displays a 2 column table instead of a 1 column table? Thanks!

newvbuser 01-30-2002 05:38 PM

Anyone want to help with this 2 column mod to this hack? :confused:

TurboFC3S 01-30-2002 06:22 PM

Man ... I get a headache trying to read this thread. I tried to read it, but am totally confused.

newvbuser 01-31-2002 05:49 PM

Bump

Mireade 01-31-2002 09:28 PM

Hello,
I did install your hack on my site and it works very good. Thank you for that !

my site

I have a question:
I noticed that new threads appear on the non vB pages BEFORE they are moderated on moderated forums... So someone (an "evil" one ;-) could bypass the authorization and pollute the home page of my site...

I wonder if you had already this issue and if something could be done for that.

FWC 01-31-2002 10:23 PM

Quote:

Originally posted by Mireade
I wonder if you had already this issue and if something could be done for that.
Find this line in last10.php:
Code:

$query0 = "SELECT pagetext,postid,dateline,iconid FROM post WHERE threadid='$threads[threadid]' ORDER BY dateline DESC LIMIT 1";
Add AND visible='1' just before ORDER BY. That should do the trick.

Mireade 01-31-2002 10:49 PM

Hi !
Thanks for the quick answer ! :)

I tried to do that but an not moderate message appears though...

:stupid:

the line is like that now:

Quote:

$query0 = "SELECT pagetext,postid,dateline,iconid FROM post WHERE threadid='$threads[threadid]' AND visible='1' ORDER BY dateline DESC LIMIT 1";

newvbuser 02-01-2002 10:53 AM

Anyone want to modify this hack so that it displays a 2 column table instead of one ? :(

Lionel 02-02-2002 11:36 AM

This is a great hack. I have been enjoying it from day 1. Can $showicon be modified to show a thumb image of an attachment instead? The thumb image will be generated at upload with the prefix tn_

-=dm=- 02-02-2002 02:16 PM

is there anyway I can fix the size?(so its non resizeable)
it working fine but it just pushing my blocks away:(

newvbuser 02-04-2002 01:30 PM

Hi tubedogg, I have your last10.php file of your nice Last XX topics in non-vb page. Since you are quite busy, I am trying to figure out how to display 2 columns instead of 1 for the lastXX active topics myself.

Could you please tell me where (or what counter) you are updating the counter to increment the while loop you are using in the last10.php display threads code? Is it an array of XX number of topics?? I am completely clueless about PHP or coding but I am trying to figure out things.

Anyone else want to tell me what the counter is in this while loop that is incrementing till 25? I saw the while condition but it makes no sense :confused:

Your help would be appreciated a lot!

Mireade 02-06-2002 01:34 PM

Hello Tubedog ?
Hello FWC ?
I come back with my same question .:cry:

Is there any way to stop displaying unmoderated messages on non vB pages through your so good hack. ?

I tried the solution suggested by FWC but it did not work...

Help !!

mondaynightmike 02-13-2002 01:07 PM

Hello, i have downloaded and installed tha hack, i have read all the pages yet i am still struggling to exclude the Admin and Mods forum from being displayed. I rolled over the link and it said forum id 29 so i tried it and it does not work.

Can anyone help????

mondaynightmike 02-13-2002 01:10 PM

Its ok i have got it working now. I was uploading it to the wrong directory. Thanks, and great hack :)

Tungsten 02-14-2002 04:48 PM

Got it working here (www.tennesspeed.net) and made a few slight changes to the code. Excellent hack, Tubedogg!

Rick 02-17-2002 04:01 AM

WOW... My eyes are tired. I read through all 21 pages... saw my problem mentioned about 4 times by different people and no one ever replied as to hos to fix it, unless I missed it.

Here it is again:

Fatal error: Failed opening required '/admin/config.php' (include_path='.:/usr/local/lib/php') in /home/virtual/rickhz/home/httpd/html/forums/last10.php on line 13

lastpost10 is in the forums directory.

Here is my path to admin:
$path = "/admin";

Does anyone have any ideas what I can do to make this work?

Thanks,
Rick

Rick 02-17-2002 04:27 AM

Ok got it going I had to do this:

// let's get connected
require("last10config.php");
$servername = "localhost";
$dbusername = "dbusername";
$dbpassword = "dbpassword";
$dbname = "dbname";

In the last10.php file. I saw that on page 2 or 3 of this thread.

Rick 02-17-2002 05:25 AM

Have you guys seen how this lays out in Netscape? The text lays over itself. I had to disable the show messages option.

Since mine is disabled use this as an example:
http://www.hometheaterforum.com/htforum/active.php
Parkers does the same thing.

I'm running NS 4.76.

Rick 02-17-2002 05:45 AM

Solved this one too... somewhat. I removed the <nobr></nobr> as someone had mentioned. Trouble is in Netscape the tables still don't look right. Here's a link to my attempt at this...
http://www.explorerforum.com/forums/active.php

Rick 02-19-2002 11:54 PM

Anyway to make it so the user can choose between going to the first post and the most recent post in a thread??

newvbuser 02-23-2002 10:25 AM

Any probs if I change the code:

$url/showthread.php?threadid=$threads[threadid]&goto=newpost\">

to

$url/showthread.php?threadid=$threads[threadid]

So that the first post of the thread is shown instead of last?


All times are GMT. The time now is 03:57 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.01725 seconds
  • Memory Usage 1,826KB
  • 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
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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