Page 1 of 1
Just a thought
Posted: 19 Apr 2012, 23:36
by Makis
Just a thought
Posted: 20 Apr 2012, 00:00
by martin123456
it does show like that and it also shows like that in mchat or shall i say it does on my test site
Just a thought
Posted: 20 Apr 2012, 02:51
by hansie
Good idea !
Just a thought
Posted: 20 Apr 2012, 04:37
by Solidjeuh
Normally you just need to add the image in php..
Something like:
Code: Select all
<img src=" . chr(34) . "http://www.yoursite.com/image.gif" . chr(34) . " width=" . chr(34) . "42" . chr(34) . " height=" . chr(34) . "41" . chr(34) . " />
But don't ask me where or how
Just a thought
Posted: 20 Apr 2012, 10:44
by martin123456
ah sorry your talking about an image lol i thought the @name lol
Open: includes/functions_content.php
find
Code: Select all
$username = ($post_id != 0) ? $row['username'] . " @ " : '';
place image code here
Code: Select all
$username = ($post_id != 0) ? $row['username'] . " @ " : ' image code here ';
place the image in the images file right click and save as
- icon_mini_search.gif (238 Bytes) Viewed 5749 times
if any one wants to play with it i don't have time right now but will give it a go later tonight.
and goodluck trying to get a img code to show from a .php file
i have tried using the php echo method also closing the php tags then placing a html link and then opening the php tags
nothing seems to work
Just a thought
Posted: 21 Apr 2012, 01:04
by Solidjeuh
it should work with this:
Code: Select all
$username = ($post_id != 0) ? $row['username'] . " @ " : ' <img src=" . chr(34) . "http://www.yoursite.com/image.gif" . chr(34) . " width=" . chr(34) . "12" . chr(34) . " height=" . chr(34) . "13" . chr(34) . " /> ';
I have an image like that sowing in a php file
But it doesn't seems to work here..
This is part of the script that I'm using to clean up forum messages:
Code: Select all
$sql = "insert into " . $table_prefix . "posts (topic_id, forum_id, poster_id, post_time, post_approved, enable_bbcode, enable_smilies, enable_magic_url, bbcode_uid, bbcode_bitfield, post_postcount, post_text, post_username)
values (" . $topic_id . ", " . $forum_id . ", " . $user_id . ", " . $current_time . ", 1, 1, 1, 1, (select user_sig_bbcode_uid from " . $table_prefix . "users where user_id=" . $user_id . "), (select user_sig_bbcode_bitfield from " . $table_prefix . "users where user_id=" . $user_id . "), 1, concat('Even plaats gemaakt voor nieuwe bedankjes. <img src=" . chr(34) . "http://www.presents4you.net/images/clean.gif" . chr(34) . " width=" . chr(34) . "42" . chr(34) . " height=" . chr(34) . "41" . chr(34) . " />', ' \n \n Tot op heden plaatsten ', '" . $usercount . " leden een bedankberichtje : " . str_replace(chr(39), ' ', $userlijst) . "'), '" . $user->data['username'] . "')";
Image is working in there
Just a thought
Posted: 21 Apr 2012, 14:20
by martin123456
To get this working perfect the title to link mod needs to be rewritten
you can just add a image link but the image won't be pulled up
i have it working on my test site but i dont have the permission to share the code as the coder wants to keep it private.
There may be other ways to get it to work though
there is a demo in my shoutbox to prove it can be done
Just a thought
Posted: 21 Apr 2012, 19:15
by Makis
Sorry about misunderstand it has not to do about the user name.
Again... Instead
viewtopic.php?f=45&t=1995
look like that
[sigimg]
http://i198.photobucket.com/albums/aa62 ... search.gif[/sigimg]
viewtopic.php?f=45&t=1995
....or any icon u prefer
Just a thought
Posted: 21 Apr 2012, 19:18
by martin123456
Just a thought
Posted: 22 Apr 2012, 06:30
by Solidjeuh
Bl4d3 x wrote:you can just add a image link but the image won't be pulled up
i have it working on my test site but i dont have the permission to share the code as the coder wants to keep it private.
That sucks..
Any change he wants to give it to me?
I'm a private guy