Closed (fixed)
Project:
Advanced Forum
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2008 at 19:35 UTC
Updated:
3 May 2012 at 11:55 UTC
Hey,
I'm trying to get the description of each container to be above the forum list when the user navigates into the container. Any ideas?
Thanks!
Comments
Comment #1
michelleI've made $container_description to the forum list template but haven't worked it into any of the included styles or added it to the documentation. Leaving this active as there is still more work to do. Will be after the alpha, though.
Michelle
Comment #2
ktonini commentedawesome, thanks!
Comment #3
michellePostponing to 2.x.
Michelle
Comment #4
michelleComment #5
michelleGot this in, finally.
Michelle
Comment #7
fabrizioprocopio commentedI too need that feature.
I did not understand well:
Can I find it in the 2 dev ?
Comment #8
Treesong commented2.x is still under development though, so the fact that it's going to be in 2.x doesn't help me. Is 2.x stable enough yet to use on a production site? If not, can you give us a snippet of code to inject into 1.x to do this?
Comment #9
michelleThat was 1.5 years ago so I don't remember much about it... Reading the issue, it looks like you'd need
<?php print $container_description; ?>I wouldn't recommend using 2.x, yet, if you don't know even basic PHP. It works pretty well but it's still alpha.
Michelle
Comment #10
Treesong commentedI was able to fix this in 1.x with the following simple hack. It involves editing advanced_forum.module though so do it at your own risk.
STEP 1:
Find the function advanced_forum_preprocess_forums() in advanced_forum.module by searching for "advanced_forum_preprocess_forums".
STEP 2:
Within this function, just a few lines below the function declaration, you should see a line like this:
Delete this line and replace it with the following three lines (which are located a few lines below the code mentioned above):
Save your changes and upload to server. Voila!
Comment #11
fabrizioprocopio commentedI'm not a coder
I don't know php
can have some instructions about that do not need knoledge?
thanks
Comment #12
bloke_zero commentedOr you can do the same thing in your own theme without making fairies die
Add to your template.php file
Comment #13
fabrizioprocopio commentedcan I add it at the end of the file or I have to put in some particular point of template.php?