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!
Locked
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Just a thought

Post by Makis »

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

Just a thought

Post 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 ;)
hansie
BBCoder II
BBCoder II
Posts: 5
Joined: 14 Aug 2011, 15:56
BBCodes: 0

Just a thought

Post by hansie »

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

Just a thought

Post 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 :lol:
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Just a thought

Post 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
icon_mini_search.gif (238 Bytes) Viewed 5785 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 :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
User avatar
Solidjeuh
BBCoder IV
BBCoder IV
Posts: 257
Joined: 16 Oct 2011, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

Just a thought

Post 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
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Just a thought

Post by martin123456 »

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
User avatar
Makis
BBCoder III
BBCoder III
Posts: 91
Joined: 10 Mar 2010, 18:01
BBCodes: 67
Favourite MOD: Welcome On Index
Location: Athens Greece

Just a thought

Post 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
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Just a thought

Post by martin123456 »

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, 02:15
BBCodes: 7
Favourite MOD: Top stats
Location: Aalst / Belgium
Contact:

Just a thought

Post 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.. :lol:
Any change he wants to give it to me? :D I'm a private guy :shock:
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
===============
Onze Website: https://www.muziekpromo.net
Locked