Support Forum

Customized feature request

SM simon martin
simon martin
Member

Not sure if this is feasible or not but I have a feature in mind that I’d like to inquire about. At stocktwits they have a feature where any stock symbol with a $ before it will automatically show an up to date chart (15 min delayed) when you hover your mouse over the symbol.

http://stocktwits.com/problem-with-post-edit-buttonome#suggested

Is that possible for SP to implement somehow? I have the auto-updating charts in the threads themselves on each of the first posts, but I’d like it so while someone is scrolling down the thread titles in each forum, they can hover over the stock ticker in the title, and a small chart pops up just like it does at stocktwits.

29 Answers

New Answer

SM simon martin
simon martin
Member

If it’s possible and the price is right, I’m definitely willing to pay for the job.

SM simon martin
simon martin
Member

Or how about someway to make it possible to add an img url to any given thread and if someone hover’s over the thread title, that image is shown? I’ve found a wordpress plugin that allows me to do what I’m looking for in the threads themselves, but I need that image to pop up somehow for each thread while in the topic view.

MP Mr Papa
Mr Papa
Member

confusing me a bit…  what do you mean by threads???  you say wp plugin that allows you to change titles in threads???  are you talking about forum topics here, or wp blog posts???

certainly any of these is possible with the simple press api and our filters…  filter post content and replace stock symbols with a link, when link clicked on open a popup with stock details…  of course, you would have to have a way to get the latest stock data/quotes from some service…

SM simon martin
simon martin
Member

My apologies, let me give it another try. I have a WP plugin called hover and it’s set up to show a stock chart in a pop up window when the user mouses over a stock symbol. Scroll down to the second or third post and you can see the ticker EDIG has a line under it and if you mouse over it, you can see the stock chart for EDIG.

http://ichartpennystocks.com/forum/otc-otcbb-pink-sheets-and-over-the-counter-bulletin-boards/edig-e-digital-corp-pink-sheets/

What I want to accomplish is have that same effect happen when you hover over the topic title (when viewing the topics list), so in this view you could hover over all of the titles and view the stock chart before you even enter the thread.

http://ichartpennystocks.com/forum/otc-otcbb-pink-sheets-and-over-the-counter-bulletin-boards/

So if you click on the topic title I still want it to take you to the first page of the thread, but if you simply hover over it I want to see that stock chart image appear in place of where it normally says, “Browse the thread…..”. So instead of it saying that, I’d like to be able to put an image there (via url).

SM simon martin
simon martin
Member

How can I get the WP Hover Plugin to look at those thread titles too (so it will show the popups in the thread title and not just in the topics)? Would that be an API filter? Am I on the right track with that?

MP Mr Papa
Mr Papa
Member

afraid I have no idea how that plugin works… does it hook into wp? how does it know how to do its thing… If you know that, we might be able to use our api to effect the same…

when we output the topic title in forum view, we fire the filter ‘sph_TopicIndexName’… so it would certainly be possible to ‘add’ stuff to the display to have the same effect, just need to know what they do…

obviously, the first time anyone has asked for anything like this, so we dont have direct support for anything like this… I dont even see a working example on your site for blog posts… did you post it earlier? (sorry, replying from email)…

SM simon martin
simon martin
Member

The plugin is meant to display either text or an image, both in popup form, when you hover over certain words that you identify. For my site what I do is enter in stock tickers into the plugins database and link them each to their own dynamic chart image which I get from my charting program. So in the example I linked to you, EDIG was the stock ticker. Anytime someone hovered over the letters EDIG in my forum, it would display the image I had linked it to, which was the dynamic chart image (which updates upon refresh).

So after trying to research this and experiment, I stumbled upon filters. I see that the SP forum is displayed in the_content filter. I went through the php file for the plugin and found where they ran the add_filter and specified the_content, but I was trying to figure out where the topic titles output to. You answered that question just now so I added the same line with the sph_TopicIndexName filter, and it almost worked!

Now when I go look at the topic titles the key words that i’ve specified all indeed have the underline and look like the charts are going to pop up, but the message “Browse the thread…” still shows up instead. Adding that filter definitely worked, I just need to figure out how to disable that message so the chart can popup instead.

 

I apologize again for confusing the heck out of you, I’m learning as we go along and am slowly starting to put these pieces together. Thanks for your patience and help so far.

SM simon martin
simon martin
Member

I figured out how to remove that message by deleting a little code in spForumView.php, but the chart still won’t popup. It looks like it should be working, a keyword will be underlined with a little dotted line and when you scroll over it the mouse pointer has a question mark next to it. Both of those are true but no dice. Any other filters I may need to add or any ideas what I can try?

Here is a link to the forum view and you can see all of the tickers are underlined.

http://ichartpennystocks.com/forum/otc-otcbb-pink-sheets-and-over-the-counter-bulletin-boards/

MP Mr Papa
Mr Papa
Member

odd, wouldnt have thought that is from the filter…   the_content filter for theme would have already been called on the entire forum page…

something is adding a acronym and span tags to the title, so agree that something is occurring…  but next step is to figure out exactly what the plugin wants to act on…  there is likely some js in listening mode for a specific html element…  within the forum, this element might be different because the tags are coming out in the middle of an html a tag…

need to figure out what sequence its looking for and then adjusting the output within that sp filter I gave you…  I think its the right place and filter…

SM simon martin
simon martin
Member

Mr Papa said

need to figure out what sequence its looking for and then adjusting the output within that sp filter I gave you…  I think its the right place and filter…

 

 Hmm, any tips on how I’d find what sequence it’s looking for? I’m totally over my head and stuck.

MP Mr Papa
Mr Papa
Member

Would need to see how they set up the js to listen. Would need to inspect DOM or see the code.

SM simon martin
simon martin
Member

In the Hover plugin folder I see a folder called domTT, is that where I should be looking? Inside that folder there are a few .js files. In the root folder of the Hover plugin there is also an admin.js file, is that what you need? I’m pretty lost at this point. :|

YS Yellow Swordfish
Yellow Swordfish
Member

simon martin said
I figured out how to remove that message by deleting a little code in spForumView.php, but the chart still won’t popup. It looks like it should be working, a keyword will be underlined with a little dotted line and when you scroll over it the mouse pointer has a question mark next to it. Both of those are true but no dice. Any other filters I may need to add or any ideas what I can try?

Here is a link to the forum view and you can see all of the tickers are underlined.

http://ichartpennystocks.com/forum/otc-otcbb-pink-sheets-and-over-the-counter-bulletin-boards/

What code did you remove in spForumView.php please? I think the key here is to remove the tooltip text – is that what you did? Can you elaborate?

SM simon martin
simon martin
Member

I removed this snippet

 

, __sp(‘Browse the thread %NAME%’)

 

from this line

 

sp_TopicIndexName(‘tagClass=spRowName’, __sp(‘Browse the thread %NAME%’));