vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Latest Threads On Forum Home (https://vborg.vbsupport.ru/showthread.php?t=83230)

Xplorer4x4 02-07-2007 08:05 AM

Quote:

Originally Posted by Sarthek (Post 1176365)
Where do you set how many latest threads are shown?

PHP Code:

$thread['title'] = fetch_censored_text(fetch_trimmed_title(unhtmlspecialchars($thread['title']), 22)); 

Allows you to set the number of characters in the title and
PHP Code:

DESC LIMIT 5"); 

Changes the number of threads shown. Just change 5 to the number you want.

Staxed 02-08-2007 12:22 AM

ok, i'm not a coder my any means...i'm just a little 'ole designer...and for the life of me I can't get the threads to show in someplace other than the forumhome.

I'm trying to use this mod, but instead of having all the forumhome stuff...i just want to have the lastest thread titles put into a side column...i've looked at the added templates...copied what's there...and all it will do is post the sections titles..."last post by reviews views"...but doesn't put the actual info in there...

can someone possibly shed some light on how to get just the titles to show in another template other than forumhome?

Staxed 02-09-2007 07:04 PM

no one has done this? or knows how?

Chris?

thincom2000 02-10-2007 02:36 AM

You need to change the hook the plugin uses to fill the variables (by default it is forumhome_complete).

Staxed 02-11-2007 08:07 PM

Quote:

Originally Posted by thincom2000 (Post 1178878)
You need to change the hook the plugin uses to fill the variables (by default it is forumhome_complete).

there is no hook i could change it to...i'm trying to put it into a custom template...

Xplorer4x4 02-11-2007 08:27 PM

Quote:

Originally Posted by Irisfire (Post 1180144)
there is no hook i could change it to...i'm trying to put it into a custom template...

Could you elaborate on what your trying to do with it?

shaynehammy 02-12-2007 08:02 AM

Quote:

Originally Posted by aveon (Post 1094885)
hey shaynehammy ill give u a custom made code that wiil doo the trick


HTML Code:

<if condition="$show['latestthreads']">
<tbody>
        <tr>
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
                        $vbphrase[latest_threads]
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
        <tr>
                <td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
                <td class="alt1"><div style="overflow: auto; height: 250px;"><div class="smallfont" align="left">$threadbits</div></div></td></tr>


yea i tested this code and it works perfectly

Thanks for this. Tested the code and I maybe didnt quite explain what i was after. I want a box the size of twenty latest posts but inside a scrolling marquee that displays the last 50 posts. If a member hovers over the scrolling latest posts, it will stop. Once it gets to the bottom of the list, it starts from the beginning. Seen it on a few websites but cant remember any to show you an example.

Staxed 02-12-2007 10:36 AM

Quote:

Originally Posted by Xplorer4x4 (Post 1180162)
Could you elaborate on what your trying to do with it?

it's in my first post...a few above yours...

but basically...you know the module for vbadvanced that shows new threads...trying to get something similar in a custom template (for a left column)...by using this mod...just need to reformat the coding so it only displays the title of the mod (don't need all the other info like poster, views, etc)...i've got that part done...i just can't get it to display the information...

Xplorer4x4 02-12-2007 02:10 PM

Hmm try adding the phrase "$vbphrase[latest_threads]" to your left column. Your custom template is, i assume, is inserted into forum home in order to show on your forum index, so try leaving the hooks alone.

Staxed 02-12-2007 07:21 PM

already tried inserting that...i know how to get it to show (I'm a Designer)...issue is...it will show the titles (Posts, Views, etc) if I put them in...but the second it calls that variable it won't output anything else...and that's where i'm stuck...(I'm NOT a coder...lol)


All times are GMT. The time now is 11:09 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.02298 seconds
  • Memory Usage 1,750KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_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