help me with wapdesire v2

Started on the old forum in June 2010 · view the original in the archive · old links redirect here

#wapdesire-v2-images

7 replies · 688 views · started 16 years ago · 1 min read

6 participants
Kirsty Developer · 59 posts #1

hi i know it sounds stupid but how do i align centre a image in online.php i have tried if(align()!=center) <img src="../images/online.png" alt=""/> ""center">\n"

i keep getting unexpected error, i know its properly so simple but im new to the script.

im also wanting to put smilies in to catagories, thanks in advance

Kirsty Developer · 59 posts #3

help still cant get it to work

nclemale36 wrote: echo "

i have tried echo " <img src="../images/online.png" alt=""/> ; also tried echo " <img src="../images/online.png" alt=""/>; and echo " "img src="../images/online.png" alt=""/>; and echo " "img src="../images/online.png" alt=""/>

abipol Junior · 11 posts #4

something like this?

if(align()!=center)
$main.="<p align=".align().">\n";
$main.="</p>";

i think wapdesire used $main.="CODE HERE";

simple things can be a great sample!

Shifty Junior · 33 posts #5

oh, my god! it's working version of your script:

<?php
$align='center'; // your align
if($align=='center'){echo '<img src="http://coding-talk.com/f14/images/online.png" alt="image"><br>"center">';}
?>

enjoy and then change it for yourself.

Kirsty Developer · 59 posts #6

Shifty wrote: oh, my god! it's working version of your script:

<?php
$align='center'; // your align
if($align=='center'){echo '<img src="http://coding-talk.com/f14/images/online.png" alt="image"><br>"center">';}
?>

enjoy and then change it for yourself.

tried and changed to my images directory but got aload of crap on online list all mysql stuff

brand Senior · 391 posts #7

$main.=" "; to center it or you can do it like this $main.=" <img src="../images/online.png" alt=""/> "; hope it help i use wapdesire and can help a lot with it need any help contact me ok and goodluck with it

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

woody Developer · 176 posts #8

sorted she needed to use $title not $main

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close