![]() |
Much like a few others have mentioned above, it appears as if the code for outputting the time is wrong. My server off-set is -1 hour and the time for posts is correct on my forum, yet on the output for this script it's +1 hour?
I can't change this because strangely the code for time 'appears' to be called from the forum, which ironically tells the correct time. Also, how do you separate the time and date output? The time is wrong so I just want to display the date. |
Okay, the hack has been running fine for 3 months and was working fine last evening. Now it is not working at all and is throwing a blank screen.
I'm checking with the host to see if they've made any changes to PHP.ini or changed versions or anything like that. Can anyone point me at a possible reason for the blank page problem? Problem resolved: The ISP updated PHP without telling me...had to make a change to some of the other code on the page to deal with globals turned off. |
When I bring the php include tag into my index.php file I get the following error message:
Can't Select Database What's up with that? Help |
Quote:
Tried this and got the same error indicating that it Cannot Select Database. :ermm: |
I know they just released vb3 beta, does anyone know if this hack will work with that version? I just laid out my home page with this hack and really don't want to have to change it if it doesn't work, for now anyway. Thanks.
|
Quote:
|
Cannot seem to get it to login to the db.
|
Quote:
|
I setup my Last10 up a few months ago and it was working very smoothly... However, recently, it just suddenly stopped working! I have it set as a template (the $last10 in the templates) and it keeps showing me the top 5 messages from a month ago (when there have been new posts made!).
When I execute last10.php, I get this message: MySQL reported this error while trying to retreive the info: No Database Selected Thanks for any help! |
Does anyone know what this error means?
Warning: main(): stream does not support seeking in /home/*****/public_html/last10.php on line 13 It just started showing up. |
oh thank god!! i finally got this to work! thanks!
|
Love this hack!
Wouldn't it be rather simple to make this a template? This may have been suggested, but I didn't read all 20 pages of the thread (first three or four and the last three or four and didn't see it). I would think as a template you wouldn't need to deal with the colors as it would get them from the db like every other page (and would be style specific too). In terms of functionality, kudos. This is really a great hack. |
I've configured last10 and it works great, but I now I want to have a page that looks just like the main forum page, but with the last10 output in place of the forum listings in the "<!-- main -->" section of the templete. I don't wan't to REPLACE my main forum page, however. I created a new templet called last10 and pasted that contents of the forum_home templet into it, replacing the forum listings with a call to last10.php.
My question is... how do I access this new templet from a url? Great hack, btw. |
I am a little confused here. I am totally new to PHP and I am wanting to use this on my sites mainpage which is non VB. My mainpage is www.vorspann.net I want to put in in the left vertical nav bar under the "Recent Discussions" cell and I did everything as it says in the readme file and I cant figure out why it wont work. Since I am using dreamweaver do I have to put a PHP include in the HTML where I want the table to appear or what? Also when I am setting up the config since my main index page is not in a folder would I just want the address to be http://www.vorspann.net/index.php?
Im lost |
Is there a tweak that can be made that will allow you to enter a parent forum you want to include and it correspondingly will show all posts in the sub-forums of that parent?
I have over a hundred sub-forums I'd like to include and I cringe at having to write in all their numbers... |
more importantly... is it possible to have a link that goes to the top of the forum as well as the the "...goto=newpost"?
|
Instead of showing the last threads, could we instead show the last posts...even if there are multiple posts in a single thread? I think this would be a cool change.
|
Why is it that this hack displays a error saying... Can not access database as Chris Jumonville@localhost using password: NO. This must mean it is not using my password at all but I know I have entered the right user name and password in the config.php file. I have two mysql users one is my name with no password and the other is my name with a password. When I try the name without a password it works. Its like this thing wont take my password... Why?
Thanks Chris |
Can this hack work with Version 3?
Is there any Last XX Posts on non-vB page hack for version 3? |
Very serious question here... How can I set this up if my forums are at forums.vorspann.net and my mainpage is at www.vorspann.net?
Thanks Chris |
Yeah I'd like this to work with vB3 as well, I changed the path to config.php all I get is this error message:
Quote:
|
Works a treat with vb3... just adjust the variables to point to the correct paths.
|
That doesn't help =), I've already done that - hence the above error even appearing in the first place. Can you attach your version or explain EXACTLY what you changed?
|
Ah, found the problem! It's because I'm using a prefix ($tableprefix) of 'vb3_' in the database. You have to change all the query and table calls to thus include 'vb3_' before them.
I'm not quite sure how to add '$tableprefix' before each call without it merging into one line and confusing things. Otherwise it needs to be done manually, which is a pain. |
To solve the prefix problem...
Try this (I am not where I can test the script... but it should work without any problems) All it does is add $tableprefix before each table name in the From clause of each sql statement. * edit - Like the true doofus I am... I did this and then read your post again... which clearly points out that you know all of this... but it should also point out where you were having problems ;) * For example.... PHP Code:
PHP Code:
open last10.php find PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
toodles |
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! :) |
Hi, thanksd for the hack - exactly what I was looking for
One request - is it possible to not display 'Thread title' in the table? My site have a graphic above the forum links so this extra text is redundant. It has probably been answered somewhere in the thread but there's alot of stuff to plough through there! Here's an illustration of what I mean, rhs of the page... http://www.ripnet-uk.com TIA for any help |
everytime i try and work with this hack, i get this, someone please help me
LAST10CONFIG PHP Code:
PHP Code:
|
still in need of dyer help with this :happysad:
|
Perhaps if you explained exactly what your problem is?
|
sorry i figured it out, it was bad html in the hack :)
theirs <nobr></nobr> tags which feck it up :) |
Will this hack work with the new vBulletin?
|
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. |
I get this error when using the include stated above...
Parse error: parse error in /var/www/html/global/last10.php on line 189 |
Quote:
|
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.
|
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 |
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");?> it just doesn't show up any ideas? thanx in advance |
Quote:
Thank you! |
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 07:55 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|