FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  • Welcome
  • Guest

  • Open Support Tickets
Better cosmetic for your gallery
Page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components
View previous topic :: View next topic  
Author Message
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Sun Nov 21, 2010 12:33 pm    Post subject:  Reply with quote

Just thought of this...

If you use this lightbox you cant go in the img file and see the details.
So admins cant delete or edit the offensive imgs.

I will try to think of a way to fix this.

One thing for sure the macros {gallery_row.gallery_column.THUMBNAIL_URL} must be added somewhere. Not on the gallery itself cuz I want members to click on the img. so a button under all imgs on the gallery is not what I want.

Will work on the script itself to add this part on the lightbox.  Not on the title descition cuz it will add too much codes to the text when you hover the img.

Let see what I come up with tomorow, its late now.
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Zudane
Moderator
Moderator
FLAG

Virtual Cash: 21140

Joined: 10 May 2008
Posts: 2040



Add Karma

rated by 24 members
Add Comment
Show Comments

Harsh Reality
online/offline
PostPosted: Sun Nov 21, 2010 10:57 pm    Post subject: Reply with quote

Just brainstorming... the same spot for the full view could do it with an option for admin/mods or have a separate page for admin/mod editing, such as one that shows the thumbnail with the edit/remove buttons.
_________________


Harsh Reality - Life is a Canvas, Paint it your way!
Back to top
View user's profile Send private message Visit poster's website
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Mon Nov 22, 2010 3:25 am    Post subject: Reply with quote

Zudane wrote:
Just brainstorming... the same spot for the full view could do it with an option for admin/mods or have a separate page for admin/mod editing, such as one that shows the thumbnail with the edit/remove buttons.


Tried to add a button to the fadein img window but no success. the codes are very advanced and to add a div inside you have to edit multiple things. I havent all that need to be edit... yet. googled alo on the subject but seems im the only one who realy want to add a div to this feature.

A second page would be an option but I like having all in one place.


For now I took the simpliest way to be abble to edit the gallery imgs....

in the cms_gallery.tpl after...

Code:
  <td align="center" valign="center" class="row11"><a href="{gallery_row.gallery_column.FULL_IMG}" rel='lightbox[freeforall]' title="{gallery_row.gallery_column.FILENAME}<br />Posted by {gallery_row.gallery_column.POSTER}">{gallery_row.gallery_column.THUMBNAIL}</a>


I added...

Code:
<!-- IF S_USER_LEVEL > 0 -->
<br />
 <a href="{gallery_row.gallery_column.THUMBNAIL_URL}"><img src="http://freeforallpoker.net/templates/myfu_freeforallpoker1/images/lang_english/icon_edit.gif" alt=""/></a>
<!-- ENDIF -->


The switch (IF S_USER_LEVEL > 0) makes this button viewable only by admins/mods.
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Zudane
Moderator
Moderator
FLAG

Virtual Cash: 21140

Joined: 10 May 2008
Posts: 2040



Add Karma

rated by 24 members
Add Comment
Show Comments

Harsh Reality
online/offline
PostPosted: Mon Nov 22, 2010 7:15 pm    Post subject: Reply with quote

Well stated, mind showing a screenshot to see how it shows up for admins/mods?
_________________


Harsh Reality - Life is a Canvas, Paint it your way!
Back to top
View user's profile Send private message Visit poster's website
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Mon Nov 22, 2010 7:56 pm    Post subject: Reply with quote

It looks like this...
Spoiler:



Still not what I exactly want but it does the job for now.
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Tue Nov 23, 2010 5:21 am    Post subject: Reply with quote

Ask Mr. Religion wrote:
danm97 wrote:
Change this part...

Code:
 {gallery_row.gallery_column.FULL_IMG}


To this...

Code:
 {gallery_row.gallery_column.THUMBNAIL_URL}


and no it will not land on the original post of the img... dont think its possible.
I tried that before my last post. Get nothing. You can see the effects at the site.

http://rti.myfineforum.org/index.php?component=gallery

Clicking an image yields a blank gallery page.

AMR


It just jumped to my mind !!

You miss lots of codes inside your cms_gallery.tpl... Could you post the whole codes you got in this template ??
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ask Mr. Religion
Craftsman
Craftsman
FLAG

Virtual Cash: 4500

Joined: 01 Aug 2008
Posts: 423



Add Karma

rated by 3 members
Add Comment
Show Comments


online/offline
PostPosted: Tue Nov 23, 2010 5:26 am    Post subject: Reply with quote

danm97 wrote:
Ask Mr. Religion wrote:
danm97 wrote:
Change this part...

Code:
 {gallery_row.gallery_column.FULL_IMG}


To this...

Code:
 {gallery_row.gallery_column.THUMBNAIL_URL}


and no it will not land on the original post of the img... dont think its possible.
I tried that before my last post. Get nothing. You can see the effects at the site.

http://rti.myfineforum.org/index.php?component=gallery

Clicking an image yields a blank gallery page.

AMR


It just jumped to my mind !!

You miss lots of codes inside your cms_gallery.tpl... Could you post the whole codes you got in this template ??


Code:
<form action="{U_GALLERY_ACTION}"  method="GET" onchange="forms[\'galleryform\'].submit()" name="galleryform">{S_GALLERY_HIDDEN}
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_gallery_title -->     
   <tr>
        <th  colspan="3" class="thTop" nowrap="nowrap">{GALLERY_TITLE}</th>
     </tr>
     <tr>
         <td  class="thTop" nowrap="nowrap" bgcolor="#FFFF00"><span class="topictitle">{L_GALLERY_ORDER}{GALLERY_ORDERING}</span></td>

        <td  class="thTop" nowrap="nowrap" bgcolor="#FFFF00"><span class="topictitle">{L_GALLERY_FILTER}<input name="filter" value={GALLERY_FILTER}><input type="submit" name="go" value="Go"></span></td>
        <td align="right" bgcolor="#FFFF00"><span class="topictitle">{GALLERY_PAGINATION}</span></td>
     </tr>
     </table>
     <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--END switch_galley_title -->          
  <!-- BEGIN gallery_row -->
  <tr>
   <!-- BEGIN gallery_column -->
   <td class="row11" align="center" valign="center" bgcolor="#FFFF00"><span class="topictitle"><a href="{gallery_row.gallery_column.FULL_IMG}" title="{gallery_row.gallery_column.FILENAME} Posted by {gallery_row.gallery_column.POSTER}">{gallery_row.gallery_column.THUMBNAIL}</a></td>
 
   <!-- END gallery_column -->
    </tr>
  <!-- END gallery_row -->
</table>
</form>


AMR
_________________
Ask Mr. Religion (a.k.a. 'Patrick')
Founder, Reformed Theology Institute
Back to top
View user's profile Send private message
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Tue Nov 23, 2010 5:29 am    Post subject: Reply with quote

Thats what I thought... you miss loads of coding in there.

Give me a moment and will try to fix it for you.
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Tue Nov 23, 2010 5:34 am    Post subject: Reply with quote

Try this let see what you get...

Spoiler:

Code:
<script>
function SelectAll(id)
{
document.getElementById(id).focus();
document.getElementById(id).select();
}
</script>

  
<!-- IF S_GALLERY_SHOWIMAGES -->
<!-- IF S_GALLERY_MODE == "IMAGES" -->

<form action="{U_GALLERY_ACTION}"  method="GET" onchange="forms[\'galleryform\'].submit()" name="galleryform">{S_GALLERY_HIDDEN}
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_gallery_title -->      
   <tr>
        <th  colspan="3" class="thTop" nowrap="nowrap">{GALLERY_TITLE}</th>
     </tr>
     <tr>
         <td  class="thTop" nowrap="nowrap" bgcolor="#FFFF00"><span class="topictitle">{L_GALLERY_ORDER}{GALLERY_ORDERING}</span></td>

        <td  class="thTop" nowrap="nowrap" bgcolor="#FFFF00"><span class="topictitle">{L_GALLERY_FILTER}<input name="filter" value={GALLERY_FILTER}><input type="submit" name="go" value="Go"></span></td>
        <td align="right" bgcolor="#FFFF00"><span class="topictitle">{GALLERY_PAGINATION}</span></td>
     </tr>
     </table>
     <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--END switch_galley_title -->          
  <!-- BEGIN gallery_row -->
  <tr>
   <!-- BEGIN gallery_column -->
   <td class="row11" align="center" valign="center" bgcolor="#FFFF00"><span class="topictitle"><a href="{gallery_row.gallery_column.THUMBNAIL_URL}" title="{gallery_row.gallery_column.FILENAME} Posted by {gallery_row.gallery_column.POSTER}">{gallery_row.gallery_column.THUMBNAIL}</a></td>
  
   <!-- END gallery_column -->
    </tr>
  <!-- END gallery_row -->
</table>
</form>


<!-- ENDIF -->
<!-- ENDIF -->






<!-- IF S_GALLERY_MODE == "IMAGE" -->


<!-- BEGIN switch_gallery_title -->      

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">

   <tr>
        <th  class="thTop" nowrap="nowrap">{GALLERY_TITLE}</th>
     </tr>
     </table>
<!-- END switch_gallery_title -->          
     <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
      <tr>
    
   <td class="row2" colspan="2"><span class="topictitle"><a href="{U_GALLERY_IMAGE_RETURN}" >{L_GALLERY_IMAGE_RETURN}</a></span></td>
  
    </tr>

  <tr>
    
   <td class="row2" colspan="2"><span class="topictitle"><a href="{GALLERY_IMAGE_URL}" >{GALLERY_IMAGE}</a></span></td>
  
    </tr>
    <tr>
     <td class="row2"><span class="topictitle">{L_GALLERY_IMAGE_DESCRIPTION}</span></td>
<!-- BEGIN switch_gallery_edit -->  
    <form action="{U_GALLERY_ACTION}" method="post">{S_GALLERY_HIDDEN_FIELDS}
    <td class="row2"><span class="topictitle"><textarea name="description" style="width: 500px;height=100px;">{GALLERY_IMAGE_DESCRIPTION}</textarea></span></td>
<!-- END switch_gallery_edit -->  
<!-- BEGIN switch_gallery_noedit -->  
    <td class="row2"><span class="topictitle">{GALLERY_IMAGE_DESCRIPTION}</span></td>
<!-- END switch_gallery_noedit -->  
    
    </tr>
  
    
    
     <tr>
  
    <td class="row2"><span class="topictitle">{L_GALLERY_IMAGE_VIEWS}</span></td>
    <td class="row2"><span class="topictitle">{GALLERY_IMAGE_VIEWS}</span></td>
  
    
    </tr>
  
  


    </form>

  
</table>


<!-- ENDIF -->


_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Zudane
Moderator
Moderator
FLAG

Virtual Cash: 21140

Joined: 10 May 2008
Posts: 2040



Add Karma

rated by 24 members
Add Comment
Show Comments

Harsh Reality
online/offline
PostPosted: Tue Nov 23, 2010 5:56 am    Post subject: Reply with quote

That actually does look fine to me, although the edit button may be something you will want to change to fit the style better.  But overall I think the edit button looks good.

And always grateful for the assistance with sharing this wonderful idea!
_________________


Harsh Reality - Life is a Canvas, Paint it your way!
Back to top
View user's profile Send private message Visit poster's website
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Tue Nov 23, 2010 6:01 am    Post subject: Reply with quote

I still could make the edit button a (input type=button) to look just like the "GO" button at the top.

Actualy thats what I will do. But again this will be temporaly since I realy want the button to be inside the lightbox.

Will post the codes for the new button in a few mins.
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Tue Nov 23, 2010 6:21 am    Post subject: Reply with quote

Here's the new codes for the edit buttons...

Code:
<!-- IF S_USER_LEVEL > 0 -->
<br />

<input type="button" value="Edit" style="font-size:10px;padding: .1em 1em .2em;" class="mainoption" onclick="location.href='{gallery_row.gallery_column.THUMBNAIL_URL}'"/>
<!-- ENDIF -->


It use the class mainoption which is used in most templates on myff.

Here's the new look of the button....
Spoiler:



If you want to change the colors of your button you will have to edit input.mainoption in your css.
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ask Mr. Religion
Craftsman
Craftsman
FLAG

Virtual Cash: 4500

Joined: 01 Aug 2008
Posts: 423



Add Karma

rated by 3 members
Add Comment
Show Comments


online/offline
PostPosted: Tue Nov 23, 2010 6:50 am    Post subject: Reply with quote

danm97 wrote:
Try this let see what you get...

Spoiler:

Code:
<script>
function SelectAll(id)
{
document.getElementById(id).focus();
document.getElementById(id).select();
}
</script>

  
<!-- IF S_GALLERY_SHOWIMAGES -->
<!-- IF S_GALLERY_MODE == "IMAGES" -->

<form action="{U_GALLERY_ACTION}"  method="GET" onchange="forms[\'galleryform\'].submit()" name="galleryform">{S_GALLERY_HIDDEN}
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_gallery_title -->      
   <tr>
        <th  colspan="3" class="thTop" nowrap="nowrap">{GALLERY_TITLE}</th>
     </tr>
     <tr>
         <td  class="thTop" nowrap="nowrap" bgcolor="#FFFF00"><span class="topictitle">{L_GALLERY_ORDER}{GALLERY_ORDERING}</span></td>

        <td  class="thTop" nowrap="nowrap" bgcolor="#FFFF00"><span class="topictitle">{L_GALLERY_FILTER}<input name="filter" value={GALLERY_FILTER}><input type="submit" name="go" value="Go"></span></td>
        <td align="right" bgcolor="#FFFF00"><span class="topictitle">{GALLERY_PAGINATION}</span></td>
     </tr>
     </table>
     <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--END switch_galley_title -->          
  <!-- BEGIN gallery_row -->
  <tr>
   <!-- BEGIN gallery_column -->
   <td class="row11" align="center" valign="center" bgcolor="#FFFF00"><span class="topictitle"><a href="{gallery_row.gallery_column.THUMBNAIL_URL}" title="{gallery_row.gallery_column.FILENAME} Posted by {gallery_row.gallery_column.POSTER}">{gallery_row.gallery_column.THUMBNAIL}</a></td>
  
   <!-- END gallery_column -->
    </tr>
  <!-- END gallery_row -->
</table>
</form>


<!-- ENDIF -->
<!-- ENDIF -->






<!-- IF S_GALLERY_MODE == "IMAGE" -->


<!-- BEGIN switch_gallery_title -->      

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">

   <tr>
        <th  class="thTop" nowrap="nowrap">{GALLERY_TITLE}</th>
     </tr>
     </table>
<!-- END switch_gallery_title -->          
     <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
      <tr>
    
   <td class="row2" colspan="2"><span class="topictitle"><a href="{U_GALLERY_IMAGE_RETURN}" >{L_GALLERY_IMAGE_RETURN}</a></span></td>
  
    </tr>

  <tr>
    
   <td class="row2" colspan="2"><span class="topictitle"><a href="{GALLERY_IMAGE_URL}" >{GALLERY_IMAGE}</a></span></td>
  
    </tr>
    <tr>
     <td class="row2"><span class="topictitle">{L_GALLERY_IMAGE_DESCRIPTION}</span></td>
<!-- BEGIN switch_gallery_edit -->  
    <form action="{U_GALLERY_ACTION}" method="post">{S_GALLERY_HIDDEN_FIELDS}
    <td class="row2"><span class="topictitle"><textarea name="description" style="width: 500px;height=100px;">{GALLERY_IMAGE_DESCRIPTION}</textarea></span></td>
<!-- END switch_gallery_edit -->  
<!-- BEGIN switch_gallery_noedit -->  
    <td class="row2"><span class="topictitle">{GALLERY_IMAGE_DESCRIPTION}</span></td>
<!-- END switch_gallery_noedit -->  
    
    </tr>
  
    
    
     <tr>
  
    <td class="row2"><span class="topictitle">{L_GALLERY_IMAGE_VIEWS}</span></td>
    <td class="row2"><span class="topictitle">{GALLERY_IMAGE_VIEWS}</span></td>
  
    
    </tr>
  
  


    </form>

  
</table>


<!-- ENDIF -->

That was swell! Worked just fine.

AMR
_________________
Ask Mr. Religion (a.k.a. 'Patrick')
Founder, Reformed Theology Institute
Back to top
View user's profile Send private message
danm97
Craftsman
Craftsman
FLAG

Virtual Cash: 4400

Joined: 29 Dec 2009
Posts: 429


Location: Montreal, Québec, Canada
Add Karma

rated by 5 members
Add Comment
Show Comments

Freeforallpoker.net
online/offline
PostPosted: Tue Nov 23, 2010 6:58 am    Post subject: Reply with quote

You can have more options to this new page... like...

Filename:
File size:
Posted by
To post on forum use:
To post thumbnail on forum use:
Edit and delete button.
If you want them added just tell me.
_________________
Peace is always the right solution !!

http://www.freeforallpoker.net/

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Ask Mr. Religion
Craftsman
Craftsman
FLAG

Virtual Cash: 4500

Joined: 01 Aug 2008
Posts: 423



Add Karma

rated by 3 members
Add Comment
Show Comments


online/offline
PostPosted: Tue Nov 23, 2010 7:06 am    Post subject: Reply with quote

danm97 wrote:
You can have more options to this new page... like...

Filename:
File size:
Posted by
To post on forum use:
To post thumbnail on forum use:
Edit and delete button.
If you want them added just tell me.
I want only the delete function. That said, deleting an item in the gallery leaves me with a post somewhere with a missing item. I do not allow uploads to the gallery unless they are included in a normal forum post. What I really need is a link to the post where the gallery image was attached. That way when I delete a gallery image I can then delete the corresponding post or at least edit it accordingly.

AMR


_________________
Ask Mr. Religion (a.k.a. 'Patrick')
Founder, Reformed Theology Institute
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components All times are GMT
Page Previous  1, 2, 3  Next
Page 2 of 3
 
 
Jump to:  
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 vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum