I'll be posting my errors along it's back-end development in this topic. I just had one problem but I got my head from my rear and figured I'd look at my last know PHP statement rather than at a non-existent Line 95 (since my overall_header.tpl/php ends on Line 63 P:
Quote:
Parse error: syntax error, unexpected '}', expecting ',' or ';' in ..../tpl_Cemetech6m.overall_header.php on line 95


In the future, this is where I'll post things. Don't need any PHP or TPL knowledge to help. PHP is foriegn to me, it's like the Spanish class I took in 9th grade - was there for a semester, learned six words and dropped out. Most of the time it'll be errors like the above, I presume.
Yeah, when you mix PHP inline with HTML, it doesn't always give you sane line numbers. I look forward to seeing what I can help with.
Okay, I'm having a problem on the following page, http://www.cemetech.net/forum/viewforum.php?f=1, under C6M.


Code:
<!-- BEGIN catrow -->
                        <table class="subforum">
                          <!-- BEGIN forumrow -->
                          <!-- BEGIN topicrow -->
                         
                             <tr>
                                <td class="name">{catrow.forumrow.TOPICS}</td>
                                <td class="lastpost">{catrow.forumrow.LAST_POST}</td>
                             </tr>
                             
                             <tr>
                                <td class="name">Cemetech Labs</td>
                                <td class="lastpost">January 1st, 1979 12:00:00am by MufinMcFlufin</td>
                             </tr>
                             
                             <tr>
                                <td class="name">Contests</td>
                                <td class="lastpost">January 1st, 1979 12:00:00am by tifreak8x</td>
                             </tr>
                             <!-- END topicrow -->
                             <!-- END forumrow -->
                        </table> <!-- table.subforum -->
                        <!-- END catrow -->
Nothing is showing up but but the old part of the forum is. I'm lost. I'm sure it's got to do with those <!-- IF END --> lines. I added <!-- topicrow --> and it still didn't work, in other words, removing that won't make it work :/

And KermM, it looks like I've got the variables I may need, it looks like you don't need to make any. I'll try them when I get through the whole site, though.
<!-- IF END --> are the block-endings to <!-- IF [condition] -->, so you need to always have them paired, like BEGIN and END.
They should all be paired, I'm able to find an IF and an END to each and in order if I'm seeing close lines correctly.
comicIDIOT wrote:
They should all be paired, I'm able to find an IF and an END to each and in order if I'm seeing close lines correctly.
Perhaps I'm retarded, but I'm not actually seeing any IF/ENDs in that code block you provided, so I'm a bit confused.
Oh! I was Ignoring the IF statement. I just copied what was in the TPL. I'll view my backup TPL for that page and see if they were IF instead of BEGIN.

But, BEGIN END make sense too imo :/

Okay, in the original here's how the rows start:


Code:
  </tr>
                     </table>
<!-- BEGIN catrow -->
                  </div>
               </div>


Not all the same, but they start with BEGIN, not IF. I'm confused as to why this isn't working for me Neutral
comicIDIOT wrote:
Oh! I was Ignoring the IF statement. I just copied what was in the TPL. I'll view my backup TPL for that page and see if they were IF instead of BEGIN.

But, BEGIN END make sense too imo :/
The BEGIN / END structure there is perfectly fine. I see no reason why you would be getting a blank page.
Yeah. I'll try cutting out everything below and storing that in a blank .txt file and see if that helps.
comicIDIOT wrote:
Yeah. I'll try cutting out everything below and storing that in a blank .txt file and see if that helps.
Good idea, hopefully that will help a bit. Smile
I'm playing around with the BEGIN/ENDs a bit to no avail. I don't want to leave one out because that'd probably not help things. With that same logic, I'll look in the original and see if I'm leaving out any "comment" conditions.
comicIDIOT wrote:
I'm playing around with the BEGIN/ENDs a bit to no avail. I don't want to leave one out because that'd probably not help things. With that same logic, I'll look in the original and see if I'm leaving out any "comment" conditions.
For reference, here's what I'm seeing in Cemetech6. It's possible your TPL was before the subsubforums mod:


Code:

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
  <tr>
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{catrow.CAT_DESC}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN forumrow -->
  <tr>
   <td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink<!-- IF catrow.forumrow.UNREAD --> topic-new<!-- ENDIF -->">{catrow.forumrow.FORUM_NAME}</a><br />
     </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
     </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
   <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
</table>
<br />
<!-- END catrow -->

<!-- IF NUM_TOPICS || ! HAS_SUBFORUMS -->
                  </div>
               </div>
               <div class="mainlowermiddle">
               </div>

               <div class="mainheadmiddle">
               </div>
               <div class="mainbody">
                  <div class="mainbodyinner">
                    <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
                     <tr>
                       <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
                       <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
                       <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
                       <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
                       <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
                     </tr>
                     <!-- BEGIN topicrow -->
                     <tr>
                       <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
                       <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
                        {topicrow.GOTO_PAGE}</span></td>
                       <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
                       <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
                       <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
                       <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
                     </tr>
                     <!-- END topicrow -->
                     <!-- BEGIN switch_no_topics -->
                     <tr>
                       <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
                     </tr>
                     <!-- END switch_no_topics -->
                     <tr>
                       <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
                        <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
                        </span></td>
                     </tr>
                    </table>
                  </div>
               </div>
               <div class="mainlowermiddle">
               </div>
No, it was after. I was adding the Subforum BEGIN/ENDS outside the default. And since there were no Subforums inside that particular category, nothing was showing up.

Got it to display as well as the sub-forums. Altogether I need two new variables, to complete the skin so far.
I am currently getting 404 errors trying to click on topic titles from the forum index on my phone. Smile
I can post in C6M! Woo!

Bad News:


No matter which topic I post in, I always post in "Minecraft, Anyone?"
By previewing I could have easily noticed that.

Well, I've fixed that issue. I just finished skinning the login page but can't verify it works.
This is a post from C6M. I did a proper preview and the topic below, is still the C6M Problems thread. So, hopefully this works. All goes.
comicIDIOT wrote:
This is a post from C6M. I did a proper preview and the topic below, is still the C6M Problems thread. So, hopefully this works. All goes.
Great job! Does that mean that the login page is also good to go?
Okay. I was adding _Player's request for Alt text within the page numbers. I thought had figured out how to add it, but I broke something along the way. I know how & where I broke it, luckily. Here's an original ($goto_page) and a modified variable ($mgoto_page) for C6M.


Code:
$goto_page .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&amp;start=$j") . '">' . $times . '</a>';

$mgoto_page .= '<a alt=" . '$topic_title' . " href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&amp;start=$j") . '">' . $times . '</a>';


I couldn't figure out where the href="" ended, so I added alt="" to the front. I'm assuming I added it in wrong. I also added "&alex" to the end the URL to see if I was in the right section. Saved, Uploaded and refreshed and no page number URL's had "&alex" at the end.


Update: I believe I see my error, the alt text should be:


Code:
$mgoto_page .= '<a alt="' . $topic_title . '" href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&amp;start=$j") . '">' . $times . '</a>';
Attempting to fix the PM issue in C6M, would this work for creating new PM's?


Code:
//This here is for Cemetech Mobile
$m_newpm = '<a href="' . $post_urls['post'] . '">New PM</a>'


Also, the above post. Is it correct?
Former post: correct. you had the concatenate and single-quote characters in the wrong order in each case.

Latter post: Without context and knowing what variables are global there, I'm having difficulty telling. Did you try running it and seeing what URL it generates? Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement