![]() |
Sorry - forgot the IE p ic:
|
Quote:
www.swzone.org/main_home.php It works but gives out many errors. And I don't know how to solve it. |
Rostor,
I, too, was getting your exact same error. I went round and round for days wondering what the heck was going on in my little NT world. :( I have found that IIS appears to have problems with filtering or parsing included files. The IIS include is looking for a txt or HTML file, and thus I could not get it working with a plain SHTM(L) include statement. What I did as a work around, is I set up my SHTM pages to be parsed by the PHP Isapi filter versus the ssinc.dll that is default. Basically my homepage is now PHP parsed, but still mostly HTML-based. Have I confused you yet? :) Now that my page is PHP-parsed, I can just just the standard <? include("last10.php"); ?> statement in my code and everything works fine. I was a bit nervous about doing this as I wondered if any of my FP extensions would not function, but all seems to working well. (knock on wood) You can view how I implemented the hack on my site at www.mhogaming.com Hope that helps... -Brian |
Kevin and Steve,
I am having the same problem on Netscape 4.7 with the overlapping of the end of the thread title at www.citysailor.com I removed the <nobr> tags, but it did not help. A guess a Kludgy solution might be to specifically limit the number of letters printed, depending on the space allocated. [By the way, if anyone reading this knows how to make the background image on Netscape just x-repeat, instead of repeating down the whole page, please let me know] |
First of all- I would like to thank tubedogg for ths wonderful hack! It is a great traffic builder! Thanks tubedogg!
Now on to my (stupid) concern: I don't know a thing about "Parsed", never heard of the term. But I WAS able to follow the "Last XX Post" instructions up until the point of having the "last10.php" work :) . The problem I am having is incorperating this into some sort of HTML (or similar) document. How EXACTLY is this accomplished? Thanks in advance... |
Hi Jarvis thx for your help but i take a different way to solve the problem :)
Last Week I bought 2 books about PHP and started to study it !!! After 3 days i make little modify to lastXX so now the hack works fine with IIS5. First: In the lastxxconfig.php file I add this lines: // by rostor $counter = ""; // fine inserimento rostor So a problem with undefined constant has been solved. Second: In the lastxx.php I defined this line with " " :) // if the title is more than $len characters, we need to cut it off and add ... to the end if (strlen($threads["title"]) > $len) { $title = substr($threads["title"],0,$len); $title .= "..."; } else { $title = $threads["title"]; } // convert the date to a format readable by non-unix geeks :) $fd = date($fdt,$threads["lastpost"]); That's All |
Has anyone else included this hack into a non VB page (HTML document) and then looked at it in Netscat? It's not pretty.....and this particular line of code really confuses me...:
PHP Code:
|
Yep - this doesn't look good in Netscape 4.7x at all. I wish I knew how to fix the HTML so it works with NS as well.
|
I wish I knew how to put it in HTML period! Can't anyone help me with this?
|
try changing the name of your file to .shtml from .html and put this code in where you want the last 10 to show up on your page:
Your choice of <!--#include virtual="last10/last10.php"--> or <!--#include file="last10/last10.php"--> If folder your.shtml file is in is not above the last10 folder in your directory, you need to do "../last10/last10.php" instead (note the "../" ) That tells it to look up one folder before looking down for the last10 folder . |
You want to introduce the information from a forum in other pages?
Whether more easy to create 1 ( one) file in $bburl the catalogue, to get access to all functions and to use them? Introduction then should look as PHP Code:
PHP Code:
PHP Code:
Laziness to write footer and other functions? We add in our file of a line PHP Code:
For introduction of your example (the last 5 sent) the following PHP Code:
PHP Code:
|
Great script!
Having some problems to have the script to correct for the time difference between the server time and my local time. How can this be set? Sorry for the posting in the wrong forum earlier. |
I'd also appreciate a way to fix the time difference problem between the server and local client.
Thanks |
Dr. tubedogg!
Thank you for writing this great script :) Like a knife through hot butter Edit: New url: http://66.33.83.213/last_25_posts.html :) |
Quote:
|
Steve,
Your site is showing up fine on Netscape 4.7. My site (see above) isn't. I am not sure if that is because I fixed the width to a certain number of pixels, because I am including the number of views and replies and you are not, or for some other reason. Did you do try anything specially to make it work on Netscape? |
Mucho thanks for the look see :)
I haven't touched the code yet but will :) I have to wait till George is sleeping :) I just changed some settings and ran some tests: All of these look/work fine IE 5 IE 5.5 N 4.75 N 6.01 New link: http://66.33.83.213/last_25_posts.html BTW, I just read every post in this thread. After I name my next born child "tubedogg" I have another thought. The "Community Spirit" in this thread is really outstanding. My thnaks to others for the great comments. Especially the tips on creating another variable via phpinclude :) My Best :) |
Woohoo! Thanks tubedogg. Awsome hack!
|
How would you get it to link to a different server. I have my forums on one server and want this on my main site which is on a different server.
|
Quote:
|
Help, please?
|
I run a VERY high traffic site. I love the idea of including recent content from my message boards on my homepage.
However, running another query to the DB can be a system resource "eater." Has anyone thought of creating a version of this hack that would query ever "X" minutes and write the results to a txt file? This way, the same effect is achieved (basically), and connections to the database is reduced. Give me your thoughts. If enough people are interested, I may look into doing it (with my limited skillset). Thanks, *b* |
Hi,
I really like the script - Thanks. However, when mySQL is down it can bring normal page loading to a standstill - If there anything that I could add which would only exectue the script if mySQL was working ok. Thanks in advance. |
Tubedogg,
your script is, um, really nice. :D I am concerned that I cannot change the font size/color, or type. It just doesn't show any changes in Netscape 4.7 for mac and minumal changes in IE (cannot change font color, but can change font size and type in IE) Is there some solution for this? Otherwise, it is a really cool script, and I'd really like to use it. |
Kevin,
I configured everything and followed your instructions, but I couldn't get it to work. When I used <!--#include file="/community/boards/admin/last10.php"-->, it said "there has been an error in processing this directive". So I tried <!--#include virtual="/community/boards/admin/last10.php"--> and it says: Quote:
|
Where are you actually calling it from? Like what directory does it reside in? The admin directory?
Assuming yes, you should leave $path blank since config.php is in the same directory. |
Yes, both .php files are in the /admin folder, with the config.php file. What do I need to do?
|
Just set
$path=""; in last10config.php. :) |
Maybe we misunderstood each other, but it didn't work:
Code:
Fatal error: Failed opening required '/config.php' in /home/mjames86/sports-central-www/community/boards/admin/last10.php on line 13 |
tubedogg and all,
This is a marvelous hack and works like a charm :) Thank you. Maybe I missed it in this long thread. Could this script be modified to insert topics/threads and such on another server? My vB is on one dedicated server and I would like to use this script to insert topics/threads on my other site which is on another dedicated server? I don't want to be a mooch so if you would prefer to do this for money I understand and respect that. Just email me with a quote. Natch, their would be a performance/load hit but I can live with that. |
Tubedogg,
great hack!! I finally got it to work. (was having netscape troubles, but it seems to be cool now.) I do have a question/suggestion. I noticed that you gave us the option of having the table header color be different than the alt 1 and alt 2 columns. I changed the text in the table header be a different color than the text within the rest of the table. I defined another variable in last10config.php: $htc = "#FFFFFF";// head text color Then in last10.php I simply changed the font color (for the header fonts to: color:$htc; worked like a charm. Thanks Kevin. :) p.s. I also changed (in last10.php) $fs .= "pt"; $hfs .= "pt"; to $fs .= "px"; $hfs .= "px"; so it works better in netscape. :) |
Ok, I tested this and it worked great (see above post) and when I went to put it into my home page, I go a weird output (like it isn't reading the font tags)
Here is the page (it is a test page) http://www.curvemag.com/index2.html What happens is that if I put the include in the right hand column, it doesn't work properly, but anywhere else on the page, it works great. p.s. it "works" in both places, just the styles don't work in the right hand column. The text in question says: "Join the conversation thread one thread two thread three" (I changed some of the language to suit our site.) Can anyone explain what is wrong in my html that is making this happen in the right hand column? Please? :) |
Just to let whoever is interested know: for whatever reason, it was stuff about the column that effected this formatting problem.
<td valign="top" height="215" width="147"> The column was defined with a width of 147, which the script didn't like. It output weird formatting of the text in Netscape on a mac. Eventually, I figured out a solution, weird as it may be - was to change the width attribute by a few numbers, and it worked. I had tried this also on another page, and the wisth of 147 was the problem. Perhaps the numbers didn't add up... I donno. It's a weird thing, but it is now solved, by using: <td valign="top" height="215" width="150"> That in combination with removing a <nobr> in line 226 of last10.php fixed it. :) |
I've been trying for short while today to get this script working using the <!--#include file="last10.php"--> call from within an SSI file on Windows 2000 Server / IIS 5. All this does is inserts the text of the last10.php script directly into the SSI file, instead of parsing the php script first. I read this entire thread looking for a solution to this, but only found that other people using Win2k / IIS5 were having similar problems.
I did finally figure it out, though. This is what worked for me, instead of using <!--#include file="last10.php"--> to call the script I'm using <!--#exec cgi="last10.php"--> & it is working fine now. Tubedog, I haven't had a chance to really play around with this script but it does look like it will be very useful - thanks in advance! You may also want to add a note for Win2k / IIS 5 users in your installation directions about the <!--#exec cgi="last10.php"--> command as there seems to be a number of other people who have this similar problem. Best, - John |
It's great dude.. easy to setup.
Only problem is.. sometimes people might want a different text colour for the heading.. may I suggest a heading text colour param. That and a cellspacing one, because... I didn't want a HUGE gap between my posts and had to edit the last10.php file. So yes, thanks heaps... mine's at http://www.buffydownunder.com Cheers. |
Well, I am reinstalling this hack since i recently upgraded.
I am going to be using this hack on its own page, rather than included in a small portion of an existing page. Can anyone tell me how to get this to utilize a users chosen style set? |
Hi,
There is what i got when i enter last10.php... Warning: Unable to access /config.php in /last10.php on line 13 Warning: Failed opening '/config.php' for inclusion (include_path='.') in /last10.php on line 13 Fatal error: Failed opening required '/config.php' (include_path='.') in /last10.php on line 13 What do i have to do ?? Plz Help me Thx in Advance |
thanks Kevin for this hack
I hope I'm not too late to get an answer for my question anyway this is what I'm looking for how can I show only one thread from the forums I included .................................................. . the problem I'm facing is I included 10 forums and my $maxthreads is set at 10 one of the forums is the most active forum I get 7 threads from that forum only where I want a thread from each forum and thanks in advance :) |
awesome hack!
one question tho - when a user have included a smilie they dont show up.. im just getting the "X".. this is how the url to the image looks: Code:
http://www.mysite.com/forum/http://www.mysite.com/forum/images/smilies/up.gif also if possible - how do i make the links open up in a new window?? ive got the script in an iframe... any ideas?? |
I installed the last10.php easily and it works. But, there seems to be a problem when an unregistered user posts a reply to a new discussion.
When the new thread has been submitted, it appears on the front page. When an unregistered user replies to that thread, then the link disappears from the front page. Using it on this site : http://www.bbfc.org.uk/ Regards, Jamie. |
All times are GMT. The time now is 11:58 AM. |
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:
|