The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
pre replace function
alright i am trying to do a radio chart system within my vb i have it as a iframe and everything is working cept for when i call the images.
%20 i need to generate that into the echo if there is a blank space. so http://www.site.com/picture12 4567.gif would instead be http://www.site.com/picture12%204567.gif i was looking at php.net and the function Code:
To strip blank lines (blank, with tab or whitespaces) from a string: <?php $text=preg_replace("/[\r\n]+[\s\t]*[\r\n]+/","\n",$text); ?> Code:
echo "<td width=\"20%\"bordercolorlight=\"#000000\"bordercolordark=\"#000000\"><center><img src=pictures/" . $songs[$i]["picture"] . " width=\"70\" height=\"70\"></center></td>"; |
#2
|
||||
|
||||
If it is just for replacing spaces..... this would work:
PHP Code:
|
#3
|
|||
|
|||
much appreciated Sir Adrian
|
#4
|
|||
|
|||
<?php include("album2.php?artist=" . str_replace(' ', '%20', $song["artist"]) . "); ?>
thats gonna give me a error whats missing anyone ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|