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)

steadicamop 05-26-2006 07:19 PM

I've just updated this from a previous version - I'm not sure if the old one did this, but where do I add "&goto=newpost" on the end of the url .... I do understand some basic PHP but just can't see where it goes (so that each thread which has been read, when you click the link, always goes to the last post).

Cheers!!

Jason

criscokid 05-27-2006 07:53 AM

Is it possible to use this mod on a page other than on forumhome (like on a portal front page)?

redlabour 06-02-2006 11:46 AM

Sorry Guys, i have installed the Product and can not find any Options in AdminCP and the Hack is not shown on my Forumhome. Where can i fínd install Instructions ?

wrang 06-02-2006 01:11 PM

Quote:

Originally Posted by redlabour
Sorry Guys, i have installed the Product and can not find any Options in AdminCP and the Hack is not shown on my Forumhome. Where can i f?nd install Instructions ?

it dosent show in the ACP after you have logout from the ACP and logged in again

criscokid 06-03-2006 04:33 PM

Quote:

Originally Posted by criscokid
Is it possible to use this mod on a page other than on forumhome (like on a portal front page)?

Is anyone able to offer support on this mod? I've asked the same question twice but unfortunately nobody's posted a reply.

Konstantinos 06-08-2006 12:10 PM

where in admincp do i set the number of threads to display? i cant find the setting

criscokid 06-11-2006 11:47 AM

Quote:

Originally Posted by redlabour
Sorry Guys, i have installed the Product and can not find any Options in AdminCP

I can't find any admin controls for this mod either.

shaynehammy 06-12-2006 05:11 AM

I have two requests. How and where do i exclude certain sections from the latest posts and i would appreciate it if anyone could show me how to have the latest posts scrolling down vertically?

criscokid 06-12-2006 07:39 AM

Ha ha... I'm getting somewhere! :) :)
There are no controls for this mod in the adminCP - you modify the seetings in the XML file - simply make your edits then upload your XML file. Look for this bit of code in the file:
Code:

$getthreads = $db->query_read("
        ## GET LATEST THREADS ##
        SELECT thread.*,thread.iconid AS threadiconid $previewfield
        FROM ".TABLE_PREFIX."thread AS thread
        LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
        $previewjoin
        WHERE open <> 10
        AND forumid NOT IN (0$limitfids)
        AND thread.visible = '1'
        AND deletionlog.primaryid IS NULL
        ORDER BY lastpost
        DESC LIMIT 5");

Change the 5 in 'DESC LIMIT 5' to however many threads you want to show.

Now all I need to figure out is how to cut out the graphic icons, make the thread title longer and do away with the superfulous 'Last Post: x by y ? Replies: a Views: b' text.

dutchbb 06-12-2006 08:45 AM

@ criscokid: You can change the title length in that plugin too (it's standard set to 22)

And the rest you can find in the template "forumhome_latestthreadbit"

criscokid 06-12-2006 12:35 PM

Thank Triple T :) :)
Is it possible to exclude specific forums from showing up in the 'latest threads'?

Triple T: What mod are you running at http://forum.dutchbodybuilding.com/links.php?)

criscokid 06-12-2006 01:02 PM

I originally put the 'latest threads block' at the bottom of the page as suggested. It all displays ok. I've now tried to put it at the top of the page just below the navbar but it breaks the page... I've got a side column on the the left as I'm using vbPortal - the 'latest threads block' and the rest of FORUMHOME gets displayed after the bootom of the left column. Anyone able to help?

criscokid 06-13-2006 12:39 PM

Is it possible to exclude specific forums from showing up in the 'latest threads'?

criscokid 06-16-2006 09:52 AM

Quote:

Originally Posted by criscokid
Is it possible to exclude specific forums from showing up in the 'latest threads'?

Is anyone able to answer my question?

Alysum 06-22-2006 04:17 AM

Does this work with VB 3.5.4 or has there been a better Addon since then? Thanks

harishankar 06-22-2006 04:38 AM

Oops wrong thread.

RichieBoy67 06-29-2006 06:32 PM

Quote:

Originally Posted by criscokid
Is it possible to exclude specific forums from showing up in the 'latest threads'?


PHP Code:

FROM ".TABLE_PREFIX."thread AS thread
        LEFT JOIN 
".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid deletionlog.primaryid AND type 'thread')
        
$previewjoin
        WHERE open 
<> 10
        
AND forumid NOT IN (74,75,76,94,86,41,106,118,113,105,107,110,112,119,111,108,92,104,121,122,123,124,125,126,127,128,129,133,130,146,147,148,149,150,151,152,153,154,158,88$limitfids)
        AND 
thread.visible '1'
        
AND deletionlog.primaryid IS NULL
        ORDER BY lastpost
        DESC LIMIT 20
"); 


There is some of my code showing how I blocked all these forums from showing...

-=Sniper=- 06-30-2006 12:39 AM

I added ajax refresh option, for those interested

https://vborg.vbsupport.ru/showpost....08&postcount=5

its simple and it does work :)

letsjoy 07-04-2006 11:39 AM

thanx for that

asasi 07-08-2006 09:12 AM

Hi!
in 3.0.X version off latest threads on forumhome the informations scrolling from botton to top in a field. in this version I cant find this and threads is static

dodjer42 07-14-2006 04:36 AM

Bit of a noob question, but my latest threads appears at the bottom of my forum. Shouldnt it appear at the top? I searched in FORUMHOME and put it in according to the install instructions, but its still at the bottom.

Regards,
D

Snake 07-14-2006 11:12 AM

Awesome! How can I never notice about this great hack. :D

dodjer42 07-17-2006 04:55 AM

Quote:

Originally Posted by dodjer42
Bit of a noob question, but my latest threads appears at the bottom of my forum. Shouldnt it appear at the top? I searched in FORUMHOME and put it in according to the install instructions, but its still at the bottom.

Regards,
D

Sorted.

I found also that using the default syntax, the latest threads popped up without a border table. I modded the FORUMHOME insert code to this which seems to be a bit cleaner.

PHP Code:

<!-- latest threads -->
<if 
condition="$show['latestthreads']">
<
tbody>

<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
    <
tr>
        <
td class="thead" colspan="2">
            <
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="alt1"><div class="smallfont">$threadbits</div></td>
    </
tr>
</
tbody>
</
table>

</if>
<!-- /
latest threads --> 

Is there anyway to modify the text so that forum thread title is truncated less? At the moment it seems to truncate around 10-15 chars along (even though I have hundreds of pixels whitespace on the right of the latest threads table.

Techno05 07-17-2006 08:59 AM

Anyone know how to make it display on any page?

hnjco 07-17-2006 06:06 PM

Hi Chirs:

I have following questions for you

1) Is it possible to move latest thread box to the top on forum home? underneath usercp menu?

2) Is it possible to display the thread in a column format like

[Thead] | [Posts] | [Poster]

3) Can we increase the size of the name of the thread ? we want to show the full name of the thread not cut it?

Please give us quote to make these changes?

thanks
hnj

criscokid 07-18-2006 10:41 AM

Quote:

Originally Posted by dodjer42
Is there anyway to modify the text so that forum thread title is truncated less?

Play around with the settings in the XML file... edit the file then upload it again. Sorry I can't be more specific than that... I had to use a bit of common sense (and tial and error when I made changes for my site).

shaynehammy 07-20-2006 07:49 AM

Quote:

Originally Posted by shaynehammy
I have two requests. How and where do i exclude certain sections from the latest posts and i would appreciate it if anyone could show me how to have the latest posts scrolling down vertically?

BUMP! Please help!!. Looking for a way to add a scolling marquee to this vertically displaying about 10 - 15 latest posts. Options for admin could be up or down, speed etc...

Please, I'd really appreciate it.

Thank you.

Shayne

SiriusBlack22 07-22-2006 05:52 PM

Good hack but it's messy. You should make it more organized. :(

SiriusBlack22 07-22-2006 05:56 PM

Quote:

Originally Posted by shaynehammy
BUMP! Please help!!. Looking for a way to add a scolling marquee to this vertically displaying about 10 - 15 latest posts. Options for admin could be up or down, speed etc...

Please, I'd really appreciate it.

Thank you.

Shayne

I don't know how to implement this, but it the things you mentioned were easy. All of the aspects of the marquee are HTML codes.

thenetbox 07-24-2006 09:30 PM

hello

Do you know why it doesn't work on a side bar? I installed https://vborg.vbsupport.ru/showthread.php?t=117989 but it doesn't show anything in side the side bar.

How can I pass the values to the sidebar that exist in forumhome?

Blindchild02 07-25-2006 03:49 AM

any way to put this in header/footer so it shows on all pages

punk23 07-30-2006 09:49 AM

Hi all - I don't know if this is still supported but I wonder if someone could please help me change the look of my "Latest Threads" box from this:

http://img89.imageshack.us/img89/9767/beforeiw4.th.gif

To this:

http://img100.imageshack.us/img100/7454/afterbj4.th.gif

Thanks!!

:D

Edog 08-09-2006 01:32 AM

Im guessing this is good for 3.6?

Coach_Guru 08-09-2006 08:58 PM

How to display in an external page(vbtemplates)?

Thanks a lot.

criscokid 08-13-2006 08:18 PM

What edits do I need to make so that clicking on a username opens up that user's profile in a new browser window?

aveon 08-22-2006 10:52 PM

hey chris how can we make this seen on all pages not only on forum home??

wrang 08-23-2006 05:44 AM

Is it possible to make so when i click on a thread link came to the last page if it has more than one page. Now you came to the first page and not the last page

Nick0r 08-27-2006 09:10 AM

There is definitely a permissions issue with this hack, it seems to totally ignore any permissions given - guests/regular members can see restricted forums.

Onkel_Tom 08-27-2006 07:05 PM

Quote:

Originally Posted by Nick0r
There is definitely a permissions issue with this hack, it seems to totally ignore any permissions given - guests/regular members can see restricted forums.

As I use the original hack from NTLDR for my vb 3.0.x, I ported it today to the new 3.6.0 version on my own because of many changes and additions.

For the permission issue please try to change the following lines in the .xml file to their original syntax an try if the issue is gone. For me it works fine with this lines!

find in product-chrism_latestthreads.xml
PHP Code:

$forumperms[$forum["forumid"]] = fetch_permissions($forum['forumid']);

    
// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
    
if (!($forumperms[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) {
        
$limitfids .= ','.$forum['forumid'];
    }


Replace it with
PHP Code:

$forumperms["$forum[forumid]"] = fetch_permissions($forum['forumid']);

    
// ## HIDE FORUMS WITHOUT THE CANVIEW PERMISSION ##
    
if (!($forumperms["$forum[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums']) {
        
$limitfids .= ','.$forum['forumid'];
    }


If you want to exclude some Usergroups from viewing the latest threads:
search for:
PHP Code:

if ($threads) {
    
$show['latestthreads'] = true;


Add after:
PHP Code:

$grouparray = array ( 1,3,4,8); 
if (
in_array($vbulletin->userinfo['usergroupid'],$grouparray) OR $vbulletin->userinfo['userid'] == )
    {
    
$show['latestthreads'] = false;
  } 

@ dodjer42
If you want to change the thread title truncation edit the number 22 at the end of this line:
PHP Code:

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

e.g. to 50 to truncate at 50 characters.

Don't forget to upload/install the changed file!

aveon 08-28-2006 01:10 PM

is there any way to show it on all pages instead of only on forum home??


All times are GMT. The time now is 08:36 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.01940 seconds
  • Memory Usage 1,867KB
  • 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_code_printable
  • (7)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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