Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 02:50 am EST

Geeklog Forums

REPLY = Article.php For some reason. How to edit?


Status: offline

JJNova

Forum User
Newbie
Registered: 03/05/06
Posts: 7
confused
Lately I have been playing with different templates, trying to see what would provide a professional look but still have enough color to keep people form sleeping.

Every single layout (other than professional) has the following problem.

When someone has already commented on an article, anyone else that tries to comment on the article get's redirected to a refresh of the screen. As an example, please view the following URL and attempt to click on the 'Reply' button. You will see that instead of linking to '/comment.php' it chooses to send the user to '/article.php' .

http://gamecootie.com/article.php?story=20061028213319549#comments

I am sure it's a simple fix, and I'm sorry to inquire about it. I just can't find out which file controls these actions. Thank you very much.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Compare the files in your theme's "comment" directory (especially commentbar.thtml) with the ones from the Professional theme. You're probably missing a few "hidden" input fields there.

bye, Dirk
 Quote

Status: offline

JJNova

Forum User
Newbie
Registered: 03/05/06
Posts: 7
Thanks for the suggestion Dirk. Didn't work out though. The comment folder from professional and the current theme are identical.

Cleared out the cache, refreshed the page, and still had the same results. If you have any other ideas, I would greatly appreciate your input. I can't figure out for the life of me what file/folder creates teh "Reply" function on that page.

Thank you.


EDIT: To clarify. Each file in the /comment folder is identical. I replaced all of the files from the curren theme with the professional theme. Same results.
 Quote

Status: offline

JJNova

Forum User
Newbie
Registered: 03/05/06
Posts: 7
confused
I apologise. Apparently I am an idiot. The problem is in commentbar. I guess I just uploaded the same directory twice. I've messed around with it, but still can't get it to work. Maybe someone will be able to see what the differences are. Here is the professional commentbar (which works)

Text Formatted Code
<table cellspacing="0" cellpadding="0" align="center" width="100%" class="block-divider"><tr><td><img src="{site_url}/images/speck.gif" width="1" height="2" alt=""></td></tr></table>
<a name="comments"></a>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tr><td align="center" class="commentbar1"><b>{start_storylink_anchortag}{story_title}{end_storylink_anchortag}</b> | {num_comments} {lang_comments} | {user_nullname} <a href="{login_logout_url}" class="commentbar1">{lang_login_logout}</a></td></tr>
  <tr>
    <td align="center" class="commentbar2">
      <form style="display: inline" action="{parent_url}" method="POST">
        {hidden_field}
        {order_selector}
        {mode_selector}
        <input type="submit" value="{lang_refresh}">
        <input type="hidden" name="type" value="{comment_type}">
      </form>
      <form style="display: inline" action="{site_url}/comment.php" method="POST">
        <input type="hidden" name="sid" value="{sid}">
        <input type="hidden" name="pid" value="0">
        <input type="hidden" name="type" value="{comment_type}">
        <input type="submit" name="reply" value="{lang_reply}">
      </form>
    </td>
  </tr>
  <tr><td align="center" class="commentbar3">{lang_disclaimer}</td></tr>
</table>

 



And this here is the commentbar.thtml from the layout I would like to use. I don't understand what section here is causing the page to refresh instead of allow a reply.

Text Formatted Code
<a name="comments"></a>
<form action="{parent_url}" method="POST">
        {hidden_field}
        <input type="hidden" name="type" value="{comment_type}">
    <input type="hidden" name="pid" value="0">

<table border="0" id="comment-section">
  <tr>
                <td id="comment-section-title-left"><img src="{layout_url}/images/icons/comments.gif" alt="Comments"> <strong>{num_comments} {lang_comments}</strong>  |  {story_title}</td>
                <td id="comment-section-title-right">{user_nullname} <a href="{login_logout_url}" class="commentbar1">{lang_login_logout}</a></td>
        </tr>
        <tr>
                <td id="comment-section-title-left"><input type="submit" name="reply" value="{lang_reply}"></td>
                <td id="comment-section-title-right">{order_selector} {mode_selector}<input type="submit" value="{lang_refresh}"></td>
    </tr>
    <tr>
        <td class="comment-section-disclaimer" colspan="2" align="center">{lang_disclaimer}</td>
    </tr>
</table>

</form>
 



Thank you for taking a look at it.
 Quote

JJ Nova

Anonymous
bumping topic due to a better description of problem.
 Quote

All times are EST. The time is now 02:50 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content