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)

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.


All times are GMT. The time now is 11:18 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
  • Page Generation 0.02023 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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