vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - Latest Posts (https://vborg.vbsupport.ru/showthread.php?t=185636)

Michael Biddle 07-19-2008 08:27 PM

If you only want to include one then you can edit the 'main code' plugin that is added with this addon. Find:

PHP Code:

WHERE post.visible '1' AND thread.visible '1' AND open '1' AND $platest_and AND $platest_and_1 

Change to:

PHP Code:

WHERE post.visible '1' AND thread.visible '1' AND open '1' AND forum.forumid 



Where x is your forumid.

MrAd 07-20-2008 09:19 AM

Great, thanks for your quick help, Michael.
Dont want to become a pain in your a**, but now I have another problem:

I want to use this hack as kind of advertising and this means that I want to show the latest x posts from a forum, which is not accessable (not visible) for normal users. They should see topic-titles, but not the content of the post. Is there any chance to make it work?

Michael Biddle 07-20-2008 09:41 PM

Well if you set the cutoff to 0, then they will only see the titles. The change above will not include the forum permissions, so all will show.

MrAd 07-21-2008 07:01 AM

As admin I see other latest posts than a normal user.
Example: I´ve a private area and only one usergroup (specials) can enter this area. If I now setup the hack to exclude all other forums so that only this private area is using the hack.
The result is that I (logged in as admin) see the latest posts (topic titles) in the private area, while normal members see nothing.
So the hack is using the forumpermissions of the different usergroups.
-
What I have in mind is to show the latest posts from a specified forum, no matter if the members have the permissions to enter this specified forum or not. As I have set the cutoff to 0, they only can see the topic title and if they click on such a link, the board-software, depending on the usergroup-persmissions, will either show them the topic or give them an error-message

Michael Biddle 07-22-2008 05:27 AM

Like I said, the fix above will not use the forum permissions. It will show to all.

MrAd 07-22-2008 07:58 AM

sorry I was a bit next the track. Got it now and it´s working like a charme.
Thanks alot for these fantastic hack.

luffy 07-22-2008 08:34 AM

helloo ,

how to show the prefix thread , and (tag+attachment icons)

thank you

TitanJeff 07-23-2008 09:21 PM

I don't know if this can be done but what if I wanted to make the title of the threads in bold?

Thanks.

Michael Biddle 07-23-2008 11:02 PM

You could edit the template forumhome_latest_bit

Find:

HTML Code:

$pthreadtitle
Replace with:

HTML Code:

<strong>$pthreadtitle</strong>

TitanJeff 07-24-2008 02:00 AM

That took care of it. Many thanks! :)


All times are GMT. The time now is 08:41 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.01706 seconds
  • Memory Usage 1,737KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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