vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - LBmtb's Recent Topics on Non-VB Pages (https://vborg.vbsupport.ru/showthread.php?t=134320)

LBmtb 12-18-2006 10:00 PM

LBmtb's Recent Topics on Non-VB Pages
 
RECENT TOPICS by LBmtb
Version 1.03
Last updated: March 27th, 2007

DESCRIPTION
This script will display the topics with the most recent posts on a non-vb page (any HTML page). The page it's on must have a .php extension or you should setup apache to parse the page correctly. The threads with the latest posts are on top. The output is a clean list in this format:

HTML Code:

<ul class="vb_topics">
<li><a href="http://www.yourdomain.com/forum/showthread.php?t=4150">This is the latest thread</a> <span class="vb_last_post">(user1 @ 12/18/06 05:58 PM)</span></li>
<li><a href="http://www.yourdomain.com/forum/showthread.php?t=4138">Another recent thread</a> <span class="vb_last_post">(user2 @ 12/18/06 05:58 PM)</span></li>
</ul>

Customizable options include:
  • forum ID - choose to only include or exclude certain forums
  • number of topics displayed
  • CSS class names for the topic name/url and last poster/date
  • and a few others
COPYRIGHT
There is a copyright line. I am releasing this script on the condition that you do not remove this line unless you send $5 via paypal to webmaster@socaltrailriders.org. Thanks in advance for understanding.

NEED CUSTOMIZATION OR PROFESSIONAL INSTALLATION?
Email me at webmaster@socaltrailriders.org, PM me on vbulletin.org, or aim me at "lbmtb" to inquire about customizing this script or installation.

REVISION HISTORY
Version 1.03: Adds small preview of first post when the user rolls over the links
Version 1.02: option to exclude certain forums
Version 1.01: option to only include certain forums
Version 1.0: Initial Release

INSTRUCTIONS:
1) Copy and paste the following code where you want the list to appear and adjust the values in the section "CUSTOMIZE THE FOLLOWING":

PHP Code:

<?php 
##########################################################################
// RECENT TOPICS by LBmtb
// Version 1.03
// webmaster@socaltrailriders.org OR aim: LBmtb
//
// Do not remove copyright unless you donate $5 via paypal
// to the above email address, thanks
// CUSTOMIZED from a www.phase1media.com script found here:
// https://vborg.vbsupport.ru/showpost.php?p=589067&postcount=7
##########################################################################

## CUSTOMIZE THE FOLLOWING    ##############################################

// DATABASE & URL SETTINGS
$db_host "localhost"// Change this if your MySQL database host is different.
$db_name "db_name"// Change this to the name of your database.
$db_user "db_username"// Change this to your database username.
$db_pw "db_password"// Change this to your database password.
$db_prefix "vb_"// Change to your tables' prefix. Usually vb_
$forum_url "http://www.yourdomain.com/forum"// Change this to reflect to your forum's URL.

// APEARANCE OPTIONS
$seperator "@"// this goes between last poster and date
$limit "10"// Number of posts displayed
$post_date_format "1"// leave as 1 for "12/18/06 05:26 PM" or change to 2 for "05:26 PM"

// use one or the other, not both. if left blank the script will return threads from any forum
$fid_raw ""// ONLY include threads from these forums. seperate each ID with a comma
$fidx_raw ""// Exclude threads from these forum. seperate each ID with a comma

// CSS CLASSES    
$recent_topics "vb_topics"// you can use CSS to adjust the presentation of the list 
$recent_poster "vb_last_post";  // you can use CSS to adjust the presentation the last poster and date

## NO NEED TO TOUCH ANYTHING BELOW    #####################################
#############################################################################

if (!($recent_topics_connection mysql_connect("$db_host""$db_user""$db_pw")))
die (
"could not connect"); 
if (!(
mysql_select_db("$db_name"$recent_topics_connection)))
mysql_error(); 
echo 
"<ul class=\"$recent_topics\">\n";
$fid_array explode (','$fid_raw);
if (
$fid_raw)  {
    
$fid_final .= "AND (";
    foreach( 
$fid_array as $key => $value){
        if (
$key == 0) { $fid_final .= "t.forumid=".$value; }
        else { 
$fid_final .= " OR t.forumid=".$value; }
    }
    
$fid_final .= ")";
}
$fidx_array explode (','$fidx_raw);
if (
$fidx_raw)  {
    
$fidx_final .= "AND NOT (";
    foreach( 
$fidx_array as $key => $value){
        if (
$key == 0) { $fidx_final .= "t.forumid=".$value; }
        else { 
$fidx_final .= " OR t.forumid=".$value; }
    }
    
$fidx_final .= ")";
}
$thread_sql mysql_query("SELECT SQL_CACHE t.threadid,t.title,t.lastpost,t.lastposter,t.forumid,substring(p.pagetext,1,90) as post_text
    FROM "
.$GLOBALS['db_prefix']."thread t
    INNER JOIN "
.$GLOBALS['db_prefix']."post p
    ON t.firstpostid = p.postid
    WHERE t.visible=1 
    AND t.open=1 
$fidi_final $fidx_final 
    ORDER BY t.lastpost desc 
    LIMIT 
$limit");
while(
$thread_get=@mysql_fetch_array($thread_sql))
{
    
$lastpost $thread_get['lastpost'];
    
$poster $thread_get['lastposter'];
    
$tid $thread_get['threadid'];
$text $thread_get['post_text'];
    if (
$post_date_format == "1") { $date2 date ("m/d/y h:i A" ,$lastpost); }
    elseif (
$post_date_format == "2") { $date2 date ("h:i A" ,$lastpost); }
    else { 
$date2 date ("m/d/y h:i A" ,$lastpost); }
        echo 
"<li><a href=\"$forum_url/showthread.php?t=$tid\" title=\"".$text."\">$thread_get[title]</a> <span class=\"$recent_poster\">($poster $seperator $date2)</span></li>\n";
}
echo 
"</ul>\n<div style=\"font-size: .9em;\">recent topics by <a href=\"http://www.socaltrailriders.org/\"><acronym title=\"Southern California Trail Riders\">SocalTrailRiders.org</acronym></a></div>";
mysql_close($recent_topics_connection);
?>

2) Go back to the vbulletin.org thread where you found this and click on "Mark as Installed"
3) Enjoy!
4) Donate (this step optional)


UPGRADE INSTRUCTIONS (from 1.02 to 1.03):


FIND:
Code:

$thread_sql = mysql_query("SELECT threadid,title,lastpost,lastposter FROM ".$db_prefix."thread WHERE visible=1 AND open=1 $fid_final $fidx_final ORDER BY lastpost desc LIMIT $limit");
REPLACE WITH:
Code:

$thread_sql = mysql_query("SELECT SQL_CACHE t.threadid,t.title,t.lastpost,t.lastposter,t.forumid,substring(p.pagetext,1,90) as post_text
    FROM ".$GLOBALS['db_prefix']."thread t
    INNER JOIN ".$GLOBALS['db_prefix']."post p
    ON t.firstpostid = p.postid
    WHERE t.visible=1
    AND t.open=1 $fidi_final $fidx_final
    ORDER BY t.lastpost desc
    LIMIT $limit");

FIND:
Code:

    $tid = $thread_get['threadid'];
AFTER, ADD:
Code:

    $text = $thread_get['post_text'];
FIND AND REPLACE:
Code:

forumid=".$value
WITH:
Code:

t.forumid=".$value
FIND:
Code:

    echo "<li><a href=\"$forum_url/showthread.php?t=$tid\">$thread_get[title]</a> <span class=\"$recent_poster\">($poster $seperator $date2)</span></li>\n";
REPLACE WITH:
Code:

    echo "<li><a href=\"$forum_url/showthread.php?t=$tid\" title=\"".$text."\">$thread_get[title]</a> <span class=\"$recent_poster\">($poster $seperator $date2)</span></li>\n";


UPGRADE INSTRUCTIONS (from 1.01 to 1.02):

FIND:
PHP Code:

// APEARANCE OPTIONS
$seperator "@"// this goes between last poster and date
$fid_raw ""// If you want to restrict to specific forums, enter the forum id(s) here. seperate them with a comma. Otherwise, leave it blank.
$limit "10"// Number of posts displayed
$post_date_format "1"// leave as 1 for "12/18/06 05:26 PM" or change to 2 for "05:26 PM" 

REPLACE WITH:
PHP Code:

// APEARANCE OPTIONS
$seperator "@"// this goes between last poster and date
$limit "10"// Number of posts displayed
$post_date_format "1"// leave as 1 for "12/18/06 05:26 PM" or change to 2 for "05:26 PM"

// use one or the other, not both. if left blank the script will return threads from any forum
$fid_raw ""// ONLY include threads from these forums. seperate each ID with a comma
$fidx_raw ""// Exclude threads from these forum. seperate each ID with a comma 

REPLACE EVERYTHING BELOW:
PHP Code:

## NO NEED TO TOUCH ANYTHING BELOW    ######################################
########################################################################## 

With everything below that same line in 1.02

NOTES:
This is my first mod/script so be nice, please :)

DEMO:
http://www.socaltrailriders.org/latest_posts.php

LBmtb 12-19-2006 12:48 AM

I'll be cool like all the veterans out there and reserve the first post. :)

Murty 12-19-2006 03:48 AM

hmm... looks interesting. what would this be handy for?

LBmtb 12-19-2006 03:56 AM

Quote:

Originally Posted by Murty (Post 1141401)
hmm... looks interesting. what would this be handy for?

Probably most useful for people who have a website outside of their forums. Like my website has some 'static' html pages aside from the forums. There are mods and vBAdvanced modules that do this sort of thing but I never found one that did this on a page outside of vBulletin.

So basically . . . handy for displaying recent forum activity outside of the forums. Check my website link in my sig for an idea of how I use it. :)

OmniBuzz 12-19-2006 04:51 AM

any chance to have a version that would add an "updated threads" list ?
Like :
palm spring ...(created by outlaw blabla, last answer by neil blabla)

s0b 12-19-2006 05:01 AM

Great, installed it but i am also interested in the "updated threads"

LBmtb 12-19-2006 05:16 AM

Quote:

Originally Posted by OmniBuzz (Post 1141422)
any chance to have a version that would add an "updated threads" list ?
Like :
palm spring ...(created by outlaw blabla, last answer by neil blabla)

Here ya go:
HTML Code:

<?php
##########################################################################
// RECENT TOPICS by LBmtb
// webmaster@socaltrailriders.org OR aim: LBmtb
//
// Do not remove copyright unless you donate $5 via paypal
// to the above email address, thanks
// CUSTOMIZED from a www.phase1media.com script found here:
// https://vborg.vbsupport.ru/showpost.php?p=589067&postcount=7
##########################################################################

## CUSTOMIZE THE FOLLOWING        ##############################################

// DATABASE & URL SETTINGS
$db_host = "localhost"; // Change this if your MySQL database host is different.
$db_name = "db_name"; // Change this to the name of your database.
$db_user = "db_username"; // Change this to your database username.
$db_pw = "db_password"; // Change this to your database password.
$db_prefix = "vb_"; // Change to your tables' prefix. Usually vb_
$forum_url = "http://www.yourdomain.com/forum"; // Change this to reflect to your forum's URL.

// APEARANCE OPTIONS
$seperator = "@"; // this goes between last poster and date
$forum_id = ""; // If you wish to display the posts from a specific forum, enter the forum id here. Otherwise, leave it blank.
$limit = "10"; // Number of posts displayed
$post_date_format = "1"; // leave as 1 for "12/18/06 05:26 PM" or change to 2 for "05:26 PM"

// CSS CLASSES       
$recent_topics = "vb_topics"; // you can use CSS to adjust the presentation of the list
$recent_poster = "vb_last_post";  // you can use CSS to adjust the presentation the last poster and date

## NO NEED TO TOUCH ANYTHING BELOW        #####################################
#########################################################################

if (!($recent_topics_connection = mysql_connect("$db_host", "$db_user", "$db_pw")))
die ("could not connect");
if (!(mysql_select_db("$db_name", $recent_topics_connection)))
mysql_error();
echo "<ul class=\"$recent_topics\">\n";
if ($forum_id) { $forumid = "AND forumid=$forum_id"; }
$thread_sql = mysql_query("SELECT threadid,title,lastpost,lastposter, postusername FROM ".$db_prefix."thread WHERE visible=1 AND open=1 $forumid ORDER BY lastpost desc LIMIT $limit");
while($thread_get=@mysql_fetch_array($thread_sql))
{
        $lastpost = $thread_get['lastpost'];
        $firstpost = $thread_get['postusername'];
        $poster = $thread_get['lastposter'];
        $tid = $thread_get['threadid'];
        if ($post_date_format == "1") { $date2 = date ("m/d/y h:i A" ,$lastpost); }
        elseif ($post_date_format == "2") { $date2 = date ("h:i A" ,$lastpost); }
        else { $date2 = date ("m/d/y h:i A" ,$lastpost); }
        echo "<li><a href=\"$forum_url/showthread.php?t=$tid\">$thread_get[title]</a> <span class=\"$recent_poster\">(created by: $firstpost, last reply by: $poster $seperator $date2)</span></li>\n";
}
echo "</ul>\n<div style=\"font-size: .9em;\">recent topics by <a href=\"http://wwwsocaltrailriders.org/\"><acronym title=\"Southern California Trail Riders\">SocalTrailRiders.org</acronym></a></div>";
mysql_close($recent_topics_connection);
?>

That will stick "(created by: MOSH1DH, last reply by: SAR_boats @ 12/18/06 09:23 PM)" at the end of it. Looks a bit long to me? What would be a better format for it?

Well if you set $post_date_format to 2 then it'll only have 09:23 PM for the last post time. That should ease up on the clutter.

UPDATE: Instructions for this functionality are in post 17.

OmniBuzz 12-19-2006 05:36 AM

THANKs, I am going to install it today :)
Well, me being in France (bonjour) any chance to have a 17:00 rather than a 5:00 PM time display ?

LBmtb 12-19-2006 05:48 AM

Quote:

Originally Posted by OmniBuzz (Post 1141439)
THANKs, I am going to install it today :)
Well, me being in France (bonjour) any chance to have a 17:00 rather than a 5:00 PM time display ?

FIND:
HTML Code:

        if ($post_date_format == "1") { $date2 = date ("m/d/y h:i" ,$lastpost); }
        elseif ($post_date_format == "2") { $date2 = date ("h:i" ,$lastpost); }
        else { $date2 = date ("m/d/y h:i A" ,$lastpost); }

REPLACE WITH:
HTML Code:

        if ($post_date_format == "1") { $date2 = date ("m/d/y H:i A" ,$lastpost); }
        elseif ($post_date_format == "2") { $date2 = date ("H:i" ,$lastpost); }
        else { $date2 = date ("m/d/y H:i A" ,$lastpost); }

:)

edit: removed AM/PM. Thanks for pointing it out, firstrebel

firstrebel 12-19-2006 07:19 AM

Quote:

Originally Posted by LBmtb (Post 1141442)
FIND:
HTML Code:

        if ($post_date_format == "1") { $date2 = date ("m/d/y h:i A" ,$lastpost); }
        elseif ($post_date_format == "2") { $date2 = date ("h:i A" ,$lastpost); }
        else { $date2 = date ("m/d/y h:i A" ,$lastpost); }

REPLACE WITH:
HTML Code:

        if ($post_date_format == "1") { $date2 = date ("m/d/y H:i A" ,$lastpost); }
        elseif ($post_date_format == "2") { $date2 = date ("H:i A" ,$lastpost); }
        else { $date2 = date ("m/d/y H:i A" ,$lastpost); }

:)

Still shows AM/PM after doing this. Nice mod, better than the one from vB's support site, which is never up-to-date.

Installed.

Bob

s0b 12-19-2006 08:09 AM

Its possible to export this mod to a Javascript that lent me some like this:

Code:

<script type="text/javascript" language="JavaScript1.2">
    var parameter1=value1;
    var parameter2=value2;
    etc.

EDIT: I forget to say that the vbSEO version will be great, i use it

projectego 12-19-2006 11:36 AM

Awesome! Thanks for this. :)

LBmtb 12-19-2006 12:44 PM

Quote:

Originally Posted by firstrebel (Post 1141460)
Still shows AM/PM after doing this. Nice mod, better than the one from vB's support site, which is never up-to-date.

Installed.

Bob

Oops, didn't notice the lack of AM/PM. Only noticed the 24hr time (it's finals week here and I'm tired). I updated post #9 - now it takes out AM/PM also.

If you modified it like I said before and it shows 24hr time and AM/PM just do a find/replace turning "H:i A" into "H:i".

Quote:

Originally Posted by s0b (Post 1141470)
Its possible to export this mod to a Javascript that lent me some like this:

Code:

<script type="text/javascript" language="JavaScript1.2">
    var parameter1=value1;
    var parameter2=value2;
    etc.

EDIT: I forget to say that the vbSEO version will be great, i use it

Sorry, I don't know javascript. I'll see about releasing the vbSEO one tonight.
Quote:

Originally Posted by projectego (Post 1141528)
Awesome! Thanks for this. :)

You're welcome. :)

Amenadiel 12-19-2006 01:48 PM

I use something similar based on a stripped vaispy code (without the scrolling part) inside an iframe. I use this because I need it to look at the permissions, so gathering data directly from the database wouldn't suit my needs.

Congratz anyway.

firstrebel 12-19-2006 02:42 PM

Quote:

If you modified it like I said before and it shows 24hr time and AM/PM just do a find/replace turning "H:i A" into "H:i".
Works fine, thanks.

Bob

LBmtb 12-19-2006 03:41 PM

Quote:

Originally Posted by Amenadiel (Post 1141589)
I use something similar based on a stripped vaispy code (without the scrolling part) inside an iframe. I use this because I need it to look at the permissions, so gathering data directly from the database wouldn't suit my needs.

Congratz anyway.

Thanks for pointing that out, I didn't think about permissions and such. I'll make a version tonight that selects only public forums. The option "$forum_id =" in the current script only works when one forum is selected. The new version will take multiple forum ID's separated by commas.

Stay tuned.

LBmtb 12-19-2006 04:55 PM

UPDATE: uploaded a new version that can restrict the threads to just a select number of forums. If you want to use this feature, modify "$fid_raw =" (there's instructions in the code).

It won't check whether the user is logged in and what he/she has permission to. But you can simply restrict it to forums that you want to be publicly available.

:)

edit: Added following instructions.

In this newer version, if you guys want to include the thread creator as was discussed in post 7, do this:
FIND:
PHP Code:

$thread_sql mysql_query("SELECT threadid,title,lastpost,lastposter FROM ".$db_prefix."thread WHERE visible=1 AND open=1 $fid_final ORDER BY lastpost desc LIMIT $limit"); 

REPLACE WITH:
PHP Code:

$thread_sql mysql_query("SELECT threadid,title,lastpost,lastposter,postusername FROM ".$db_prefix."thread WHERE visible=1 AND open=1 $fid_final ORDER BY lastpost desc LIMIT $limit"); 

FIND:
PHP Code:

    echo "<li><a href=\"$forum_url/showthread.php?t=$tid\">$thread_get[title]</a> <span class=\"$recent_poster\">($poster $seperator $date2)</span></li>\n"

REPLACE WITH:
PHP Code:

echo "<li><a href=\"$forum_url/showthread.php?t=$tid\">$thread_get[title]</a> <span class=\"$recent_poster\">(created by: $firstpost, last reply by: $poster $seperator $date2)</span></li>\n"

The time instructions are still the same to change from 12hr to 24hr.

Anybody need upgrade instructions to go from 1.00 if you already installed it to 1.01? Only new functionality is to be able to restrict threads to multiple forums.

Injektilo 12-19-2006 06:13 PM

i've entered my db settings but it only outputs this

Quote:

recent topics by SocalTrailRiders.org

pcoskat 12-19-2006 06:20 PM

FABULOUS, FABULOUS!!! (Nice site, btw!)

Any chance this works on non-vb pages that are on a different domain?

ETA
I just went back and read the entire first post. Now I see it works on any HTML page.

I think I'm in love!! :)

LBmtb 12-19-2006 08:01 PM

Quote:

Originally Posted by Injektilo (Post 1141741)
i've entered my db settings but it only outputs this

Re-check the db settings, it sounds like the connection to the database or the query failed. Did you remember about the table prefix (if any) also? PM me if you still have trouble.
Quote:

Originally Posted by pcoskat (Post 1141749)
FABULOUS, FABULOUS!!! (Nice site, btw!)

Any chance this works on non-vb pages that are on a different domain?

ETA
I just went back and read the entire first post. Now I see it works on any HTML page.

I think I'm in love!! :)

You're welcome. :)

I haven't tried it on different domains since my site isn't run like that but I would think you'd just change $db_host to whatever the db server is.

Injektilo 12-19-2006 08:39 PM

LBmtb: all db settings seems to be ok ... its kind of weird why it doesnt work :S

Hornstar 12-19-2006 11:23 PM

I'm about to install this now. I think ill donate you the $5 as well, because i'm hoping you may be able to help me with getting it to fit into the current style of my site, as I know ill end up having trouble with that part.

Also what are the chances you will release other vbadvanced mods for non vb pages? Because then you would be my god lol. There are all these mods that I used to use, but since going to a non vb page for my homepage, I have not been able to use any of them.

LBmtb 12-20-2006 01:15 AM

Quote:

Originally Posted by hornstar1337 (Post 1141916)
I'm about to install this now. I think ill donate you the $5 as well, because i'm hoping you may be able to help me with getting it to fit into the current style of my site, as I know ill end up having trouble with that part.

Also what are the chances you will release other vbadvanced mods for non vb pages? Because then you would be my god lol. There are all these mods that I used to use, but since going to a non vb page for my homepage, I have not been able to use any of them.

Thanks a lot, hornstar. I don't have msn. Do you have aim? I'm lbmtb on there.

Chances of releasing vbadvanced mods for non vb pages are fairly slim. I don't and have never used vbadvanced before. I also have an upcoming events script on my site - that one I got off of vbulletin.org. I'm sure you can find it if you search. PM me with mod ideas if you'd like.

firstrebel 12-20-2006 06:51 AM

Quote:

Originally Posted by Injektilo (Post 1141741)
i've entered my db settings but it only outputs this

I have this same problem. v1.00 works but v1.01 does not.

Bob

LBmtb 12-20-2006 08:10 AM

Ah, dangit. You guys are right. Here's the fix:

FIND:
PHP Code:

if ($fid_array)  { 

REPLACE WITH:
PHP Code:

if ($fid_raw)  { 

I updated the top instructions. Sorry!

LBmtb 12-20-2006 08:28 AM

Plan for tomorrow: Add the ability to exclude forums. Currently you can only specify forums to include.

The include would be useful if you want threads from just one or two forums. If you want most forums to be displayed except for one or two then you'd want to use the exclude thing.

firstrebel 12-20-2006 11:57 AM

Quote:

Originally Posted by LBmtb (Post 1142086)
Ah, dangit. You guys are right. Here's the fix:

FIND:
PHP Code:

if ($fid_array)  { 

REPLACE WITH:
PHP Code:

if ($fid_raw)  { 

I updated the top instructions. Sorry!

All OK now, thanks.

Bob

LBmtb 12-20-2006 03:43 PM

Quote:

Originally Posted by firstrebel (Post 1142183)
All OK now, thanks.

Bob

Good to hear! :)

Updated the script with the ability to exclude certain forums. Included upgrade instructions from 1.01. So now you can either specify forums to include OR forums to exclude.

Anybody have any suggestions for future releases?

Hornstar 12-21-2006 07:01 AM

Well I sent you a list of other mods suggestions, but so far this looks great. I'm just trying to get it positioned into the right spot on my homepage tho, i'll probably spend hours on that lol.

Some suggestions could be to also include a snipet of the post, and if you do that, then I have heaps of ideas to go on from their.

also do you have the vbseo version?

also you misspelled your domain name in the copyright part.

Thanks.

4yBak 12-21-2006 11:40 AM

hm... maybe you know how to parse bb-codes stored in DB ? I was did similar task, but I have trouble with parsing vBulletin bb-codes :(

More info here.

LBmtb 12-21-2006 02:39 PM

Quote:

Originally Posted by hornstar1337 (Post 1142674)
Well I sent you a list of other mods suggestions, but so far this looks great. I'm just trying to get it positioned into the right spot on my homepage tho, i'll probably spend hours on that lol.

Some suggestions could be to also include a snipet of the post, and if you do that, then I have heaps of ideas to go on from their.


also do you have the vbseo version?

also you misspelled your domain name in the copyright part.

Thanks.

Thanks a lot for the info on the mispelling. Maybe I should have waited until after finals week to work on this? lol

I'll try and get the vbSEO one released tomorrow. Snippet of post is possible. What would be more useful: snippet of the last post made or of the first post?

Quote:

Originally Posted by 4yBak (Post 1142766)
hm... maybe you know how to parse bb-codes stored in DB ? I was did similar task, but I have trouble with parsing vBulletin bb-codes :(

More info here.

BBcode sounds like a lot of work, lol. I'll look into it though . . .

LBmtb 12-22-2006 02:01 AM

Quote:

Originally Posted by s0b (Post 1141470)
EDIT: I forget to say that the vbSEO version will be great, i use it

Here ya go: linkage.

Hornstar 12-24-2006 11:50 AM

Im thinking first post would be more useful, maybe release this one as a second mod release, have it like a news system. so it displays a snipet of the post including all bb code. that would be really good for some more content on my homepage.

Thanks.

weicool 12-26-2006 04:42 PM

Hi, is there anyway to display only the name of the person who started the thread, and NOT the latest poster?

Never mind, I figured it out. Thanks for this nice script.

Hornstar 01-04-2007 01:24 AM

Quote:

Originally Posted by weicool (Post 1145381)
Hi, is there anyway to display only the name of the person who started the thread, and NOT the latest poster?

Never mind, I figured it out. Thanks for this nice script.

Mind sharing it, the more we have the better.

tonynlek 01-31-2007 01:20 PM

LBmtb,

I need help to install it and i dunno much about PHP. care to guide me along or anyone.

I do not know how to do this part:
<< The page it's on must have a .php extension or you should setup apache to parse the page correctly. >>

What must i do first?

saman 02-03-2007 01:43 PM

Quote:

Originally Posted by tonynlek (Post 1171280)
LBmtb,

I need help to install it and i dunno much about PHP. care to guide me along or anyone.

I do not know how to do this part:
<< The page it's on must have a .php extension or you should setup apache to parse the page correctly. >>

What must i do first?

facing the same problem

right now i have added it on .html extension and the only thing it shows is this:

recent topics by SocalTrailRiders.org

can someone help me out with this? i really like this mod, i am testing it and if he works i will need to get the copyright removed ($5)...

btw, where should i add this html code?

HTML Code:
<ul class="vb_topics">
<li><a href="http://www.yourdomain.com/forum/showthread.php?t=4150">This is the latest thread</a> <span class="vb_last_post">(user1 @ 12/18/06 05:58 PM)</span></li>
<li><a href="http://www.yourdomain.com/forum/showthread.php?t=4138">Another recent thread</a> <span class="vb_last_post">(user2 @ 12/18/06 05:58 PM)</span></li>
</ul>

tonynlek 02-05-2007 02:21 AM

As far as i know, You need to create an inframe in HTml page to put in the site address of that PHP file and it will open in the inframe.

I hate the borderline of the inframe, so my homepage has to be index.php, in order to put the code without the inframe border.

a programmer that i paid, told me this. I wonder why the script creator dun reply.

tonynlek 02-05-2007 03:42 AM

Quote:

// use one or the other, not both. if left blank the script will return threads from any forum
$fid_raw = ""; // ONLY include threads from these forums. seperate each ID with a comma
$fidx_raw = ""; // Exclude threads from these forum. seperate each ID with a comma
How do you put the ID there?

Dave-ahfb 02-05-2007 03:56 PM

I am attempting to install this and it does works as designed, however I am trying to include multiple instances of the script on the same page, each instance using a different forum./

example:

top of page use only forum 14
middle of page use only forum 13

yadda yadda

I can include multiple instances of the same forum meaning I can place forum 14 in as many places of a page as I want, but I cannot get a second forum to show in a different location of the page.


All times are GMT. The time now is 05:47 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
  • Page Generation 0.01813 seconds
  • Memory Usage 1,962KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (6)bbcode_html_printable
  • (12)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete