The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Latest posts on NON VB Homepage
I know it's probably pretty simple but I was wondering if someone could help find me a hack that would show like the latest XX of threads on my joomla powered main site. I used to have the hack long, long ao - but the ones I've tried thus far haven't been working correctly.
Anyone got some thoughts? Thanks in advance! |
#2
|
||||
|
||||
See these threads for methods to pull threads via javascript:
[HowTo] Display your latest threads on an external page using an RSS2 feed [HowTo] Display your latest threads on an external page using an XML feed [HowTo] Display your latest threads on an external page using an RSS feed |
#3
|
|||
|
|||
Those explanations are confusing Lynne. My first question would be.... near the top of what php page?? And what if you aren't using a php page, but an html page?
|
#4
|
||||
|
||||
Code:
if ($vbulletin->userinfo['userid']!=0) { $newposts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post AS post " . iif($vbulletin->options['threadmarking'], 'LEFT JOIN ' . TABLE_PREFIX . 'threadread AS threadread ON (threadread.threadid = post.threadid AND threadread.userid = ' . $vbulletin->userinfo['userid'] . ')') . " WHERE dateline >= " . $vbulletin->userinfo['lastvisit'] . iif($vbulletin->options['threadmarking'], ' AND dateline > IF(threadread.readtime IS NULL, ' . (TIMENOW - ($vbulletin->options['markinglimit'] * 86400)) . ', threadread.readtime)')); $newposts = vb_number_format($newposts['count']); echo"<a href=\"".$forumpath."search.php?$session[sessionurl]do=getnew\">$vbphrase[new_posts]</a>: $newposts<br />";} if am wrong please do correct me i hope this helps.. br gsmph |
#5
|
|||
|
|||
You are wrong, 1. he/she is asking to list the latest threads from VB in a joomla page. Not a link to the latest posts 2. Depending on the bridge being used(if a bridge is being used), it is more then likely that the VB dependent variables would not be defined.
@OhioSweetheart To do what you want to do you should look up how to create a module in Joomla and use the code in the links provided above within the custom Joomla module. If you are not familiar with PHP programming as it seems you are not then you would first need to learn it or have someone else code it for you. There is a module that does exactly what you want available for Joomla already but it costs $25 and only works on 1.0 installations. Google for it. Edit: Here is the one I was talking about.. http://www.elearningforce.biz/bridge...ast-posts.html Edit Edit: I guess Im meant to refer that last statement to MetalMaliticia not Ohio Sweetheart For a static HTML Ohio Sweetheart it would be pretty impossible, you would need some sort of server side language. |
#6
|
||||
|
||||
Actually, for an html page, you can look at this thread - HowTo Display Latest Active Threads on ANY normal HTML page
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|