vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

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.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-14-2007, 10:00 PM
Member
 
Real Name: Jarod
Join Date: Oct 2006
Location: Sorrento - Italy
Posts: 60
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, 10:37 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,613
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

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, 11:03 PM
Member
 
Real Name: Jarod
Join Date: Oct 2006
Location: Sorrento - Italy
Posts: 60
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, 11:09 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,613
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

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, 11:13 PM
Member
 
Real Name: Jarod
Join Date: Oct 2006
Location: Sorrento - Italy
Posts: 60
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 09:44 AM
i think something is wrong.... briansol General Discussion 3 08-20-2006 07:10 PM
Seiten im google Index, gibts eine Faustformel? fade Deutsch 8 08-15-2006 05:10 AM
Compression Error Lazer Troubleshooting 19 03-03-2006 02:23 PM


All times are GMT -4. The time now is 06:58 PM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.