FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Change Coding For Msg-edit.gif
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Change Coding For Msg-edit.gif [message #34771] Fri, 17 November 2006 09:09 Go to next message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
OK, there's a bug in my forums.

About three weeks back, I Photoshopped some new buttons for replying etc.

Unfortunately, I misnamed something. I actually saved a screen capture as msg_edit.gif and uploaded it to the default template. As soon as I realised what I had done, I saved the correct button as msg_edit.gif, deleted the incorrect one, and uploaded the correct one.

Three weeks later, out of nowhere, the edit button on screen has gone back to the incorrect image. I now have new reply, topic etc buttons, but a damn screen capture in the middle!

I keep on heading to the relevant file (default/images/msg_edit.gif) and it sometimes reverts to the incorrect image. I keep on saving the correct when, but it doesn't matter. This change came out of nowhere.

So, because of the size of the incorrect image, I've decided to delete the button altogether. This still isn't working. Although msg_edit.gif no longer exists, the incorrect image (a large screen capture!) is still present on screen!

I've come to the conclusion that I need to upload the correct image as msg_edit1.gif instead, and change the template so that it now reads:

Quote:

<tr><td colspan="2" class="MsgToolBar"><table border=0 cellspacing=0 cellpadding=0 class="wa"><tr>
<td class="al nw"><a href=" index.php?t=usrinfo&amp;id=5&amp;S=586ed7a6f5ae40587393fc2affcf8815 "><img alt="" src="theme/default/images/msg_about.gif" /></a>&nbsp;<a href=" index.php?t=ppost&amp;toi=5&amp;rmid=979&amp;S=586ed7a6f5ae4058 7393fc2affcf8815 "><img alt="Send a private message to this user" title="Send a private message to this user" src="theme/default/images/msg_pm.gif" /></a></td>
<td class="GenText wa ac">&nbsp;</td>
<td class="nw ar"><a href=" index.php?t=mmod&amp;del=979&amp;S=586ed7a6f5ae40587393fc2affcf8815 "><img alt="" src="theme/default/images/msg_delete.gif" /></a>&nbsp;<a href=" index.php?t=post&amp;msg_id=979&amp;S=586ed7a6f5ae40587393fc2affcf8 815 "><img alt="" src="theme/default/images/msg_edit1.gif" /></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=" index.php?t=post&amp;reply_to=979&amp;S=586ed7a6f5ae40587393fc2affc f8815 "><img alt="" src="theme/default/images/msg_reply.gif" /></a>&nbsp;<a href=" index.php?t=post&amp;reply_to=979&amp;quote=true&amp;S=586ed7a6 f5ae40587393fc2affcf8815 "><img alt="" src="theme/default/images/msg_quote.gif" /></a></td>


Which template do I need to change to accomplish this?

[Updated on: Fri, 17 November 2006 09:13]

Report message to a moderator

Re: Change Coding For Msg-edit.gif [message #34773 is a reply to message #34771] Fri, 17 November 2006 09:56 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
You have uploaded the image to the wrong location.

You uploaded the image to the compiled directory, where things will be overwritten as soon as the forum re-compiles, you have to upload the image to the "source".

WRONG PLACE TO PUT FILES:
WWW_SERVER_ROOT/theme/default/images

CORRECT PLACE
DATA_ROOT/thm/default/images

After uploading the file to your templates "source" directory, you need to go to the Theme Manager and [ Rebuild Theme ]

PS. If you do not understand what I mean with www_server_root and data_root, just go to your forums admin panel and it's file manager. At the top of the page there will be links to navigate to the DATA_ROOT and the WWW_SERVER_ROOT


Re: Change Coding For Msg-edit.gif [message #34776 is a reply to message #34771] Fri, 17 November 2006 13:54 Go to previous messageGo to next message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
Wow!

That was really helpful and really appreciated! You were absolutely correct, Ernesto. It looks correct again now.

I actually never realised that those things in File Manager were links. God knows how I made the change in the first place; it must've been an accident.

Anyway, thanks again, Ernesto. Tuck!
Re: Change Coding For Msg-edit.gif [message #36872 is a reply to message #34771] Sun, 15 April 2007 11:09 Go to previous messageGo to next message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
Man, I'm getting really frustrated with this now.

Since this last post, I've changed lots of little things, all without a problem. Nonetheless, this fault has returned. I've hit 'rebuild theme'. I've replaced the faulty files in both SOURCE and DATA root.

Sometimes this works, only to revert to the bad designs later on.

Today, just to be different, I've re-upped the images and hit 'rebuild theme' after (I didn't do that every time), and I still have problems.

This is what my posting screen looks like. *Every* button is faulty, but I can cope with that, as long as I can get rid of that awful screen capture that replaces the 'msg edit' button.

Seriously, why the hell is a file that was deleted five months ago *still* magically appearing?! None of my other replacements in the forums have ever caused this problem. It's ridiculous.

index.php?t=getfile&id=3120&private=0
Re: Change Coding For Msg-edit.gif [message #36881 is a reply to message #36872] Sun, 15 April 2007 16:09 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Try putting your new images inside the default/ theme as well.

FUDforum Core Developer
Re: Change Coding For Msg-edit.gif [message #36883 is a reply to message #36881] Sun, 15 April 2007 19:03 Go to previous messageGo to next message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
Ilia wrote on Sun, 15 April 2007 17:09

Try putting your new images inside the default/ theme as well.


I did. They were put everywhere.

If I put the image name in a browser, it showed the older (incorrect) ones. Yet if I opened the relevant area in the admin control panel, the newer images that I had uploaded showed there, as though there were some time lag.

I went offline for a few hours, and things were back to normal afterwards:

index.php?t=getfile&id=3122&private=0

I still have no idea how the forums can revert to images that were deleted five months ago, but at least they're back ... for now ...
  • Attachment: Buttons.jpg
    (Size: 69.36KB, Downloaded 1322 times)
Re: Change Coding For Msg-edit.gif [message #36884 is a reply to message #34771] Sun, 15 April 2007 19:36 Go to previous messageGo to next message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
Oh, for God's sake, it's gone back to the old buttons again, less than an hour later.

Ilia;

Can you not just answer the question in my original post? Which template do I have to change so that the forums will know to load 'msg_edit1.gif' in place of 'msg_edit.gif'?

This is really ruining my forums now and I've had enough; I'd rather just mess with the coding than sit back in the fear that these ghost buttons will appear again.

Edit: OK, I've reupped, and they're back to normal. Well, they are in FireFox. Opera has changed some icons (the IM ones) but left the buttons as the incorrect ones.

Does anybody have any idea *how* this can be happening? Seriously, the bad icons were overwritten months ago.

Would be nice to know which template to amend too, thank you, because I'm going to have to take action.

[Updated on: Sun, 15 April 2007 20:36]

Report message to a moderator

Re: Change Coding For Msg-edit.gif [message #36887 is a reply to message #34771] Sun, 15 April 2007 23:09 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
drawmsg.tmpl -> dmsg_edit_link

<a href="{TEMPLATE: dmsg_edit_link_lnk}"><img alt="" src="{THEME_IMAGE_ROOT}/msg_edit.gif" /></a>


change there to msg_edit1.gif

I really have no clue why your images are reverting back like that, it sounds very odd. It sounds EXACTLY like you are uploading them to the web directory and not the root directory, but I can see by your screenshot that you are uploading them right...

Do you allow your users to change language? Lock the forum to english only i think?


Re: Change Coding For Msg-edit.gif [message #36888 is a reply to message #34771] Sun, 15 April 2007 23:23 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
index draws the list of all forums.

thread draws a list of all threads in a flat view

threadt draws a list of all threads in a tree view (dont use tree view, it is the devil)

msg draws the container of all the single messages

drawmsg draws a single message, it contains subtemplates that has the toolbars etc

drawpmsg is a single private message

subtemplates named "entry" indicates that they draw the top of a list, like, the explanation text:
Topic title, Views, Date

subtemplates named "row" draws the actual rows of information:
This is a new message, 3, 2007-10-14

subtemplates ending with _lnk means they are a href link value, for example this subtemplate: ernie_link_button_lnk
would read in clear HTML:
http://www.p*#$s.com/index.php?size=tiny
( of course it doesn't though, they always look like {ROOT}?t=stupidlink&amp;id={VAR: r[3]}&amp;{DEF: _rsid} (or something like that))

While the "boss" of ernie_link_button_lnk would be ernie_link_button (without the ending _lnk) and would looks something like this:
<a href="{TEMPLATE: ernie_link_button_lnk}">{VAR: r[4]}</a>


Hope that stuff helps you at least a tiny bit on the way.







Re: Change Coding For Msg-edit.gif [message #36899 is a reply to message #34771] Mon, 16 April 2007 11:01 Go to previous messageGo to next message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
Wow!

Thank you so much! I really wasn't expecting such a comprehensive reply, but it is truly very, very helpful.

I've never been trained in computer sciences, so I need little pushes in the right direction to help me understand what's going on with things like 'web and root directories' and your breakdown of all the different facets of _lnk etc is of great use to me.

The buttons are back to normal on both Firefox and Opera now, but I'll be sure to make use of your great advice should they corrupt again.

Thanks once more!

Tim

http://www.jeb.org.uk/forumoj/images/smiley_icons/Bowdown.gif

Re: Change Coding For Msg-edit.gif [message #36914 is a reply to message #34771] Tue, 17 April 2007 11:46 Go to previous messageGo to next message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
Ernesto;

I have need of your help (hopefully) one last time, please.

The buttons corrupted once again, so I've been amending the templates to link to images with different names, rather than persistently overwriting images which later overwrite themselves.

I've sorted everything, with one small exception; there are a couple of buttons located on screen where you read an individual private message, and I'm unable to track down their template.

index.php?t=getfile&id=3132&private=0

I located the 'reply' and 'quote' buttons in drawpmsg.tmpl. However, I can't find the correct template for 'delete' and 'forward'. I somehow managed to locate the 'delete' for the main messages by accident, but seem unable to replicate here.

Any pointers would be appreciate, my friend.

Tim
  • Attachment: PM.jpg
    (Size: 22.56KB, Downloaded 1320 times)
Re: Change Coding For Msg-edit.gif [message #36915 is a reply to message #34771] Tue, 17 April 2007 14:35 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
drawpmsg.tmpl -> dpmsg_msg_toolbar

Re: Change Coding For Msg-edit.gif [message #36916 is a reply to message #34771] Tue, 17 April 2007 15:05 Go to previous message
Dustin Kowalski is currently offline  Dustin Kowalski   United Kingdom
Messages: 62
Registered: August 2006
Location: Leicester
Karma: 0
Member
All sorted, now! http://www.jeb.org.uk/forumoj/images/smiley_icons/Happy.gif

index.php?t=getfile&id=3133&private=0

http://www.jeb.org.uk/forumoj/images/smiley_icons/Thx.png
  • Attachment: Fixt.jpg
    (Size: 19.63KB, Downloaded 1249 times)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Function of account moderators
Next Topic: Cant seem to add a new category name
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 23:30:04 GMT 2024

Total time taken to generate the page: 0.18398 seconds