View Full Version : Recent blog on provbindex | 911 |
notrious
05-07-2009, 09:53 PM
Hi ..
how do i show vbulletin blog recent blogs on provbindex page or any other html.. I have tried many things .. but couldn't get it working ...any help please.
KevinL
05-07-2009, 10:05 PM
Have you asked on his site? http://www.provb.org/forums.php
If you go to add a new tab, then input those items. Then manage the tab, edit it, and you should be able to put anything you want in the template.
notrious
05-07-2009, 10:18 PM
they will take days to answer it and i need it fixed kida very fast.. thanks a lot boss i will look into it..
KevinL
05-07-2009, 10:57 PM
Anytime spanky :p
notrious
05-07-2009, 11:19 PM
tried it but didn't work ..
i took recent blog code form blog templates didn't work.
Then I tried taking vbadvance didn't work.
Then i tried taking hack code: blog stats and recent on forum home .. though even this didn't help..
Any thing else i can try ?
KevinL
05-07-2009, 11:28 PM
hmmm weird. I don't have the blog so I wouldn't know what exact code to use.
You tried pulling this code here from the module? http://www.vbadvanced.com/forum/showthread.php?t=24069
notrious
05-07-2009, 11:37 PM
Thank for replying brv .... i will give it a sht now. ..... thanks
KevinL
05-07-2009, 11:51 PM
Thank for replying brv .... i will give it a sht now. ..... thanks
Go to the last page there is a new one for the newest blog and vb
notrious
05-08-2009, 12:10 AM
ok .. download that .. thats the template for recent blog .. thats template
adv_portal_vb_blogs
<tr>
<td class="alt1"><span class="smallfont">
$spitblogs <br /></span>
</td>
</tr>
in provb i have recent threads showing with following code:
<td class="alt1">$provb_index_latest_threads</td> and templates for that is :
provb_index_latest_threadbit
<div class="smallfont">
<div style="float: $stylevar[right];">by <a href="$vboptions[bburl]/member.php?u=$thread[postuserid]">$thread[postusername]</a></div>
<a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]#post$thread[postid]">$thread[title]</a>
<div class="alt1">
<span class="smallfont">$vbphrase[replies]: $thread[replycount] $vbphrase[views]: $thread[views]</span>
</div>
</div>
Then i place : <td class="alt1">$adv_portal_vb_blogs</td> with code
<tr>
<td class="alt1"><span class="smallfont">
$spitblogs <br /></span>
</td>
</tr>
but shows nothing ....
i hope it make sence..
any idea?
RLShare
05-08-2009, 12:14 AM
You probably need to write the queries to grab the data from the DB and fill the varialbes, not just grab the template code.
KevinL
05-08-2009, 12:30 AM
Well you have to define $spitblogs first, right? Right now it's being defined (or looking) for adv_portal_vb_blogs...or am I wrong?
--------------- Added 1241746362 at 1241746362 ---------------
You probably need to write the queries to grab the data from the DB and fill the varialbes, not just grab the template code.
Yeah thats what I was getting at :)
The queries that are in the file are:
//Latest Blogs
$latestblogs = $db->query("
SELECT blogid, blog.title, blog_user.title AS blogname, comments_visible, username, dateline, userid, views
FROM " . TABLE_PREFIX . "blog AS blog
LEFT JOIN " . TABLE_PREFIX . "blog_user AS blog_user ON blog_user.bloguserid=blog.userid
WHERE blog.state='visible' and blog.pending=0 and blog_user.options_guest=3
ORDER BY dateline DESC
LIMIT 10
");
while ($showblogs=$db->fetch_array($latestblogs))
{
$counter++;
$blog_userid = $showblogs['userid'];
$blogid = $showblogs['blogid'];
$blog_title = $showblogs['title'];
$blog_views = $showblogs['views'];
$blog_username = $showblogs['username'];
$blog_dateline = vbdate($vbulletin->options['dateformat'], $showblogs['dateline']);
$spitblogs_title .= "<a href=\"{$vbulletin->options[bburl]}/blog.php?b=$blogid\">$blog_title</a>";
$spitblogs_title .= "<br /> ";
$spitblogs_views .= $blog_views;
$spitblogs_views .= "<br /> ";
$spitblogs_username .= "<a href=\"{$vbulletin->options[bburl]}/blog.php?u=$blog_userid\">$blog_username</a>";
$spitblogs_username .= "<br /> ";
$spitblogs_date .= $blog_dateline;
$spitblogs_date .= "<br /> ";
$spitblogs .= "<img src=\"{$stylevar[imgdir_misc]}/blog/blog_icon.gif\"> <a href=\"{$vbulletin->options[bburl]}/blog.php?b=$blogid\">$blog_title</a><br />$blog_dateline by <a href=\"{$vbulletin->options[bburl]}/member.php?u=$blog_userid\">$blog_username</a><br />Viewed $blog_views times<br />";
if ($counter < 10)
{
$spitblogs .= "<br /> ";
}
}
//Latest Blogs
notrious
05-08-2009, 12:36 AM
what i am suppose to do next .. my brain is just dead......
BTW Thanks a lot lot lot for your great effort
--------------- Added 1241811341 at 1241811341 ---------------
Any one...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.