You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 37 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - sig generator for my site [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ChadK
Sergeant
Sergeant


Joined: Mar 26, 2004
Posts: 75


PostPosted: Tue Mar 30, 2004 9:31 am Reply with quoteBack to top

Anyway, back to the problem with the newer phpbb not allowing IMG tag..
the file:
includes/bbcode.php
Lines 322-323:
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);


Instead of just adding |php in there next to png, is there another way to make it allow php in the IMG tag if it's a specific file? Say:
http://domainname/signature.php
If it MATCHES that, then display it?

_________________
Image
Find all posts by ChadKView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Tue Mar 30, 2004 11:21 am Reply with quoteBack to top

Why does it just print out the code for me?

Image


But if you load up the URL: It works fine.

http://www.guitarchat.net/signature.php

_________________
Image
Find all posts by twelvesView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Tue Mar 30, 2004 11:23 am Reply with quoteBack to top

Strange, it works on this page but not on my page.

DANG>

Any help for this long standing Noob?

"Still Noobing after all these years"

_________________
Image
Find all posts by twelvesView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Tue Mar 30, 2004 11:33 am Reply with quoteBack to top

Image

Nope. It print out the code on this one also.

However in the forum it works if I put my sig. in.

Im going to go to the Bar and figure this out. With my friend Miller and Bud. Rolling Eyes Embarassed Idea

_________________
Image
Find all posts by twelvesView user's profileSend private messageVisit poster's website
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Tue Mar 30, 2004 12:09 pm Reply with quoteBack to top

Hello,

I am using nukebb 2.0.8 on my website and the signature work perfect without the need to add php to the new includes/bbcode.php file. I did not copy the files from bb2nuke since I have tons of hacks on my website I manually added all the codes from phpbb.com Therefore, everything work just fine on my website.

_________________
If you shoot for the moon and miss, you'll still be amongst the stars.
Find all posts by foxyfemfemView user's profileSend private message
Stephen2417
Major
Major


Joined: Dec 26, 2003
Posts: 1135

Location: Bristolville, OH (US)

PostPosted: Tue Mar 30, 2004 12:17 pm Reply with quoteBack to top

Thanks soo much Tank. Very Happy
Find all posts by Stephen2417View user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Phoenix
Nuke Soldier
Nuke Soldier


Joined: Feb 15, 2003
Posts: 27

Location: Netizen

PostPosted: Tue Mar 30, 2004 4:10 pm Reply with quoteBack to top

Twelves,
Maybe silly question, but do you have BBCode ON?

Otherwise your sig BBCode looks OK.
However, images/signature.png is a missing file.

_________________
Image
Find all posts by PhoenixView user's profileSend private messageVisit poster's website
ChadK
Sergeant
Sergeant


Joined: Mar 26, 2004
Posts: 75


PostPosted: Tue Mar 30, 2004 5:53 pm Reply with quoteBack to top

Try using [ img ]http://asdasdasdasd/sig..[ /img ]
that works for me..
but I also had to edit bbcode.php on my site.

_________________
Image
Find all posts by ChadKView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Tue Mar 30, 2004 6:12 pm Reply with quoteBack to top

Phoenix: what do you mean do I have BBCode ON? How do I turn it on? Sad


Below is my code in bbcode I did edit it:

// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(jpg|jpeg|gif|png|php )))\[/img\]#sie",[/quote]Twelves,
Maybe silly question,


Hmmmmm. Rolling Eyes
Find all posts by twelvesView user's profileSend private messageVisit poster's website
Phoenix
Nuke Soldier
Nuke Soldier


Joined: Feb 15, 2003
Posts: 27

Location: Netizen

PostPosted: Tue Mar 30, 2004 6:21 pm Reply with quoteBack to top

Twelves,

In your profile, amongst other things, you can set BBCode ON or not.
You can also Disable BBCode in any post you make. Cool

_________________
Image
Find all posts by PhoenixView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Tue Mar 30, 2004 6:22 pm Reply with quoteBack to top

Working now on this forum. Not on mine. I better stop before I go mad.

Thanks for the help!

_________________
Image
Find all posts by twelvesView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Tue Mar 30, 2004 6:27 pm Reply with quoteBack to top

Thank you Phoenix.

I see that bbcode is on at my page now.

But no cigar.

Thanks for making it clear for my brain.

Laughing
Crying or Very sad

Its strange at my page it shows up:

Image

And I use the same code on both sigs:

Image

_________________
Image

Last edited by twelves on Tue Mar 30, 2004 6:31 pm; edited 1 time in total
Find all posts by twelvesView user's profileSend private messageVisit poster's website
Phoenix
Nuke Soldier
Nuke Soldier


Joined: Feb 15, 2003
Posts: 27

Location: Netizen

PostPosted: Tue Mar 30, 2004 6:30 pm Reply with quoteBack to top

No probs Twelves.

I believe cigars were Bill Clinton's specialty Smile

_________________
Image
Find all posts by PhoenixView user's profileSend private messageVisit poster's website
twelves
Lieutenant
Lieutenant


Joined: Jul 13, 2003
Posts: 192


PostPosted: Tue Mar 30, 2004 7:43 pm Reply with quoteBack to top

Perhaps someone could post their code for me to check out?

This is my "Sig" code working at Nukecops.

Code:
[url=http://www.guitarchat.net/][img]http://www.guitarchat.net/signature.php[/img][/url]


As you can see I added the |php in my bbcode.php
Thanks very much. I might be a little obsessed by now...

One thing is I added the cool Java formatting to my forums.
I forget the mod name, but it adds in streaming video to bbcode posting.

Code:
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(jpg|jpeg|gif|png|php )))\[/img\]


Evil or Very Mad Mad Shocked Cool Rolling Eyes Crying or Very sad

_________________
Image
Find all posts by twelvesView user's profileSend private messageVisit poster's website
Dauthus
Sergeant
Sergeant


Joined: Feb 12, 2003
Posts: 82

Location: USA

PostPosted: Wed Mar 31, 2004 8:23 pm Reply with quoteBack to top

Found the code which works for 2.0.8. I have it on my site for dynamic signatures. Testing the signature here.

I located this code in the phpBB.com forums.

Here is how I changed the includes/bbcode.php. First I commented out the original line of code (Lines 320 and 321). Next I added the following line below that code:

Code:
//Substitute below text to allow for dynamic signatures
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"\n\r\t<]*?(\.(jpg|jpeg|gif|php|png))[^ \"\n\r\t<]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);



This way I didn't lose anything from the original. This works for the newest version of phpbb 2.0.8 and allows dynamic signatures. If you look close you see more than just the |php addon to the code.

_________________
Image
Vivere disce, cogita mori
Find all posts by DauthusView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.380 Seconds - 301 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::