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)
-   -   Forumhomelinks Mini-Hack 1.0 (https://vborg.vbsupport.ru/showthread.php?t=40799)

Birdie501 07-07-2002 10:00 PM

Forumhomelinks Mini-Hack 1.0
 
************************************************** **
Forumhomelinks Mini-Hack 1.0
credits to: Xenon
tested with vb 2.2.5 but should work with vb 2.x.x
************************************************** **
What it does:
Lot of forums uses this three little links in their forumhome template to start a new thread, show latest replys and to subscribe to that forum. But they are also shown to unregistered users. For me it make no sense to show it to them.
Therefore i made this little hack.

Instructions attached.

Screenshot in first post or in zip file.

Have fun!

zip includes: install file, graphics, screenshots

Birdie501 07-07-2002 10:48 PM

Screen when logged in:

Birdie501 07-07-2002 10:49 PM

Screen when logged out:

Birdie501 07-07-2002 10:55 PM

Here the three images:

Birdie501 07-07-2002 11:11 PM

If you want to improve the look, use this for your
forumhome_forumbit_level2_post template.

PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}" valign="top"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
    <
td bgcolor="{firstaltcolor}" onMouseOver="this.style.backgroundColor='{secondaltcolor}'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='{firstaltcolor}';" onClick="window.location.href='forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]'">
     <
table width="100%">
       <
tr>
    <
td valign="top"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a></td>
    <
td width="10%" align="right" valign="top">$forumhomelinks</td>
       </
tr>
      <
tr>
        <
td colspan="2"><smallfont>$forum[description]</smallfont></td>
      </
tr>
    </
table>
  </
td
    <
td bgcolor="{secondaltcolor}"><normalfont>$forum[replycount]</normalfont></td>
        <
td bgcolor="{firstaltcolor}"><normalfont>$forum[threadcount]</normalfont></td>
        <
td bgcolor="{secondaltcolor}"><smallfont>$forum[lastpostinfo]</smallfont></td>
</
tr


Sho 07-07-2002 11:47 PM

Nice one. Thanks. :)

ZiRu$ 07-08-2002 01:04 AM

dope.....thx

Birdie501 07-08-2002 10:13 AM

19 downloads up to now and nobody installed?

Xenon 07-08-2002 12:52 PM

Gute idee :)

FleaBag 07-08-2002 02:24 PM

In your text file the { imagesfolder } variable is being replaced by https://vborg.vbsupport.ru/images - newbies might not understand what's going on with that. Also, the template points to the image findnew.gif and the images zip contains a file called firstnew.gif. A little editing is required I think! Besides that, a great addition to my forums running 2.2.6 - thanks! :)


All times are GMT. The time now is 12:39 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.01077 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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