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.....

MarsNIIT 02-10-2006 02:54 PM

Yes, i have try, but have error when import :D


Quote:

Database error in vBulletin 3.5.3:

Invalid SQL:

INSERT INTO marsniit_setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'endislastx',
'lastxtdevel',
'1',
'',
'',
'yesno',
10,
0,
1,
'lasxtdevel2'
),
(
'endislastx1',
'lastxtdevel',
'1',
'',
'',
'yesno',
20,
0,
1,
'lasxtdevel2'
),
(
'lastxforumid1',
'lastxtdevel',
'209,210,211,51,86,80,81,82,83,146,147,84,85,148,4 9,26,27,28,241,14,59,15,60,16,17,18,19,20,25,57,16 9,23,69,21,171,24,170,58,22',
'2',
'numeric',
'',
30,
0,
1,
'lasxtdevel2'
),
(
'lastxlimit1',
'lastxtdevel',
'10',
'10',
'numeric',
'',
40,
0,
1,
'lasxtdevel2'
),
(
'forumnamedevel1',
'lastxtdevel',
'<b><a href=\"/forumdisplay.php?f=62\"><span style=\"color: Red; font-size: 14px;\"> V.N.S.A</span></a></b> <img src=\"/images/ABC/SugarwareZ-091.gif\" border=\"0\">',
'Main Forum',
'free',
'',
50,
0,
1,
'lasxtdevel2'
),
(
'endislastx2',
'lastxtdevel',
'1',
'',
'',
'yesno',
60,
0,
1,
'lasxtdevel2'
),
(
'lastxforumid2',
'lastxtdevel',
'104,48,76,217,216,74,65,66,68,67,75,215,218,219,2 20,221,222,223,63,247,246,248,249,250,244,245,71,6 4,73,243,70,72,65',
'3',
'numeric',
'',
70,
0,
1,
'lasxtdevel2'
),
(
'lastxlimit2',
'lastxtdevel',
'10',
'10',
'numeric',
'',
80,
0,
1,
'lasxtdevel2'
),
(
'forumnamedevel2',
'lastxtdevel',
'<b><a href=\"/forumdisplay-f_212.html\"><span style=\"color: Red; font-size: 14px;\"> SHARE ZONE</span></a></b> <img src=\"/images/ABC/SugarwareZ-118.gif\" border=\"0\">',
'Sub Forum',
'free',
'',
90,
0,
1,
'lasxtdevel2'
),
(
'endislastx3',
'lastxtdevel',
'1',
'',
'',
'yesno',
100,
0,
1,
'lasxtdevel2'
),
(
'lastxforumid3',
'lastxtdevel',
'174,175,176,188,228,189,190,227,230,192,193,194,1 95,202,203,204,205,206,178,196,179,231,181,182,184 ,185,186,118,121,122,123,124,125,119,126,127,128,1 29,130,137,120,226,131,132,199,133,134,135,117,838 ,262,263,264,265,839,267,836',
'4',
'numeric',
'',
110,
0,
1,
'lasxtdevel2'
),
(
'lastxlimit3',
'lastxtdevel',
'10',
'10',
'numeric',
'',
120,
0,
1,
'lasxtdevel2'
),
(
'forumnamedevel3',
'lastxtdevel',
'<b><a href=\"/forumdisplay.php?f=114\"><span style=\"color: Red; font-size: 14px;\"> TEENS ZONE</span></a></b> <img src=\"/images/ABC/SugarwareZ-014.gif\" border=\"0\">',
'New Forum',
'free',
'',
130,
0,
1,
'lasxtdevel2'
),
(
'devel_copyright1',
'lastxtdevel',
'History::\r\n 1.0 On 30. Jan 2006 Initial Version.<br>\r\n 2.5 On 31. Jan 2006 Fix On/Off the hack add many features(see features)<br>\r\n2.7 On 9. Feb 2006 Now You Can put more than one forum id by puting id the , then id eg:1,2',
'History::\r\n 1.0 On 30. Jan 2006 Initial Version.<br>\r\n 2.5 On 31. Jan 2006 Fix On/Off the hack add many features(see features)<br>\r\n2.7 On 9. Feb 2006 Now You Can put more than one forum id by puting id the , then id eg:1,2',
'free',
'History::\r\n 1.0 On 30. Jan 2006 Initial Version.<br>\r\n 2.5 On 31. Jan 2006 Fix On/Off the hack add many features(see features)<br>\r\n2.7 On 9. Feb 2006 Now You Can put more than one forum id by puting id the , then id eg:1,2',
140,
0,
1,
'lasxtdevel2'
);

MySQL Error : Duplicate entry 'endislastx' for key 1
Error Number : 1062
Date : Friday, February 10th 2006 @ 11:50:03 PM
Script : http://2it.in/x_AdminCP/plugin.php
Referrer : http://2it.in/x_AdminCP/plugin.php?do=productadd
IP Address : 58.186.118.139
Username : MarsNIIT
Classname : vB_Database

Developer 02-10-2006 06:01 PM

sorry for this i'll attach the right product for forum display

Developer 02-10-2006 06:02 PM

attached

MarsNIIT 02-10-2006 06:30 PM

Thank you verry much, all thing fine now :D

Gizmo5h1t3 02-11-2006 08:22 AM

so does the file attrached in post #93 now get it working on both forumhome, and forumdisplay??

Developer 02-11-2006 11:58 AM

Quote:

Originally Posted by Gizmo5h1t3
so does the file attrached in post #93 now get it working on both forumhome, and forumdisplay??

you have to import the 2 product in posts 1,93

MarsNIIT 02-11-2006 04:55 PM

Seem it only display new theard, old theard with new reply can't display??

Developer 02-11-2006 05:13 PM

yes, not latest active threads

Gizmo5h1t3 02-11-2006 05:26 PM

Quote:

Originally Posted by Developer
you have to import the 2 product in posts 1,93


thanks for that mate, works a treat now....

lexx27 02-13-2006 11:26 AM

For some reason column three has bigger font size? Any idea?

Developer 02-13-2006 12:03 PM

Quote:

Originally Posted by lexx27
For some reason column three has bigger font size? Any idea?

sorry i didn't notice this FIXED
2.8 Released On 13. Feb 2006 Column 3 Font Size Fixed UPGRADE=[Product Import]

lexx27 02-13-2006 12:12 PM

Thanx!

Allan 02-13-2006 08:41 PM

It's possible to put the Last threads (table) in different template ?

Developer 02-14-2006 12:45 PM

Quote:

Originally Posted by Allan
It's possible to put the Last threads (table) in different template ?

no, only forum home and if you want to put it in forum display read latest 15 posts and you will find the solution

Allan 02-14-2006 07:16 PM

If i create a custom hook, isn't it ?

I use this tutorial: https://vborg.vbsupport.ru/showthrea...highlight=hook

and i'd like to show the hack on the new template with this hack: https://vborg.vbsupport.ru/showthrea...hlight=wrapper

alduhmy 02-15-2006 09:26 PM

Developer شكراً لك
ما اجمل لغتنا العربيه

Thanked Developer

Developer 02-16-2006 06:53 AM

Quote:

Originally Posted by Allan
If i create a custom hook, isn't it ?

I use this tutorial: https://vborg.vbsupport.ru/showthrea...highlight=hook

and i'd like to show the hack on the new template with this hack: https://vborg.vbsupport.ru/showthrea...hlight=wrapper

mmmmmm ask the original hack coder for this

Developer 02-16-2006 06:54 AM

Quote:

Originally Posted by alduhmy
Developer شكراً لك
ما اجمل لغتنا العربيه

Thanked Developer

ما اجملها بالفعل :) و شكراً لك

Allan 02-17-2006 07:31 PM

French language ;)

Developer 02-20-2006 02:02 PM

allan Had translate the hack to french. here
Hellraider Had translate the hack to german. here

Hornstar 02-20-2006 09:06 PM

Okay cool, i worked it out now.

I think everything has worked out so far

Thanks

Edit is it possible to make it show the latest threads from that category instead of forum?

Developer 02-20-2006 11:23 PM

can done only by enter all forums ids in the category

MUDERCOOL 02-28-2006 07:28 PM

hello, I installed the hack, it's working, great, thank you very much!

but what about the "erased / deleted" threads?
they seems they're "there" on the forumhome now with others together like they're live and still inside.

Developer 02-28-2006 07:31 PM

I'll fix it next release:)

MUDERCOOL 02-28-2006 08:11 PM

Quote:

Originally Posted by Developer
I'll fix it next release:)

sounds great! Thank you very much :)

(/me subscribed to the thread)

MarsNIIT 03-01-2006 07:12 PM

It will verry good if have latest active threads :D

Thanks.

Developer 03-01-2006 10:33 PM

Quote:

Originally Posted by MarsNIIT
It will verry good if have latest active threads :D

Thanks.

i'll make it optionally in the next release may be tonight :)

MarsNIIT 03-07-2006 06:29 PM

Thank you verry much. :D

1numara 03-10-2006 09:15 AM

I want to displat last x threads on left side but it doesnt display anything:(

Mathiau 03-10-2006 07:31 PM

If i use either , or OR between the ID's - i get a database error :( i hav tried to reupload the the product, uninstall, reinstall - the template mod on forumhome is correct but it wont pick up on new posts, nor work with multiple ID's

i know others have got it to work, are there maybe any known hacks tha may interfere with this ?


All times are GMT. The time now is 11:54 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.01548 seconds
  • Memory Usage 1,852KB
  • 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
  • (15)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