Jump to content

Jack.C

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

About Jack.C

  • Birthday 07/10/1983

Contact Methods

  • AIM
    wick3d3m0n
  • Website URL
    http://www.thetvstop.com
  • Yahoo
    chisox710

Profile Information

  • Gender
    Male

Jack.C's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php // Show all information, defaults to INFO_ALL phpinfo(); // Show just the module information. // phpinfo( yields identical results. phpinfo(INFO_MODULES); ?> Place the above code in a file, and run it. It will the show your PHP info.
  2. What do you mean by license holders? What forum software do you use?
  3. <?php session_start(); DEFINE('movies', 'access'); DEFINE('witAdmin', '1'); require_once('witadmin/conf/config_u.php'); require_once('classes/common.php'); $p = new output(); require_once('classes/movies.php'); $m = new movies(); if(isset($_GET['handle_ajax'])) { if(isset($_GET['view_links'], $_GET['category_id'])) { $m->show_links($_GET['category_id']); } elseif(isset($_GET['add_link'], $_GET['category_id'], $_GET['title'], $_GET['link'])) { $m->add_link($_GET['category_id'], $_GET['link'], $_GET['title']); } else die('No result'); } else { if(isset($_GET['movie_id'])) $m->show_movie(); else $m->movie_list(); } if(isset($m) && is_object($m)) { $p->output = $m->output; } $p->show_overall(); ?>
  4. The servers configuration is already configured as above. as I've said, I've gotten PHP code to work properly inside of a .tpl file. And all I'm trying to accomplish here is find a simple and easy way to make it so I don't have to create several files with the same exact code. I did not do this script, therefore I don't have a clue. What is the simple way to include a header in several .tpl files without having to add it to each and every .tpl file? For instance, here is a .tpl file with PHP code inside of it working: http://watch.thetvstop.com/templates/stats.tpl The problem is, when I use <?php include ("/file.tpl or /file.php");?> it won't display anything.
  5. It's a tpl file, that's what this whole discussion has been about. How do you include php in tpl files, I did what you said, and thus got that result. So: 1. PHP is allowed on my webhost, infact everything there IS php. 2. It does not end in .php because I did exactly as you said above. Point blank, I asked how to include php files using <?php include("file.php");?> Inside of a tpl file.
  6. It also depends on the type of site. I know from experience. I run a tv show news,rumor,promo pic site etc. And we all feed off one another. As long as we link back to the original content provider we're all happy. But that varies based on the site. Also the website you will be using the content from would benefit from your site linking to theirs, and them not linking to yours. So I would imagine they would be ok with it.
  7. I have done this, and it doesn't display anything from the stats file where it is included. It's supposed to show on http://watch.thetvstop.com in the right sidebar, under "stats" and as you can see it's blank. <?php include 'templates/stats.tpl'; ?> Is the code.
  8. The include doesn't work. see the rightsidebar "stats" here: http://watch.thetvstop.com/ If you go directly to the .tpl file however it works. http://watch.thetvstop.com/templates/stats.tpl The problem lies within including, how do I fix that?
  9. You too! Happy Holidays everyone.
  10. The .tpl files are in a templates directory. Where movies_list.tpl serves as the index. As I have not written this script myself, somebody else did, I have no clue as to how the tpl files are being called. I just know how to edit them, and what they edit. I have never worked with tpl files before. I have searched all the files that are not in the admin directory, template files and php files and did not find "$template = new HTML_Template_ITX" anywhere. So I would assume they are not being included? The template files structure are like: movies.tpl (this is the template that styles/displays) the content of a single movie. movies_list.tpl (this file serves as the index page.) links.tpl (this file serves as the way to style each link once "view link" is clicked. overall.tpl (I would assume this is the main file, as it has the html doctype etc.)
  11. What I have is a script that was built in/around .tpl files. http://watch.thetvstop.com/ I want to display the results of total links, and total episodes in the right sidebar of the above page, within <div> tags like the rest of the sidebar. So would I just create a .tpl file with the php code to display the results from the db, and with the style of the box for the right sidebar? I have tried many times to insert php into a .tpl and had no success. =/ So I assume creating a .tpl with just php would work?
  12. Thanks a lot. Sorry one last question, is there any way to display php code in tpl files? I have been trying to figure that out forever.
  13. The code right now is just those queries you posted above. I want to style them before I put them somewhere. But anytime I try to add text before the echo $row['TotalMovies']; I get an error. So where do I begin styling, and adding text etc?
  14. Yeah, I know. But do I build the table around just the echo statement, or the entire query?
  15. Thanks. One last question, how do I style the results? Like in a table or something. Right now the results show as just numbers 5,24. How can I make it like Total TV Shows : 5. Total Episodes: 24 With some style around them? Like in a table or something.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.