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-18-2002 04:43 AM

I found something that would look better on a mouseover. :)

Replace this:

Code:

Get New Posts in this Forum
with this:

Code:

There are NO new posts in this forum
in both the root/index.php and /root/forumdisplay.php.

Austin Dea 08-18-2002 03:40 PM

o_O...you mean for the off.gif? "Get new posts in this forum" is for the on.gif...

Edit: Oh, I see. It's because I copied the other and forgot to change >_<.

Unknown553 08-18-2002 04:33 PM

Bug found with the locked forum icons.

Unknown553 08-18-2002 04:58 PM

Thanks, that worked :)

Austin Dea 08-18-2002 04:59 PM

{sorry, deleted the post above his thanks >_<)


Oh thanks. In both forumdisplay.php and root/index.php

Replace:
PHP Code:

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

With:
PHP Code:

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

And remember to take out the space in { imagesfolder} :).



UPDATED INSTRUCTIONS IN FIRST POST

kenny@ecn 08-19-2002 04:17 AM

Can you point out the differences in the updates? I think i have you're first version installed- and its a b*tch to go through everything...

kenny@ecn 08-19-2002 04:19 AM

Please point out the differences in the update as opposed to the previous version.

Austin Dea 08-19-2002 04:28 AM

Well, I fixed the errors mentioned above...

kenny@ecn 08-19-2002 04:29 AM

Is there a version that you can make of the installer to update the previously installed version instead of going through the whole entire process again?>

Austin Dea 08-19-2002 04:35 AM

Updates:
[8/16] - Added the code to forumdisplay.php
[8/16] - Added 2 template for subforums in forumdisplay.php
[8/17] - Fixed lock.gif issue


And no...

From the first version, do these steps.

PHP Code:

-------------------------------------------
In root/index.php find:
-------------------------------------------

forumhome_forumbit_level2_post,forumhome,

-------------------------------------------
Replace it with:
-------------------------------------------

forumhome_forumbit_level2_post,forumhome,forumhome_onlink,

-------------------------------------------
Still in root/index.php find:
-------------------------------------------
        if ((!
$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff'].='lock';
        }

-------------------------------------------
Replace it with:
-------------------------------------------

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

+====================================+
|
NOTE:Remove space in imagesfolder}|
+====================================+
-------------------------------------------
In root/forumdisplay.php find:
-------------------------------------------

forumdisplay_forumbit_level1_nopost,forumdisplay_forumbit_level2_post,

-------------------------------------------
Replace it with:
-------------------------------------------

forumdisplay_forumbit_level1_nopost,forumdisplay_forumbit_level2_post,forumhome_onlink,

-------------------------------------------
*******************************************
Step 4
*******************************************
-------------------------------------------
Still in root/forumdisplay.php find:
-------------------------------------------

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

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

-------------------------------------------
Replace it with:
-------------------------------------------

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

+====================================+
|
NOTE:Remove space in imagesfolder}|
+====================================+
-------------------------------------------
In template "forumdisplay_forumbit_level1_post" find:
-------------------------------------------

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

+===============================================+
|
NOTE:Remove space in imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------

$forum[onoff]

-------------------------------------------
-------------------------------------------
In template "forumdisplay_forumbit_level2_post" find:
-------------------------------------------

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

+===============================================+
|
NOTE:Remove space in imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------

$forum[onoff]

------------------------------------------- 



All times are GMT. The time now is 12:23 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.01089 seconds
  • Memory Usage 1,783KB
  • 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
  • (3)bbcode_php_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