PDA

View Full Version : Edit buttot not showing up...


Areku
07-11-2003, 02:45 PM
... just upgraded 2.2.0 to 2.3.0 and now EDIT button does not show up.

I used the Mergue method to update the PHP files. I do have many hacks in the board and all of them seem to work, but for some reason, as administrator for example, right after posting a message, EDIT button does not show up.

Where should I begin looking into?

Gary King
07-11-2003, 02:58 PM
Check the postbit template for something like:

<a href="editpost.php?s=$session[sessionhash]&action=editpost&postid=$post[postid]">
<img src="https://vborg.vbsupport.ru/images/edit.gif" border="0" alt="Edit/Delete Message"></a>

That's the code for the edit button. If it's there, check to see if there is <!-- and --> around it (that will comment it out, if they are there, then remove them.)

If the code isn't there, then find:

<td align="right" nowrap><smallfont> and place the code for the edit button right after that.

Areku
07-11-2003, 03:37 PM
I just upgraded PHP files. I did not touch the templates at all, so in which php file it does check for... permissions?

Areku
07-11-2003, 03:49 PM
i've tried to manually edit a post (by typing the URL to editpost.php) and it works, so i guess it's just the permissions to SHOW the edit button which are screwed up...

Gary King
07-11-2003, 04:25 PM
Did you try doing what I said? Does the editpost.php code appear in the postbit template?

Areku
07-11-2003, 04:35 PM
Couldnt find any instance of editpost.php on postbit template...

$post[editreport] is the most similar thing I have on place

Areku
07-11-2003, 04:43 PM
Woah!

I added the editpost code u mentioned and it worked! But i wonder if $post[editreport] is part of a hack or it comes with the new set up...

Why the heck did editpost.php disappear from a customized template? That was apparently the only part missing!

Gary King
07-11-2003, 04:59 PM
You are most likely using the hack where if the post is not yours, then it will show the report button, otherwise, it will show the edit button if the post is yours. So, the buttons aren't showing up because you don't have the file changes made for the hack.

Anyways, I'm glad you have solved the issue now.

Areku
07-11-2003, 05:02 PM
That's it, i forgot i installed that one, so i will reinstall it to solve the problem!

Thanks once more!

Gary King
07-11-2003, 05:05 PM
Glad I could help.