kyrnel
10 May 2004, 23:32
Description:
This hack will add an indicator to each Forum on ForumHome (and to subforums in ForumDisplay) that indicates whether the forum has been subscribed to.
The indicator can be clicked to Add/Remove the subscription to the forum.
Hack Overview:
Queries added: 0
Files to modify: 2 (1 if you have no subforums)
Templates to edit: 5
Phrases to add: 2
New Image files: 2
=========================================================
Instructions:
<file edits>
Step 1) Edit index.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 2) Edit forumdisplay.php (only necessary if you have subforums)
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
<phrase additions>
Step 3) Add GLOBAL phrase
Varname: subscribed_click_to_unsubscribe
Text: Currently Subscribed - Click to REMOVE Subscription
Step 4) Add GLOBAL phrase
Varname: unsubscribed_click_to_subscribe
Text: Currently UNsubscribed - Click to ADD Subscription
<template edits>
Step 5) Edit FORUMDISPLAY (only necessary if you have subforums)
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 6) Edit FORUMHOME (4 changes)
(1)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(2)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(3)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(4)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 7) Edit forumhome_forumbit_level1_nopost
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 8) Edit forumhome_forumbit_level1_post
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 9) Edit forumhome_forumbit_level2_post
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 10) Upload the image files (subscribe_new.gif and subscribed_new.gif) to the images/buttons folder.
That's it!
=========================================================
Screencap and images attached...
Enjoy :)
This hack will add an indicator to each Forum on ForumHome (and to subforums in ForumDisplay) that indicates whether the forum has been subscribed to.
The indicator can be clicked to Add/Remove the subscription to the forum.
Hack Overview:
Queries added: 0
Files to modify: 2 (1 if you have no subforums)
Templates to edit: 5
Phrases to add: 2
New Image files: 2
=========================================================
Instructions:
<file edits>
Step 1) Edit index.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 2) Edit forumdisplay.php (only necessary if you have subforums)
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace with:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
<phrase additions>
Step 3) Add GLOBAL phrase
Varname: subscribed_click_to_unsubscribe
Text: Currently Subscribed - Click to REMOVE Subscription
Step 4) Add GLOBAL phrase
Varname: unsubscribed_click_to_subscribe
Text: Currently UNsubscribed - Click to ADD Subscription
<template edits>
Step 5) Edit FORUMDISPLAY (only necessary if you have subforums)
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 6) Edit FORUMHOME (4 changes)
(1)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(2)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(3)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
(4)Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE it to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 7) Edit forumhome_forumbit_level1_nopost
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CHANGE to:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 8) Edit forumhome_forumbit_level1_post
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 9) Edit forumhome_forumbit_level2_post
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after it ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Step 10) Upload the image files (subscribe_new.gif and subscribed_new.gif) to the images/buttons folder.
That's it!
=========================================================
Screencap and images attached...
Enjoy :)