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)

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!


All times are GMT. The time now is 05:10 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.01612 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)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