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)
-   -   On.gif = Link to latest threads in forum (https://vborg.vbsupport.ru/showthread.php?t=42416)

Boofo 08-21-2002 11:52 PM

Austin Dea, I have an update for you to add to this hack. If you want the images linked in the usercp for the Subscribed Forums, do the following:

In usercp.php, replace

PHP Code:

 if ($userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          }
        }

        if ((!
$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff'].='lock';
        } 

with:

PHP Code:

// on/off link hack
        
if ($userlastvisit<$forum['lastpost']) {
        eval(
"\$forum['onoff'] = \"".gettemplate('forumhome_onlink')."\";");
          } else {
            
$forum['onoff']='<img src="{ imagesfolder}/off.gif" border="0" alt="There are no new posts in this forum">';
          }
        }

        if ((!
$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff']='<img src="{ imagesfolder}/lock.gif" border="0" alt="This forum is locked!">';
        }
// end on/off link hack 

and in the "usercp_forumbit" template, change this:

PHP Code:

<img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt=""

to this:

PHP Code:

$forum[onoff

and don't forget to add forumhome_onlink to the templatesused line if the usercp.php file.

NOTE: Don't forget to take the spaces out between the { and imagesfolder.

That's all! :)

Austin Dea 08-22-2002 02:55 AM

I never use the Subscribed forums personally, but great idea ;).

Boofo 08-22-2002 03:15 AM

I usually don't use them either but sooner or later, someone would catch it. So, better to take care of it now, huh? :)

Quote:

Originally posted by Austin Dea
I never use the Subscribed forums personally, but great idea ;).

Austin Dea 08-22-2002 02:38 PM

Yes, I'll add to the instructions :).

leon2u 09-10-2002 07:20 PM

Look at my snapshot plz...

I have installed a hack which shows the latest threads on my homepage. What I want is that in each posted thread titel is a ligtbulb on which I can click and go to the last post in that Thread!

This is one step further then what you have, with your hack you go to the last post in the whole forum...i need to go to the last post of every thread...

So on the left of the snapshot under Laatste Topics there are the 5 latest threads on the forum. In each of them I will have later on a picture on which I can click and go directly to the latest post in that thread.

Could you gimme the code for that???

Thanx

Austin Dea 09-11-2002 12:35 AM

Just make that image link to this in whatever template shows that.
Code:

"showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$thread[threadid]"

leon2u 09-11-2002 05:44 AM

Thanx for your reply but I managed to fix that on my own :)
I used this for the 'replier' part in the snapshot (on your left)
showthread.php?s=&goto=lastpost&threadid=$thread[threadid]"

You posted this
Quote:

Originally posted by Austin Dea
Code:

$session[sessionhash]

Q 1: What does the $session mean and the [sessionhash]? Does it has a function in this one??? It seems to be here...

Q2: Besides that how do I get the the lightbulb picture for if there is a new post in that particular thread, what code do I need for that?

Q3: Then I want to have another function for when my mouse is over the Thread link in the menu...when my mouse rests on the link then I would love to have a popup information screen in which forum it has been posted...could you get me this code...I think it has to with a mouse over event but then I still need the code to fill out for the forum it has been post in....

Thanx for your effort...

Austin Dea 09-12-2002 01:12 AM

I think you should ask for this in the Request forum, since it is a totally different hack.

Alien 04-10-2003 04:59 PM

Anyone have a copy of the exact file listed in post #1 here? The link is completely dead now.

-Jason

Austin Dea 04-11-2003 04:04 PM

Sorry ^_^;. Check the first post.


All times are GMT. The time now is 01:03 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.01139 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)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