scmakhaye / sharepoint-facebook-wall

Automatically exported from code.google.com/p/sharepoint-facebook-wall
0 stars 0 forks source link

Turn off Hyperlinks #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, the web part is working perfectly fine on our dev intranet site, however I 
would like to only display the wall entries and need any links deactivated. Is 
that possible?

What steps will reproduce the problem?
1. Add any wall to web part
2. Follow the links -> that's what I don't want the users to be able to do.
3.

What is the expected output? What do you see instead?
As of right now they CAN click on links.

What version of the product are you using? On what operating system?
3.1, SP 2007, Server 2008

Please provide any additional information below.

Original issue reported on code.google.com by dianabir...@gmail.com on 5 Jul 2011 at 4:35

GoogleCodeExporter commented 8 years ago
Currently this is one of the feature that user requires in our webpart. 
If you want to deactivate the links then please download the code and remove 
the following lines from showwall.cs line number : 345

objHyperLink = new HyperLink();
                        childCell.Controls.Add(objHyperLink);
                        objHyperLink.Text = feed.Dictionary["name"].String;
                        objHyperLink.Target = "_New";
                        if (feed.Dictionary.ContainsKey("link"))
                        {
                            objHyperLink.NavigateUrl = feed.Dictionary["link"].String;
                        }

WITH

 Label objLabel = new Label();
                        objLabel.Text = feed.Dictionary["name"].String;
                        childCell.Controls.Add(objLabel);

and compile the dll and upload it in GAC. Do an IISRESET and you would be good 
to go.

Original comment by tsg.bric...@gmail.com on 20 Jul 2011 at 10:18