Support Forum
Hey Marc,
Not really sure I'm following you there, could you explain a bit more?
Also, have you taken a look at the Codex page for the Tags Plugin, and also the Widget page to see if it explains what you are looking to achieve?
Not as it stands at the moment but we would be open to changing that.
The main problem from a technical point of view is the nature of the post content. It is stored in pure HTML format with all html tags in place. It can contain image tags and links, video tags and much formatting like bold and colours etc. And it can be of an indeterminate length. So it could be huge!
The current 'post tip' is sanitised of the HTML and truncated to a sensible length. This could be displayed in the widget/template tag with some minor enhancements to the tag code. But if you wanted the entire post intact with all html, then you are looking at a more major development, an unknown and uncontrolled display requirement and some concerns abut how it would actually be displayed. For example - images? Do they get included?
So - what was it you were looking for?
YELLOW
SWORDFISH
|
just about anything is possible with the api in place for simple press... but both are significant departures from the provided widget - essentially a large effort...
maybe you just want the tooltip output as an excerpt... the widget uses the list topic class and the post content itself is not available... it can be added via code mod or using the api, but again, not just a couple lines of code...
the post content is provided to the list post class which is used by some other template tags in the plugin you are using - namely, latest posts and newest topics... but neither of them output that post content as part of the standard display...
why do none expose the post content? largely because no one has asked for it... real estate is usually at a premium and outputting content takes up quite a bit of space, even if an excerpt... and then there is the issue (as Andy said) about what html to output and how it will look (remember, the forum css wont be available to the widget)...
are you able to do any coding? we can try to guide you through some of the modifications if you want...
and we do have a custom plugin service if you wanted to go down that route...
Visit Cruise Talk Central and Mr Papa's World
If it is any help, the recent posts widget uses the code at /wp-content/sp-resources/forum-plugins/template-tags/library/sp-RecentPosts-tag.php
If you scroll down that function to the comment '# start the loop' , then you will see how it is built. The current post content as shown in the tooltip IS defined in the data object as $spThisListTopic->post_tip so this could be used as part of the main display as opposed to as a tooltip. Shown after the topic link perhaps... so for example:
case 'T': # Topic $out.= $beforeTopic; if ($tLink) $out.= "<a class='$linkClass' $title href='$spThisListTopic->post_permalink'>"; $out.= sp_truncate($spThisListTopic->topic_name, $truncate); if ($tLink) $out.= '</a>'; $out.= $afterTopic; $out.= $spThisListTopic->post_tip.'... '; break;
Of course - you would not be able to update the tags plugin without losing the change.
YELLOW
SWORDFISH
|
1 Guest(s)