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)

sabret00the 10-15-2003 12:46 PM

sorry i figured it out, it was bad html in the hack :)

theirs <nobr></nobr> tags which feck it up :)

ChevyRacing24 11-05-2003 08:47 PM

Will this hack work with the new vBulletin?

dennx 12-03-2003 05:27 AM

I'm having problems including the hack into an included page.. make sense? Homepage > include page with <? include("../last10.php"); ?> to last10.php.

Is this a prob? The hack works perfectly fine when pointing the browser to last10.php.

dennx 12-03-2003 05:41 AM

I get this error when using the include stated above...
Parse error: parse error in /var/www/html/global/last10.php on line 189

SVTBlackLight01 12-03-2003 10:36 AM

Quote:

Originally Posted by dontpanic
Is there some way that this hack can be modified such that users who do not permissions to see a post normally cannot see them via this hack?

As an example. I have forums for my moderators that registered users cannot see. On the page this hack produces, they can see the threads...but obviously not access them. I am looking to filter the threads to remove them from displaying on this list based on user group.

Make sense?

Thanks and great hack!

Oh yeah..if I missed this somewhere in the last 31 pages, sorry! :)

The easiest way to do what you want is to add the ID of those forums to $includeforums in the last10config. That way it won't display any posts from those forums.

dontpanic 12-03-2003 11:01 PM

Thats what I ended up doing some time ago...was just curious to see if it could be done using the default forums permissions like Teck's archive hacks did. It's all good.

hockyfan 12-09-2003 03:33 AM

Will this hack work for a non vB page on a different site (ie., can a show threads from my forum on a different website)? If not, is there another way I can do it?

h

stark427 12-09-2003 03:23 PM

My main page is HTML (as you can see by viewing the source) but it has a .php extension.

http://www.synthpopavenue.gr/

The last10.php page work perfectly (except the wrong time)

http://www.synthpopavenue.gr/last10.php

but I cannot seem to be able to include it into the main page.

I have tried all the following:

Code:

            <?php require("last10.php");?>
            <?php include("last10.php");?>
            <!--#include file="last10.php"-->
            <!--#require file="last10.php"-->
            <!--#include virtual="last10.php"-->
            <!--#require virtual="last10.php"-->
            <?php
            include ('./last10.php');
            ?>
            <?php
            include ('http://www.synthpopavenue.gr/last10.php');
            ?>

but nothing seems to work :(
it just doesn't show up

any ideas?

thanx in advance

Gutspiller 01-06-2004 04:20 AM

Quote:

Parker,

I like your additions, but they only work if the person viewing the page has already visited your forum in the past. If they have not they get the dreaded error:

Warning: Cannot add header information - headers already sent by (output started at /usr/local/etc/httpd/htdocs/sbw/forum/last10.php:2)
in /usr/local/etc/httpd/htdocs/sbw/forum/admin/functions.php on line 1090

I like Tube's hack, but until it parses VBCode without the error above for new users I don't think a lot of people will be able to use it.
Does this hack now parse vbcode and HTMl (if enabled)? I added it a long time ago and am trying a new way of doing things and telling the hack to display the thread contents, but it doesn't parse html links when I use the vbcode tag button. Also, does it by default only show the first thread or will it begin to show the text of the first comments to the thread? I just want it to show all of the first thread and parse it the way it looks in the forum, but not to show any text from inside the comments. Can somebody please let me know if that's how the current version of this hack is working, or help me tweak it so that it can work that way? I would be very greatful and I have some cool news posting ideas for this hack.

Thank you!

mcahill 01-06-2004 03:00 PM

I have it running on my site and the only thing that needed to be changed to make it work was the location of the config file in the last10config.php folder must be switched to include/config.php or something like that.

Totally awesome. I'd budgeted 4 hours to get this hack working again, and it took 4 minutes.


All times are GMT. The time now is 04:48 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.01348 seconds
  • Memory Usage 1,746KB
  • 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
  • (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