05-09-2008, 06:16 PM
· #1 NamePros Regular
Name: Billy!
Location: Perth > Western Australia
Join Date: Dec 2003
Posts: 931
NP$: 84.00 (
Donate )
Sedo Script Help Hi Guys,
I am trying to implement the below sedo script into my vbulletin forum, but nothing is showing up. The script is supposed to show Sedo's latest
TOP Domains / Recent Sales
Basically the same as the main forum page of namepros.
Some help on how to implement this correctly would be greatly appreciated.
https://sedo.com/partner/example/in...=&language=us#1
Quote: <!-- Sedo Code -->
<?php # Script for displaying the topdomains #
# file with list of topdomains from Sedo
$filecontent = file ("http://www.sedo.com/txt/topdomains_e.txt");
#
$x =0;
$topdomains = array();
while(list($line) = each($filecontent)) {
$topdomains [$x][0] = substr($filecontent[$x],0,strpos($filecontent[$x],'~'));
$topdomains [$x][1] = substr($filecontent[$x], strpos($filecontent[$x],'~')+1, (strlen($filecontent[$x])-strpos($filecontent[$x],'~')-3) );
$x++;
}
# Displaying the domains & prices as table
echo '<table border=0 cellpadding=2 cellspacing=0>';
echo '<tr><td bgcolor=#e0e8ef><span style="font-size:11px; font-weight:bold;">
TOP domains for sale</span></td></tr>';
for ($i=0;$i<10;$i++) { ?> <tr><td bgcolor=#f0f0f0><a href="http://www.sedo.com/search/showdetails.php4?partnerid=12824&language=e&keyword=<? echo $topdomains[$i][0]; ?>" target="_blank">
<span style="font-size:10px; font-weight:bold;">
<?php echo $topdomains[$i][0]; ?></span></a></td></tr>
<tr><td bgcolor=#ffffff><span style="font-size:8px">
<?php echo $topdomains[$i][1]; ?></span></td></tr>
<?php
}
echo '</table>';
?>
<!-- Sedo Code Ende -->
Last edited by Billy! : 05-09-2008 at 06:29 PM .
05-09-2008, 07:03 PM
· #2 Senior Member
Name: Josh Evans
Location: Ohio
Join Date: Aug 2005
Posts: 1,545
NP$: 56.75 (
Donate )
Billy - I ran this exact code and it works for me. See attachment. Where exactly are you trying to put this on your vb ?
05-09-2008, 07:20 PM
· #3 NamePros Regular
Name: Billy!
Location: Perth > Western Australia
Join Date: Dec 2003
Posts: 931
NP$: 84.00 (
Donate )
It is currently on my
forumhome page on the right hand side underneath the sedo domain search box ... but it is not showing.
Do I enter the exact script or do I have to change it?
Thanks heaps for replying to my question. rep added!
05-09-2008, 07:28 PM
· #4 Senior Member
Name: Josh Evans
Location: Ohio
Join Date: Aug 2005
Posts: 1,545
NP$: 56.75 (
Donate )
Ok...after taking a look it appears that the location you chose to add the script to is not a .php page therefore the code is not being executed properly. Do a view source in your browser and search for <!-- Sedo Code --> and will see that right below that the php code is showing there and it should not be.
05-09-2008, 07:53 PM
· #5 NamePros Regular
Join Date: Jun 2007
Posts: 587
NP$: 13.30 (
Donate )
Edit: nevermind
__________________
B o d z o .com Free advertising
05-09-2008, 07:57 PM
· #6 NamePros Regular
Name: Billy!
Location: Perth > Western Australia
Join Date: Dec 2003
Posts: 931
NP$: 84.00 (
Donate )
Originally Posted by netzilla Ok...after taking a look it appears that the location you chose to add the script to is not a .php page therefore the code is not being executed properly. Do a view source in your browser and search for <!-- Sedo Code --> and will see that right below that the php code is showing there and it should not be.
Thanks, so what do I need to do to get it working? Sorry, bit confused, do I add a new template and call it sedo.php and add the code also to that template?
05-09-2008, 08:12 PM
· #7 Senior Member
Name: Josh Evans
Location: Ohio
Join Date: Aug 2005
Posts: 1,545
NP$: 56.75 (
Donate )
I don't have anywhere to look at the code because I don't have access to a vb forum...however...in order for the php code to execute properly it must be executed via the php interpreter and typically all that requires is a .php file extension. Yes, give the template thing a try with the .php extension and put your code in that.
05-09-2008, 08:28 PM
· #8 NamePros Regular
Name: Billy!
Location: Perth > Western Australia
Join Date: Dec 2003
Posts: 931
NP$: 84.00 (
Donate )
Originally Posted by netzilla I don't have anywhere to look at the code because I don't have access to a vb forum...however...in order for the php code to execute properly it must be executed via the php interpreter and typically all that requires is a .php file extension. Yes, give the template thing a try with the .php extension and put your code in that.
I can give you access if you could help me get it working, I have no clue.
Anyone?
05-10-2008, 12:31 AM
· #9 NamePros Regular
Name: Billy!
Location: Perth > Western Australia
Join Date: Dec 2003
Posts: 931
NP$: 84.00 (
Donate )
05-10-2008, 05:53 AM
· #10 Senior Member
Name: Josh Evans
Location: Ohio
Join Date: Aug 2005
Posts: 1,545
NP$: 56.75 (
Donate )
Cool! I am glad you got it going
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off