The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
Try this
PHP Code:
![]() |
#12
|
||||
|
||||
![]() Quote:
in HTML all attribute varibles should be nested inside of DOUBLE quotes, not SINGLE HTML Code:
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0"> <table cellpadding="0" cellspacing="0" border="0" class="maintable" width="650" align="center"> <tr> <td>LOGO GOES HERE</td> </tr> <tr> <td background="images/navbg.jpg" height="20">LINKS</td> </tr> <tr> <td> |
#13
|
||||
|
||||
![]()
Hmmm I figured if I used " then php could get an error... guess not. My last question is now for my news I want to display a loop statement, which I use a while. Now I know this won't work correctly because I'm using a mysql_fetch_array query inside a while statement and it is going to loop the number of times I have an entree in the db. So how exactly could I take a while statement that is going to loop and actually store the information in the template so it shows each and every loop, such as $news[news_name] should loop 8 times and thus loops 8 times in the template and shoes each array being different then the last?
|
#14
|
||||
|
||||
![]()
I've read this 3 times now and still don't understand your problem
![]() |
#15
|
||||
|
||||
![]() Quote:
![]() Quote:
|
#16
|
||||
|
||||
![]()
LoL sorry, I know you'll understand it this way.
PHP Code:
|
#17
|
||||
|
||||
![]()
I don't understand what you want, but I guess you want this:
PHP Code:
|
#18
|
||||
|
||||
![]()
Nah I don't think your following me. You have a while { }. Let's say it loops 5 times and the following pieces of data it is going to pull from the same table in the database becaused you used a get array query.
John Joe Jerry James Judy It retrieves 5 names. And in order to retrieve those 5 names all I had to type inside the while brackets were something like $news[display_names]. That is it. Well on the template how could I get it so that it displays all 5 loops so each name is displayed because I can't write the php statement inside the template, nor can I output the echo statement inside the while loop. I know vBulletin does this when it wants to ouput like each forum's description, name, and so forth on their forumhome but vb uses a lot more coding that is far too advanced and complex for my simple brain. Any ideas? |
#19
|
||||
|
||||
![]()
So in simple words:
You want the news_name values from all rows in the table in one string? Before the while: PHP Code:
PHP Code:
PHP Code:
|
#20
|
||||
|
||||
![]()
The implode function works... but not exactly as needed. I'm trying to retrieve 3 specific bits of information. news_name, news_id, news_description. When i use the implode function I can only assign one variable and have it implode one bit of information. To make it easier to understand this is what I want it to look like when complete for the output.
<tr> <td>$news_name</td><td>$news_id</td><td>$news_description</td> </tr> So it'd display the following bits of info on the output Joe 1 This is my piece of writing John 2 I don't like writing Jerry 3 Wow I can't believe I did this Jose 4 WEEEE! Currently it'll display JoeJohnjerryJose 1234 ect. Basically I want to use a little simple html to seperate everything a bit and for me to only have to call upon a few variables in my templates in order to complete this process. With the implode function I can't necessarily do that because if I call upon something like $news_name it will loop all the $news_names that I have selected. And thus on the output will look horribly ugly. Is there any function i can use so I could like insert this html and it'd select those 3... then loop again and keep looping like the implode function did until the while statement is over? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|