Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Extra entry field for item title's description
Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 8:46 am

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 10:21 am

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

Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 10:53 am

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

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 1:51 pm

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

Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 5:19 pm

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? 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 18, 2012 - 7:26 pm

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

Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
May 19, 2012 - 8:33 am

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. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 19, 2012 - 9:43 am

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 19, 2012 - 11:40 am

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?

Avatar
Matthew Bonner
Member
Free Members
sp_UserOfflineSmall Offline
May 19, 2012 - 11:23 pm

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. 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626