![]() |
tubedogg:
Do you think that you could write this so that you could get the message that was posted included? Parker |
Whoa great man Thanks that's very useful!
Usually on your site you will have some chit-chat forums that you don't want to be displayed on the main page ;) Thanks a lot it's just what I needed! |
I have released a new version with Parker's suggestion and a couple other new features. It is version 0.1.0. Enjoy! :)
See the first post in this thread to download it. |
Great display of info about the hack, tubedogg. File info, instructions, screen shots, a .txt file for easy cut/paste, etc. We should make this a template of what all hack release threads should look like.
|
aw shucks. :) Thanks!
|
tubedogg:
I LOVE this hack. I added this to the last10.php file to parse the bbcode in the messages that are displayed. First off I added: require('./global.php'); then I changed $lastpost2 = $lastpost1[pagetext]; to $lastpost2 = bbcodeparse($lastpost1[pagetext]); and lastpostshort = $lastpost2; to $lastpostshort = bbcodeparse($lastpost2); This enables the vBcode to parse and show up in the displayed message. HTML (if you allow it) comes through just fine. Also, I found if you add the global.php require in the top10.php file you don't need to use the require("$path/config.php"); line. Thanks again for the great hack. Parker |
Quote:
Quote:
PHP Code:
PHP Code:
Quote:
Quote:
|
Quote:
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. |
Ah. I did not know that. Scrap that plan. Sorry guys! :) I won't be adding that to it after all.
|
Hmm... So if they are new members that just signed up on the board or they are just visiting and they aren't registered members they will get this error if they click on the link to this page, or what?
Parker |
All times are GMT. The time now is 04:11 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:
|