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

Gallery problem
Page 1, 2  Next
 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertising.






Add Karma

rated by members
Add Comment
Show Comments


online/offline
Posted:     Post subject:

Back to top
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Wed Nov 17, 2010 11:36 am    Post subject: Gallery problem  Reply with quote

http://stevenkayleighfield.myfreeforum.org

www.stevenkayleighfield.co.uk


I have added the gallery portal to a webpage but am running into a few problems.

http://stevenkayleighfield.co.uk/gallery.html

When you click on a photo in the gallery it enlarges the picture which is not a problem,

http://stevenkayleighfield.co.uk/...amp;filter=&page=1&order=

however if they then click on the enlarged photo it takes you away from the site and to the myff gallery link and out of the website with no back button.

http://gallery.myff.org/gallery/9..._1466684485_31697147_730759_n.jpg

So my question is how to stop that 2nd click so they always stay with in the webpage.

Also if i juggle the code around and leave the add photo link up can people add photos with out being a member.

What im trying to achieve is a gallery where people can post their pic and comment on others with out being a member or with out being linked to the myff gallery page, i would like them to stay with ion the comment page.
_________________
Back to top
View user's profile Send private message Visit poster's website
myff admin
Site Admin
Site Admin
FLAG

Virtual Cash: 92890

Joined: 22 May 2005
Posts: 32203



Add Karma

rated by 281 members
Add Comment
Show Comments


online/offline
PostPosted: Wed Nov 17, 2010 1:07 pm    Post subject: Reply with quote

Have you altered the gallery template cms_gallery.tpl?

I have just added {U_GALLERY_REFERER} which can be used like so:

Code:

<td class="row2" colspan="2"><span class="topictitle"><a href="{U_GALLERY_REFERER}" >{GALLERY_IMAGE}</a></span></td>


It seems to work on here.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums
Back to top
View user's profile Send private message Visit poster's website
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Wed Nov 17, 2010 2:47 pm    Post subject: Reply with quote

I have edited the gallery.tpl have not added that code as of yet as im trying to change the width of the gallery row.

As you see below it is just overlapping

http://stevenkayleighfield.co.uk/gallery2.html
_________________
Back to top
View user's profile Send private message Visit poster's website
Nick(NR)
Moderator
Moderator
FLAG

Virtual Cash: 21710

Joined: 06 May 2006
Posts: 5310


Location: Medway, Kent
Add Karma

rated by 43 members
Add Comment
Show Comments

I'm better than Jose!
online/offline
PostPosted: Wed Nov 17, 2010 3:46 pm    Post subject: Reply with quote

Have you thought about setting up lightbox, to show the full image rather than send the viewer to a different page with no back to gallery link?

http://www.lokeshdhakar.com/projects/lightbox2/
_________________
CALM TIME: When calm time is called, all posters in a topic must refrain from posting and take a time out to calm down.
Back to top
View user's profile Send private message Visit poster's website
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Wed Nov 17, 2010 4:20 pm    Post subject: Reply with quote

yes ive heard of it but did not think it would suit here, as its aimed for other people to post their pics etc with out the need to login, the way lightbox works would mean that i would have to post the links myself rather than just letting them add to the gallery,, unless im missing something.

Ive got it how i want at the moment apart from two problems ,,, 1,, how to reduce the size of the gallery row and how to stop the 3rd click sending then to the gallery page ..
_________________
Back to top
View user's profile Send private message Visit poster's website
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Wed Nov 17, 2010 4:28 pm    Post subject: Reply with quote

myff admin wrote:
Have you altered the gallery template cms_gallery.tpl?

I have just added {U_GALLERY_REFERER} which can be used like so:

Code:

<td class="row2" colspan="2"><span class="topictitle"><a href="{U_GALLERY_REFERER}" >{GALLERY_IMAGE}</a></span></td>


It seems to work on here.


Not sure what that is meant to do but i have added it and all i see whe logged out is

Quote:
Guests cannot post attachments


This is my gallery.tpl using template 2

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>
     
        
     </table>
     <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!-- END switch_gallery_title -->          
  <!-- BEGIN gallery_row -->
  <tr>
   <!-- BEGIN gallery_column -->
   <td class="row1" align="center" valign="center"><span class="topictitle"><a href="{gallery_row.gallery_column.THUMBNAIL_URL}" >{gallery_row.gallery_column.THUMBNAIL}</a></span></td>
 
   <!-- END gallery_column -->
    </tr>
  <!-- END gallery_row -->
  <td align="right"><span class="topictitle">{GALLERY_PAGINATION}</span></td>
     </tr>
</table>
</form>

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



<!-- IF S_GALLERY_SHOWUPLOAD -->
<script>

if ("{S_GALLERY_STATE}"=="attach")
{
   //document.write("here");
}
else if ("{S_GALLERY_STATE}"=="attacherror")
{
   document.write("Error: {S_GALLERY_ERROR}");
}
else if ("{S_GALLERY_STATE}"=="attached")
{
   document.write("File uploaded");



}

</script>

<form action="{S_GALLERY_ACTION}" method="post" target="_top"  enctype="multipart/form-data">

<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
 
  <tr>
   <td class="row1"><table border="0" cellpadding="3" cellspacing="1" width="100%">
      
         <tr align="center">
         <td colspan="2" class="gensmall">{L_GALLERY_RULES}</td>
        </tr>
        <tr>
         <td width="30%" align="right"><span class="gensmall">{L_GALLERY_FILENAME}:</span></td>
         <td>
           <input type="file" class="gensmall" name="attach_file" size="25" />
         </td>
         </tr>
      
        <tr>
         <td width="30%" align="right"><span class="gensmall">{L_GALLERY_DESCRIPTION}:</span></td>
         <td>
           <textarea class="post" name="description" rows="5" cols="40" /></textarea>
         </td>
        </tr>
        
        <tr align="center">
         <td colspan="2">{S_GALLERY_HIDDEN_FIELDS}<input type="submit" name="attach" class="mainoption" value="{L_GALLERY_UPLOAD}" /></td>
        </tr>

<td class="row2" colspan="2"><span class="topictitle"><a href="{U_GALLERY_REFERER}" >{GALLERY_IMAGE}</a></span></td>
      
      </table></td>
  </tr>
</table>

</form>
<!-- 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 -->


_________________
Back to top
View user's profile Send private message Visit poster's website
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Wed Nov 17, 2010 5:10 pm    Post subject: Reply with quote

Ok sorted 1 problem out

by removing

Code:
<span class="topictitle">


from

Code:
<td class="row1" align="center" valign="center"><span class="topictitle"><a href="{gallery_row.gallery_column.THUMBNAIL_URL}" >{gallery_row.gallery_column.THUMBNAIL}</a></span></td>


Has solved the width problem.

So only 2 problems lie

1. how to stop the 3rd link click and the second to get guest access to post photos
_________________
Back to top
View user's profile Send private message Visit poster's website
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Wed Nov 17, 2010 5:18 pm    Post subject: Reply with quote

update


3rd click removed

Code:
<a href="{GALLERY_IMAGE_URL}" >


removed from enlarged photo
_________________
Back to top
View user's profile Send private message Visit poster's website
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Thu Nov 18, 2010 9:33 am    Post subject: Reply with quote

Still can not get guest access to upload.

Any ideas ?

Also trying to shorten the width of the photo when enlarged have tried many methods encluding adding width and style but none are working.
_________________
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: Thu Nov 18, 2010 10:22 am    Post subject: Reply with quote

Maybe this can help you for the img size...

http://forum.myfreeforum.org/sutra135640.php#135640

I would change the class .postbody to which ever class you are using in the gallery for the imgs table.
_________________
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
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Thu Nov 18, 2010 10:35 am    Post subject: Reply with quote

danm97 wrote:
Maybe this can help you for the img size...

http://forum.myfreeforum.org/sutra135640.php#135640

I would change the class .postbody to which ever class you are using in the gallery for the imgs table.


Have already tried that method but it does nothing. the problem is when you click on gallery thumbnails the pictures are too large.
_________________
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: Thu Nov 18, 2010 10:41 am    Post subject: Reply with quote

Did you try it in this part of your cms_gallery.tpl ??

Code:
<!-- IF S_GALLERY_MODE == "IMAGE" -->
(codes)
<!-- ENDIF -->


(Note: there's a difference btw IMAGES and IMAGE.)

IMAGES is for the thumbnails and IMAGE is for the individual image (when you click on the thumbnail)
_________________
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
symon
Moderator
Moderator
FLAG

Virtual Cash: 37350

Joined: 04 Sep 2005
Posts: 11952


Location: Surrey,England
Add Karma

rated by 92 members
Add Comment
Show Comments

http://howtodoit.myfreeforum.org/index.php
online/offline
PostPosted: Thu Nov 18, 2010 10:51 am    Post subject: Reply with quote

Yep tried that and again nothing happened.

Have an idea im working on.
_________________
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: Thu Nov 18, 2010 11:03 am    Post subject: Reply with quote

I just done it and it works...

Inside the
Code:
<!-- IF S_GALLERY_MODE == "IMAGE" -->
(codes)
<!-- ENDIF -->

find...
Code:
   <td class="row2" colspan="2"><span class="topictitle"><a href="{GALLERY_IMAGE_URL}" >{GALLERY_IMAGE}</a></span></td>


Replace
Code:
class="row2"
to
Code:
class="resize"


then...

Just after
Code:
</a>


add
Code:
<script>
  var w = 500;
      $(window).load(function() {

    $(document).ready(function() {
            $(".resize").find("img").each (function()
            {
            if ( $(this).width() > w ) {
                ow = $(this).width();
              
                h = $(this).height();
                h= parseInt(h * w/ow );
                 $(this).width(w);
                 $(this).height(h);
            }
            })
        });
});
</script>


This is working, I tested it. You can change the width of the default size you wish by chaging the 500 in the script.
_________________
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: Thu Nov 18, 2010 11:09 am    Post subject: Reply with quote

ohhh and you need the jquery script in your header...

<script type="text/javascript" src="js/jquery.js" ></script>


_________________
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
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> Portal components All times are GMT
Page 1, 2  Next
Page 1 of 2
 
 
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