 |
 |
 |
 |
 |
| Author |
Message |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
Anyone interested? |
|
...in showing more results in their full story like this:
http://www.scodal.com/view.php?what-i-think-about-life.html
???
The part of the full story that I'm talking about is the 'Random Media' part. Just let me know and I'll put up a little tutorial if you can't figure it out. It was relatively easy to add on and doesn't require anything too special. It helps keep your users clicking around on and in your site.. especially if someone just found a full story link (like say someone linked you on digg.com and you know they'll view one page and leave your site) and wasn't originally planning to stick around.. you might get them hooked a little longer after they click a few more links below.
You can display more results in your full story in any way you like... in as many different ways as you can imagine to make a template.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue May 22, 2007 4:07 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
astrostart

Joined: 11 Feb 2007 Posts: 124 Location: The Netherlands |
|
|
|
Well, you have implanted it very nice! I don't need to use it, but maybe others do.
I really like those vids, by the way. The video of the dog humping a duck is pure gold. 
_________________ My site: http://www.astrostart.nl | Thanks to everyone here who has helped me! |
|
| Tue May 22, 2007 4:22 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
haha i know funny cause i was just watching that a few seconds ago.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue May 22, 2007 5:57 pm |
|
 |
WellWho

Joined: 09 Jan 2007 Posts: 62
|
|
|
| Tue May 22, 2007 7:56 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
You got it I'll do it a little later but if you feel like trying to figure it out yourself this is the basics:
Add an iframe to your full-story template at the bottom.. or wherever you'd like it to show..
Then just point the iframe's src = to the URL of the file you have your news included at.. like
iframe src="http://www.mysite.com/someheadlines.php"
code for someheadlines.php
 |  | <?php
$number = "10";
$template = "headlines";
include("admin/show_news.php");
?> |
Make sure any links that load inside an iframe always have a target="_top" or else they'll try to open the full story inside of the iframe which looks stoooopid. Other hints and suggestions I can provide is including stylesheets in your iframe php code so it picks up your desired formatting. I'll make a better tutorial later when I go inside. My laptop isn't the best for getting around on.. especially now cause I'm getting sweaty out here and I have one of those trackpad things from IBM Thinkpad and when it gets sweaty my mouse is difficult to use lol... useless side story/comment but hey it's the truth.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue May 22, 2007 9:47 pm |
|
 |
WellWho

Joined: 09 Jan 2007 Posts: 62
|
|
|
|
When i put iframe height="40%" it doesnt look the same in IE and Firefox. Can i show all videos without scrolling bar?
_________________ :: | www.funnyarena.net |:: thanks Scott |
|
| Thu Jul 26, 2007 2:13 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
I wouldn't recommend using percentages for iframe heights.. you gotta tell it pixels for it to look right. To take out the scrollbar put this in the iframe tag:
 |  | scrolling="no" |
To make scrollbar optional just take out scrolling="no".. by default it is set to optional scrollbar if needed.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Wed Aug 08, 2007 2:04 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|