| Author |
Message |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Sun Sep 12, 2004 5:16 pm |
  |
If your signature is posting the code instead of the image, please use the following link and edit your forum preferences instead of Your Account preferences.
http://nukecops.com/modules.php?name=Forums&file=profile&mode=editprofile |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Last edited by BrainSmashR on Fri Oct 08, 2004 6:37 pm; edited 1 time in total |
|
       |
 |
~corky~
Major


Joined: Feb 13, 2004
Posts: 777
|
Posted:
Sun Sep 12, 2004 5:22 pm |
  |
|
       |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Sun Sep 12, 2004 5:27 pm |
  |
 |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list. |
|
       |
 |
TAd
Nuke Soldier


Joined: Aug 31, 2004
Posts: 11
|
Posted:
Sun Sep 12, 2004 6:01 pm |
  |
BrainSmashR,
What is the cause of this, currently I have some members where the Sigs work fine for, and some that do not. I have checked thier accounts etc. but see no reason why the Sigs do not show up, and instead they have the code and the link visible. Any help would be appreciated.
Currently running Nuke 7.4
Best regards,
TAd |
|
|
   |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Sun Sep 12, 2004 6:30 pm |
  |
There are 2 sets of preferences in phpNuke. One for phpNuke, and another for the forums. Your Avatar and Signature must be set in the forum preferences. |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list. |
|
       |
 |
HardTrancid
Nuke Soldier


Joined: Oct 02, 2003
Posts: 34
Location: Canada
|
Posted:
Wed Oct 06, 2004 4:26 am |
  |
I used Nuke 7.4 as well, and I used as my signature
http://www.beat-junkies.net/onair.php
But it doesn't work on my site as well. It does work on almost every other Nuke site I try it on, I have even gone into the Forum setup through the Nuke Admin . Must be a security fix that is stopping this from working? |
_________________ Hard Trancid
The Bassline Cartel
http://www.thebasslinecartel.com |
|
     |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Wed Oct 06, 2004 2:21 pm |
  |
includes/bbcode.php
Around line 283 you will see this.
| Code: |
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(php|jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
|
In the middle of that code you will find the acceptable image formats for your forum. ADD php as shown in the example and your signature should work on your site. |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list. |
|
       |
 |
HardTrancid
Nuke Soldier


Joined: Oct 02, 2003
Posts: 34
Location: Canada
|
Posted:
Wed Oct 06, 2004 2:30 pm |
  |
Thanks alot, that was a huge help! It now allows php Files to be used with the IMG Tag however, when I use the IMG Tag in the Signature it doesn't work... Is there another section in BBCOde I should be looking at? |
_________________ Hard Trancid
The Bassline Cartel
http://www.thebasslinecartel.com |
|
     |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Wed Oct 06, 2004 2:51 pm |
  |
|
       |
 |
Knightro
Nuke Soldier


Joined: Jul 10, 2004
Posts: 10
|
Posted:
Thu Oct 07, 2004 4:43 pm |
  |
What do I have to do to enable flash sigs? |
|
|
    |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Thu Oct 07, 2004 6:14 pm |
  |
Never used a flash signature.
1) Have you tried adding the file extention to the bbcode?
2) Does it display using the regular [img] tag?
3) gimme a link to play with. |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list. |
|
       |
 |
madman
Support Mod


Joined: Feb 15, 2004
Posts: 806
|
Posted:
Fri Oct 08, 2004 4:06 pm |
  |
Some additional tips:
- If bbcode tags does not shown properly, be sure bbcode setting is ON either in forum configuration, or appropriate user profile settings.
- If html is ON, you can also set image signature using html <img> tag.
- Recent phpBB/bb2nuke version does not allow .php extension in image tag. You'll have to modify "includes/bbcode.php" as follows:
Find:
| Code: |
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text); |
Replace with:
| Code: |
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(php|jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text); |
- Due of security reason, phpBB/bb2nuke does not allow image containing query string (e.g. signature.php?id=abc123). You can add this capibillity by modify "includes/bbcode.php":
warning: do this only if you have to, otherwise your site vulnerable to hacking attacks!
Find:
| Code: |
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text); |
Replace with:
| Code: |
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(php[^\[]*|jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text); |
@BrainSmashR:
Why you didn't promote this thread as sticky?  |
_________________ I'm  |
|
      |
 |
Knightro
Nuke Soldier


Joined: Jul 10, 2004
Posts: 10
|
Posted:
Fri Oct 08, 2004 5:34 pm |
  |
sigs work fine with a .jpg or .gif etc extensions, what I want to use is a .swf
this is the link to the file I want to show in my sigs.... I have seen flash sigs work before in forum posts, I just do not know how to configure mine to work properly.
http://knightro.tribalevo.net/knightsig.swf
 |
|
|
    |
 |
Knightro
Nuke Soldier


Joined: Jul 10, 2004
Posts: 10
|
Posted:
Fri Oct 08, 2004 5:43 pm |
  |
http://www.nukecops.com/postt28951.html
this thread was helpful and worked for me. |
_________________ <object>
<embed src="http://knightro.tribalevo.net/knightsig.swf" width="400" height="150" align="middle" embed>
</object> |
|
    |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Fri Oct 08, 2004 6:35 pm |
  |
Kewl, I would have never figured that out....was headed in a completely different direction
The bad news is I doubt those hacks will ever be implimented here on Nukecops.
Good Idea Madman! |
_________________

USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Last edited by BrainSmashR on Fri Oct 08, 2004 6:38 pm; edited 1 time in total |
|
       |
 |
|
|