How can I make it to hide automatically the urls instead the hide?
I look into the code and if I replace this:
'#\[hide\](.*?)\[/hide\]#siU'
For this:
'!<a[^>]*(http|www)(.*)</a>!siU'
I Have problems cause the links are not showing
How can I made this little conversion?
Tnx!
It is a bit more complicated than that Rafael. It would require some other edits and atm I am extremly busy to look into that. Maybe later on if I get some free time I will create such a plugin to automatically hide the links when posted but I can''t promise anything.
But all you have to do is place the links between hide tags.
Awesome hack. It works perfect at my forum. There is no way to see the hidden links.
The replacement code you've gave me that would make hidden content viewable only by super administrator is not correct
But I've decided that I'll use it the way it is (without changing) *installs into actual forum*
(12-15-2009 10:15 AM)Svizy Wrote: [ -> ]The replacement code you've gave me that would make hidden content viewable only by super administrator is not correct
But I've decided that I'll use it the way it is (without changing) *installs into actual forum*
I didn''t test it but if it didn''t work, simply put their id at the settings for the groups and you will be all set
I want something like this:
Show a Image instead a Text Message but, I have problems.
How can I Add a Image with a link to reply the post Im trying with this but doesnt work:
<a href="{$mybb->settings['bburl']}/newreply.php?tid={$tid}"><img src="{$mybb->settings['bburl']}/path/to/image.lol" title="Anything" alt="Anything"></img></a>
How Can I do that?
(12-15-2009 07:38 PM)Rafael Wrote: [ -> ]I want something like this:
Show a Image instead a Text Message but, I have problems.
How can I Add a Image with a link to reply the post Im trying with this but doesnt work:
<a href="{$mybb->settings['bburl']}/newreply.php?tid={$tid}"><img src="{$mybb->settings['bburl']}/path/to/image.lol" title="Anything" alt="Anything"></img></a>
How Can I do that?
You should use the img tag, like this:
<img src="image url" alt="" />
For ex, if the image that you want to use is at the images directory and named hidden.gif, you would use this code:
<img src="images/hidden.gif" alt="" />
Let me know how it will go.
Have the same problem, the image loads good, but I want to add a link on the image and dont work.
You can take a look at
here
Im using the code that you give me.
The problem is on the TID.
Thanks!