YAFLogo

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
12 years ago
How does a member link to a graphic they've added to their album or to a graphic they've attached to a post?

I am not fond of photobucket type hosting sites because they are inconsistent with load times and I'd like to again provide an option for members to add a graphic to their gallery or attach it to a post and then link to that graphic in their signature, that way it's hosted on the site.


Edit, This is what I see after I've uploaded the graphic '2010JamesJonesJordyNelson.jpg' to my album.
http://packershome.com/DesktopModules/YetAnotherForumDotNet/uploads/4.12.2010JamesJonesJordyNelson.jpg.yafalbum 

If I do a view image, the link is actually
http://packershome.com/DesktopModules/YetAnotherForumDotNet/resource.ashx?image=21 


However, if I try using that link anywhere on the site, it works for ME, but no one else. They instead see an error as shown below.

Server Error in '/' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. 
Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 

An unhandled exception was generated during the execution of the current web request. 
Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   YAF.YafResourceHandler.ProcessRequest(HttpContext context) +102
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 
Sponsor

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
12 years ago
So, I'm guessing this can't be done? 🙂
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
Lets see if it works....

[modalurl=http://forum.yetanotherforum.net/sites/forum/resource.ashx?image=2]UserPostedImage[/modalurl]

Works for me.

We could create a BB Code for that something like

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader Topic Starter YAF Version: YAF 3.1.16
12 years ago
I never seen the 'modalurl' tags used before, interesting.

I'm really confused now because I used the IMG tags for a album graphic and it posted as expected for myself. I used a different browser under Guest and I'm still able to view it.


The BBCode would be excellent too.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button