Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Custom block shortcut edit button
by ghia on 2010/7/4 14:07:05

Quote:
@ ghia Will try to change in that php file first so no changes required in the theme. If not sucessful will use mariane's way.
You don't need to do the change in the PHP file. Besides it still needs a change in the theme files.
So, Marianne has the perfect way to go.
Re: Custom block shortcut edit button
by Mechs on 2010/7/4 12:12:55

@ mariane, this way i think we have to change every themes that we want to include in our themes selection.
Thanks it is what i'm looking for.

@ ghia as always you are very helpfull & thanks. Will try to change in that php file first so no changes required in the theme. If not sucessful will use mariane's way.
Re: Custom block shortcut edit button
by mariane on 2010/7/4 11:26:15

try this code in your left/right or center blocks (inside the theme)
le="color: #000000"><?php <{if $xoops_isadmin}>&nbsp; <a href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin&op=edit&bid=}><{$block.id}>" title="Edit this Block" > <img src="<{$xoops_imageurl}>block/block-edit.png" alt="Edit this Block"></a>&nbsp; <a href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin&op=delete&bid=}><{$block.id}>" title="Delete this Block" > <img src="<{$xoops_imageurl}>block/block-delete.png" alt="Delete this Block"></a>&nbsp; <a href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin}>" title="Add New Block" > <img src="<{$xoops_imageurl}>block/block-add.png" alt="Add New Block"></a><{/if}>

and dont forget to add small icons to the functions edit, add, delete in a folder : themes/yourtheme/block
Re: Custom block shortcut edit button
by ghia on 2010/7/4 10:17:54

I think you need to add the link to the block array in function buildBlock in /class/themeblocks.php and then you can use it in your theme.
Re: Custom block shortcut edit button
by Mechs on 2010/7/4 8:21:26

For every custom block that's created & displayed in a page, to edit the block we need to go through Admin Menu --> System --> Blocks --> custom block --> the custom block--> edit

If we have a shortcut such as a link/button to go directly to blocks edit form it would be a plus.

At the moment i have to add a link(the one in the previous post) plus the block id manually for every custom block for a shortcut.

Hope that's clear.

Who's Online

221 user(s) are online (174 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits