MyBB Codes

Full Version: [Plugin for Mybb 1.4.*] Hide Posts Until Reply!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8
(12-14-2009 03:46 PM)Svizy Wrote: [ -> ]
(12-14-2009 03:45 PM)babjusi Wrote: [ -> ]
(12-14-2009 03:39 PM)Svizy Wrote: [ -> ]Just for comfirmation, this edit will restrict "normal" administrators from viewing the hidden content while super administrators will be able to see it without repliying? Smile


Yes, isn''t it what you wanted?
Yes, I just wanted you to comfirm that Tongue Sorry if I've confused you Wink

No confusion at all Big Grin
How can I make it to hide automatically the urls instead the hide?

I look into the code and if I replace this:
PHP Code:[Highlight]
'#\[hide\](.*?)\[/hide\]#siU' 

For this:
PHP Code:[Highlight]
'!<a[^>]*(http|www)(.*)</a>!siU' 

I Have problems cause the links are not showing Huh

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 Wink
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 Wink
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 Smile
(12-14-2009 04:23 PM)babjusi Wrote: [ -> ]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.

Ok, If you can, do it Smile

Thanks!
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:
PHP Code:[Highlight]
<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:
PHP Code:[Highlight]
<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!
Pages: 1 2 3 4 5 6 7 8
Reference URL's