vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Latest posts (https://vborg.vbsupport.ru/showthread.php?t=205859)

TheInsaneManiac 02-19-2009 02:03 AM

Latest posts
 
I want the most recent posts to show up in my forum statistics. How can I do this?

vbplusme 02-19-2009 02:09 AM

I use the cyb_advanced_statistics, works great for that and a lot more...

TheInsaneManiac 02-19-2009 02:26 AM

Quote:

Originally Posted by vbplusme (Post 1748659)
I use the cyb_advanced_statistics, works great for that and a lot more...

I just want the latest posts though. Like where it says newest member below it I want to display Latest posts:

Nothing too advanced or server extensive.

--------------- Added [DATE]1235018994[/DATE] at [TIME]1235018994[/TIME] ---------------

Ok so I found some code and edited it to make it work, but it adds an extra space and ,. How can I remove it?

Code:

<script type="text/javascript" src="external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a>, ");
}
//-->
</script>

If anyone knows a better way let me know.

Dismounted 02-19-2009 04:10 AM

Have you searched for modifications? I searched "latest posts forumhome" (All Mods, Titles Only), and it came up with a useful result.

TheInsaneManiac 02-19-2009 09:28 PM

Quote:

Originally Posted by Dismounted (Post 1748707)
Have you searched for modifications? I searched "latest posts forumhome" (All Mods, Titles Only), and it came up with a useful result.

It's huge and takes up too much space. I've already tried it.

testbot 02-25-2009 04:23 PM

i tried to use cyb but now i'm tryint to echo those stats to my main site home page. it's very breif while talking about it in the thread and info.txt file so maybe someone on here can help.

example..

cforumstat.php =
PHP Code:

    <?php
    define
('THIS_SCRIPT''cforumstats');
    require_once(
'./global.php');
    echo 
$cybtopstats;
    
?>

any ideas?! THANKS!!!


All times are GMT. The time now is 05:30 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.01117 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete