TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 468
  • Total: 468

How does the php code block work?

Started by akyhne, March 23, 2009, 03:22:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Akyhne

Tinyportal 1.0 beta 3:

I tried to add some php code to a php code block, but I get no options on where it should be displayed!

How does this work?

IchBin

You have to click the show/hide links to get the options to appear.

Renegd98

If you look near the bottom of the block you will see an area that has:  

Choose where the block should appear. [Show] [Hide], choose show.

JPDeni

To further answer your question about the php block specifically (because the question actually refers to any block), the php block works by using the eval php function. This is why it does not work to start the code in a php block with the usual


<? php


and end with


?>


as you would do on an independent php page.

Akyhne

Quote from: Renegd98 on March 23, 2009, 03:24:13 PM
If you look near the bottom of the block you will see an area that has:  

Choose where the block should appear. [Show] [Hide], choose show.

The show/hide isn't there. That's my issue.

JPDeni

Then it would probably be best to read and follow Posting Guidelines.html so that we can better diagnose your problem.

Akyhne

Posting Guidelines

Please think real hard about whether your issue is TP or SMF related. We can only support TinyPortal here with limited time and staff. If your issue is SMF related please post at SMF first. Thanks!
My question it TP related, so I post here.

Choose an appropriate subject line. Use the issue you are having as your topic. Try to summarise the problem briefly in the subject, and elaborate in the message itself.
My question is still "How does the php code block work?"


Keep all posts on-topic.
I do

Post your comment/question to the most appropriate place.
I did.

Any posts deemed to be in the wrong forum will be moved.
Feel free to...

Do not cross-post the same question to multiple places.
I didn't...

Keep all posts on-topic.
I did

Please do not ask your own question in a topic. In other words, please don't hijack the topic and make it  yours. Start your own topic and reference the other topic related to your issue.
If your topic is resolved, please mark it solved by changing the icon in your original post to reflect its status. (the check icon)
I didn't...

If a topic is marked as SOLVED, don't post in that topic. Start a new one with your question even if it's similar to the topic thats marked solved. This is for us to better know and keep track on whats working or not. A solved topic has a working solution to the topics question.

Besides your search engine doesn't seem to work in any browser... well sometimes it works and sometimes it doesn't.

Are you guys willing to help with your software, or just continueing to tell me to read the posting guidelines. It's getting pretty annoying!

I know I might not doing it the right way every time, but I haven't time to read the posting guidelines every time i go here.

And when I spend several hours trying to figure out how the mod works and searching your forum here to find an answer without success, I'm beginning to run out of time!

So it would be fairly easy for you to just ask about missing information, instead of bothering people.

I also posted one or two bugs in the software, but never got as much as a thanks for the work, or an apply that you noticed or confirmed the bug!

Ken.

#7
If you wish you can send me a PM with a temp admin login and I'll take a look for you.



EDIT: Here's a s/s of the show-hide link bty:
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

JPDeni

This was the part that I was referring to:

QuoteHere's is a posting template for your to copy and paste into your post.

[b]Link to my site:[/b] http://www.yourdomain.com
[b]SMF version:[/b] SMF ver. here
[b]TP version:[/b] TP ver. here
[b]Theme name and version:[/b] Theme name here
[b]Mods installed:[/b] Mods listed here
[b]Related Error messages:[/b] Error message here


You see, your problem could be theme-related. It could also be language=related. What is the default language that you have active on your site?

Akyhne

It is not theme related, as I have the issue in all themes.

This website is proudly hosted on Crocweb Cloud Website Hosting.