Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 06:33

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 12. May 2010, 21:20 
Offline

Joined: 22. Apr 2010, 01:14
Posts: 3
Hi all,

Need some help here, in the TWGXplorer, when you go to edit a file. I would like to incorporate CKEditor into the software. I have done this, but what I need to do is have an IF statement.

IF
file_extension = .xls then open edit.php
else
open edit1.php.

Can anyone advise on the coding here please. I know it must go into include/fun_list.php

Code:
      // EDIT

      if(get_is_editable($dir, $item)) {

         if($allow && $is_writable) {
            echo "<td><a href=\"".make_html_link("edit",$dir,$item)."\">";
            echo "<img class='bsprites edit_gif' align=\"middle\" ";
            echo "src=\""._QUIXPLORER_URL."/_img/_.gif\" alt=\"".$GLOBALS["messages"]["editlink"]."\" title=\"";
            echo $GLOBALS["messages"]["editlink"]."\"></a></td>\n";
         }
         else {
            echo "<td><img class='bsprites edit__gif' ";
            echo "src=\""._QUIXPLORER_URL."/_img/_.gif\" alt=\"".$GLOBALS["messages"]["editlink"]."\" title=\"";
            echo $GLOBALS["messages"]["editlink"]."\"></td>\n";
         }


but unsure how to insert IF and ELSE command and point it to my duplicated fun_edit1.php file.


Top
 Profile  
 
 Post subject:
PostPosted: 12. May 2010, 23:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to define a new action here:

echo "<td><a href=\"".make_html_link("edit",$dir,$item)."\">";

and then add this action in admin/index.php.

If you are done you can provide this to the community if you like...

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 79 guests


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 post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy