vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now!
vBSEO 2.0 Style Released vBSEO 3.3.0 GOLD Launched vBSEO's "LiveStats" for Google Analytics vB Sitemap Generator, Version 2.5 Success with vBSEO = 600ore Web Visitors + $1400 in a Day!

Static Pages with vSeo url

This is a discussion on Static Pages with vSeo url within the Template Modifications forums, part of the vBulletin SEO Discussion category; Hello! I want create other pages .php with recent posts in .html format I try this code: <?php echo " ...

Go Back   vBulletin SEO Forums > vBulletin SEO Discussion > Template Modifications

Enhancing 80 million pages.

  #1  
Old 01-14-2007, 09:00 PM
Member
 
Real Name: Jarod
Join Date: Oct 2006
Location: Sorrento - Italy
Posts: 90
Send a message via MSN to jarod1981®
Question Static Pages with vSeo url

Hello!

I want create other pages .php with recent posts in .html format
I try this code:

Quote:
<?php
echo " <table width=\"100%\" border=\"1\"> <tr>
<td height=\"15\" class=\"tabella\"><span class=testotitolo>Ultime dal Nostro Forum</span></td>
<td height=\"15\" class=\"tabella\"><span class=testotitolo>Autore</span></td>
<td height=\"15\" class=\"tabella\"><span class=testotitolo>Risposte</span></td>
<td height=\"15\" class=\"tabella\"><span class=testotitolo>Visite</span></td>
</tr> "
;


include_once (
'forums/includes/functions_vbseo.php');
vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();

mysql_pconnect("host", "user","pass") or die("Ci Scusiamo Per l'incoveniente tornero on-line tra 10 minuti");
mysql_select_db("tuodatabse") or die("Impossibile selezionare il database");

$query = "SELECT * FROM VB_thread WHERE forumid=1 ORDER BY threadid DESC LIMIT 20";
$risultati= mysql_query($query);

$conta=0;
while(
$tmp = mysql_fetch_assoc($risultati))
{
$threadrow = $tmp;
$conta++;
$target1=$tmp["title"];
$replycount=$tmp["replycount"];
$postusername=$tmp["postusername"];
$postuserid=$tmp["postuserid"];
$lastposter=$tmp["lastposter"];
$views=$tmp["views"];
$valutazione=$tmp["votetotal"];

if(
$start>=0){
$threadurl = vbseo_thread_url_row($threadrow, $start);
}else{
$threadurl = vbseo_thread_url_row($threadrow);
}

$getprofile = mysql_query("SELECT * FROM VB_user WHERE userid =".$postuserid);
$conta=0;

while(
$tmp = mysql_fetch_assoc($getprofile))
{
$profilerow = $tmp;
$conta++;
}


$profileurl = "members/".$profilerow['username'].".html";
$profileurl = strtolower($profileurl);
echo
"<tr><td align=\"left\"><a href=\"http://www.sito.it/forums/$threadurl\">$target1</a> </td><td> <b>$postusername</b> </td><td > <b>$replycount</b> </td><td > <b>$views</b></td><tr>";
}


echo
" </table><br>";
The result must be as this! Link

But on my site it's don't work : Link

Please, Where is the error?

Sorry for my bad english

Thanks friends
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 01-14-2007, 09:37 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer Support
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 23,637
Hello,

is this forum id correct ?
PHP Code:
$query "SELECT * FROM VB_thread WHERE forumid=1 ORDER BY threadid DESC LIMIT 20"
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers

vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now

6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 01-14-2007, 10:03 PM
Member
 
Real Name: Jarod
Join Date: Oct 2006
Location: Sorrento - Italy
Posts: 90
Send a message via MSN to jarod1981®
Hi Oleg!

Pardon, I have change that string in:

Quote:
$query = "SELECT * FROM VB_thread WHERE forumid=12 ORDER BY threadid DESC LIMIT 20";
12 = Software Freeware

But...Nada
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 01-14-2007, 10:09 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer Support
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 23,637
The problem doesn't seem to be related to vBSEO in this case - your sql query doesn't return any thread rows, you could try to execute this query in phpmyadmin or vB admincp to check it further.
__________________
Oleg Ignatiuk / Crawlability Inc.
vBSEO Styles: Version 1.0 PRO For Everyone Version 2.0 For vBSEO Customers

vBSEO 3.3.0 Gold Released with New "Virtual HTML Display" Feature Available for Download Now

6X Traffic - $1400 in One Day with vBSEO! Max Out Your SEO

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 01-14-2007, 10:13 PM
Member
 
Real Name: Jarod
Join Date: Oct 2006
Location: Sorrento - Italy
Posts: 90
Send a message via MSN to jarod1981®
Mmm okey Oleg, I try to execute query in phpmyadmin

Very thanks for your kind ;-)

Bye!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Sitemap alırken hata alıyorum :( erhanerhan_5 Türkçe 9 11-15-2006 08:44 AM
i think something is wrong.... briansol General Discussion 3 08-20-2006 06:10 PM
Seiten im google Index, gibts eine Faustformel? fade Deutsch 8 08-15-2006 04:10 AM
Compression Error Lazer Troubleshooting 19 03-03-2006 01:23 PM


All times are GMT -4. The time now is 08:27 PM.


Powered by vBulletin Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.