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)

bing11 07-05-2005 01:17 AM

thank you hellsatan

I have a plan .I hope there are 2 different Latest Threads on my Forum Home.

I try do it by myself :(. But not working . So hope you help :)

Kirk Y 07-05-2005 04:57 AM

Quote:

Originally Posted by bing11
thank you hellsatan

I have a plan .I hope there are 2 different Latest Threads on my Forum Home.

I try do it by myself :(. But not working . So hope you help :)

...Huh? Sorry... I'm confused. :ermm:

aldo7a 07-05-2005 02:17 PM

thanks nice hack
is work great
best regard

Chris M 07-05-2005 03:27 PM

Quote:

Originally Posted by acidburn0520
...Huh? Sorry... I'm confused. :ermm:

He wants two versions of the hack, one with the latest threads, and one with the latest posts?

In order to do this, you will have to change the variables within the plugin for the second of the two, otherwise it will not work :)

i.e.

Change:
PHP Code:

$getthreads $db->query_read(

to:
PHP Code:

$getposts $db->query_read(

continue to change the variables and it should work :)

Satan

Kirk Y 07-05-2005 10:31 PM

Ahhh... okay. Satan saves the day... again. :p

Edit: That's actually not a bad idea... I may do the same.

Chris M 07-06-2005 11:38 AM

Oh incase you are wondering, you can increase or decrease the number of latest threads/posts displayed by altering:
PHP Code:

DESC LIMIT 5"); 

Change the [high]5[/high] to whatever you like, i.e. 3 or 10 :)

I'm going to release another version of this as soon as I get the time, with some Admin CP Settings for this, so you can alter what forums do and do not show, the number of results to display etc :)

Satan

ohgenki 07-07-2005 04:28 AM

pardon me, but where is the plugin to download ? i don't see any anywhere...

Biker_GA 07-07-2005 04:52 AM

latest-threads-on-forumhome-111.xml is the file you need. Along with the txt file for your instructions.

Chris M 07-08-2005 03:01 PM

Yeh upon the next release I will .zip it all up ;)

Satan

Rover416 07-10-2005 03:10 AM

Thank for this.

Although i moved it to the top of the forum. :D

Chris M 07-13-2005 02:37 AM

[high]Update[/high]
Beta 4: Update to confirm that this plugin works with vBulletin 3.5.0 Beta 4;)

Satan

southernlady 07-13-2005 12:01 PM

Thanks, Satan...I LOVE this plugin. Liz

Gary King 07-13-2005 07:23 PM

Run this through the w3 validator. Fix the & so that it is &, otherwise you get hundreds of XHTML errors.

Chris M 07-13-2005 09:09 PM

Quote:

Originally Posted by Gary King
Run this through the w3 validator. Fix the & so that it is &, otherwise you get hundreds of XHTML errors.

It was & on my testboard - Hrm...

I'll re-validate it ;)

Satan

Chris M 07-13-2005 09:20 PM

Made it all XHTML compliant now :p

Satan

mholtum 07-13-2005 11:32 PM

Worked like a charm, thanks

SlowRoasted 07-14-2005 12:04 AM

will this work for 3.07? where do i upload the plugin file to?

Dream 07-14-2005 12:13 AM

Quote:

Originally Posted by SlowRoasted
will this work for 3.07? where do i upload the plugin file to?

only vb3.5 has a plugin system

ForYou 07-14-2005 10:06 AM

Hello hellsatan ,

Please can you tell me the steps to how can i put the marquee of lasttheard on forumhome ,

please
Regards

TTG 07-14-2005 10:56 AM

Had this on 3.0.6 .. great to have it back on 3.5.0.
Thanks hellsatan.

Wayne Luke 07-14-2005 06:06 PM

Any screenshots of how people have this implemented?

southernlady 07-14-2005 06:17 PM

Yeah, I can post one. Liz

Chris M 07-14-2005 06:39 PM

I have added a image in the first table, but it's essentially the same ;)

Satan

southernlady 07-14-2005 06:43 PM

Your's is a better shot but mine proves it works! Liz

Wayne Luke 07-14-2005 06:53 PM

Ahh thanks.. I was looking for something more on the lines of SitePoint's Index page.

http://www.sitepoint.com/forums/index.php

albarq 07-14-2005 07:08 PM

hi ...

i've updated my forum to Beta 4 .. and its work fine ... but its appear the topics for hidden forums :(



PHP Code:

// #################### PROCESS LATEST THREADS #######################
// fetch the permissions for each forum
global $vbulletin;

$forumperms = array();
foreach(
$vbulletin->forumcache AS $forum) {

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

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




so when i checked for the value of $limitfids it was empty ... :)


have i messed something?? i upgread also this hack :s

guied me please


thank you

Chris M 07-14-2005 07:14 PM

Quote:

Originally Posted by albarq
hi ...

i've updated my forum to Beta 4 .. and its work fine ... but its appear the topics for hidden forums :(



PHP Code:

// #################### PROCESS LATEST THREADS #######################
// fetch the permissions for each forum
global $vbulletin;

$forumperms = array();
foreach(
$vbulletin->forumcache AS $forum) {

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

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




so when i checked for the value of $limitfids it was empty ... :)

so any help?

thank you

I will recheck the limitfids section of this :)

Satan

Chris M 07-14-2005 08:57 PM

[high]Update[/high]
Version 1.1.2: Simple update to fix the permissions bug again - It keeps cropping up lol :)

I've also altered the fetch_userinfo location of the template cache plugin to cache_templates so that it is cached for guests as well :)

To upgrade, simply delete the previous plugins and upload the new .xml file :)

Satan

albarq 07-14-2005 09:09 PM

thanks you


its work now :)

Chris M 07-14-2005 09:12 PM

Your welcome :)

I hadn't noticed it had become incorrect because I formatted my board, and forgot to add back my registered "testuser" ;)

Satan

ForYou 07-15-2005 06:38 AM

Hello Satan ,

please if you can to let me how can i do marquee last theard at the top of forum home page ,

and there is another thing , is there a way to view the orginal poster of theard and and lastposter togather ,

regards

Brinnie 07-15-2005 07:05 AM

Hey... I think it would be cool if you could set it to only Hot Topics... Yea, that way people could add a caption like "Highlighted Forum Discussions" like sitepoint does.

I probably wouldn't use it, as I don't like to clutter my board index, but it's just a thought. ;)

ForYou 07-17-2005 10:38 AM

Quote:

Originally Posted by ForYou
Hello Satan ,

please if you can to let me how can i do marquee last theard at the top of forum home page ,

and there is another thing , is there a way to view the orginal poster of theard and and lastposter togather ,

regards

Satan Hello ,


Please help

Regards

HSN 07-17-2005 02:25 PM

Hello,
I installed it but didn't see any changes there!! How would this hack appear in my forum?!

albarq 07-21-2005 12:53 PM

Quote:

Originally Posted by ForYou


please if you can to let me how can i do marquee last theard at the top of forum home page ,


Regards

change the code inside forumhome_latestthreadbit to this one:

PHP Code:

<a href="showthread.php?t=$thread[threadid]title="$thread[preview]"><strong>$thread[title]</strong></a>&nbsp<a title="$thread[date] $thread[time]$vbphrase[replies]$thread[replycount]    ? $vbphrase[views]$thread[views]href="showthread.php?goto=newpost&t=$thread[threadid]"><span style="text-decoration: none"><font color="#000000">$vbphrase[last_postby </font></span></a> <phrase 1="member.php?find=lastposter&t=$thread[threadid]2="$thread[lastposter]">$vbphrase[by_x]</phrase>    &nbsp;&nbsp;.:|:.&nbsp;&nbsp

you can change it if you wish...


then go to the FORUMHOME and change the position of this hack from down to the top ..

so you need to search for

PHP Code:

<!-- latest threads -->
<if 
condition="$show['latestthreads']">
<
table class="tborder" border="0" width="100%" align="center">
<
tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
    <
tr>
        <
td class="alt1"><div class="smallfont"><marquee dir="rtl" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=2" scrollAmount="4" scrollDelay="50" direction="right" height="35">$threadbits</marquee></div></td>
    </
tr>
</
tbody>
</
table>
</if>
<!-- /
latest threads --> 

hope that will work...

thank you

albarq 07-21-2005 01:00 PM

hellsatan, sorry

i found a small issues , i have a small forum which its topics just appears to them owner and moderator... so, could you upgrade this hack please to work with this forum ??

thank you

Chris M 07-21-2005 02:47 PM

I'm not sure I understand the request...

You want threads that are only viewable by the user who posted it and moderators to remain so in the Latest Threads box? Or you don't want them to show up at all?

If the user does not have permission to view the threads then they won't show up in the box - If you want to exclude the forum from showing on the latest threads box altogether, alter the plugin, replacing:
PHP Code:

AND forumid NOT IN (0$limitfids

with:
PHP Code:

AND forumid NOT IN (0,X$limitfids

Replace [high]X[/high] with the forumid of that forum, but DO NOT add a comma after the X ;)

Satan

albarq 07-22-2005 01:22 AM

hummm No, i dont want to hide all the fourm topics,

i just want this topics appear to the people who have the permission to view (poster or moderator)... otherwise, not.... rather than appearing/hiding all topics to every one .


BECAUSE now all the topics appears to every one :(, if there is a problem from my side, please guide me.


thank you for your replying

albarq

Chris M 07-22-2005 09:25 PM

Quote:

Originally Posted by albarq
hummm No, i dont want to hide all the fourm topics,

i just want this topics appear to the people who have the permission to view (poster or moderator)... otherwise, not.... rather than appearing/hiding all topics to every one .


BECAUSE now all the topics appears to every one :(, if there is a problem from my side, please guide me.


thank you for your replying

albarq

It should already do this - If it does not, make sure you are running the latest version of this plugin :)

Satan

albarq 07-23-2005 11:47 AM

ya, i have the last plug-in

see this example for your code

PHP Code:

## 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 10
"); 



All times are GMT. The time now is 03:23 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.01866 seconds
  • Memory Usage 1,861KB
  • 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
  • (10)bbcode_php_printable
  • (8)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