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! :)

Xenon 07-08-2002 02:39 PM

yeah, don't attach txt-files, because the replacements become parsed, post an zip file instead..

Birdie501 07-08-2002 02:41 PM

ok , i will change immediately!

FleaBag 07-08-2002 10:43 PM

Good man. ;)

FleaBag 09-04-2002 07:46 AM

Working well on 2.2.7. :)

Mathieu 09-04-2002 08:07 AM

thanks for this hack Birdie501

FleaBag 09-04-2002 10:03 AM

Vous ne devriez pas vous inqui?ter. Votre anglais est bien mieux que notre Fran?ais! ;)

Fenriz 06-17-2004 08:57 AM

Could anyone tell, how I can install this hack on vB3?

John Diver 07-04-2004 10:49 AM

Could anyone do this for vb3?

D|ver 07-20-2004 06:01 PM

Quote:

Originally Posted by John Diver
Could anyone do this for vb3?

yeah that would be great, i am also looking for a vb3 version of this

Birdie501 07-21-2004 05:51 AM

As i don't have a licence for vb3 i cannot update this hack. Sorry.


All times are GMT. The time now is 05:03 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.01253 seconds
  • Memory Usage 1,760KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete