Created By
DMG Development
As Seen On

Main Page  |  Forums  |  Register  |  Active Topics  |  Members  |  Search

 
Username:
Password:
DMG Forums >> DMG Forums Discussion >> General Discussion >> Uploading images with posts
Uploading images with posts
Author Topic
jacobcolton


Newbie

Join Date: 10/11/2007
Posts: 2

Posted: 10/11/2007 6:02:09 AM

Hi,

We are currently running the DMG Forums and it is working well except that we would like to be able to have the option to upload images with some posts. Is this possible. Has anyone done this before?

Thanks,

Jacob

grimmeissen


Administrator


Join Date: 8/30/2005
Posts: 656
Location: Cincinnati, Ohio

Posted: 10/11/2007 11:31:22 AM

There is no feature to upload an image into a post. It could be accomplished with some modifications.

The only way available to add images to posts currently is to use the [img] command, but of course, this requires them already to be uploaded somewhere.

Presently I can think of a few interesting options that you could use involving the member photo uploads where they could potentially have a way to upload a member photo and attach it to a post at the same time.
jerzybest


Beginner

Join Date: 9/10/2007
Posts: 24

Posted: 10/13/2007 12:00:23 AM

I done something like this.

Gave users permission to upload images in UserCP
Modified the showphotos.aspx added the link for the user to easyly copy and past the link.

TextBox1.Text = "[img ]http://www.mysite.com/" & Request.QueryString("PHOTO") & "[ /img]"

but it would be nice if the option to upload image with the post.
Hope this helps for now

Flexus


Newbie


Join Date: 11/10/2007
Posts: 9

Posted: 11/15/2007 4:23:52 AM

Use CuteEditor. I have integratet this editor into the forum, to replace the message textbox. In CuteEditor you can assign each user a image folder, to store uploaded images. And then they simply can click on the image(doc,videos ect) to apply it to the editor and post. This is a great editor, with tons of fuctions. Just like creating a doc in word, plus ability to use HTML codes if you wish.

grimmeissen


Administrator


Join Date: 8/30/2005
Posts: 656
Location: Cincinnati, Ohio

Posted: 11/15/2007 12:59:38 PM

I am planning to have better image uploading capabilities with posts in the next release, however, Flexus brings up a great point. Implementing a third-party editor in the forums should not be that difficult and will give you the ability to set it up how you want.
youngjas808


Newbie

Join Date: 11/15/2007
Posts: 1

Posted: 11/15/2007 9:01:40 PM

So I tried using cuteeditor. I've changed the textbox to a cuteditor.editor I recompiled for example topics. the editor fits in well. However when I made a post I got a db error while trying to go back to the main screen. Apparently I broke a date insert when including the editor so now when it tries to get lasttopicby the date field is null. Here is the error I'm getting:

Exception Details: System.InvalidCastException: Conversion from type 'DBNull' to type 'Date' is not valid.

Source Error:


Line 119: <td width="180" align="center" style="border-top:1px solid <%=Settings.TableBorderColor%>;border-left:1px solid <%=Settings.TableBorderColor%>;" nowrap>
Line 120: <font size="1">
Line 121: <%# LastTopicBy(DataBinder.Eval(Container.DataItem, "(""MEMBER_ID"")"), DataBinder.Eval(Container.DataItem, "(""MEMBER_USERNAME"")"), DataBinder.Eval(Container.DataItem, "(""FORUM_LASTPOST_DATE"")"))%>
Line 122: </font>
Line 123: </td>


Source File: d:\hosting\youngjas808\HogsForum\default.aspx Line: 121

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'Date' is not valid.]
Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(Object Value) +317
DMGForums.Global.Functions.LastTopicBy(Object theuserid, Object theusername, Object thedate) +101
ASP.default_aspx.__DataBind__control18(Object sender, EventArgs e) in d:\hosting\youngjas808\HogsForum\default.aspx:121


The problem might not be what I think it is. Any suggestions welcome

Flexus


Newbie


Join Date: 11/10/2007
Posts: 9

Posted: 11/16/2007 3:18:25 PM

Hm, but did you remove the repairstring function?
I`ll get a char data type to a datetime data type resulted in an out-of-range datetime value error, when I try to access the Active Topics, This has not worked for me, even befor a edited any code.



  Copyright DMG Development DMG Forums 3.2