What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » php smilie code check

Pages: (3): « First « 1 2 [ 3 ] Last »
php smilie code check
Author: Message:
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: php smilie code check
quote:
Originally posted by Methos2
quote:
Originally posted by Madman
quote:
Originally posted by Methos2
ok, it shows as it should, it replaces the smilies with the appropriate pics, and as for the code, ill just go and fetch it.....
this is the whole php code that is in the document:
Then if it works as it should if you set the the $text variable in the script then the problem is caused by how you set the $text variable to your input.

its not a case of it not working.... its just a case of that...

quote:
Originally posted by Methos2
but having to to do this throughout the code deifes the object of a 'shortcut' such as :), unless i have missed something here it would be alot simpler and quicker to just use the html tag <img> wouldnt it....


i dont understand what you mean :-/
if you set $text to whatever you want to convert for example $text = $_POST['text'] and then use the replace function, then $text will now contain the text you inputed (e.g. $_POST['text']) but the shortcuts will have been replaced by the image codes.
So i dont see what you have to "do" that defeats the point of using the shortcuts.
Could you perhaps upload the script your testing so we can test it and understand what your trying to acheive?
12-24-2005 08:38 PM
Profile PM Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
33 / Male / Flag
Joined: Aug 2005
O.P. RE: php smilie code check
right, look at my website for example, http://methos2.skarz.co.uk/test/ here i use php to create the template then include different files for different pages, and the php is in the head tag of index.php, what i want to do is, because i change the content quite regularly, i want it so that no matter where in the content, all i ahve to do is type :) and a smilie will replace it with the image, and i want the to appear throughout the page numerous times in numerous posts wherever i post them, do you understand me or am i going to have to make a quick exapmle of what i want? :p;)

This post was edited on 12-24-2005 at 08:44 PM by stoshrocket.
formerly methos
12-24-2005 08:43 PM
Profile PM Web Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: php smilie code check
So you're including files with the function include? If so, how are you setting the $text variable before performing str_replace on it? If you want you can add me to msn, my address is in my sig on my profile
12-24-2005 08:55 PM
Profile PM Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
33 / Male / Flag
Joined: Aug 2005
O.P. RE: php smilie code check
quote:
Originally posted by Madman
So you're including files with the function include? If so, how are you setting the $text variable before performing str_replace on it? If you want you can add me to msn, my address is in my sig on my profile

i think your forgetting your talking to a noob of php here.... lol, ill add you, my names andi btw, just so you knwo its me adding you ;)
formerly methos
12-24-2005 09:00 PM
Profile PM Web Find Quote Report
Pages: (3): « First « 1 2 [ 3 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On