Change Coding For Msg-edit.gif [message #34771] |
Fri, 17 November 2006 09:09 |
Dustin Kowalski
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&id=5&S=586ed7a6f5ae40587393fc2affcf8815 "><img alt="" src="theme/default/images/msg_about.gif" /></a> <a href=" index.php?t=ppost&toi=5&rmid=979&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"> </td>
<td class="nw ar"><a href=" index.php?t=mmod&del=979&S=586ed7a6f5ae40587393fc2affcf8815 "><img alt="" src="theme/default/images/msg_delete.gif" /></a> <a href=" index.php?t=post&msg_id=979&S=586ed7a6f5ae40587393fc2affcf8 815 "><img alt="" src="theme/default/images/msg_edit1.gif" /></a> <a href=" index.php?t=post&reply_to=979&S=586ed7a6f5ae40587393fc2affc f8815 "><img alt="" src="theme/default/images/msg_reply.gif" /></a> <a href=" index.php?t=post&reply_to=979&quote=true&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 |
Ernesto
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
Ginnunga Gaming
|
|
|
|
Re: Change Coding For Msg-edit.gif [message #36872 is a reply to message #34771] |
Sun, 15 April 2007 11:09 |
Dustin Kowalski
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.
|
|
|
|
|
Re: Change Coding For Msg-edit.gif [message #36884 is a reply to message #34771] |
Sun, 15 April 2007 19:36 |
Dustin Kowalski
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 |
Ernesto
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?
Ginnunga Gaming
|
|
|
Re: Change Coding For Msg-edit.gif [message #36888 is a reply to message #34771] |
Sun, 15 April 2007 23:23 |
Ernesto
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&id={VAR: r[3]}&{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.
Ginnunga Gaming
|
|
|
|
Re: Change Coding For Msg-edit.gif [message #36914 is a reply to message #34771] |
Tue, 17 April 2007 11:46 |
Dustin Kowalski
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.
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 1324 times)
|
|
|
|
|