vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Edit buttot not showing up... (https://vborg.vbsupport.ru/showthread.php?t=55212)

Areku 07-11-2003 02:45 PM

Edit buttot not showing up...
 
... 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:

PHP Code:

<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:

PHP Code:

<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.


All times are GMT. The time now is 10:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01010 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete