Datemill.com
September 02, 2010, 11:41:17 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Del.icio.us FURL FaceBook Stumble Upon Google Bookmarks

Pages: [1]
  Print  
Author

new flirts and editing

 (Read 345 times)
moylo
Active Member
**

Karma: 1
Posts: 56


WWW

new flirts and editing

« on: July 03, 2009, 10:44:59 PM »

Hi
   An annoying side effect of editing our flirts and adding new ones is that the tick box appears above the flirt instead of beside it after saving.  can someone tell me how to place the tick box beside the flirts?   

  cheers Mark
Logged
admin2
Administrator
Active Member
*****

Karma: 17
Posts: 2562



WWW

Re: new flirts and editing

« Reply #1 on: July 03, 2009, 11:57:06 PM »

From what you say it seems like a design problem. Ask your designer about it. Of course, I can have a look too but I need access.
Logged

maverick
Active Member
**

Karma: 64
Posts: 629



Re: new flirts and editing

« Reply #2 on: July 04, 2009, 02:10:03 AM »

Hi Dan;

I think maybe what moylo is asking is how to format the flirts selections from a users aspect when sending a flirt.

When viewing flirts from the admin side of things the edit/delete buttons are centered to the left of the flirts, whereas from the users end the radio button to select a flirt sits above each flirt rather than centered to left like in the admin.

The admin side uses basic tables to accomplish this whereas on the user side it uses the list format located in "skins_site/def/styles/flirt_send.css".

From what I understand I think he wants to left float the radio button so it's inline with the flirt message instead of being above it. Besides editing the "flirt_send.css" file it would also require some editing to the actual code used to display the flirts to assign the appropriate CSS elements, but I'm not sure where the actual flirt display code is located.
Logged
admin2
Administrator
Active Member
*****

Karma: 17
Posts: 2562



WWW

Re: new flirts and editing

« Reply #3 on: July 04, 2009, 02:18:14 AM »

There's no need to change the html code. Simply using this code in flirt_send.css would do the trick:

Code:
.flirts_list li input {
    float: left;
}

Logged

moylo
Active Member
**

Karma: 1
Posts: 56


WWW

Re: new flirts and editing

« Reply #4 on: July 04, 2009, 02:49:58 AM »

Hi. yes,  It the members view of flirts thats not showing correctly . will try dans code when I can finally ftp. internet today is rubbish here.

                     will let you know

                                                   cheers mark
Logged
moylo
Active Member
**

Karma: 1
Posts: 56


WWW

Re: new flirts and editing

« Reply #5 on: July 05, 2009, 06:23:08 PM »

The added code didn't make any difference.

This is a sample of the flirts listed below from
view-source:http://www.ourwebsite.com/etano/flirt_send.php?to_id=17876&return=home.php



<li><input type="radio" name="flirt_id" id="flirt_id_20" value="20" /><label for="flirt_id_20">have you been to my country?</label></li>

The Above flirt is showing correctly the ones below are showing under the check box, not beside it.

<li><input type="radio" name="flirt_id" id="flirt_id_23" value="23" /><label for="flirt_id_23"><p>Are you interested in having a relationship with me?</p></label></li>
<li><input type="radio" name="flirt_id" id="flirt_id_61" value="61" /><label for="flirt_id_61"><p>What will you do tonight?</p></label></li>
<li><input type="radio" name="flirt_id" id="flirt_id_63" value="63" /><label for="flirt_id_63"><p>I will go out to bar tonight, Do you want to come with me?</p></label></li>

any Ideas what is causing this and how to fix?

        regards Mark
Logged
maverick
Active Member
**

Karma: 64
Posts: 629



Re: new flirts and editing

« Reply #6 on: July 05, 2009, 06:51:48 PM »

Hi Mark;

try this ...

Code:
.flirts_list li input {
    display: inline;
    float: left;
}
Logged
admin2
Administrator
Active Member
*****

Karma: 17
Posts: 2562



WWW

Re: new flirts and editing

« Reply #7 on: July 06, 2009, 01:29:31 AM »

Aaarghhh, the problem happens because of the extra <p> in the flirt text which is added by tinymce when you add/edit a flirt in admin.
Add this css instead of the previous suggested ones:
Code:
.flirts_list li p {
display: inline;
}
Logged

maverick
Active Member
**

Karma: 64
Posts: 629



Re: new flirts and editing

« Reply #8 on: July 06, 2009, 05:47:22 AM »

Code:
.flirts_list li p {
display: inline;
}
Yes that will work as long as your flirts contain only text. Now that the <p> tag has been changed to be an inline tag rather than it's natural block tag format, the <p> tags will no longer stack therefore if you include images the text will run in-line with the image rather than below or above the image. The same goes if you want several separate lines of text.

One workaround would be, when you create your flirts in the TinyMice editor is to manually edit the HTML and use the <br /> tag in place of the <p> tags, which would be a bit of a pain.

If you're including images in all your flirts this hack works reasonably well.
Code:
.flirts_list li input {
    display: inline;
    margin-top: 50px;
    width: 50px;
    float: left;
}
When floating blocks, text will naturally wrap around the content of the floated block, but it still looks ok. There's hacks that can be used to stop text from wrapping around floated blocks, however they are kind of complex and can be quirky in some browsers.

As great as CSS is, there are still some instances where tables can make life a lot easier, maybe this is one of those instances, especially given the fact that the HTML is created by TinyMice.

I always use CSS as the primary structure for developing a site, however there are certain things within the CSS structure I will still use tables for (tables styled with CSS). One example is creating something like a "Feature Comparison Chart" where you have multiple rows and columns that you want to be structured very tight and specific. Sure it can be done using just CSS, but it's not all that easy and can sometimes be very frustrating, and the flirt selections is somewhat similar to a feature comparison chart.

Having the radio selection button centered to the left of the flirts is probably the most aesthetically pleasing way to have it, however I personally don't have any real problems with the radio selection button appearing directly above the flirts. I just made the separator line between flirts a little bolder and more distinctive so there's no chance of any confusion for the user.
« Last Edit: July 06, 2009, 12:26:28 PM by maverick » Logged
moylo
Active Member
**

Karma: 1
Posts: 56


WWW

Re: new flirts and editing

« Reply #9 on: July 09, 2009, 04:04:58 PM »

Hi Again
             Thanks for the help guys.  Now the flirts are showing the way we want.

                      Cheers Mark
Logged
Pages: [1]
  Print  

 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!