Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Future Requests
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 8, 2011 - 2:49 am

I have no idea what you are referring to. That link leads me to a 404

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2011 - 7:28 am

its a 404 because there is an extra space at the end of the url in the link...

you should be able to put html in your special forum message - but not js... have you tried?

Avatar
MK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 8, 2011 - 8:13 am

Thanks, I just took out the extra space so the link works now. 

 

I tried html for the basic areas that I could use but, to cover a different section, I can really only find PHP or JS code after extensive searching. 

 

 

Option 1

This site covers about half of what I need and the code won't save in the special forum message....it deletes the majority of it upon saving...everything between the iframe if I remember correctly. 

 

http://widgets.freestockcharts.....#038;h=400

<!-- Start FreeStockCharts.com Chart Widget -->
<p width="100%" align="center">
<iframe width="400" height="400" scrolling="no" frameborder="0" style="border:none;" src="http://widgets.freestockcharts.com/WidgetServer/InteractiveChartWidget.aspx?guid=da24c066-041e-42f8-a29d-f7fb26771cc7&w=400&h=400"></iframe>
</p>
<!-- End FreeStockCharts.com Chart Widget -->

 

Option 2:

 

Covers more than half of what I need but half the code comes up only showing text and the other half actually executes but says flashplayer is not updated to a new enough version....which it is. 

 

http://www.wikinvest.com/speci.....tock_Chart

 

<script src="http://charts.wikinvest.com/wikinvest/wikichart/javascript/scripts.php" type="text/javascript"></script><div id="wikichartContainer_B0832439-AA81-DBAC-C670-05952C1F77FD"><div style="width: 390px; text-align: center; vertical-align: center; margin-top: 22px;"><a href="http://get.adobe.com/flashplayer/"><img src="http://cdn.wikinvest.com/wikinvest/images/adobe_flash_logo.gif" alt="Flash" style="border-width: 0px;"/><br/>Flash Player 9 or higher is required to view the chart<br/><strong>Click here to download Flash Player now</strong></a></div></div><script type="text/javascript">if (typeof(embedWikichart) != "undefined") {embedWikichart("http://charts.wikinvest.com/WikiChartMini.swf","wikichartContainer_B0832439-AA81-DBAC-C670-05952C1F77FD","390","245",{"showAnnotations":"true","endDate":"08-02-2011","ticker":"KOG","liveQuote":"true","embedCodeDate":"2011-2-8","startDate":"08-08-2010"},{});}</script><div style="font-size:9px;text-align:right;width:390px;font-family:Verdana"><a href="http://www.wikinvest.com/chart/KOG" style="text-decoration:underline; color:#0000ee;">View the full KOG chart</a> at <a href="http://www.wikinvest.com/">Wikinvest</a></div>

 

Option 3 which covers most of what I need is what I posted in the previous post and it will not save when updating the special message. 

 

<?php get_stock_quote("NOVL,PFE,INTC"); ?>

 

 

 

Even if I wanted to go the route of paying, most all use JS let alone hundreds of dollars a month for something a free substitute is just as good for.  

 

Any idea's of how I can create a workaround or am I pretty much out of luck if I can't find basic html code?  Much appreciated again.  Everything else seems to be moving along pretty nicely now...just little areas like this of trying to add what the customer wants becoming very time consuming to find/add. 

 

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 8, 2011 - 11:36 am

Well you can't run javascript or php code in this context. Javascript has to be a part of the generated source and be loaded to the browser. Php has to be interpreted on the server. The places you are trying to use these are saved as data to a database. They will get stripped by filters as a security measure against scripting attacks. The same is probably true of the iframe.

it is what the program hooks are for which can utilise any of these methods.

andy-signature.png
YELLOW
SWORDFISH
Avatar
MK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 13, 2011 - 1:38 am

Thanks for the input. 

 

After reviewing programs hooks, I'm uncertain if that would even work for me. 

 

1st, I am uncertain which program hook would mimic the "special forum message" area above topics. 

2nd, It is my understanding (and I could very well be wrong, hopefully I am) that program hooks are hard-wired code in the back-end which would mean that same code would be in each "special forum message."  The problem I see is each subforum I have would have code that has 3-4 key letters constantly changing in the code, depending on which subforum it is on, as the code needs to be unique to the subforum topic. I'm going to have many subforum topics so that means each set of code is slightly different for each. 

So, if I understand it correctly, program hooks would not do the trick.  It would work great if it was one standard code but not a code that needs to be different for each subforum, right?

Sorry for all the questions...this is just a long work in progress for me before I can even launch this publicly and test it out. 

 

Thanks,

MK

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 13, 2011 - 2:14 am

something like the sf_hook_post_forum_top_pagelinks() I would have thought would have worked. It has the forum ID as a parameter. Your code would by much better off only being created once with some kind of lookup to match forum ID with your target item.

andy-signature.png
YELLOW
SWORDFISH
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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625