vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Additional front page options - post new thread + subscribe to this forum links (https://vborg.vbsupport.ru/showthread.php?t=35660)

AndyTSJ 03-03-2002 01:06 PM

Additional front page options - post new thread + subscribe to this forum links
 
1 Attachment(s)
Additional front page options 2.2.x - v1
Let me make this clear - I saw this hack on a set of forums, thought it looked nice, and created it myself for my boards. The idea is the property of that site since I didn't think of the idea myself. However, I made the changes to the code myself. I am not sure if this has been documented before as a hack on this site - if it has then feel free to ignore or delete this file.

(c) 2002 Andy P
################################################## ###################################
VERSION 2.x INSTALLALLATION (probably works for earlier versions too)
################################################## ###################################

AS WITH ANY HACK, BACKUP YOUR FILES BEFORE MAKING ANY CHANGES

################################################## ###################################

### HACK OVERVIEW

This 'hack' adds "Post a new thread in this topic" and "Subscribe to this forum" icon links to the forum homepage.



### INSTALLATION OVERVIEW

-upload two graphics files to your images folder
-edit one template 'forumhome_forumbit_level2_post'



### DETAILED INSTRUCTIONS

###
1 // Upload newthread2.gif and subscribe2.gif into your images folder


###
2 // Inside the 'forumhome_forumbit_level2_post' template

Find :

PHP Code:

<td bgcolor="#13486D" align="left"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>
    <
br><smallfont>$forum[description]</smallfont

Add underneath that :

PHP Code:

<a href="newthread.php?s=&forumid=$forum[forumid]"><img src="images/newthread2.gif" border="0" alt="Create a new topic in $forum[title]"></a> <a href="member2.php?s=&action=addsubscription&forumid=$forum[forumid]"><img src="images/subscribe2.gif" border="0" alt="Subscribe to the $forum[title] forum"></a

### FINISHED !

inetd 03-03-2002 01:10 PM

You have demo?

AndyTSJ 03-03-2002 01:14 PM

1 Attachment(s)
Image of how it looks on the site....

MrLister 03-03-2002 01:38 PM

This is a template modification not a hack.

Admin 03-03-2002 02:38 PM

^ What he said. :)

AndyTSJ 03-03-2002 03:26 PM

Guess I got excited cuz I did something by myself :D

Wayne Luke 03-04-2002 03:14 PM

It is interesting to know that when you make changes on your forums two things seem to happen.

1. The users first dislike change.

2. If the changes are good you can find them everywhere within a year. Just like this modification.

www.sitepointforums.com

Mr. X 03-07-2002 06:02 AM

Im trying to install this hack, but I cant find any of the code in the first part of the hack. This is what my template looks like:

PHP Code:

<tr align="center">
    <
td bgcolor="{secondaltcolor}" valign="top"><img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""></td>
    <
td bgcolor="{firstaltcolor}" align="left"
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]'">
<
a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont><b>$forum[title]</b></normalfont></a>
    <
br><smallfont>$forum[description]</smallfont></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>
    <
form><td bgcolor="{firstaltcolor}" valign="middle" align="right" nowrap>
<
IMG align="absmiddle" SRC="{imagesfolder}/team.gif">
<
SELECT NAME="newLoc" onChange="jumpPage(this.form.newLoc)" style="font-size: 7pt; background-color: #dfdfdf; font-family: Arial, Tahoma;" maxlength="20">
<
OPTION VALUE="#">moderators</OPTION>
<
OPTION VALUE="#">---------------------</OPTION>
$forum[moderators]</select></td></form></tr>
</
tr

Im looking in the right place right? forumhome_forumbit_level2_post is it correct? Weird.

Mr. X 03-07-2002 06:06 AM

ok nevermind about not finding. I obviously have a custom job in this template, and I put the new code under the $forum part, but when I do, I get a huge black table on top. Hmm.

Matt 03-10-2002 04:05 PM

FANTASTIC! Thank you :D


All times are GMT. The time now is 01:42 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.01045 seconds
  • Memory Usage 1,764KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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