vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Urgent Help requested {External Code} (https://vborg.vbsupport.ru/showthread.php?t=278971)

GateKeeper_ 02-22-2012 01:16 AM

Urgent Help requested {External Code}
 
Here is the code for the latest threads:
Code:

<script type="text/javascript" src="external.php?forumids=2,1635&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> (Submitted by: "+threads[x].poster+")<br />");
}
//-->
</script>

How do I add the # of views, # of comments, and date posted?

Please if possible can you adjust the code for me? ;)

Thank you so much as always.

Best regards,
GateKeeper_

kh99 02-22-2012 08:54 AM

You can add threads[x].threaddate and threads[x].threadtime where you want them, like maybe:

Code:

<script type="text/javascript" src="external.php?forumids=2,1635&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> (Submitted by: "+threads[x].poster+") " + threads[x].threaddate + " " + threads[x].threadtime + "<br />");
}
//-->
</script>


but the other things you asked for aren't in the javascript external feed. You would have to edit external.php to add them.

GateKeeper_ 02-24-2012 12:17 AM

How would I add the # of comments of the thread?

Can anyone help me edit external.php in order to do this please.

As always thank you for your support.

Kind Regards.

GateKeeper_ 02-25-2012 12:29 AM

Is there at least a way to show the whole post instead of just thread title?

GateKeeper_ 02-27-2012 10:57 PM

Can anyone tell me how I can add search.php to external.php

Basically search.php?searchid=4

would show all the search threads in searchid=4

GateKeeper_ 02-28-2012 11:17 PM

bump


All times are GMT. The time now is 10:07 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.00977 seconds
  • Memory Usage 1,716KB
  • 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
  • (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