Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I Need a suggestion! 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all..
i have the following php code

$inbox_img = ( $folder != 'inbox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=inbox&quot;) . '&quot;><img src=&quot;' . $images['pm_inbox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Inbox'] . '&quot; /></a>' : '<img src=&quot;' . $images['pm_inbox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Inbox'] . '&quot; />';

$inbox_url = ( $folder != 'inbox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=inbox&quot;) . '&quot;>' . $lang['Inbox'] . '</a>' : $lang['Inbox'];



$outbox_img = ( $folder != 'outbox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=outbox&quot;) . '&quot;><img src=&quot;' . $images['pm_outbox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Outbox'] . '&quot; /></a>' : '<img src=&quot;' . $images['pm_outbox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Outbox'] . '&quot; />';

$outbox_url = ( $folder != 'outbox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=outbox&quot;) . '&quot;>' . $lang['Outbox'] . '</a>' : $lang['Outbox'];


$sentbox_img = ( $folder != 'sentbox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=sentbox&quot;) . '&quot;><img src=&quot;' . $images['pm_sentbox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Sentbox'] . '&quot; /></a>' : '<img src=&quot;' . $images['pm_sentbox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Sentbox'] . '&quot; />';

$sentbox_url = ( $folder != 'sentbox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=sentbox&quot;) . '&quot;>' . $lang['Sentbox'] . '</a>' : $lang['Sentbox'];



$savebox_img = ( $folder != 'savebox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=savebox&quot;) . '&quot;><img src=&quot;' . $images['pm_savebox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Savebox'] . '&quot; /></a>' : '<img src=&quot;' . $images['pm_savebox'] . '&quot; border=&quot;0&quot; alt=&quot;' . $lang['Savebox'] . '&quot; />';

$savebox_url = ( $folder != 'savebox' || $mode != '' ) ? '<a href=&quot;' . append_sid(&quot;privmsg2.$phpEx?folder=savebox&quot;) . '&quot;>' . $lang['Savebox'] . '</a>' : $lang['Savebox'];



these 8 lines generate 4 links (with images aside)

i want them to appear not in one line as they do now..
but 2 top and the other 2 down.

can anyone help?
 
This is phpBB stuff, right?

You have to look at the corresponding .tpl file.
It should be privmsg.ptl or privmsg2.tpl, both are inside the template/template-anme/ folder.

HTH, Sascha

BTW, the .tpl are more or less pure HTML. You will find some text in curly brackets like {THIS}. Search for {L_SENTBOX} and put a HTML break ( <br /> ) before it. That should do the trick. cu, Sascha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top