Hey, how do i use php code without messing up the format of the previous content? Heres what I posted in its entirety:
---------------------------------------------------------
![]()
Here's to 02lpatelp's request. This K.S. Bhamrah album was released last month. I hope you guys enjoy it - I haven't heard it yet so no comment from me.
Album: Revival
Singer: Kulwant Singh Bhamrah (K.S. Bhamrah)
Music : Jassi Brothers
Bitrate: 200+ VBR kbps mp3
Track Listing:
1. Bhabian Walyati Nachian
2. Munde Patte Gaye
3. G.T. Road De Utte
4. Punjab Dee Sair Karawan
5. Toon Nach (Boliyan) - Duet with Sudesh Kumari
6. Sarian Kuriyan Balle Balle
7. Mera Yaar Vajawe Dhol
8. Kasman Pyar Dian - Duet with Sudesh Kumari
2 Mirrors
global $user;
if ($user->uid) {
$message .= '<div>' . t('Rapidshare Mirror: <a href="http://rapidshare.com/files/86651755/Revival.rar.html" target=_blank>http://rapidshare.com/files/86651755/Revival.rar.html</a> <br>
MegaUpload Mirror: <a href="http://www.megaupload.com/?d=UOOU61OD" target=_blank>http://www.megaupload.com/?d=UOOU61OD</a>'). '</div>';
}
else {
$message .= '<div>' . t('Please <a href="@login">Login</a> or <a href="@register">Register</a> in order to view the download links.', array('@login' => url('user/login'), '@register' => url('user/register'))) . '</div>';
}
print $message
---------------------------------------------------------------------------------
Alright so here's the problem. Before when I had it set to html (for the picture) everything appeared WSIWYG. Now when I tick off php so I can limit who sees the download links - the lines all run into each other. For example, the tracks are listed on the same line and run into each other. How do I fix this without manually coding? Thanks
Comments
bump?
bump?
bump
bump
final bump?
final bump?
final bump before i give up
final bump before i give up
You have to use HTML
When using PHP input filter you have to use HTML for the rest of the code.
There is no way around it.
However,.... Why don't you put your code in a block and assign it to the bottom of the page. This won't work if it is a blog.
If you were going to do a lot of this type of node. You could create a custom CCK nodetype with fields for the links then theme that node type to display it how you want it. Put your "if $user->uid" code in the node-nodetype.tpl.php
gpdinoz
"Everything should be made as simple as possible, but not simpler." - Albert Einstein
Regards
Geoff