vBulletin Modifications

How can i show last 10 post in site index?

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 10-06-2005, 06:08 AM   #1
Junior Member
Join Date: Oct 2005
asddsa is on a distinguished road

Default How can i show last 10 post in site index?

I wanna show last 10 post in my index page. how can i show it? I wanna show it in site index, not in foum index.

Thx ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10-06-2005, 08:50 PM   #2
Coder
kerk's Avatar
Join Date: Oct 2004
Location: Portugal
kerk is on a distinguished road

Default Include

include file (attach) in your index site page where you want to show last x posts
see settings in file last_x_eng.php
Attached Files
File Type: php last_x_eng.php (3.3 KB, 24 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2005, 06:46 AM   #3
Junior Member
Join Date: Oct 2005
asddsa is on a distinguished road

Default

Thnx for ur answer.. But it gave an error.. Is anybody have another code?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2005, 10:38 AM   #4
Coder
kerk's Avatar
Join Date: Oct 2004
Location: Portugal
kerk is on a distinguished road

Default

error?
configure this file with your settings...
-------------------------




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2005, 12:22 PM   #5
Junior Member
Join Date: Oct 2005
asddsa is on a distinguished road

Default

require('./vb35/includes/config.php'); // put here your correct path to vB3.5 config.php file

$link = mysql_connect(
($config['MasterServer']['servername']),
($config['MasterServer']['username']),
($config['MasterServer']['password'])
)
or die
("Cannot connect to your database");
mysql_select_db(($config['Database']['dbname']), $link) or die ("Cannot select database");

// ###### begin settings ######
$forumdir = "vb35"; // forum dir (without "/" at the end)




I configured this places ( show in bold) but it gave an error







error is:

Quote:
Table 'aa.thread' doesn't exist
Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\last_x_eng.php on line 49

Last edited by asddsa; 10-07-2005 at 08:00 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-07-2005, 11:13 PM   #6
Coder
kerk's Avatar
Join Date: Oct 2004
Location: Portugal
kerk is on a distinguished road

Default

ok...
try to replace ".$tableprefix."thread and ".$tableprefix."user with your table prefix, example: vb3_thread




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-08-2005, 05:33 AM   #7
Junior Member
Join Date: Oct 2005
asddsa is on a distinguished road

Default

Its ok. Thx a lot for ur help.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit thread to show as a new post angelicGrace vBulletin Modification Requests 1 06-08-2005 09:06 PM
Exclude forum from post count CarpHunter vBulletin Modification Requests 3 05-17-2005 02:29 PM
Site Policy, Rules and what you need to know Paul Announcements 0 11-17-2004 06:30 PM
Latest Site News Ken Iovino Announcements 1 09-16-2004 06:56 PM
Air & Sea Show Ken Iovino Off Topic 2 05-03-2004 09:06 PM


All times are GMT -3. The time now is 01:05 AM.


SEO by vBSEO 3.2.0 RC8 ©2008, Crawlability, Inc. (Patent Pending)