![]() |
I updated the hack a little so it looks nice.
http://vbulletin.com/forum/showthrea...272#post173883 Credit To: ethank Added: Display order, so it orders the sub-forums the way they are listed in your admin CP. Added an hr. Thats it it! if you watn the HR to look good add this into your "Custom replacements" hr is replaced by <hr size="1" color="{ tablebordercolor }" { tablebordercolor } - dont forget to remove the spaces "{ } that is it! |
Demo
|
thx valid~ Nice Work!!:D
but when i add SIZE code in the HR .. get Error~ anyway... this is very useful~ |
try putting a \ before any " on your size
like.. <hr size=\"1\"> |
This hack is very cool. Can it be done with the forums in a category?
|
great hack, i was lookin' for this, thx :)
|
Awww, you made it perty! :)
I'll put the update on my code. Ethan |
does this can be done for index ?
|
Quote:
|
EXCELLENT
and so amazingly easy to add !! * pats VALId on back* :) |
Great Hack, valid - easy to implement and works like a charm :D
|
Quote:
thx Q very MUCH ;) |
Right...this didn't work for me. Do forums have to have a description for this to work? Lots of my forums don't have descriptions....
Also, how would I get it so it only shows the total threads/replies for all the subforums added up, but not the subforums themselves? |
here, look at this screenshot!
Thats how you do it! Quote:
|
still works!
as you can see in the txt file, you need to mod 2 files, not just index.php index.php and forumdisplay.php |
A very very trivial matter...but for the sake of making the subforum links exactly identical to the regular forum links, I changed the line that starts with $subs.= so that the forumid number and sessionhash were reversed. The stock vB has the sessionhash in the link first, followed by the forum specification...in this hack, it's backwards. As I said, it's trivial, I'm sure it makes no difference; I just like to have things looking the same, that's all.
PHP Code:
|
I have forums that have subforums. They go 5 levels deep. I modified both files. It doesn't work.
|
Than I dont know whats wrong, : P (sorry), should have worked with ease, maybe you have some other hacks runing that prevent it from displaying or you installed it wrong, who knows, I'm very limited in php codeing.
So this hack is not suppored, just trying to help the best way I can, and I didnt write it "ethank" did, I only mod it a little to give it a better look and display order of the forums, thats all. : P Quote:
|
Valid on your board how'd you do the auto post.. thats real cool. share :).
|
Go to dev forum and then to vbulletin hacks section on that forum! : P
|
I'm wondering if there can be some way to indicate on the main page if the subforums have new posts. In a main forum, where you have the subforums listed below it (under an hr), I'm thinking of some kind of little indicator, about the same size as the smallfont text. I guess we would have to have two new graphics, one to indicate on and one to indicate off, but could you write into your hack the code to make it light up appropriately?
|
Quote:
|
damn tom. your so elite =]
|
Quote:
Ethan |
ethank is right : P
Nice idea but in my case, I have lots of subforums, it would get cluttered as ethank said, haveing like 6 or less, its a good idea, bad idea for like 11 and up, and if you have like 1000+ members and all of them post in the subforums all the subforums would have a gif/jpg indicator that theres new post, and that would use up too much forum space, if you dont mind scrolling and scrolling all the time to get to a forum on index.php, lol, you get the idea. |
I only meant a small little gif, like maybe a little dot or something...but OK. How about this then: Have the link to the subforum be one color if it has new posts, be another color if it doesn't? Or something along those lines.
|
I think you're missing the point. The graphic itself isn't the problem, but the fact that a lot more queries are nessesary to check for new posts throughout an entire forum hierarchy is excess load.
|
what Dark said! : P
hehe was going to say that but didnt know how, me = limited in php. Quote:
|
Valid!
please send me url your screeshot this style very cool and i want have this style board http://vbulletin.com/forum/attachmen...&postid=173889 |
I love it! :)
Thanks! |
i don't see the subforum...
i have only the write : subforum: :( :( :( |
Nice Hack !! ;)
|
One of the simplest and yet very elegant hack!!
BTW, I don't understand this. Can someone explain it to me? if you watn the HR to look good add this into your "Custom replacements" hr is replaced by <hr size="1" color="{ tablebordercolor }" { tablebordercolor } - dont forget to remove the spaces "{ } |
PHP Code:
and color will be your styles color for the table border... |
Where do I find this line of code?
|
I am going to assume you already installed this hack...
So, open index.php and forumdisplay.php Search For: PHP Code:
PHP Code:
|
Thanks for your help.
Only thing now: Whenever I replace the code that you gave me, I get an error message: Parse error: parse error in /home/public_html/forums/index.php on line 291 |
$forum['description'] .= "<hr><B>Sub-Forums:</B> ";
Replace With: PHP: $forum['description'] .= "<hr size="1" color="#555576 "><B>Sub-Forums:</B> "; I just can't seem to get past the error. |
you need to escape your quotes.
put a \ before any " inside your string. your code should be: Quote:
|
Thanks a million. The escape characters really helped! Thank you thank you thank you!!!:p
|
All times are GMT. The time now is 05:39 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|