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)
-   -   Last X threads in forumhome for a specific forum {Version 2.9} (https://vborg.vbsupport.ru/showthread.php?t=106726)

Developer 02-10-2006 08:35 AM

Quote:

Originally Posted by MarsNIIT
Yes, :D, i have try but can't, can you tell me how to display $lastxdevelt3 in other forum id???

Thanks.

you mean in other scripts like forumdisplay.php
threadisplay.php

?

MarsNIIT 02-10-2006 09:05 AM

http://2it.in/forumdisplay.php?f=114 <= I want it display here :D, but seem it can't now.

Developer 02-10-2006 10:37 AM

upload the new plugin
then use the new code below
Code:

<if condition="THIS_SCRIPT == 'forumdisplay'"><if condition="$vboptions[endislastx]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('developer')"><img id="collapseimg_developer" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_developer].gif" alt="" border="0" /></a>
                        <img border="0" src="$stylevar[imgdir_misc]/subscribed_event.gif"> $vbphrase[ltff]$forumnamedevel
                </td>
        </tr>
</thead>
<tbody id="collapseobj_developer" style="$vbcollapse[collapseobj_developer]">
        <tr>
                <td class="alt1">
                        <table width='100%' cellspacing="0" border="0">
<tr>
                <if condition="$vboptions[endislastx1]"><td width="33%" align="left"><img border="0" src="$stylevar[imgdir_misc]/sticky.gif"> $vbphrase[ltfff]$forumnamedevel1</td></if>
                <if condition="$vboptions[endislastx2]"><td width="33%" align="left"><img border="0" src="$stylevar[imgdir_misc]/sticky.gif"> $vbphrase[ltfff]$forumnamedevel2</td></if>
                <if condition="$vboptions[endislastx3]"><td width="33%" align="left"><img border="0" src="$stylevar[imgdir_misc]/sticky.gif"> $vbphrase[ltfff]$forumnamedevel3</td></if>
        </tr>
        <tr>
                <if condition="$vboptions[endislastx1]"><td width="33%" align="left">$lastxdevelt1</td></if>
                <if condition="$vboptions[endislastx2]"><td width="33%" align="left">$lastxdevelt2</td></if>
                <if condition="$vboptions[endislastx3]"><td width="33%" align="left">$lastxdevelt3</td></if>
        </tr>
</table>
                </td>
        </tr>
</tbody>
</table><br></if></if>


redlabour 02-10-2006 10:47 AM

Quote:

Originally Posted by Developer
i'll make a edit for you
what permissions you need?

1. Fine thx ...

2. I mean the Admin, SMod and Modpermission of the Forums.

-=Sniper=- 02-10-2006 12:25 PM

sorry not read though whole thread, so if suggested please ignore :) anychance you can add a feature so we get threads with > xx replies? e.g. I so I can get unasnwered threads listed.

MarsNIIT 02-10-2006 12:45 PM

Quote:

Originally Posted by Developer
upload the new plugin
then use the new code below
Code:

<if condition="THIS_SCRIPT == 'forumdisplay'"><if condition="$vboptions[endislastx]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
        <tr>
                <td class="tcat">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('developer')"><img id="collapseimg_developer" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_developer].gif" alt="" border="0" /></a>
                        <img border="0" src="$stylevar[imgdir_misc]/subscribed_event.gif"> $vbphrase[ltff]$forumnamedevel
                </td>
        </tr>
</thead>
<tbody id="collapseobj_developer" style="$vbcollapse[collapseobj_developer]">
        <tr>
                <td class="alt1">
                        <table width='100%' cellspacing="0" border="0">
<tr>
                <if condition="$vboptions[endislastx1]"><td width="33%" align="left"><img border="0" src="$stylevar[imgdir_misc]/sticky.gif"> $vbphrase[ltfff]$forumnamedevel1</td></if>
                <if condition="$vboptions[endislastx2]"><td width="33%" align="left"><img border="0" src="$stylevar[imgdir_misc]/sticky.gif"> $vbphrase[ltfff]$forumnamedevel2</td></if>
                <if condition="$vboptions[endislastx3]"><td width="33%" align="left"><img border="0" src="$stylevar[imgdir_misc]/sticky.gif"> $vbphrase[ltfff]$forumnamedevel3</td></if>
        </tr>
        <tr>
                <if condition="$vboptions[endislastx1]"><td width="33%" align="left">$lastxdevelt1</td></if>
                <if condition="$vboptions[endislastx2]"><td width="33%" align="left">$lastxdevelt2</td></if>
                <if condition="$vboptions[endislastx3]"><td width="33%" align="left">$lastxdevelt3</td></if>
        </tr>
</table>
                </td>
        </tr>
</tbody>
</table><br></if></if>



Thank you verry much, it run fine, but i want it display also both forum home and theard forum , when i import new plugin, it only display in theard forum :D, forum home not display more :D.

Developer 02-10-2006 12:59 PM

Quote:

Originally Posted by MarsNIIT
Thank you verry much, it run fine, but i want it display also both forum home and theard forum , when i import new plugin, it only display in theard forum :D, forum home not display more :D.

open the product for forum home
at line 3
find:
Code:

<product productid="lasxtdevel" active="1">
change
Code:

lasxtdevel
to anything

Developer 02-10-2006 01:00 PM

Quote:

Originally Posted by redlabour
1. Fine thx ...

2. I mean the Admin, SMod and Modpermission of the Forums.

you mean staff forum????

Developer 02-10-2006 01:02 PM

Quote:

Originally Posted by -=Sniper=-
sorry not read though whole thread, so if suggested please ignore :) anychance you can add a feature so we get threads with > xx replies? e.g. I so I can get unasnwered threads listed.

mmmmmmmmmm my hack was build for latest thread not latest active thread but never mind i'll edit the product for you

Gizmo5h1t3 02-10-2006 01:05 PM

so to have it display both on forumhome and forumdisplay.....sorry mate for sounding thick, but i didnt understand when u said change that command in line 3 to "anything"

tell ya wot tho, this is a real "in your face" hack, to encourage more traffic on the board, saves ages searching for stuff.....


All times are GMT. The time now is 06:48 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.01286 seconds
  • Memory Usage 1,758KB
  • 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
  • (6)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
  • (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