Just a thought

Discuss phpbb and phpbb related stuff here. No support!
Forum rules
This area is for discussion. No support!
All support requests are locked and poster will be banned!
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 16:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Just a thought

Post by Makis » 19 Apr 2012, 21:36



User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

Just a thought

Post by martin123456 » 19 Apr 2012, 22:00

it does show like that and it also shows like that in mchat or shall i say it does on my test site ;)

hansie
BBCoder II
BBCoder II
Posts: 5
Joined: 14 Aug 2011, 13:56
BBCodes: 0

Just a thought

Post by hansie » 20 Apr 2012, 00:51

Good idea !

User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 00:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium

Just a thought

Post by Solidjeuh » 20 Apr 2012, 02:37

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 :lol:
Yeah I'm crazy.. So What!?! Live Your Life The Way You Want It To be!
Download +30.000 arcade extension games @ ~ http://www.froddelpower.be ~

User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

Just a thought

Post by martin123456 » 20 Apr 2012, 08:44

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
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 :D

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
You do not have the required permissions to view the files attached to this post.


User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 00:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium

Just a thought

Post by Solidjeuh » 20 Apr 2012, 23:04

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
Yeah I'm crazy.. So What!?! Live Your Life The Way You Want It To be!
Download +30.000 arcade extension games @ ~ http://www.froddelpower.be ~

User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

Just a thought

Post by martin123456 » 21 Apr 2012, 12:20

To get this working perfect the title to link mod needs to be rewritten :D
imgecode.gif
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
You do not have the required permissions to view the files attached to this post.

User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 16:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Just a thought

Post by Makis » 21 Apr 2012, 17:15

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

User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

Just a thought

Post by martin123456 » 21 Apr 2012, 17:18

Makis wrote: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
you mean like this http://www.blades-place.co.uk/

User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 00:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium

Just a thought

Post by Solidjeuh » 22 Apr 2012, 04:30

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.. :lol:
Any change he wants to give it to me? :D I'm a private guy :shock:
Yeah I'm crazy.. So What!?! Live Your Life The Way You Want It To be!
Download +30.000 arcade extension games @ ~ http://www.froddelpower.be ~