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)

VaaKo 11-08-2005 09:52 AM

I just have something wrong, it's supposed to have a post icon beside each topic, right?

but on my board, whenever I "mark as read" all forums, the post icon disappears, take a look:

this is before I mark as read
https://vborg.vbsupport.ru/

and this is after I mark as read
https://vborg.vbsupport.ru/


I just want to place the default post icon beside the non-new threads, how's that?

Chris M 11-08-2005 12:21 PM

Quote:

Originally Posted by Don Corleone
I just have something wrong, it's supposed to have a post icon beside each topic, right?

but on my board, whenever I "mark as read" all forums, the post icon disappears, take a look:

this is before I mark as read
http://img.photobucket.com/albums/v2...0/ebb43dd0.jpg

and this is after I mark as read
http://img.photobucket.com/albums/v2...0/2b3340c5.jpg


I just want to place the default post icon beside the non-new threads, how's that?

You need to check the icon path in the template :)

It has $vboptions[bburl]/ in front of the thread's icon path - Some people need it, some don't ;)

Chris

VaaKo 11-08-2005 06:32 PM

I remove the $vboptions[bburl]/ but still the default post icons isn't appearing

Chris M 11-08-2005 09:25 PM

Then your default icon is not set correctly in the vBoptions :)

Chris

VaaKo 11-09-2005 05:30 PM

I didn't find anything related to the post icons in vBoptions, but I went to Post Icons and the default post icon's path is set to:
http://www.oneforum.org/images/icons/icon1.gif

anything wrong?

wrang 11-13-2005 07:45 AM

It dosent work for me at all.
I haved installed the xml file in acp and put the text in to the forumhead template and made a new template called forumhome_latestthreadbit

http://www.saltvattensguiden.se/forumet/

MarsNIIT 11-14-2005 01:24 PM

I have some forum don't want display in Latest Threads On Forum Home , can you help me :(

Thanks.

MarsNIIT 11-15-2005 03:47 AM

I have some sub forum don't want display in Latest Threads On Forum Home , can you help me

Thanks.

Vierie 11-15-2005 07:49 AM

Look for

PHP Code:

// fetch the permissions for each forum  
global $vbulletin;

$forumperms = array(); 

in the xml-file.

Below that add

PHP Code:

$limitfids x,y,z

x,y,z are the ids of the forums you want to remove.

MarsNIIT 11-16-2005 01:55 PM

Error when i add: $limitfids = x,y,z;

but add: $limitfids = x; it work ok

Parse error: parse error, unexpected T_LNUMBER in /home/niit2it/public_html/index.php(458) : eval()'d code on line 6

Can limit also sub forum of this forum???

Lowfyr 11-18-2005 11:59 AM

hey Chris M,

is it possible to add this mod on 3.5.1 in the header template instead of the forumhome template?

Vierie 11-18-2005 05:38 PM

Quote:

Originally Posted by Lowfyr
hey Chris M,

is it possible to add this mod on 3.5.1 in the header template instead of the forumhome template?

Add
PHP Code:

 require_once('./includes/functions_forumlist.php'); 

at the beginning of your php code in the xml-file and change your hook position to global_start.

Lowfyr 11-19-2005 12:14 PM

thank you vierie, works fine :D

sbryan 11-22-2005 01:14 AM

Hi guys, just installed this onto my newly upgraded 3.5.1 forum :D

Just a few questions..

Can you confirm that visitors will only be able to see the forums that they have permission to?

Secondly, is there a way to edit the display a bit? Please see this pic..

What i want to do is increase it to 10 (or give users the ability to edit it to display as many as they each want) and expand the number of characters from the thread title as you can see i have a bit of extra screen space available.

Cheers!
Shane

southernlady 11-22-2005 01:18 AM

sbryan, I don't know about you but I use a different browser to verify that info. I typically use FF for all my browsing so I bring up my web site in IE and I'm usually not logged in...I see it as a guest there. That way I see it as a guest would see it. :) If IE doesn't work that way for you, try opera. Liz

sbryan 11-22-2005 01:26 AM

Quote:

Originally Posted by southernlady
sbryan, I don't know about you but I use a different browser to verify that info. I typically use FF for all my browsing so I bring up my web site in IE and I'm usually not logged in...I see it as a guest there. That way I see it as a guest would see it. :) If IE doesn't work that way for you, try opera. Liz

cool, i actually just created a test user account with no admin/mod rights and none of the hidden forums appear, thanks :)

any way to edit how the latest threads bit displays though?

Chris M 11-22-2005 02:10 AM

Edit the forumhome_complete part of the product (via Plugin Manager)
Change:
PHP Code:

DESC LIMIT 5"); 

to
PHP Code:

DESC LIMIT 10"); 

Change [high]10[/high] to whatever value you want to display that many results
Now change:
PHP Code:

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

to:
PHP Code:

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

Change [high]35[/high] to whatever value you want your thread title length to be before it's trimmed
:)

Chris

sbryan 11-22-2005 03:10 AM

thanks Chris M, worked an absolute treat :D

wrang 11-22-2005 04:49 AM

Quote:

Originally Posted by Vierie
You have to create a template forumhome_latestthreadbit.

Put
Code:

<div class="smallfont">         
<if condition="$show['firstnew']">                 
<a href="showthread.php?t=$thread[threadid]&amp;goto=newpost"><img src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a>
        </if>
          <if condition="$show['icon'] && !$show['firstnew']">
                  <img src="$vboptions[bburl]/$thread[threadiconpath]" border="0" alt="$thread[threadicontitle]" title="$thread[threadicontitle]" style="vertical-align: text-middle" />
          </if>         
<a href="showthread.php?t=$thread[threadid]" title="$thread[preview]"><strong>$thread[title]</strong></a>         
<em>$vbphrase[last_post]:</em> $thread[date] <if condition="$vboptions['yestoday'] != 2"><span class="time">$thread[time]</span></if> <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>         
&raquo; $vbphrase[replies]: $thread[replycount] 
        &raquo; $vbphrase[views]: $thread[views] 
</div>

into it.

I haved tried to this great plugin but it doesent work for me at all.
www.saltvattensguiden.se/forumet

I run 3.5.1 in my forum Installed the XML file change in the forumhome template but it still dosentwork. What do i do wrong

Can some one help me!?

best regards

ps I have another today but this one isnt so good so i want to change to this one!

MPDev 11-22-2005 12:27 PM

Thanks, Chris! Worked like a charm first time.

b6gm6n 11-22-2005 11:13 PM

very handy! cheers

-b6

wrang 11-29-2005 09:08 PM

Bumb can some one help me please!

I haved tried to this great plugin but it doesent work for me at all.
www.saltvattensguiden.se/forumet

I run 3.5.1 in my forum Installed the XML file change in the forumhome template but it still dosentwork. What do i do wrong

Vierie 11-29-2005 10:19 PM

Did you create that template forumhome_latestthreadbit?

Can you put some punctuation marks into your sentences? Makes them easier to understand.

WhatChaMissin 12-01-2005 04:09 PM

*installs*
Thanks we needed this!

bing11 12-06-2005 09:36 AM

How can make a second Latest+Threads on my Forum Home?

fabianv 12-06-2005 10:44 AM

Brilliant!


You can see it working on


http://forum.cgcentral.net

Mastar 12-06-2005 12:18 PM

There is no title in the window bar, any help?


https://vborg.vbsupport.ru/external/2005/12/16.jpg

Am I suppose to add a phrase?

wrang 12-06-2005 12:41 PM

im realy sad i haved made the template. Installed the XML file
?Put it in to the default template
BUT it dosent still show.
http://www.saltvattensguiden.se/foru....php?styleid=1 :cry: :cry:

somasimple 12-12-2005 01:50 PM

Hi all,

Is there a way to put this enhancement on the top of the page?
Between navbar and forums.

It seems more useful for long list forums?
Thanks.

somasimple 12-13-2005 10:33 AM

Hi all,
Solved. Added some lines for the table and moved the code after $navbar.

Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<!-- latest threads -->
<if condition="$show['latestthreads']">
<tbody>
        <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="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
                <td class="alt1"><div class="smallfont">$threadbits</div></td>
        </tr>
</tbody>
</if>
<!-- /latest threads -->
</table>
<br />


BiReL41r 12-16-2005 07:56 PM

I'm getting an error, it's not showing up but the code is placed in the right spot...

sross 12-17-2005 01:36 AM

ok i got mine mostly working can someone have a look and tell me why only some threads to the left have the "go to last post" icon and others do not? hmm http://www.itburnouts.com
Thanks!

*edit- ok weird now they are all showing, it seems to be a bit random, oh well..

midnightwalker 12-17-2005 05:39 AM

It;s not display the topic icon in my case :(

the link becomes http://www.rmitportal.info/forum/htt...es/icons/5.gif
instead of
http://www.rmitportal.info/forum/images/icons/5.gif

Any idea?

somasimple 12-17-2005 07:41 AM

It seems that you've customized the forum icons.
Normally you need a common forum_new.gif and it will work.

midnightwalker 12-17-2005 09:56 AM

so how can I solve it?

somasimple 12-17-2005 10:54 AM

Hi all,

I modified some forums pics as you did but I have also a common/default set in case of normal procedures/functions calls.

You may hard code the changes in your template with the custom image adress.

wrang 12-17-2005 03:49 PM

It dosent work for me at all

Hope someone els can do some to 3.5.2 or help me

somasimple 12-17-2005 04:38 PM

Hi replace this
Code:

<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
by
Code:

<td class="alt2"><img src="http://www.rmitportal.info/forum/images/icons/5.gif" alt="$vbphrase[latest_threads]" /></td>
normally it may work.
notice that on my site I needed to add a width statement to have it equal with forums.

midnightwalker 12-17-2005 04:53 PM

hi,

Thanks for your help somasimple but it's not what I expected.
Every topic users may chose the different emtion and it's not only the 5.gif so I have to find another way to set the path :)

somasimple 12-20-2005 05:54 AM

Hi,
What is the adress of you forums?
I have pictures in front of messages and it works!
www.somasimple.com/forums/


All times are GMT. The time now is 05:35 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.01657 seconds
  • Memory Usage 1,838KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_php_printable
  • (4)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