I have a page that my coder developed a game code in PHP ad it fetches some information from other page and from database and generally runs by itself. I am not sure if it is possible to add game code using "Article" or what??
Please advise!
You can make a php script block and put your code into there.
Is that under "add php" or ?
Can you give me idea how I do like this?
Setting -> Location of php script block -> so I can navigate my way around TP thanks!
Admin>TinyPortal>Block Manager>Add Left (or right) Block> and select the type of block you want from the drop down list.
Thanks! I created it in phpbox and added the link, but I do not see the link anywhere on the page? Am I supposed to set something on at TP to display a custom link?
The goal is to add link to this game along with few other games so that people could click on the link anytime they are ready to make their picks before the deadline. Up to this point, it is showing on top before the main article.
I am showing error message
Parse error: syntax error, unexpected '<' in /home/nflroom/public_html/Sources/Load.php(1735) : eval()'d code(35) : eval()'d code on line 1
Sorry, but I don't know what to tell you on your code... the person who wrote may be able to help.
Based on the path, it is coming from Load.php, which is part of SMF forum
remove the php tags
Quote from: Zetan on August 21, 2007, 09:54:51 PM
remove the php tags
Wouldn't that be hard because there are mix of php and html scripts on the page?
What if I change it to scriptbox ? Will it work better??
Changing to a different type of box is OK as a way to test your code.
However:
One thing that should be mentioned at this point as a reminder is that your blocks must be set to NOT show while in the admin control panel in case something goes wrong... that way you can turn the block off if need be.
And, if you've already done that... :up:
I have tweaked with the code and I think I finally got a hang of it so just matter of playing around with it. I have it open in 3 windows- 1 to change codes, 2 to reload home page and see result and 3 to keep original code should something goes wrong as you mentioned. :D
New questions I have now ...
1) How do I make it seperate from article for center block??
2) Do I have to create a default link and then add new "Nav Menu" block so users could link to it?
" I have it open in 3 windows-"
Excellent! ;)
How about a link so we can see what you have so far.
"1) How do I make it seperate from article for center block??"
are you trying to display an article and a center block?
Quote from: Ken. on August 21, 2007, 10:59:43 PM
" I have it open in 3 windows-"
Excellent! ;)
How about a link so we can see what you have so far.
"1) How do I make it seperate from article for center block??"
are you trying to display an article and a center block?
Ok, what is happening is that it is showing the game in box mixing with articles (news) and I don't want that. I want it to show completely separate from articles but on center of the page, and then I want to add maybe 1 link or 4 links depending on how I can add the link.
Almost forgot the link!!! Here it is!
http://www.nflroom.com/index.php The game is based on last year season and will be uploading new season schedule very soon!
Looking at you page and seeing that you have your game showing and an article, "Revamping the site"... if you don't want the article to show you can set it to not "Show on front page" (at the bottom of your editor window), or you can turn it off.
Quote from: Ken. on August 21, 2007, 11:26:15 PM
Looking at you page and seeing that you have your game showing and an article, "Revamping the site"... if you don't want the article to show you can set it to not "Show on front page" (at the bottom of your editor window), or you can turn it off.
Actually I want it opposed. As I mentioned before this post, I was saying I don't want game to be the main thing and would prefer to provide a link to this game right now. I want articles to be the main thing when visitor first come to this site and then if he wishes to play the game, he click on the link. That's why I was also asking how do you create a link to game or to each game (depending on how link is created).