|
The way the system works at the moment is when you have a post that has both a 'Short Story' and 'Story', while display your news it'll show the 'Short Story', then once that has been clicked on it'll then show both the 'Short Story' and the 'Story' From what I can understand, you want it to display the 'Short Story', once that then gets clicked on it'll then display the 'story'? instead of both the 'Short Story' and 'Story'? | |||
| 04:24am 30th Sep 08 | _______________ Chris - Network-13 |
|
Yes, that is exactly right. When news.php is displayed, I want the 'short story' to be displayed, and then when there is news.php?id={id} then only the full story 'story' will be displayed. The reason is I have news like this...... 'shortstory' As you may of read a couple of days ago, changes are coming to the Pukka site. Changes that we know will make it easier to get aro... 'story' As you may of read a couple of days ago, changes are coming to the Pukka site. Changes that we know will make it easier to get around the site and find the information you would want in one place. The biggest change that you'll see over the coming weeks are the profile pages. Each DJ will get more of a say on what their page looks like, what they have on it and all the rest of it. Again, we don't want to say too much because it will spoil the surprise for you all but let's just say it's something that will take alot of time. A quick page has been built and everyone is loving what we can do with it, and each and every DJ can edit it to suit their needs. Over the next few weeks, we'll probably rave on about it all some more... but please just wait until they are released to you before you get in touch telling us to shut up about it all. At some point we may even release a sneaky peak so you can see a little insight into what we're doing, who knows! As you can see, the Short Story stood next to the Full Story would be silly to read =] | |||
| 09:30am 30th Sep 08 |
|
Ah this should be fairly easy to do, edit index.php. Around line 833~ you\'ll see these 2 lines of code Code: $template2 = str_replace(\"{shortstory}\",bbcode($row[\'shortstory\'],$newssmilies,$usehtml),$template2); $template2 = str_replace(\"{story}\",bbcode($row[\'story\'],$newssmilies,$usehtml),$template2); simply replace the first line with this Code: $template2 = str_replace(\"{shortstory}\",\"\",$template2); so it should now be Code: $template2 = str_replace(\"{shortstory}\",\"\",$template2); $template2 = str_replace(\"{story}\",bbcode($row[\'story\'],$newssmilies,$usehtml),$template2); | |||
| 11:53am 30th Sep 08 | _______________ Chris - Network-13 |
|
Thanks, works a treat! | |||
| 12:23pm 1st Oct 08 |