News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Share This Topic

Started by Suki, September 06, 2009, 05:09:23 AM

Previous topic - Next topic

ɔɔɔɔɔɔuɥoɾ

Quote from: CerebralJam on August 13, 2010, 05:19:45 PM
I have just downloaded and re uploaded to theme and it looks perfect!  Thank you very much!  I tested it too and it looked like it was going to work!

Heheh... is there any chance in the future that the mod will be upgraded to share this post rather than just topic?

Reason I ask is I run a music forum, and sometimes people leave us a song, or we have a playlist that runs under a particular challenge thread... would be nice to be able to extend that share but this is just lovely for now and very much what I was looking for.  Thank you...

And a very big thank you to John :)  for helping me with the display.  I managed the other edits but run a mile when I find something that's just that bit different!

Be sure to check your error log, some of those edits looked shady lol


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

crustybum

As anyone else had a problem with posts being aligned all over the place with this mod? using the curve theme...

CerebralJam

Okay, I was a liddle bit hasty on um saying it was okay...

Cos where I have the share this coming up the bottom of the page is looking like this:
<---- wrong
  <--- right

The white box in the CSS seems to have been cut short?

I think I saw another too where it pulled the menu down.  Will try and find it and edit this post.




ɔɔɔɔɔɔuɥoɾ

Seems like the code was added too late, it looks like it was placed in the bodylower rather than the main content

That would be in index.template.php, if the mod was coded that way, not my mod I cant really say, but that's what it looks like to me


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

CerebralJam

#584
Okay, thank you... I may have a fiddle a little later - or earlier when not so tired... I think I understand what you are saying.  :)  The fact that you got the images to display was a big help to me.


Edit:  Heh, to be honest, I'm not sure there's a problem with the index.template alteration as it displays the old um Display.template.php fine.  It only alters when I swap the new one in with the share this buttons added. :) 

The old instruction had a class instruction in it where you alter Line 142<div id="forumposts" class="tborder">... and the new alteration takes it out and add this instead:  <div id="forumposts"><div class="plainbox" style="text-align: left;">', $social_icons, '</div>';}} that's where I faltered for the first time.  The old instruction does not use an end the <div> there.  Hmmm.  Been years since I played with stuff though and as I said, I know nothing about php.

My old way of thinking would be to look at the CSS and extend the height of the white box... but that's probably wrong so I shouldn't fiddle too much  ;D

ɔɔɔɔɔɔuɥoɾ

Your welcome, but dont expect my answers to be correct as this is not my mod, it may not even be in index.template.php lol

If you find that it is, make sure the code is added around the area of " function template_body_below() ". (depends on your theme, but it should be near that area) I think...


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

mirahalo

yes, billy2  you can separe them, on your display.template.php find

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>'


and replace with:

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>&nbsp;'


where &nbsp;  is the space, you can replace that with whatever you want for example | or - or just a space 


@CerebralJam   is your issue resolved of do you require more assistance?

CerebralJam

Hi there, I haven't resolved it yet, mainly because it's 2.30am where I am so not in thinking mode.  If you are able to identify what went wrong - John kindly gave me a revamped Display.template.php which did bring up the images, but as you can see the CSS is all out.  Or that's how it appears to me.  I'd be grateful for any help as I'm hesitant to fiddle with things I don't know about!

I attached the original Display.template.php earlier on, in case you should need it to refer to.  The theme is Anecdota20bp.

I will not be around much longer this evening but check in, in the morning sometime.  I am very grateful to all those who help in this community. 

billy2

Quote from: 130860 on August 13, 2010, 08:20:17 PM
yes, billy2  you can separe them, on your display.template.php find

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>'


and replace with:

$social_icons .= sprintf('<a href="' . $url . '" target="_blank"><img src="' . $settings['images_url'] . '/share/' . $site . '.gif" align="bottom" title="' . $txt['share_default_tooltip'] . '" alt="' . $txt['share_default_tooltip'] . '" /></a>&nbsp;'


where &nbsp;  is the space, you can replace that with whatever you want for example | or - or just a space 

Sweet!
Thanks 130860
Billy

CerebralJam

#589
Quote from: 130860 on August 13, 2010, 08:20:17 PM


@CerebralJam   is your issue resolved of do you require more assistance?

Would like more assistance please...

the images I provide above don't show you close enough details and so I have attached files:

I still think it's a problem with the CSS class being pointed to but not sure what to do... and I apologize in advance for my non knowledge... as you will see with the original 'right' display - I get a white area at the bottom but also I get a table like edge round all the posts/areas... this disappears when the edits are in place on the display.template.php.   As does the background colour white.  It is fine before those alterations are put in place.

I tried editing "plainbox" to "tborder" but that doesn't change it. 

EDIT:  Scrub that edit - it turned up 50 mins later LOL... still got the display problems though :)

faithfulness

#590
I installed the mod but I don't see any buttons.  So I uploaded the english utf-8 file and it still doesn't give my site any share buttons at all.  What did I do wrong?

edit:  I do use the core theme, is that the problem?

mirahalo

ok, sorry for the wait, on weekends I have zero free time.

@CerebralJam please use the file attached.


@faithfulness   please attach your display.template.php of the core theme.   also, make sure you upload the share folder to Themes/core/images

faithfulness

#592
here is my display.template file but what exactly do you mean by upload to /images file... is that from in my forum admin?

edit:

Quotealso, make sure you upload the share folder to Themes/core/images

ok now do you mean the mod's zip file or is there something else I need to upload into my images file?

CerebralJam

#593
Quote from: 130860 on August 15, 2010, 07:33:01 PM
ok, sorry for the wait, on weekends I have zero free time.

@CerebralJam please use the file attached.


@faithfulness   please attach your display.template.php of the core theme.   also, make sure you upload the share folder to Themes/core/images

Hello there.... did not see this post - no notification was received.  And sorry, but your attached file seems not to be here?  Thank you very much for taking time out to help.   I look forward to picking it up as soon as you are able to repost it  :)

vvv EDIT:  Thank you, I just tried slipping it in place and I'm afraid I got the same result :(   Do you need to see anything else?  It just doesn't seem to be picking up the tborder and the white background ... let me know what else to check.  I do appreciate your time.  Have to go to bed now!  Will check back again soon. 

mirahalo

LOL   I miss the attach!!  :P

ok,  CerebralJam  use this one


@faithfulness   yes, on the zip you downloaded, unzip it and there will be a share folder, upload that folder to your themes images folder, for ezample:  /Themes/core/images/    I got your file, let me make the edits and head back to you.

faithfulness

I know that you're working on my display file THANK YOU!!! but I cannot upload my share file as a whole do I just upload each img file by itself (ex. theme/core/images/ask.gif) or do I make a folder called share inside my images file (ex. theme/core/images/share/ask.gif)  ??

Thanks for everything..... really!  :)

mirahalo

yes, you do have to create a share folder on your core/images  folder, like this:


theme/core/images/share/ask.gif

crustybum

Quote from: crustybum on August 13, 2010, 05:26:34 PM
As anyone else had a problem with posts being aligned all over the place with this mod? using the curve theme...

How can i get this working properly?

mirahalo

@crustybum   do you use the latest version of the mod?   any errors on install?  a screen shot maybe?


@faithfulness   use this file ;)

crustybum

Just the default on the latest 2.0...

no errors on install

Its about the third post down

Cheers

http://www.simplemachines.org/community/index.php?topic=395592.msg2744110#msg2744110

Advertisement: