vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Latest Threads on Your Desktop (https://vborg.vbsupport.ru/showthread.php?t=36008)

MrLister 03-13-2002 04:01 AM

oh btw great hack

TECK 03-13-2002 06:17 AM

Quote:

Originally posted by nicksaunders
nakkid,
i think i might have a solution looking at your code.

i try to help as much as i can, even if my php knowledge is limited ;)
let us all know what's new with your hack.. btw, that solved your query problem?

N!ck 03-13-2002 11:40 AM

solved it...i used the getpermissions() thing to make sure each thread is viewable by the user - no private threads are shown except to admins and mods.

the only downside is that it may show a few less threads than set with private thread viewing for regular users off. you can change the settings, though, for the max number of latest threads to show and whether you want to restrict viewing of threads in private forums.

your post DID help me though !! :) i didn't even THINK of using the getpermissions() function. thanks

cditty 03-13-2002 11:47 AM

Is the attachment updated for this change? Also, any tips on adding online users to the page?

Chris

N!ck 03-13-2002 09:31 PM

chris,
the attachment is updated, yes...

now, as far as online users go, i hadn't considered this feature, but i will probably (unless i have difficulties ;) ) add the option to the special edition. check on it this weekend...i plan to write the special edition THEN ;)

school of course gets in the way, but spring break is next week ;)

cditty 03-13-2002 09:36 PM

Thanks man.

Chris

wooolF[RM] 03-13-2002 10:42 PM

]just installed :) looks very nice...

An option that could be implemented in to your new special edition - when user have seen all new messages or have marked them as read, on.gif should change to off.gif. How to do it?
[cough] Taskbar Ticker have this feature [/cough] ;)

and another thing... to take one line less from finish php page on your desktop use this
PHP Code:

<td><normalfont><b>&nbsp;&nbsp;$bbtitle&nbsp;&nbsp;&nbsp;Latest Topics</b></normalfont></td

instead of this
PHP Code:

<td><normalfont><b>$bbtitle<br>Latest Topics</b></normalfont></td

Gives a better look and as said takes one line away (more space to new threads ;) )

Here's mine "LATEST" template (modified a lil bit as many users have long nicknames and thus makes many new threads on two lines instead of one)
PHP Code:

<HTML>
<
HEAD>
$headinclude
<META HTTP-EQUIV=Refresh CONTENT="1800;latest.php">
<
META HTTP-EQUIV=Pragma CONTENT=no-cache>
<
TITLE>$bbtitleLatest Topics</TITLE>
</
HEAD>
<
body>
<
table border=0 cellpadding=0 cellspacing=1>
<
tr>
  <
td valign="top"><img src="{imagesfolder}/on.gif" width="15" height="15"></td>
  <
td><normalfont><b>&nbsp;&nbsp;$bbtitle&nbsp;&nbsp;&nbsp;Latest Topics</b></normalfont></td>
</
tr></table>
<
table border="0" width="450" cellpadding="2" cellspacing="1" bordercolor="{tablebordercolor}" bordercolordark="{tablebordercolor}">
<
tr>
  <
td bgcolor="{tableheadbgcolor}" align="center" width="290"><smallfont color="{tableheadtextcolor}"><b>Thread</b></smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" align="center" width="100"><smallfont color="{tableheadtextcolor}"><nobr><b>Last Poster</b></nobr></smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" align="center" width="30"><smallfont color="{tableheadtextcolor}"><b>Replies</b></smallfont></td>
  <
td bgcolor="{tableheadbgcolor}" align="center" width="30"><smallfont color="{tableheadtextcolor}"><b>Views</b></smallfont></td>
</
tr>
$latest
</table>
</
BODY>
</
HTML

:)

have a nice day/eve :)

wooolF[RM] 03-13-2002 10:44 PM

]weird... but all codes like this one { tableheadbgcolor } have changed to ones that vb.org uses... well... I think u've got the main idea ;) if not - pm me

N!ck 03-13-2002 11:11 PM

those must be your settings then ;)

again, the unread/read thing *may* appear in the special edition :) if i'm unable to do it myself, i can always look at the taskbar ticker code for inspiration.

anyhow....................................
glad y'all like it.

N!ck 03-14-2002 10:44 PM

[tease]the special edition is coming soon :D[/tease]


All times are GMT. The time now is 04:51 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.01102 seconds
  • Memory Usage 1,762KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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