![]() |
I am having a problem with the topic icons. The hack is posting the wrong ones!
I don't know how to explain it, check out: http://www.juniorsailing.com/ I have the hack on the very bottom of the page. Look at the icons, then click on the forum name and look in the thread list...the icon is different?!?! |
How do we show the topic starter for each thread?
|
I think it's better to remove the "&goto=newpost" part for the thread url. Think it's better for the reader to start from the first post.
|
If it's the first time you connect, you go to the first post anyway (last post for you is the first post of the thread).
|
i have a question. When $showforumtitle = "1" in the last10config.php, and at the same time $includeforums = "3,4", it displays "can't select info".
If I leave $showforumtitle = "0" or $excludeforums and $includeforums blank, everything ok. Any idea? Another request: if i want to display the threads starter, threads start time (can be ordered by this?) and the massege of the threads' first post, would you plaese add these variables into your hack? Thanks again for the great hack. |
bbqfan: Do me a favor and download the zip file from the first post again. I have added mysql_error() so it will give the exact error. Run that and then let me know what exactly the error is. ("Can't select info" is a generic error I put in there when I first wrote it and never changed it.)
I'll look into those requests. |
Quote:
Edit: I just realized what the problem is and I'll post a fix in a minute. |
Here's a fix for the problem in the previous post.
In last10.php, find Code:
if ($postii != "0" && $postii != "") { Code:
$postii = $postii+1; Code:
if (($postii == "0" || $postii == "") && $threads[iconid] != "0" && $threads[iconid] != "") { Code:
$threads[iconid] = $threads[iconid]+1; |
tubedogg,
this time it display: MySQL reported this error while trying to retreive the info: Column: 'forumid' in where clause is ambiguous |
That I can fix very easily. :) I'll post the fix in a couple minutes.
|
:(
tubedogg, i have download your latest version release, but it still display: "MySQL reported this error while trying to retreive the info: Column: 'forumid' in where clause is ambiguous" and i didn't see any icons bug with the older version, but after i update to the lastest it display the wrong icons. thank you again. |
Sorry about the forumid thing. I missed one other place where it was. :o
The icon thing I took out since only one person had that problem and I'll look into why it's doing that again. |
wow! it works now! thank tubedogg!
and how about my 2nd question: "display the threads starter, threads start time (can be ordered by this?) and the massege of the threads' first post..." is it possible? thanks! |
thanks, it works proplerly now. I have a suggestion:
In the main file, I made this change: Code:
Code:
Just a little HTML trick you guys might want to try. |
I'm having problems when I tried to put a forumid into the $includeforums = "";
when putting in 7 (which is the ID of the wanted forum, it returns: Can't select info on top of table, and no content in table... any suggestions? |
Oystein: Please try downloading the newest version from the first post in this thread and tell me if you still have problems, and if so, what the error message is (it will give you a different message with the newest version if there is an error).
|
I did, and then it worked :-)
tnx |
Bless you dear man :)
I finally got what I wanted, a hint of the content of my private board on the main page. I used your script twice. Once to show the news and announcements forum, and once to show the most recent posts in the other forums. I also installed your who's online hack. http://www.epinionaddicts.com/ Finally, guests can peek at what we offer. Thank you agian. It was idiot proof. Amy |
You're most welcome. :)
|
Since you reply so quick.. one more question:
I tried to make a summary-page where I include your script for separate forums, like setting up one table for each forum. On top, I included the last10.php with results from all threads then a table with last10.php placed in a subfolder of the one above, and so on for 3 more includes. (I hope you understand what I mean) and now the bug question: I get the same config for all includes (the first include goes for all) instead of separate config for the separate includes. So instead of getting listed all forums in separate tables, I get lots of tables with the same content in every one. Strange? |
Try renaming each of the config files to something different, such as last10config1.php, last10config2.php, etc. Then, change the name of each of the last10 files to something unique, such as last101.php, last102.php, etc. Then in the last10 files, find
require("last10config.php"); and change it to the unique name for each file. So in the last101.php file, you'd change it to require("last10config1.php"); etc. |
Hi tubedogg,
your hack works great for me, thx... and i have added these: so it will display the full vb code...:):) ok i give up...:mad: :mad: :mad: plx see the attached file...you can find it in the next post... |
that didn't come out very well, please try again.. I'd like to do what you did, but I can't follow it!
|
vbcode in this hack...
|
I am not by any means an HTML guru, but I do have the last 10 wittled down to the size I want at www.mhogaming.com/vb/recent/last10.php so that it will fit in the left hand column at www.mhogaming.com, problem is, I cannot discern from the directions how to include this file into a regular index.htm. I've looked at some of the example sites, but I actually see html table code. Are we supposed to code the table manually?
Gawd, am I confused... (okay, I hear the snickering now) :p |
You need to use an SSI or "server side include". The code would look like this:
<!--#include virtual="/forums/online.php"--> Substitute what's in the paretheses for the path to the file and the name of the file you're trying to "include" in the html document. Also, make sure that your hosting provider allows the use of server side includes. Some will and some won't. Some will allow you to embed the include right into the html document. Others will make you change the file designation from html to shtml. Good luck! |
Quote:
I host my web pages via IIS, but I do not see anyway to allow SSI. I'm guessing then I might just be out o' luck? Didn't think I was this lost... :o |
yes, that is the exact code including the <! > I don't know anything about your hosting provider. Try embedding an include and see what happens or just contact them and ask.
|
Whoa... I did an include statement as suggested and this is what I get
www.mhogaming.com/test.shtm Looks like it's including the file, but then not parsing the PHP code once it does? I am running IIS 5.0 and see where the shtm extension invokes the ssiinc.dll, but then the included file "last10.php" seems to confuse it. Anyone running this combo? |
If it's not a huge deal to you what your main page is named, I would rename it index.php. That way you can do a PHP include and it'll work all nice. :)
PHP include example: PHP Code:
|
Nothing like showing my lack of technical abilities in a public venue...
Quote:
Yes, I am using FP.... :( Thanks for everyone's help... |
I would be careful doing this. If you have registered your site with a lot of search engines and you have users that have bookmarked the index page of your site, as soon as you change the file extension to .php, you just broke all the links at all the search engines as well as any users that have bookmarked your site. If you're not registered with that many search engines, then I would be too concerned about it. Keep this in mind.
|
Yeah, I was thinking about that, too...
There has got to be a reason why my normal include statement is not working right. So everyone that has this hack working, I'm assuming their running it on some Unix-based web server, or they are just including from a PHP-parsed page? Seems like I'm just overlooking something little here, but maybe it's not meant to be for me on my main page, lol. Tubedogg (or anyone for that matter), have you tried the include statement on a non PHP-parsed page (shtm, etc) and if so, what web server was the provider running? Good thing I don't smoke, this would have thrown me over the two pack a day threshold. :confused: |
This may not make a difference, but try renaming the file to .shtml instead of .shtm
Did you try embedding the include in a regular .html document? If you have AOL Instant Messenger, log on. My screen name is CorvetteAC and I'll try and help you through it. It's a little easier than going back and forth on here. |
Thanks again RobAC for your help...
Okay we figured it is boiling down to a server config issue. I host my own pages on IIS5 and PHP 4.0.4 running as an ISAPI filter on the site. My shtm docs invoke the ssiinc.dll properly, but then as you see from the link above, my test.shtm throws out a bunch of unparsed PHP code. Short of changing my default doc to a PHP doc, or not running this hack, I wanted to see if there were any IIS gurus out there. Thanks again! (I seem to be the Win32 guinea pig around here for some reason :) ) |
Quote:
Here's what I would do. Rename it to index.php, and then make index.html a page with a meta refresh tag saying "please wait" and then it auto-refreshes (with a link for those whose browsers' suck). That way the page still works, and you can still use a php page. Also, I would imagine most of your visitors typed in (and bookmarked) mysite.com and not mysite.com/index.html. Just a thought. ;) |
Kevin,
That's a great idea. It would be a great fix until he can figure out the root cause of why it won't parse the PHP code when the extension is changed. |
Well, I've employed the help of some of my more technical buddies, but I think that the way I'm doing the web layout, I'm out of luck with this hack.
Reason being, I'd hate to redo all the FrontPage hooks just to rename the page php. Until I can figure out why the PHP wont parse in the include statement, I'll have to do without this cool hack. Thanks for your help Rob and Kevin! |
In last10.php.
Where can I edit out so that the header does not show? http://www.df-nation.com/solidline/see.jpg I tried a few things and keep getting parse errors. Thanks in advance, and very nice work. |
Nevermind. I figured it out. lol I have to stop doing this, and wait a little longer cause it always ends up being done by me anyways.
|
All times are GMT. The time now is 11:01 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:
|