Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2010, 11:49 PM
OGZ.Korea OGZ.Korea is offline
 
Join Date: Sep 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help - Coder's please help me!

Hi, I have tried 'How to display latest thread on any normal pages' and it worked great but they are only showing the links...

I would like to see whole of first post of any thread to be displayed on html page - similar to news blog - and visitors can click on news titles which would take them to forum to reply if they want to.

Could this be possible?

Thanks

Here's the code for displaying latest threads - maybe it can be altered to show the first post as well?
Code:
<script type="text/javascript" src="external.php?type=js"></script> 
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script>
Anyone? It should be a simple mod!

I have searched for it, am I missing anything?

Also, if you guys don't mind can you guys show me a list of external.php codes.
e.g.) "+threads[x].title+"
I want a codes for userid, date of post, time of post, & number of views of post.
I've tried the following code for userid:
<a href=\"member.php?u="+threads[x].userid+"\">"+threads[x].poster+"</a>
What am I doing wrong?

Please this is advance html coding or java coding, and I'm only at a novice/intermediate level. I've researched numerous times in google, and did not find the answer. Therefore, I experimented for over 8 hours right now and came up with the same result.

Please coder's that can help me I feel as if I've wasted a lot of time on this code.
It would be very kind to help me!~ Your kindness will be engraved in my heart. :up:

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

nobody wants to help?
Please if anyone knows anything about this please share.
Reply With Quote
  #2  
Old 06-03-2010, 07:01 PM
OGZ.Korea OGZ.Korea is offline
 
Join Date: Sep 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have any idea?
Any coder that want share their ideas or anything?
Or is this too advance for coders, if it is too advanced
I will have no chance of finding out because I'm only an intermediate vBulletin HTML Coder.

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

Alright I found after researching for about 8 hours that thread time and date was:
"+threads[x].threadtime" and "+thread[x].threaddate
any others? Please reply soon as possible.
I will be waiting for answers and please find a way to show a whole thread.
Anyone want to share their thoughts I will be waiting everyday.
Reply With Quote
  #3  
Old 06-04-2010, 06:46 PM
Guest190829
Guest
 
Posts: n/a
Default

Use RSS2 as the feed type, the first post content is available via the <content:encoded> tag; you'll need to use PHP, however, to parse it.
Reply With Quote
  #4  
Old 06-04-2010, 10:47 PM
OGZ.Korea OGZ.Korea is offline
 
Join Date: Sep 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT View Post
Use RSS2 as the feed type, the first post content is available via the <content:encoded> tag; you'll need to use PHP, however, to parse it.
I don't understand so much. But, there is no way to add a code using external.php?
I see vbulletin.org has threads in the their portal and they are full threads.
How do I do that? Also, can you explain in details. Sorry this is a lot but I'm not really sure what you mean.
Reply With Quote
  #5  
Old 06-06-2010, 06:35 PM
OGZ.Korea OGZ.Korea is offline
 
Join Date: Sep 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no body???
Reply With Quote
  #6  
Old 06-09-2010, 11:51 PM
OGZ.Korea OGZ.Korea is offline
 
Join Date: Sep 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT View Post
Use RSS2 as the feed type, the first post content is available via the <content:encoded> tag; you'll need to use PHP, however, to parse it.
Looks like you won't post any time soon?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04027 seconds
  • Memory Usage 2,206KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (5)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete