![]() |
|
Ok,
I see if you go to that page directly what you are talking about. I doubt that anyone would go to the page directly like this so............. Again, thanks for the heads up. Parker |
Quote:
|
fahad,
You must use the exclude forums variable for any forums which you wish to exclude. Find the ID number of the forum. (Go to your main forums page (index.php) and roll your mouse over the link of the forum you wish to exclude. In the status bar at the bottom, look for forumid= and then make a note of that number.) Then, edit the last10config.php file, and find where it says PHP Code:
|
thanks tubedogg
|
|
I'm getting the error:
Code:
Fatal error: Call to undefined function: bbcodeparse() in /home/sites/site5/web/vb2/last10/last10.php on line 134 |
That will happen if you used the code that Parker suggested without including global.php. Keep in mind that if you are putting this on your front page, your visitors will get an error if they haven't visited your forums yet; that's why the bbcodeparse is not part of the official release in the first post in this thread.
|
Quote:
I thought I tried including global.php too, though, and that didn't work. |
Sorry - you're right. I don't know how it got into the official release. I replaced the zip file - try downloading it again.:o
|
Thanks Tubedogg :)
|
Ok I found some more bugs, you can't use body tag to define the background color of a table, just use bgcolor attribute in table tag, also, you can create a variable, that lets people modify this, so that when they allow cellspacing, they can choose the border color. Also, at the very end of the code, you frogot to close the table row.
Code:
// close it all up |
The body tag is not a bug, it was accidentally left in after testing. The missing <tr> was just an oversight.
|
Just trying to make it perfect!
NN hates when HTML is screwed up, just making sure that it reders correctly. |
Quote:
Quote:
|
i have got a problem:
http://www.agnfr.com/portail/ The script show the [QUOTE][i] :( Is there a way to correct that? |
Tubedogg.....if I wasn't a 100% heterosexual male, I'd seriously consider making love to you right now.
Great work bud!!! I'm busy over here making some changes to it and I have a few questions for you... 1) How can I modify this sucker to also display the Forum Title along with the Thread Title? 2) How can I modify this sucker to disply the users chosen post icon alongside the Thread Title? Thanks for the great work man! |
Quote:
|
[QUOTE]Originally posted by VAN
Quote:
Quote:
Quote:
I thought you also echoed JoJo's comments about parsing vBcode, but anyway I added that too, at least a limited version of it. I'll figure out a better way to do it down the road. |
can this be included on a separate domain site on the same server ?
i want to include the threads using SSI from my forums on my site at eva2000.com |
hmm...I don't see why not. It may take a bit of playing to get it right, but...
You could change Code:
require("$path/config.php"); Code:
require("/full/path/to/eva2000/admin/config.php"); It should work. (Should being the key word there ;)) |
The changes sound great, now how bout adding 'em to the zip? :) (its still version 0.1.0 in post #1)
|
No it's not...:confused:
:) |
Odd. I must be having some funky caching probs in MSIE. I can't get the new file even after clearing the cache and restarting. I fired up NN and pulled down the current zip....thanks, tubedogg.
|
Amazing job tubedogg!
The update is excellent, well done man! |
tube this is a great hack! 5 stars!
One thing I caught though, when I tried to create the same format as your last two images/examples, everyhting went great, however when I enabled the smilies ($showicon=1), they would not show. Am I missing something? |
Tubedogg, you rule!
I made a few formatting changes. Take a look..... www.bsboard.com/recent.php Also, another suggestion.... How about adding a field in the user options where they can choose how many recnt posts to dispaly? I have mine set to show 30, but some people may wanna see less, while others may wanna see more. Thanks again for the awesome work. (they need this feature in the gold version) |
Van: Looks good! :) As for your suggestion, I'm not sure. I might look into it, but I might also try a separate hack for use as you are using it. I have some ideas for that one from the UBB hack that I (and apparently you) used to use :) so we'll see what happens.
Claypots: Whoops! I screwed up. I'll post the new version (1.0.1) in the first post in this thread. I overlooked something. Duh! :rolleyes: |
Thanks Tube, I like it very much!
----------- Posts show server time (ET), while my forum is GMT +1. How can I show the same time of the forum? ----------- If I set to show the message, at very beginning of the table I see: 0 10 0 30 0 (If I set 5 posts) 0 10 0 30 0 20 (If I set 6 posts) 7 times 0 (if I set 7 posts) etc. "0" if there is not icon and the other numbers are the icons number. what could it be? |
The numbers are something that was accidentally left in after testing. Sorry...I have released v1.0.2 in the first post to correct this.
I will look into the times for the future. However, you do know that any unregistered/logged-out visitors see the time on your board as GMT, right? I believe that's the closest I can get without going into member cookies, which is something I don't want to do with this script. |
Thx Tubedogg, it's perfect now. :)
For all (registered, guests and unlogged) it would be fine just something like server time +- n hours (or GMT +- n hours), without using cookies. If in this way there are some problem with showing the correct date, it could be let it off. |
Works great (except): When I put a forum number(s) in either (only 1 of the two) include or exclude forums, "can't select info" .
If I leave these blank, display's with no problem. Help! Excellent hack. |
Odd...I can't reproduce that problem. Make sure you are only putting numbers and commas into those two variables, and separating the numbers with commas. So it might look like:
Code:
$includeforums = "3,4,5,6"; |
That's exactly how I did it.
Would it be a good idea (or possible) to have the script automatically exclude private forums? |
Nice hack tubedogg, it fit right in with what I was needing. Here is how I used it.
|
looks good, wajones! :)
|
Thought I'd share this, a few of my users wanted to include tubedogg's last10 hack on a vbulletin page and this is what I came up with...
In a copy of the last10.php script comment out or delete the following require("$path/config.php"); $db=mysql_connect($servername,$dbusername,$dbpassw ord) or die("Can't open connection to MySQL"); mysql_select_db($dbname) or die("Can't select database"); now add this to the phpinclude template ob_start(); include_once("./last10.php"); $last10 = ob_get_contents(); ob_end_clean(); Then I was able to add $last10 into any vbulletin template to display the last10 table. Saved a lot of work trying to create templates and changing his code, plus if he changes it, it's simple to upgrade. |
very cool idea. thanks, wajones! :)
|
tubedogg
any plans to add javascript, so that last posts can be shown in remote sites without actually accessing mysql.? I think it will be very useful for many ppl. |
Quote:
Create another copy of the last10.php named thelatest.php so you can set different param's. Create a new forum and name it 'The latest posts" or what ever set it to "act as forum = no and open for posts = no" now put this into the phpinclude in place of what I told you before... $forumid being that forum you created ob_start(); if ($forumid==34){ include_once("./thelatest.php"); $thisweek= ob_get_contents(); }else{ include_once("./last10.php"); $last10 = ob_get_contents(); } ob_end_clean(); Now in the forumdisplay template find... $forumdisplay[forumslist] then right above it put $thisweek Now the last10 or $thisweek in this case will show as a forum and be in the jumpforum box for quick access :D Let me know if you see any conflicts.... |
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:
|