PDA

View Full Version : Additional front page options - post new thread + subscribe to this forum links


AndyTSJ
03-03-2002, 01:06 PM
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 :

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

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

<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

ariaforums
03-11-2002, 10:22 AM
Thats cool and it works a treat, just one question tho, how did you add [ x Threads since your last visit ] ?

ta in advance :D

dawl
03-26-2002, 04:51 PM
I'm getting the start new thread even on my categories that aren't open for new posts. Any suggestions ? Removing the modification until I can figure out why i'ts doing that :-(

Inzagi
03-26-2002, 07:50 PM
hi andy,
great template modification, but I also would like to know this:

how did you add [ x Threads since your last visit ] ?

Is it a template mod as well or is a hack needed ?

And I also would like to know wheater you could use this on orher templates like forumdisplay, to have this option in subforums as well!?

Mathiau
03-27-2002, 02:23 AM
thnx m8, put it in works great, just movied mine so it is beside the forum title, above the description.

how did u get..

0 threads since your last visit

in there as well?

ExcErr
03-29-2002, 07:38 AM
Please!!!
Gimme the code of "Threads since your last visit" part if it possible!!! I`m looking it a long time already. :(

ZiRu$
04-03-2002, 01:10 AM
Originally posted by ExcErr
Please!!!
Gimme the code of "Threads since your last visit" part if it possible!!! I`m looking it a long time already. :(

me too

Admin
04-03-2002, 04:57 AM
A hack called "Since your last visit". ;)

ZiRu$
04-04-2002, 02:19 AM
Originally posted by FireFly
A hack called "Since your last visit". ;)

but that dosent show under the thread name

Mathiau
04-04-2002, 06:38 AM
Originally posted by FireFly
A hack called "Since your last visit". ;)

okay, i can see how u could use that hack and put it in that template, but how exactly do u specify it for only that thread? as isn't the 'since your last post' do an 'overall' count of all threads, not just specific threads?

Inzagi
04-13-2002, 03:08 PM
bump please

pHAZE_1
05-03-2002, 10:12 PM
very nice modification. could you tell me how to put the icons directly accross from the forum name.. right now it is after the forum description.. thx

Learner29
05-08-2002, 06:55 AM
what is the reason there is no "install this hack" link at the end of the thread page?

Mr. X
05-08-2002, 07:23 PM
Because its not a hack I guess.

Carthriller
06-03-2002, 02:28 AM
HI,

I see that you posted a frontpage hack and I have a question. I was wondering if you know what the query string is for the one that displays "only view new posts"...I tried

<a href="search.php?action=getlatest&forumid=$forum[forumid]"><img alt="Read New Post in $post[title]" border="0" src="images/findnew.gif" width="11" height="11"></a>

but that didn't work. Any suggestions?

xeon
06-05-2002, 02:06 AM
I did this some time ago and Carthriller, I think you need a search.php addition. I will mail it to you tomorrow as my notes on this are in my office. On another note, when I did this originally my icons are all over the place. Most align right, but some just seem to have a mind of their own. Any ideas off hand?

Carthriller
06-05-2002, 03:10 AM
Thanks for the reply. Can you mail it to me. Also I didn't put the icons up, so I won't know how to align, sorry.

Carthriller
06-05-2002, 03:58 AM
Thanks for the reply. Can you mail it to me. Also I didn't put the icons up, so I won't know how to align, sorry.



Originally posted by xeon
I did this some time ago and Carthriller, I think you need a search.php addition. I will mail it to you tomorrow as my notes on this are in my office. On another note, when I did this originally my icons are all over the place. Most align right, but some just seem to have a mind of their own. Any ideas off hand?

Lesane
06-09-2002, 08:53 PM
<a href="https://vborg.vbsupport.ru/showthread.php?postid=258970#post258970" target="_blank">https://vborg.vbsupport.ru/showt...970#post258970</a>

Xelation
06-09-2002, 10:05 PM
how would I get it in the top right hand corner?

SaintDog
06-15-2002, 09:12 AM
Xelation,

Wayne Luke posted this a while back at vBulletin.com, see the below URL (edit forumhome_forumbit_level2_post instead of forumhome_forumbit_level1_post):

http://www.vbulletin.com/forum/showthread.php?s=&threadid=14479&perpage=10&pagenumber=2

- SaintDog

yzztik
09-09-2002, 11:08 AM
Is there a way to add this to sub-forums also? I often subscribe to those since the home ones are just one click away :)

EDITED: Nevermind, I got it! :D

ChurchMedia
01-07-2003, 06:09 AM
Originally posted by yzztik
Is there a way to add this to sub-forums also? I often subscribe to those since the home ones are just one click away :)

EDITED: Nevermind, I got it! :D

Which template did you edit for the sub-forum?

yzztik
01-07-2003, 06:43 AM
the forumdisplay templates ... same as the forumhomes it tells you to edit, just in forumdisplay instead.

ChurchMedia
01-07-2003, 06:57 AM
Thanks! :)