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: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 424
  • Total: 424

Where do I find this in the code and how can insert it in...

Started by shawnlg, October 16, 2007, 10:40:16 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

IchBin

Well I had a feeling we'd have to tweak it to make it more to your liking. But if you got a handle on it all the better. :up: Having things automated is so much nicer. :) If you need anything else feel free to ask.

shawnlg

I will try to tweak it.  I am a little unsure though how to put the two fields together.  I guess what I am saying I still need some help...  I really do appreciate all the support you have given me.  As soon as I get this part to work I think I can get this site online.  You have really gone over the top helping and I appreciate it.  BTW how are you guys making money off this?  How can I support you guys in the future?

IchBin

I don't plan to make any money doing this until I am pretty fluent in PHP. It may appear that I am, but I assure you I still have a long way to go with things. Until I understand the user system and permissions in SMF I think... which I haven't even touched yet. lol As for supporting us, there's a donate block on the leftside you can donate to TinyPortal if you wish. Or purchase a theme etc. Its really up to you.

For controlling the episode you can just add the episode number to the intro field as well. Make sure you use the pipe to separate it as thats what the PHP I setup is looking for to separate things.

date|sag_rating|episode_number

Delete this code since you don't need the auto episode number.

// Change this number to indicate which number the episode count starts
$episode_num = 100;

also delete this line below:

$episode_num++;


Then change this code:
else{
$air_date = '';
$sag_rating = '';
}


To this:
else{
$air_date = '';
$sag_rating = '';
                $episode_num = '';
}


And change this code:
foreach ($sag as $key => $value){
$air_date = $sag[0];
$sag_rating = $sag[1];
}


To this code:
foreach ($sag as $key => $value){
$air_date = $sag[0];
$sag_rating = $sag[1];
                $episode_num = $sag[2];
}


That should do it. Is there anything else I'm missing here? Didn't get much more out of your description of the changes you needed.

shawnlg

I made the changes and by putting text into the extra box (Intro Text), however it only fills one box with code as you can see from this example.

http://www.scifiandgod.com/content/index.php?cat=6

Is there something special I am supposed to be putting in that extra field (Intro Text) in order to make it come out correctly?  Thanks again for your help!

IchBin

hmm... I'd need to take a look at it. You mind PM'ing me some info to look at it?


IchBin

hmm... one thing I did not notice which is kind of limiting. PHP articles do not have the intro option. So if you want this to work the articles that are called with this code will have to be regular articles and not php articles. Sorry about that, I didn't realize that was the case as I don't do a lot with articles on my sites. You can see the test article that I put in there.

shawnlg

The only way I got it to work before is do it in html first then swith to php on the next screen.


IchBin

I just made an regular article. Click add on the article screen and you'll see the intro box in a regular article edit screen. If you edit my article you can see how I did it.

This website is proudly hosted on Crocweb Cloud Website Hosting.