Recent Topics

1 Apr 20, 2010 16:38    

My b2evolution Version: 3.3.x

[url=http://image.ohozaa.com/show.php?id=8241be0af981c588bf4541d175f7b51c]http://image.ohozaa.com/i9/how_to_unable_link_to_url_on_b2evolution_by_blogtika.jpg[/url]

- I have a problem when some user use "link to url" (from picture) create other link. So i think if can hide "link to url" from user it's nice.

- Please, share tactic hide "link to url" from user. Thank you

- Referable www.blogtika.com

2 Apr 23, 2010 03:47

uhhm.. are you trying to disable the link to url field ?

3 Apr 23, 2010 04:02

Hi tilqicom!

Yes, i would like to disable link "link to url" you have a suggestion.

Thank you.

4 Apr 23, 2010 04:08

You can disable the whole field for yourself and the users by deleting the field from files.
OR
you can use if( $current_User->ID ==1) and show it to the Admin only assuming you havent changed it.

Allthough both methods are not foolproof, those are not possibly the best options.

5 Apr 23, 2010 04:11

Where are file? for:

"you can use if( $current_User->ID ==1) and show it to the Admin only assuming you havent changed it. "

6 Apr 23, 2010 04:13

managerblue wrote:

Where are file?

I gotta look into that, unfortunately i was just going to bed.I'll post exact insturctions how to do the above tomorrow.Lets hope meantime someone else gives that "better" other option

7 Apr 23, 2010 04:16

Thank you, tilqicom.

"post exact insturctions how to do the above tomorrow"

8 Apr 25, 2010 16:06

okay getting rid of the textarea in expert view should suffice.

open up your

...\inc\items\views\_item_expert.form.php

and modify the below lines

Line 135:

 $Form->text_input( 'post_url', $edited_Item->get( 'url' ), 20, '', '', array('maxlength'=>255, 'style'=>'width: 100%;') );

to

$Form->hidden( 'post_url', $edited_Item->get( 'url' ), 20, '', '', array('maxlength'=>255, 'style'=>'width: 100%;') );

and also
Line 225:

$Form->text_input( 'post_urltitle', $edited_Item->get('urltitle'), 40, '', '', array('maxlength'=>210, 'style'=>'width: 100%;') );

to

$Form->hidden( 'post_urltitle', $edited_Item->get('urltitle'), 40, '', '', array('maxlength'=>210, 'style'=>'width: 100%;') );

remember this will only 'hide' that field, it's not the best solution to 'disable' that functionality, and you will lose your changes in the next upgrade, and do the whole thing again.


Form is loading...