Download & Extend

Show container description on container specific forum list pages

Project:Advanced Forum
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Title:Container description above list» Show container description on container specific forum list pages
Category:feature request» task
Assigned to:Anonymous» Michelle

I'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

#2

awesome, thanks!

#3

Status:active» postponed

Postponing to 2.x.

Michelle

#4

Version:6.x-1.x-dev» 6.x-2.x-dev
Category:task» feature request
Assigned to:Michelle» Anonymous
Status:postponed» active

#5

Status:active» fixed

Got this in, finally.

Michelle

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#7

I too need that feature.
I did not understand well:
Can I find it in the 2 dev ?

#8

2.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?

#9

That 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

#10

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

    $variables['forum_description'] = '';

Delete this line and replace it with the following three lines (which are located a few lines below the code mentioned above):

    // Grab the forum description and make it available to the template file
    $forum = taxonomy_get_term($variables['tid']);
    $variables['forum_description'] = $forum->description;

Save your changes and upload to server. Voila!

#11

I'm not a coder
I don't know php
can have some instructions about that do not need knoledge?

thanks

nobody click here