View Full Version : Seperate Announcments & Stickies from regular threads
assassingod
06-30-2003, 10:00 PM
Seperate Announcments & Stickies from regular threads
Author: assassingod
Description: This will seperate all announcments and stickies in all forums from regular threads.
Screenshots:
https://vborg.vbsupport.ru/attachment.php?s=&postid=414561
images/attach/txt.gifDownload:
https://vborg.vbsupport.ru/attachment.php?s=&postid=425778
Tested on vB version:
2.3.0
Update 13/08/2003
Fixed most bugs - Check download link
Add-ons -
How to add images to the divider
(Author bitg)
$announcement
<tr valign="top">
<td colspan="10"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>
Just change the "clear.gif" reference to the image you want to use. You must change the height and width settings to the height and width of the new image though. If you do not know what that is, just remove it. You would then use a line simular to the following:
<img src="{imagesfolder}/InsertYourFileNameHere.gif" alt="">
How to change the divider to a random image
(Author bitg)
If you want to know how to do this, follow these instructions.
Note: Do this only after you have successfully installed this hack.
Make a directory under your {imagesfolder} directory called "divider" or whatever you want to call it and put all your images that you wish to pull from in there. Name them "1.gif", "2.gif", etc...
Edit your "phpinclude" template and add the following to the bottom of it:
$dividerimagenumber=rand(1,6);
$dividerimage="/divider/$dividerimagenumber.gif";
Note: Modify the "divider" to be the name of the directory you created under {imagesfolder}.
Note: Change the (1,6) to 1,the number of images in your "divider" directory). If you 25 images in your divider directory, it would says (1,25);
Save the "phpinclude" template.
edit your "forumdisplay_sepsai" template.
Replace the default values from the hack in this template with the following:
$announcement
<tr valign="top">
<td colspan="10" bgcolor="#000000" align="center"><img src="{imagesfolder}/$dividerimage" alt=""></td>
</tr>
Note: Change the bgcolor="#000000" to any color you like. You can type in a 6-digit hex code (if you know it) or just replace the "#000000" with "black" or "red" or whatever.
If you use this hack please click the INSTALL (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=54930) button - thank you!
assassingod
07-01-2003, 08:48 PM
Screenshot:
Oblivion Knight
07-01-2003, 09:02 PM
I don't suppose there's a way to make the announcements go back above the sticky topics is there? Don't worry if not, it's not often I post announcements anyway.. ;)
assassingod
07-01-2003, 09:04 PM
There is a way, and I had it figured out earlier, IIRC its just messing around with the arrangment of the variables. I'll have another attempt at it later:)
[Fx]AssAssiN
07-01-2003, 10:16 PM
nice hack!
/me installs
assassingod
07-02-2003, 06:21 AM
Thank you:)
shorty
07-02-2003, 06:28 AM
This rules. :rambo:
If you manage to find out how to get announcements above (for us slightly n00bie PHP/VB-ers). That would be top :D
* shorty hits install button
Oblivion Knight
07-02-2003, 09:39 AM
This mod also seems to be seperating any new threads that are moved and have the "Moved: " prefix.. :ermm:
Screenshot attached.
Note: I haven't moved the $announcement variable to forumdisplay_sepsai yet since I wanted the announcement to stay on top of my stickies.. Though this doesn't make a difference to this problem anyway.
assassingod
07-02-2003, 06:07 PM
Ah right, I thought something like this might happen, never looked into it though.
I'll have a play with it later and see if i can fix it:)
shorty
07-02-2003, 06:11 PM
Thanks Assassin ;)
What variable did you move? Im lost :confused:
assassingod
07-02-2003, 06:15 PM
shorty;
I will take a look at moving announcements to the top later on tonight, if that's alright with you:)
shorty
07-02-2003, 06:18 PM
Fine with me ;) Im just curious as Im in the n00b phase with PHP. Hacks I can install and generally nudge around if they aren't quite right but when it gets to this.. Im teh n00bness :alien:
alkatraz
07-03-2003, 06:48 AM
awesome hack, saw this on someones board the other day and wanted it.. a few days later it apears! thx!!!
I modified mine a little bit because the seperator line colour was a bit too harsh.
For those who want this change but don't know how to do it:
Here's how to make it match your table header BG colour:
$announcement
<tr valign="top" bgcolor=#1D6AA0>
<td colspan="10"><img src="https://vborg.vbsupport.ru/images/clear.gif" alt="" width="1" height="1"></td>
</tr>
Yesterday at 12:39 PM Oblivion Knight said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=414664#post414664)
This mod also seems to be seperating any new threads that are moved and have the "Moved: " prefix.. :ermm:
open forumdisplay.php
cut:if(!$addedRow and $stickyids and $thread[sticky] == 0 and $addedRow = true){
eval("\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
} else {
$sepsai = '';
}
paste the code above:
if ($thread[open]==10) {
assassingod
07-03-2003, 06:08 PM
Yesterday at 11:39 AM Oblivion Knight said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=414664#post414664)
This mod also seems to be seperating any new threads that are moved and have the "Moved: " prefix.. :ermm:
I just tested this out, and it didn't move 'moved' threads to the top.:confused:
Also, AXH, that wont work. Ive tried it and got a parse error (since you didnt mention you need a '}' after $sepsai = '';
})
And after I sorted that it stopped my hack from working.
shorty
07-03-2003, 06:09 PM
Any luck on annoucements above mate *hint hint* :laugh:
Oblivion Knight
07-03-2003, 06:10 PM
Today at 08:08 PM assassingod said this in Post #15 (https://vborg.vbsupport.ru/showthread.php?postid=415052#post415052)
I just tested this out, and it didn't move 'moved' threads to the top.:confused: It doesn't move previously moved threads above the seperator, it's after you install it and move a new thread, things seem to go weird..
Any chance it's conflicting with this hack by Xenon?
https://vborg.vbsupport.ru/showthread.php?s=&threadid=40604
assassingod
07-03-2003, 06:13 PM
shorty;
Still working on it;)
Oblivion Knight;
Yes, I know, I installed my hack then moved a thread and it didnt move it to the top, strange:confused:
Xenon's hack may be conflicting with mine, I havent used his but I will test it out later tonight.
assassingod
07-03-2003, 06:22 PM
shorty;
To make announcements appear at the top, open up template 'forumdisplay_sepsai' and remove
$announcement
then add
$announcement
above
$forumdisplaybits
in template, 'forumdisplay_threadslist'
I'll be adding this to the instructions:)
Today at 09:08 PM assassingod said this in Post #15 (https://vborg.vbsupport.ru/showthread.php?postid=415052#post415052)
I just tested this out, and it didn't move 'moved' threads to the top.:confused:
Also, AXH, that wont work. Ive tried it and got a parse errorworks fine for me
gldtn
07-03-2003, 07:43 PM
Everything seems to be working fine for me.. The annoucements are placed at the top and so forth.. My only problem is that it only separate the stuff from other topics if I have an Annoucement and a FIXED(sticky) thread together. If I only have an Annoucement it does not separate the annoucement alone.
Here is the annoucement on top w/ stickys'..:
http://www.shroomsinbrazil.org/forum/forumdisplay.php?forumid=11
Here is just the annoucement:
http://www.shroomsinbrazil.org/forum/forumdisplay.php?forumid=12
Great little hack by the way.
assassingod
07-03-2003, 07:48 PM
AXH;
Well I got a parse error...
gldtn;
Hmmm, I just tested this locally, and my announcement disappeared. Very strange. I'll sort this out, among other problems later tonight. Thanks for bringing this to my attention:)
gldtn
07-03-2003, 07:51 PM
Today at 03:48 AM alkatraz said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=414900#post414900)
awesome hack, saw this on someones board the other day and wanted it.. a few days later it apears! thx!!!
I modified mine a little bit because the seperator line colour was a bit too harsh.
For those who want this change but don't know how to do it:
Here's how to make it match your table header BG colour:
Just to help those that didn't quite understand what they had to do with that code in oder to get it to mach your vB board..
On step 2 onto installing your SEPSAI hack change the following line:
<img src="https://vborg.vbsupport.ru/vbimages/clear.gif" alt="" width="1" height="1">
To:
<img src="/images/clear.gif" alt="" width="1" height="1">
..and that should use the clear.gif image in your's forum image dir . :banana:
assassingod
No problem..
assassingod
07-03-2003, 08:13 PM
Thanks gltdn, I thought I changed that because I was using {imagesfolder} but vB converted it to vB.orgs images folder & clear.gif.
I will work on the problems tomorrow night.
Ninth Dimension
07-03-2003, 08:13 PM
i'm using my own verson of his hack, and it's working a charm :)
Floris
07-03-2003, 09:34 PM
Good work assassingod !! :-d
Kars10
07-04-2003, 03:06 PM
Thanks Assassin!!
Very cool hack.
Installed without any Problems on my 2.3.0!!
* Kars10 licks install! :)
Kars
shorty
07-04-2003, 03:10 PM
Yesterday at 08:22 PM assassingod said this in Post #19 (https://vborg.vbsupport.ru/showthread.php?postid=415059#post415059)
shorty;
To make announcements appear at the top, open up template 'forumdisplay_sepsai' and remove
then add
above
in template, 'forumdisplay_threadslist'
I'll be adding this to the instructions:)
You are a star mate! EXCELLENT WORK! :D
Hope you can track the final parts :)
assassingod
07-04-2003, 03:30 PM
Thanks all:) I'll be sorting out the other problems later tonight
David Bott
07-05-2003, 06:06 PM
Looking forward to this hack being sorted out. :) Ready to install when ready on AVSFORUM.COM .
ImportPassion
07-05-2003, 11:14 PM
and I as well.
D
Aaron1
07-07-2003, 10:53 AM
Cool hack Assasingod!
Let's hope you can make the announcement threads to go with it aswell!
Freezerator
07-07-2003, 07:39 PM
Hi,
have you fixed the moved threads issue?
Because i have the same problem now, and it looks horrible...
http://forum.scooterforum.net/vbportals/forums/forumdisplay.php?s=&forumid=34
assassingod
07-07-2003, 07:42 PM
I've had a look into it, but I can't find any obvious reason why it's doing that. I am sure a little more hackin' is required so I will have another go later.
David Bott
07-10-2003, 06:11 PM
Any word? Nice hack, but at this point not 100% as it needs to be. :)
ff8_bomb
07-10-2003, 09:38 PM
07-03-03 at 03:43 PM gldtn said this in Post #21 (https://vborg.vbsupport.ru/showthread.php?postid=415083#post415083)
Everything seems to be working fine for me.. The annoucements are placed at the top and so forth.. My only problem is that it only separate the stuff from other topics if I have an Annoucement and a FIXED(sticky) thread together. If I only have an Annoucement it does not separate the annoucement alone.
Here is the annoucement on top w/ stickys'..:
http://www.shroomsinbrazil.org/forum/forumdisplay.php?forumid=11
Here is just the annoucement:
http://www.shroomsinbrazil.org/forum/forumdisplay.php?forumid=12
Great little hack by the way.
Im also having this problem.. Stickies move up, and as long as they are there, announcements are up too. But when they arnt, announcements go back to being regular
proxyMX
07-12-2003, 02:49 AM
hey, its not working for me
proxyMX
07-12-2003, 02:54 AM
is now, template problem :P
Hostc
07-13-2003, 03:17 AM
Why does this need file edits? Wouldn't it just require a template edit?
assassingod
07-13-2003, 06:16 AM
How so Hostc? In vB3 it can be done via template edits, not vB2 though.
ff8_bomb
07-19-2003, 03:27 PM
07-13-03 at 02:16 AM assassingod said this in Post #40 (https://vborg.vbsupport.ru/showthread.php?postid=417383#post417383)
How so Hostc? In vB3 it can be done via template edits, not vB2 though.
Please for the love of god answer my question above.
ImportPassion
07-24-2003, 08:26 PM
anything yet?
assassingod
07-28-2003, 10:51 PM
My sincere apologies for not sorting out any problems that any of you have using this. I will try to sort them out soon.
albibak
07-29-2003, 07:02 AM
Thank for this hack
Nebby
07-29-2003, 09:56 PM
this only appears to work on forums with the "more" links at the bottom =/
assassingod
07-29-2003, 10:08 PM
What do you mean?
Great hack, it's seems it's working for me :)
assassingod
07-31-2003, 09:06 PM
Thanks - Glad to hear it.:)
jwoodall.2
08-05-2003, 01:07 AM
Ack, for some reason I dont have the first bit of code you recommend adding below:if ($thread[sticky] == 1) {
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
}What's my next step?
Closest thing I have is: if ($stickyids != '') {
$threadids .= $stickyids;
assassingod
08-05-2003, 07:21 AM
What vB are you using? Have you tried search for 1 line in the code?
jwoodall.2
08-05-2003, 01:01 PM
2.3.0, and yeah, I did -- but I can certainly try again.
assassingod
08-05-2003, 02:01 PM
It worked fine on my 2.3.0, try again and tell me what happens
jwoodall.2
08-05-2003, 02:11 PM
Well, as one of the hacks I've recently installed (only got 3 simple ones)... broke my admin functions (move/copy/lock, etc...)
And Steve recommended I back out the hacks, then reupload the php files if that didnt work.
Now my forum's down completely. :(
So, looks like I'm gonna have to wait on this one. :(
Mr. Brian
08-09-2003, 11:32 PM
Dose this work with forum that have image added on the background? Or begin affected?
ImportPassion
08-10-2003, 02:18 AM
Have the issues been sorted out? I really would like to add this to my forums.
assassingod
08-10-2003, 06:57 AM
Today at 04:18 AM 7thgenCivic.Com said this in Post #55 (https://vborg.vbsupport.ru/showthread.php?postid=424739#post424739)
Have the issues been sorted out? I really would like to add this to my forums.
No, but when I tested I didn't find any problems. Tell me your problems and i'll try my best to sort them out.
Today at 01:32 AM Matthew Lam said this in Post #54 (https://vborg.vbsupport.ru/showthread.php?postid=424702#post424702)
Dose this work with forum that have image added on the background? Or begin affected?
I can guess there would be no problems.
Yesterday at 02:57 AM assassingod said this in Post #56 (https://vborg.vbsupport.ru/showthread.php?postid=424779#post424779)
No, but when I tested I didn't find any problems. Tell me your problems and i'll try my best to sort them out.
Yeah the whole thing about when you move a thread using the prefix "Moved:" it goes up by the stickies.
Oblivion Knight
08-11-2003, 09:49 AM
Yesterday at 08:57 AM assassingod said this in Post #56 (https://vborg.vbsupport.ru/showthread.php?postid=424779#post424779)
No, but when I tested I didn't find any problems. Tell me your problems and i'll try my best to sort them out.Did you ever find a fix for the seperate to work in forums without sticky threads, but with announcements?
assassingod
08-11-2003, 10:50 AM
Not yet, but its not hard at all. I'll start a fix for it later.
assassingod
08-13-2003, 06:32 PM
I've fixed why if there is no sticky, announcements don't show. So that is sorted.
I have to sort out why Moved threads appear above the line.
I will post the fix in a minute
assassingod
08-13-2003, 06:38 PM
Here is the updated file, it contains most fixes for peoples problems. I am still currently doing the moved thread issue
shorty
08-13-2003, 06:43 PM
Looking good mate! :D
Soon as you have that final bug fixed.. this is gonna be awesome!
Cheers for sticking at it ;)
Ps.. that MOTD you did for me is working like a charmer!
assassingod
08-13-2003, 06:44 PM
Thanks. I've got quite a few hacks to finish fixing bugs for, haven't got round to it til now :cheeky:
(No problem;))
Oblivion Knight
08-13-2003, 10:52 PM
It still doesn't appear to seperate announcements from threads if there are no sticky threads in a forum.. No other announcement modifications have been installed (I didn't re-add the mod in my 2.3.2 upgrade that I installed earlier by Xenon).
Demo:
http://www.umbrellaonline.co.uk/forums/forumdisplay.php?&forumid=8
assassingod
08-14-2003, 05:53 AM
Well I can defintly confirm that it works on my localboard. Are you sure you downloaded lastest install file and installed I correctly?
Oblivion Knight
08-14-2003, 07:43 AM
Yes, the latest file added 2 extra steps to root/forumdisplay.php.
assassingod
08-14-2003, 08:19 AM
There should be 3.
#Find:
forumhome_moderator
#Replace with:
forumhome_moderator,forumdisplay_sepsai
#Find:
eval("\$announcement = \"".gettemplate('forumdisplay_announcement')."\";");
#Under, add:
eval("\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
#Find:
if ($thread[sticky] == 1) {
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
}
#Under, add:
if(!$addedRow and $stickyids and $thread[sticky] == 0 and $addedRow = true){
eval("\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
} else {
$sepsai = '';
}
Edit: Think I found the problem (curious how it worked on my localboard) working on a new fix now.
Oblivion Knight
08-14-2003, 08:26 AM
Hence why i used the word "extra".. ;)
This step was done in the previous instructions:
#Find:
if ($thread[sticky] == 1) {
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
}
#Under, add:
if(!$addedRow and $stickyids and $thread[sticky] == 0 and $addedRow = true){
eval("\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
} else {
$sepsai = '';
}
assassingod
08-14-2003, 08:28 AM
Today at 10:26 AM Oblivion Knight said this in Post #68 (https://vborg.vbsupport.ru/showthread.php?postid=425925#post425925)
Hence why i used the word "extra".. ;)
This step was done in the previous instructions:
#Find:
if ($thread[sticky] == 1) {
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
}
#Under, add:
if(!$addedRow and $stickyids and $thread[sticky] == 0 and $addedRow = true){
eval("\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
} else {
$sepsai = '';
}
I think I found the problem, working in a fix now
DeadGaze
08-20-2003, 05:50 AM
nice organazational hack here man....thx for this
David Bott
08-20-2003, 11:58 AM
Still looking to use this when fixed. ;)
assassingod
08-20-2003, 12:01 PM
The latest download availible contains 1 bug, which is moved threads will appear over the line as well. Havent looked into it for a bit, will do soon:)
David Bott
08-20-2003, 12:04 PM
Thanks....will wait. ;) AVS Forum has a lot of thread moves. ;)
assassingod
08-20-2003, 12:06 PM
Ah right, well I will work on this ASAP
The Wise One
08-25-2003, 03:56 AM
07-03-03 at 09:51 PM gldtn said this in Post #23 (https://vborg.vbsupport.ru/showthread.php?postid=415086#post415086)
Just to help those that didn't quite understand what they had to do with that code in oder to get it to mach your vB board..
On step 2 onto installing your SEPSAI hack change the following line:
quote:
<img src="https://vborg.vbsupport.ru/vbimages/clear.gif" alt="" width="1" height="1">
To:
quote:
<img src="/images/clear.gif" alt="" width="1" height="1">
..and that should use the clear.gif image in your's forum image dir . :banana:
assassingod
No problem..
greetings :)
ive tried the above fix but it didnt work. vb version 2.3.2
i still get the default color. i have installed this hack based on the updated file posted on page 5 of this thread. any ideas?
thanks in advance :)
assassingod
08-25-2003, 05:13 AM
The vB style default colour?
The Wise One
08-25-2003, 08:54 AM
Today at 07:13 AM assassingod said this in Post #76 (https://vborg.vbsupport.ru/showthread.php?postid=428475#post428475)
The vB style default colour?
sorry...still kinda new to this. here is a screenshot.
assassingod
08-25-2003, 09:11 AM
Try this:
<tr valign="top" bgcolor="#hex">
<td colspan="10"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>
Replace 'hex' with your colour.
lasto
08-25-2003, 11:52 AM
that bar in the middle that seperates em is ugly - can a space or a break not be added there instead ?
assassingod
08-25-2003, 12:00 PM
You can really put anything you want. A <br> or <hr> tag.
The Wise One
08-25-2003, 08:53 PM
is there a way to make it transparent?
i added your bgcolor code and got the color to change to what ever i want it to be...but i was hoping to make that little section transparent so the background image would show thru.
i tried lasto's thought of a simple break or space...but im not exactly sure what the code should look like in the file. is it just a simple <br> tag that replaces what is in the custom template?
sorry...but im new to all of this stuff...
i do appreciate the help :)
assassingod
08-25-2003, 08:55 PM
Yes, I am almost certain a <br> tag will work in the custom template. However I cannot test this due to some problems with my localhost (im running ancient PHP/Apache versions hehe)
The Wise One
08-25-2003, 09:11 PM
Today at 10:55 PM assassingod said this in Post #82 (https://vborg.vbsupport.ru/showthread.php?postid=428624#post428624)
Yes, I am almost certain a <br> tag will work in the custom template. However I cannot test this due to some problems with my localhost (im running ancient PHP/Apache versions hehe)
ok do i insert the break tag in place of the code you have listed? or does it go somewhere inside of the code you have?
assassingod
08-25-2003, 09:13 PM
Thinking about it, it may not work. But try it, open the template forumdisplay_sepsai and replace contents with <br>
(Dont think it will work due to the tables)
The Wise One
08-25-2003, 11:32 PM
Yesterday at 11:13 PM assassingod said this in Post #84 (https://vborg.vbsupport.ru/showthread.php?postid=428629#post428629)
Thinking about it, it may not work. But try it, open the template forumdisplay_sepsai and replace contents with <br>
(Dont think it will work due to the tables)
you are correct. it doesnt work. but thanks :)
any other ideas? i really like how this looks and would like to get this worked out.
assassingod
08-26-2003, 07:15 AM
I'll have a go at this later today:)
Mr. Brian
08-27-2003, 08:48 PM
Thanks for the reply
Well, what i got was a Black colored background instead of the actual green.
[i]08-10-03 at 04:57 PM assassingod
I can guess there would be no problems. [/B]
assassingod
08-27-2003, 08:49 PM
What's your code?
Mr. Brian
08-27-2003, 11:04 PM
You mean my forumdisplaybit?
Well,
$sepsai
<tr align="center">
<td bgcolor="{firstaltcolor}"><img src="{imagesfolder}/$thread[newoldhot].gif" border="0" alt=""></td>
<td bgcolor="{secondaltcolor}">$thread[icon]</td>
<td bgcolor="{firstaltcolor}" align="left" width="70%"><normalfont>$thread[gotonew] $paperclip$thread[movedprefix]$thread[typeprefix]<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">$thread[title]</a></normalfont> <smallfont>$thread[pagenav]</smallfont></td>
and so on....
assassingod
08-28-2003, 04:19 PM
Sorry, I meant for foumdisplay_sepsai template
Mr. Brian
08-28-2003, 07:15 PM
<tr valign="top">
<td colspan="10"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>
That should be it. :speechless:
Thanks in advance..
Mr. Brian
08-28-2003, 08:34 PM
Well, I think I've got the answer... my table border color.. and that's the one!
How stupid am I as it took me weeks to clear this doubt..
thanks for your time anyway... :)
assassingod
08-29-2003, 06:16 AM
Well glad you got it:)
Any fix for the Moved: issuse yet? I would really like to add this hack.
assassingod
08-29-2003, 06:49 AM
Sadly I still haven't found an obvioud fix fort he moved issue, although I have some ideas, I will work on a fix soon:) (Today probably)
AmericanWoman
08-29-2003, 07:06 PM
Anxiously awaiting both the moved threads and the announcements without stickies fixes, as this is a very nice hack to have for a board with at least 2 or 3 stickies in each forum!
Mr. Brian
09-03-2003, 05:30 AM
Oops.. almost forgotten to click install. :speechless:
08-29-03 at 04:16 PM assassingod said this in Post #93 (https://vborg.vbsupport.ru/showthread.php?postid=429374#post429374)
Well glad you got it:)
Matthew *Click install*
David Bott
09-03-2003, 11:00 AM
YEs...Still looking forward to this hack.
PixelFx
09-08-2003, 08:48 PM
great hack,
I know someone prob did this, but I was updating my forum with vb 2.3.2. and made this small template change if anyone is interested :) works great :) good job!
Edit: Template "forumdisplay_sepsai" change contents to:
<tr valign="top">
<td colspan="10" bgcolor="{tableheadbgcolor}"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>
basically I just added {tableheadbgcolor} with a bgcolor change, to make it fit any style :) again I didn't read the whole post so not sure if someone did this or not, but hope it helps.
Holidazed
09-08-2003, 09:18 PM
assassingod, thanks for a wonderous and simple hack.
Somebody said earlier that the divider was a bit harsh and they offered a suggestion. what i ended up doing was using an image as my divider. This can be done by making the following change to your 'forumdisplay_sepsai' template.
$announcement
<tr valign="top">
<td colspan="10"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>
Just change the "clear.gif" reference to the image you want to use. You must change the height and width settings to the height and width of the new image though. If you do not know what that is, just remove it. You would then use a line simular to the following:
<img src="{imagesfolder}/InsertYourFileNameHere.gif" alt="">
I took mine a step further. It pulls a random image out of a directory and displays it in the divider spot.
See the image I have provided for an example of how mine looks or you can goto http://www.dungeonkeepersdomain.com and look in any of the forums for a working example. Reload the page and see if the image changes.
If you want to know how to do this, follow these instructions.
Note: Do this only after you have successfully installed this hack.
Make a directory under your {imagesfolder} directory called "divider" or whatever you want to call it and put all your images that you wish to pull from in there. Name them "1.gif", "2.gif", etc...
Edit your "phpinclude" template and add the following to the bottom of it:
$dividerimagenumber=rand(1,6);
$dividerimage="/divider/$dividerimagenumber.gif";
Note: Modify the "divider" to be the name of the directory you created under {imagesfolder}.
Note: Change the (1,6) to 1,the number of images in your "divider" directory). If you 25 images in your divider directory, it would says (1,25);
Save the "phpinclude" template.
edit your "forumdisplay_sepsai" template.
Replace the default values from the hack in this template with the following:
$announcement
<tr valign="top">
<td colspan="10" bgcolor="#000000" align="center"><img src="{imagesfolder}/$dividerimage" alt=""></td>
</tr>
Note: Change the bgcolor="#000000" to any color you like. You can type in a 6-digit hex code (if you know it) or just replace the "#000000" with "black" or "red" or whatever.
That is pretty much it. Now when you load up a page where this hack is necessary, it will pull a random image from the "divider" folder and display it.
David Bott
09-08-2003, 09:20 PM
I am still waiting for it to work as needed. (or intended) :)
PixelFx
09-08-2003, 09:50 PM
bitg nice idea,
I soppose if people wanted to they could add or banner script to that as well. Which would be easy as well :)
Holidazed
09-09-2003, 01:07 AM
That was my plan for down the line on my site.
assassingod
09-09-2003, 06:17 AM
bitg, very nice. If you don't mind i'll add this to the first post for people who want what you did:)
I think this should go into beta until it works correctly..
Holidazed
09-09-2003, 12:27 PM
assassingod, I do not mind at all.
assassingod
09-09-2003, 01:57 PM
Today at 08:41 AM Opie said this in Post #105 (https://vborg.vbsupport.ru/showthread.php?postid=432495#post432495)
I think this should go into beta until it works correctly..
It actually does work properly, but as with most hacks there are some bugs. I have only encountered 2, and 1 has been fixed
bitg, Thanks much!
assassingod
09-09-2003, 03:25 PM
I've updated the first post. Thanks again bitg
gldtn
09-15-2003, 06:01 AM
Assassingod,
The download link of the hack is broken.. can you fix it?
assassingod
09-15-2003, 06:06 AM
How is it broken?
gldtn
09-15-2003, 05:51 PM
I tryed downloading last night and I got an bronken link.. but now it went through ok... :)
assassingod
09-15-2003, 06:02 PM
Good to hear.
blakkboy
10-07-2003, 05:10 PM
i cant get this mod to work for me........ i edited the file exactly and i made the new template and edited the forum_dispaybit template, but yet it doesnt show a divider.....
assassingod
10-07-2003, 05:12 PM
i cant get this mod to work for me........ i edited the file exactly and i made the new template and edited the forum_dispaybit template, but yet it doesnt show a divider.....
Haven't heard of this problem yet.
Are you sure you installed everything correctly?
blakkboy
10-07-2003, 05:14 PM
im positive..... would you like me to post my forumdisplay.php and the edited template file???
assassingod
10-07-2003, 05:18 PM
No, you can't post full vB files.
What other hacks have you installed that required editing forumdisplay.php?
Any lick on the "moved" issue?
assassingod
10-07-2003, 05:24 PM
Any lick on the "moved" issue?
Nope. But IIRC I did try to fix it but never saw any obvious way to stop it. Sorry
blakkboy
10-07-2003, 05:24 PM
ive done the:
avatar hack:subforums
lesane's storehack
template backup
no redirects
quick reply box
assassingod
10-07-2003, 05:33 PM
ive done the:
avatar hack:subforums
lesane's storehack
template backup
no redirects
quick reply box
I can't see how any of those hacks will effect mine.
Try uninstalling the hack, then reinstalling it
blakkboy
10-07-2003, 05:33 PM
ok
blakkboy
10-07-2003, 05:48 PM
hmm that was wierd it works now
assassingod
10-07-2003, 05:51 PM
hmm that was wierd it works now
Good to hear
PurpleCow
10-09-2003, 04:15 AM
I would like to install this hack for my forums. However, i'd to hear about the following :
1. Is the bug with Moved threads fixed ?
2. In the divider space, can i have an standard banner 468x60 size. well, it will be the js invocation code from phpadsnew. Will that work ??
3. Does this conflict with Logician's Hack- Dynamic announcements (https://vborg.vbsupport.ru/showthread.php?t=43194)...meaning, will they work fine seperately ??
Thanks much
Cheers
no he can't fix the moved thread issue..
PurpleCow
10-09-2003, 01:25 PM
Opie - He might just take some time.
I'll wait for the bug fix though.
Thanks for any replies to my above post !
Cheers
assassingod
10-10-2003, 02:36 PM
PurpleCow:
(1)As of yet, no
(2)There is a guide for this somewhere in the thread:)
(3)They should both work fine together:)
PurpleCow
10-11-2003, 03:12 PM
(2)There is a guide for this somewhere in the thread
I read the whole thread, but i didn't find any mention about placing an advert ( standard banner ). I particularly would like to know, if i can place a Javascript invocation code ( phpadsnew ) ??
Thank you
assassingod
10-11-2003, 04:35 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=414560&postcount=1" target="_blank">https://vborg.vbsupport.ru/showp...60&postcount=1</a>
Check the add-ons
stark427
02-01-2004, 10:44 AM
Any update on this hack?
:ermm:
xlguy
02-13-2004, 04:08 PM
Does this hack actually work? I would like to try it on 2.3.3 board but I don't want to start installation if it doesn work. How serious is this issue and is this hack still supported? Cheers.
assassingod
02-13-2004, 04:27 PM
They hack does work almost-perfectly. The only problem I can remember around is taht moved threads also get seperated.
xlguy
02-13-2004, 04:51 PM
Ok thanks for the reply assassingod - this looks like a great hack :)
I'm assuming you are pretty much stuck on fixing this move problem? Any ideas? I'm more than happy to try and help you fix it... in fact I'm playing around with it at the moment, so any advice on what you've tried already would be helpful.
xlguy
02-13-2004, 04:56 PM
if(!$addedRow and $stickyids and $thread[sticky] == 0 and $addedRow = true){
Can you explain what it's testing $addedRow for? I know it's not the key to fixing this, but I just wanted to check my knowledge of the existing hack. Cheers.
xlguy
02-13-2004, 10:17 PM
I'm really confused now. Having assumed this hack wasn't going to work due to the 'moving thread' issue it appears to work fine on my 2.3.3 board... how is that possible?! lol
assassingod
02-14-2004, 09:12 AM
I'm really confused now. Having assumed this hack wasn't going to work due to the 'moving thread' issue it appears to work fine on my 2.3.3 board... how is that possible?! lol
Well that's good
xlguy
02-16-2004, 12:59 AM
Isn't it a little confusing though? I thought there was meant to be a bug when you moved threads but I can't seem to recreate it. I'm too nervous to put this on my live site in case it reappears...
assassingod
02-16-2004, 06:02 AM
Well i'm not sure to be honest. Maybe 2.3.2+ versions have the code changed a little, i have no idea. I will test out on a 2.3.4 board and see what happens.
Alexia
10-21-2004, 04:27 AM
Here as an interesting variation of the Moved problem. Initially, after installing it, it put Moved's in the separated section.
Now, if the Moved is one below the current post, it puts the current post into another separated section. Of course, since the Moved can't "move" back up towards the top, it is only a problem until another post becomes the current one. This was after I installed Xenon's multiple announcement hack.
https://vborg.vbsupport.ru/showthread.php?s=&threadid=40604
http://www.experimentalinsanity.com/upload/images/difmoved.png
http://www.experimentalinsanity.com/upload/images/difmoved2.png
Hopefully this provides some insight to solving the problem.
$announcementbit="";
$announcements=$DB_site->query("SELECT announcementid,startdate,title,user.username,user. userid,user.usertitle,user.customtitle
FROM announcement
LEFT JOIN user
ON user.userid=announcement.userid
WHERE startdate<=$datenow AND enddate>=$datenow
AND $forumlist
ORDER BY startdate DESC");
eval("\$announcementbit .= \"".gettemplate('forumdisplay_announcement_header')."\";"); // Header for all announcements - Alexia Smith
while($announcement=$DB_site->fetch_array($announcements)) {
if ($foruminfo[allowratings]) {
$thread[rating]='clear.gif';
eval("\$threadrating = \"".gettemplate('forumdisplaybit_threadrate')."\";");
$backcolor = '{secondaltcolor}';
$bgclass = "alt2";
} else {
unset($threadrating);
$backcolor = '{firstaltcolor}';
$bgclass = "alt1";
}
if ($announcement[customtitle]==2) {
$announcement[usertitle] = htmlspecialchars($announcement[usertitle]);
}
$announcement[postdate]=vbdate($dateformat,$announcement[startdate]);
if ($announcement[startdate]>$bbuserinfo[lastvisit]) {
$announcement[icon]='newannounce.gif';
} else {
$announcement[icon]='announce.gif';
}
eval("\$announcementbit .= \"".gettemplate('forumdisplay_announcement')."\";");
eval("\$sepsai = \"".gettemplate('forumdisplay_sepsai')."\";");
$doneannouncements = 1;
}
$announcement=$announcementbit;
Michael L.
11-16-2005, 04:50 AM
ok im having troubles with this hack. I know it works because i used it on my other version but now I have 2.3.7 and i dont get any errors its just that nothing happens like i look at the forum display and no separation.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.