vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   New Threads from custom forums only. (https://vborg.vbsupport.ru/showthread.php?t=273416)

Kış 11-05-2011 08:17 AM

New Threads from custom forums only.
 
Hi.
I want to know if i can create 2 sidebars. So,
The first sidebar will show only threads from forums 1,3,4,
And the second one will only show new threads from forums 2,6,5
Regards.

Lynne 11-05-2011 06:47 PM

You mean one bar on one side of the site, the other bar on the other side of the site? And on what pages?

The short answer is Yes, you can do that, you just need to code it.

Kış 11-05-2011 09:59 PM

Quote:

Originally Posted by Lynne (Post 2264778)
You mean one bar on one side of the site, the other bar on the other side of the site? And on what pages?

The short answer is Yes, you can do that, you just need to code it.

Yes you are right. i need sidebar.
On homepage only.

I will create it from "Forum Blocks Manager" > Custom HTML/PHP
But i dont know what is the code for that.
Do you have any idea ?

Lynne 11-05-2011 10:23 PM

If you create a New Forum Posts block, you may select to only show posts from certain forums. So, create two separate Forum Posts blocks and select different forums for each one.

Kış 11-06-2011 11:49 AM

Oh yes.
It is selectable. I have not look carefully :)
Thanks very much.
One more question.
How can new threads or posts in my forum be displayed in another site? may be in html pages ?
My friends want to display new threads of my forum in their site. But i cant provide the right code for it.

Lynne 11-06-2011 03:26 PM

See these threads for methods to pull threads via javascript:
[HowTo] Display your latest threads on an external page using an RSS2 feed
[HowTo] Display your latest threads on an external page using an XML feed
[HowTo] Display your latest threads on an external page using an RSS feed

Kış 11-06-2011 04:41 PM

Hi.
Thanks for the links, but all of them says :
Quote:

Near the top of your php page, but after the <?php code include the following:
Hi.
i asked especially for html pages.
is it possible ?
i searched vb.com but could not find the one that worked for me unfortunately.

Lynne 11-06-2011 09:04 PM

See this for adding thread to an html page:
HowTo Display Latest Active Threads on ANY normal HTML page

Kış 11-06-2011 09:19 PM

Hi.
Unfortunately it was posted 6 years ago. for Vb 3.5.x
I tried it on html page, but no success.
Anyway your avatar is very cool :)

Lynne 11-06-2011 11:11 PM

It's just javascript to go on some html page - it doesn't matter that it was 3.5. It should work just fine as long as your site has your javascript feed turned on.

Kış 11-07-2011 07:38 AM

Hi. The code is this :


PHP Code:

<!-- show latest active threads -->
<
table cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<
tbody>
<
tr>
<
td colspan="2">
<
a href="search.php?do=getnew">Latest Active Threads</a>
</
td>
</
tr>
</
tbody>
<
tbody>
<
tr>
 
<
td width="100%">
 
<
div>
<
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></div>
 
</
td>
</
tr>
</
tbody>
<!-- 
show latest active threads -->
</
table>
<
br /> 

I am sorry. i have no html/css knowledge.
What changes should i make here before pasting the code to html page in another domain?

I tried adding domain name of the forum just before the showthread.php and search.php
but no result.

Lynne 11-07-2011 05:34 PM

Post a link to the html page so we can see what the problem is.

Kış 11-11-2011 03:52 PM

Hi Miss Lynne.
Thanks for info.
we have successfully added it.
But it worked in a html file which is in the same domain as forum.
What changes should we do in order to make it work in an html page which is in another domain ?

Lynne 11-11-2011 05:23 PM

That code, assuming you added your forum url into the javascript, should work on another site.

(And it's Miss Lynne. :) )

Kış 11-14-2011 07:06 PM

Hi. But I already told Miss Lynne :)

Miss Lynne, in this url , https://www.vbulletin.com/forum/show...=1#post1618826

it explains how to show threads from only spesific forums.
But the issue is that you cant use parent forum ID.
you have to use subforum id's as well. If you use parent forum id only, Then no threads from its child forum will not show up.

and one more thing. You have a CSS school. So you would know.
Can you tell me how to increase text size?
And how to increase space between thread names ?

Lynne 11-14-2011 08:59 PM

In the third post in that article I linked you to, it says how to add several forumids. So, enter in the child forums, not the parent forum.

I don't have a CSS site. That is just a link to a site that I find to be very, very helpful!

Kış 11-15-2011 07:32 AM

Hmm. I am sorry then. But you are right. It really is very very very helpful. :)


All times are GMT. The time now is 05:50 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.01818 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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