The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
What about this code could cause only one row to be displayed?
I have tried this with $blogs = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "blog"); and there are over 1000 entries to display, so I am pretty sure the query is fine. I tried deleting the avatar code just to see if it helped, but when I go to save the plugin, I get a 301 error. So i can not even get rid of that code to test. PHP Code:
HTML Code:
<li class="forumbit_nopost L2" id="catblogs"> <div class="forumrow L2"> <a href="blog.php?b={vb:raw blogid}" target="_blank"><img src="review_sidebarimage.php?image={vb:raw avatarurl}" class="forumicon" border="0" /></a> <div class="forumdata"> <div class="datacontainer"> <h2 class="forumtitle"><a href="blog.php?b={vb:raw blogid}" class="forumtitle">{vb:raw blogtitle}</a></h2> <p class="tcatDesc"> Posted By: {vb:raw blogusername}<br /> Posted On: {vb:raw blogdate}<br /> Comments: {vb:raw blogcomments}</p> </div> </div> </div> </li> |
#2
|
||||
|
||||
![]()
LIMIT 0, 3 is only going to give you the first 3 results from the database. And the end } should be after the while loop (before //Avatar Display), shouldn't it?
|
#3
|
||||
|
||||
![]()
3 results is what I wanted, and as for the last }. Doing that would just cause the whole thing to stop working.
Either way, I figured out the problem. I used $blog_bits to create the template and register the variables, then I also used the same to store the render of the template. You can not do that. So I simply made PHP Code:
Thanks for your input though Boofo. |
#4
|
||||
|
||||
![]()
Glad you got it. I still don't see why you need the Avatar Display and the template render in the while loop. But that doesn't matter now that you have it working.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|