Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 109 users online: 5 members, 73 guests and 31 bots. Members: Ashbad, colophonicd, JamesV, ordelore. Bots: VoilaBot (1), MSN/Bing (1), Magpie Crawler (2), VoilaBot (6), Googlebot (18), Ask Jeeves (1), MSN/Bing (2).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 07 Mar 2011 12:42:41 am Post subject: C6M: *Development* Problems |
|
|
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. _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 07 Mar 2011 12:44:52 am Post subject: |
|
|
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. _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 07 Mar 2011 04:49:15 pm Post subject: |
|
|
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. _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 07 Mar 2011 04:54:32 pm Post subject: |
|
|
<!-- IF END --> are the block-endings to <!-- IF [condition] -->, so you need to always have them paired, like BEGIN and END. _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 07 Mar 2011 04:56:35 pm Post subject: |
|
|
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. _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 07 Mar 2011 04:57:42 pm Post subject: |
|
|
| 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. _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 07 Mar 2011 05:02:22 pm Post subject: |
|
|
| 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. _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 07 Mar 2011 05:03:06 pm Post subject: |
|
|
Yeah. I'll try cutting out everything below and storing that in a blank .txt file and see if that helps. _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 07 Mar 2011 05:03:51 pm Post subject: |
|
|
| 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.  _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 07 Mar 2011 05:09:31 pm Post subject: |
|
|
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. _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 07 Mar 2011 05:20:11 pm Post subject: |
|
|
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. _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 07 Mar 2011 06:19:45 pm Post subject: |
|
|
I am currently getting 404 errors trying to click on topic titles from the forum index on my phone.  _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 08 Mar 2011 04:43:36 am Post subject: |
|
|
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. _________________
-Alex
Last edited by comicIDIOT on 08 Mar 2011 05:36:21 am; edited 1 time in total |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 08 Mar 2011 05:27:41 am Post subject: Proper Post in C6M |
|
|
| 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. |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 08 Mar 2011 10:12:44 am Post subject: Re: Proper Post in C6M |
|
|
| 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? _________________
 |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
Posted: 25 Jun 2011 01:59:12 pm Post subject: |
|
|
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 . "&start=$j") . '">' . $times . '</a>';
$mgoto_page .= '<a alt=" . '$topic_title' . " href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&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 . "&start=$j") . '">' . $times . '</a>';
_________________
-Alex |
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5107 Location: SFBA, California
|
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55742 Location: Earth, Sol, Milky Way
|
Posted: 02 Jul 2011 12:58:38 am Post subject: |
|
|
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?  _________________
 |
|
| Back to top |
|
|
|
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
|
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
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.046062 seconds.
|