Support Forum

Extra entry field for item title's description

MB Matthew Bonner
Matthew Bonner
Member

Is it possible to somehow implement the “Header Description” function to work the same way in the   “Topic Name” text area?

Example:

Topic name: Video Game title
Topic description: RPG fantasy with online capabilites

Example #2 (user’s topic)

Topic name: Dragons and Elfs
Topic description: Anyone unlock the healing potion?

Submit Topic, Cancel, Etc 

Here’s the code I’m referring to:

http://i47.tinypic.com/vr3uv6.jpg

18 Answers

New Answer

MP Mr Papa
Mr Papa
Member

sorry, not sure I am following you…  are you asking if in the topic header area on topic view, if you can add the header name and description in there?

if so, not directly since those functions work on forum view and not topic view… but you could add something like this to get the info:

$data = spdb_table(SFFORUMS, 'forum_id='.$spThisTopic->forum_id, 'row');
echo $data->forum_name.'<br />';
echo $data->forum_desc;

and just clean up and style the display the way you want…

MB Matthew Bonner
Matthew Bonner
Member

I’m sorry let me clarify, I’m asking can a field be created using the same rules or something similar to the Forum Heading and Description. Something that in Forum View  the list not only will the title display, but a quick description as well underneath. 

Here’s an visual of what I’m looking to achieve.

http://i47.tinypic.com/2q3w7es.jpg

 

MP Mr Papa
Mr Papa
Member

guess I am still confused…  you are creating a new topic there…  and have circled the topic name and topic description…

the topic name is already there and exists…

so you want to create a description for a topic???

if so, that is not something that is built into core, but something that could be added via a plugin (and not very complex either)… 

frankly, no one has ever asked for a topic description…

MB Matthew Bonner
Matthew Bonner
Member

You’re not confused you explained EXACTLY what I’m looking for in the later half of your response.

So its not built into the core, but it is something that could be added via a plugin, does this plugin exist?

If not how would one go about achieving this? 

MP Mr Papa
Mr Papa
Member

no, a plugin for this does not exist…  it would have to be written…

Its not too complex, but you would need to understand php and how wp hooks, actions and filters work…

I could put it on our list to do, but not guarantee on eta…

MB Matthew Bonner
Matthew Bonner
Member

Awesome! I stayed up until 6am trying my method, I have a feeling there’s too much code, but somehow it works.
I’d trust you guy’s method seeing as it’s your plugin. I’ll use what I have for now, but I’d like to see what you’d have in mind. 

MP Mr Papa
Mr Papa
Member

did you have to edit the core code?  If so, be sure to keep track of your changes, as you will lose them when you upgrade to the next version of SP…  which is why the plugin is the better route…

MP Mr Papa
Mr Papa
Member

I took a few minutes this morning and created a plugin for this…  If the testing goes well, should have it available shortly after the 5.1 release which should be by the end of May…  would you be interested in a quick beta test once 5.1 releases?

MB Matthew Bonner
Matthew Bonner
Member

Had to edit a few core files, which is gonna be a pain if they are affected by an upgrade which I believe so. It’s only 1 file but it’ll be gambling too much to risk changing it when 5.1 is ready because I don’t know what changes you’ve guys have made so far. It’s probably best I use a plugin, if you have one I can try any sooner I’d try it out over the rest of this weekend. 

YS Yellow Swordfish
Yellow Swordfish
Member

It might need SP5.1 but we we will see what Steve says…

MP Mr Papa
Mr Papa
Member

yes, I will shoot you a test version once 5.1 releases…  I added something to core to make the plugin cleaner…

MB Matthew Bonner
Matthew Bonner
Member

So did you add the feature we’ve discussed?