https://www.icyphoenix.com/viewtopic.php?f=28&t=7757 ----------------------------------- batman Fri 01 Apr, 2011 18:02 Social Share Buttons? ----------------------------------- Hya folks I'm looking for some advice on how to ad a different kind of setup for the share buttons. I think the one that comes with IP is too much so would like to streamline it a little. Below is the kind of Idea I'm looking for, any ideas on how to go about this or is it possible to ad the below idea direct to IP? Maybe added to the current area were the print page icon is as in this pick? [img]http://www.icyphoenix.com/files/images/9166/01_04_2011_17_06_32.png[/img] [img]http://www.icyphoenix.com/files/images/9166/01_04_2011_16_53_16.png[/img] http://www.addthis.com/ ----------------------------------- spydie Fri 01 Apr, 2011 19:30 Re: Social Share Buttons? ----------------------------------- you might do something like a sliding div there easy job with some javascript ----------------------------------- KugeLSichA Fri 01 Apr, 2011 19:38 Re: Social Share Buttons? ----------------------------------- Hi batman... try to put your code from addthis.com in the file templates/default/breadcrumbs_vt.tpl before you may need to edit the code to work with the vietopic urls... i think {U_VIEW_TOPIC_BASE} is the var for this... ----------------------------------- batman Fri 01 Apr, 2011 19:50 Re: Social Share Buttons? ----------------------------------- Hya spydie, to be honest Im not that bothered about having a dropdown and only really want the facebook and twitter buttons, possibly a couple of others? Here is a small bit of javascript, how would I insert this into the forum topic? I obviously don't need the email part so would get rid of that bit. Or is there a piece of code I could use via my own files? I'm not a coder so all looks rocket science to me lol [code linenumbers=false]
Share
[/code] [b]EDIT:[/b] Thanks KugeLSichA ill try that 8) Im a bit stuck on this bit, not sure what I need to do now? [quote]you may need to edit the code to work with the vietopic urls... i think {U_VIEW_TOPIC_BASE} is the var for this...[/quote] This is with the code added. [code linenumbers=false]{IMG_TBL}

{L_HOME}{NAV_SEP}{L_INDEX}{NAV_CAT_DESC}

{CURRENT_TIME} • {S_TIMEZONE}
Share |
{L_VIEW_PREVIOUS_TOPIC} {L_RECENT} {S_WATCH_TOPIC_IMG} {S_MARK_AR_IMG} {S_KB_MODE_IMG} {L_DOWNLOAD_TOPIC} {L_BOOKMARK_ACTION} {L_TOPIC_VIEWED} {L_PRINT} {L_TELL} {L_VIEW_NEXT_TOPIC} {L_RECENT} •  {L_PRINT} •  {L_TELL} •  {L_BOOKMARK_ACTION} •  {L_TOPIC_VIEWED} •  {S_WATCH_TOPIC} •  {U_MARK_ALWAYS_READ} •  {L_VIEW_PREVIOUS_TOPIC} •  {L_VIEW_NEXT_TOPIC}
{IMG_TBR}[/code] ----------------------------------- KugeLSichA Fri 01 Apr, 2011 20:21 Re: Social Share Buttons? ----------------------------------- ok it seems you dont need to add the var for the topic url... i tested it quick, and it seems you only need to add the code from addthis.com.... maybe you can try it a bit... if the url is send correctly... but it should... ----------------------------------- batman Fri 01 Apr, 2011 21:13 Re: Social Share Buttons? ----------------------------------- Hya KugeLSichA nothing is showing up for me, I inserted the code saved and then cleared cache but still doesn't show up? ----------------------------------- KugeLSichA Fri 01 Apr, 2011 21:18 Re: Social Share Buttons? ----------------------------------- depending on the code you posted earlier... it works for me... do you have other styles installed? check if there is also a breadcrumbs_vt.TPL you need to edit ----------------------------------- batman Fri 01 Apr, 2011 21:56 Re: Social Share Buttons? ----------------------------------- You may have used the first code I posted? I used this from post #1 Im using prosilver_ip and latest IP [code linenumbers=false]
Share |
[/code] [b]EDIT:[/b] Sorted it now, has the breadcrumbs_vt.tpl within prosilver_ip Just need to try and get it on the right line as the other icons now, 8) [img]http://www.icyphoenix.com/files/images/9166/01_04_2011_21_15_34.png[/img] [b]EDIT:[/b] Sorted just removed the and included an extra
before to give a bit more space. [code linenumbers=false]
Share | [/code] [img]http://www.icyphoenix.com/files/images/9166/01_04_2011_21_29_50.png[/img] Thanks for your help on this, much appreciated, I'm sure you agree that its a nicer option 8) ----------------------------------- KugeLSichA Fri 01 Apr, 2011 22:35 Re: Social Share Buttons? ----------------------------------- i´m glad you solved this... marked as solved ----------------------------------- batman Fri 01 Apr, 2011 23:32 Re: Social Share Buttons? ----------------------------------- Been having a play and looks good in the menu also, I used the nav menu ad feature to place it there, although Id have to get rid of the sponsor bit some how :? Probably better to just create a new block. [img]http://www.icyphoenix.com/files/images/9166/01_04_2011_22_28_24.png[/img] [img]http://www.icyphoenix.com/files/images/9166/01_04_2011_22_29_07.png[/img] ----------------------------------- batman Mon 04 Apr, 2011 03:55 Re: Social Share Buttons? ----------------------------------- I decided to remove this from the actual topic view as only registered users are able to read the threads. I now have it on both index and forum above all left blocks. The only problem with it is its set to align left, probably on the server side, is there anyway of adding some script to it to override and set to align center? [img]http://www.icyphoenix.com/files/images/9166/04_04_2011_02_48_01.png[/img] ----------------------------------- nos Tue 05 Apr, 2011 14:03 Re: Social Share Buttons? ----------------------------------- [quote user="batman" post="52215"][img]http://www.icyphoenix.com/files/images/9166/01_04_2011_21_29_50.png[/img][/quote] What code did you use to get you out there and where you have inserted? You can put the entire code file breadcrumbs_vt.tpl? :) I have prosilver_ip ;) ----------------------------------- batman Tue 05 Apr, 2011 18:05 Re: Social Share Buttons? ----------------------------------- [quote user="nos" post="52293"][quote user="batman" post="52215"][img]http://www.icyphoenix.com/files/images/9166/01_04_2011_21_29_50.png[/img][/quote] What code did you use to get you out there and where you have inserted? You can put the entire code file breadcrumbs_vt.tpl? :) I have prosilver_ip ;)[/quote] Hya nos. templates/prosilver_ip/breadcrumbs_vt.tpl insert code before [highlight=#FFFFAA][/highlight] on line #31 [code linenumbers=false]
Share | [/code] ----------------------------------- odelot Tue 05 Apr, 2011 18:43 Re: Social Share Buttons? ----------------------------------- Working in my web. Thanks ----------------------------------- batman Tue 05 Apr, 2011 21:37 Re: Social Share Buttons? ----------------------------------- Done some more playing and got it perfect now :) [img]http://www.icyphoenix.com/files/images/9166/05_04_2011_18_25_00.png[/img] ----------------------------------- nos Tue 05 Apr, 2011 22:13 Re: Social Share Buttons? ----------------------------------- [quote user="batman" post="52304"][quote user="nos" post="52293"][quote user="batman" post="52215"][img]http://www.icyphoenix.com/files/images/9166/01_04_2011_21_29_50.png[/img][/quote] What code did you use to get you out there and where you have inserted? You can put the entire code file breadcrumbs_vt.tpl? :) I have prosilver_ip ;)[/quote] Hya nos. templates/prosilver_ip/breadcrumbs_vt.tpl insert code before [highlight=#FFFFAA][/highlight] on line #31 [code linenumbers=false]
Share | [/code][/quote] Hi!, I have this in my templates/prosilver_ip/breadcrumbs_vt.tpl: [spoiler]
[/spoiler] The Code was insert in line #31 or before ??? :) I don't know... ----------------------------------- batman Tue 05 Apr, 2011 23:05 Re: Social Share Buttons? ----------------------------------- [highlight=#FFFFAA][/highlight] [code linenumbers=false] {L_VIEW_PREVIOUS_TOPIC} {L_RECENT} {S_WATCH_TOPIC_IMG} {S_MARK_AR_IMG} {S_KB_MODE_IMG} {L_DOWNLOAD_TOPIC} {L_BOOKMARK_ACTION} {L_TOPIC_VIEWED} {L_PRINT} {L_TELL} {L_VIEW_NEXT_TOPIC} {L_PRINT} •  {L_TELL} •  {L_BOOKMARK_ACTION} •  {L_TOPIC_VIEWED} •  {S_WATCH_TOPIC} •  {U_MARK_ALWAYS_READ} •  {L_VIEW_PREVIOUS_TOPIC} •  {L_VIEW_NEXT_TOPIC}
[/code] ----------------------------------- nos Tue 05 Apr, 2011 23:17 Re: [SOLVED] Social Share Buttons? ----------------------------------- Now, I add the code in this correct line: [spoiler]
[/spoiler] And this is the result...: [IMG]http://i.imgur.com/ha8VF.png[/IMG] :( :( :( ----------------------------------- batman Wed 06 Apr, 2011 03:44 Re: Social Share Buttons? ----------------------------------- Hya nos, remove the 2 [highlight=#FFFFAA]
[/highlight] you will find that the right alignment tags wont work as its set to align left on the server side. [code linenumbers=false]
Share | [highlight=#FFFFAA]
[/highlight] [/code] ----------------------------------- Joshua203 Wed 06 Apr, 2011 10:18 Re: Social Share Buttons? ----------------------------------- Batman I have now added codetags to two of your posts already ....please use code tags mate!!! ----------------------------------- nos Wed 06 Apr, 2011 15:41 Re: [SOLVED] Social Share Buttons? ----------------------------------- More thanks! :D Now found! :) ----------------------------------- Informpro Wed 06 Apr, 2011 20:36 Re: [SOLVED] Social Share Buttons? ----------------------------------- Can I add this in my fork :) ? ----------------------------------- spydie Wed 06 Apr, 2011 20:54 Re: [SOLVED] Social Share Buttons? ----------------------------------- hm . I´m just wondering . Strange. If you open some div tags, they must be closed somewhere, if not, you gonna break the template. Well, thats what Html knowlage tells me ----------------------------------- Joshua203 Wed 06 Apr, 2011 21:00 Re: Social Share Buttons? ----------------------------------- [code linenumbers=false][highlight=#FFFFAA] [/code] :wink: ----------------------------------- spydie Wed 06 Apr, 2011 21:30 Re: Social Share Buttons? ----------------------------------- [quote user="batman" post="52316"]Hya nos, remove the 2 [highlight=#FFFFAA] [/highlight] you will find that the right alignment tags wont work as its set to align left on the server side. [/quote] ????????? ----------------------------------- Joshua203 Wed 06 Apr, 2011 21:34 Re: Social Share Buttons? ----------------------------------- stupid of me I did not read that... quite impossible to read the highlight btw when set to black pearl (looks like censored or something hidden) ----------------------------------- batman Wed 06 Apr, 2011 21:42 Re: Social Share Buttons? ----------------------------------- [quote user="Joshua203" post="52344"]stupid of me I did not read that... quite impossible to read the highlight btw when set to black pearl (looks like censored or something hidden)[/quote] That's one of the reasons I never have black templates, can be a bit hard to read. Its my bad originally though as I should have done a screen shot and highlighted it that way :wink: ----------------------------------- Joshua203 Wed 06 Apr, 2011 22:03 Re: Social Share Buttons? ----------------------------------- a simple code tag would have done the trick :mryellow: I hope you've noticed the edits and my request to use them :wink: ----------------------------------- batman Thu 07 Apr, 2011 01:15 Re: Social Share Buttons? ----------------------------------- [quote user="Joshua203" post="52347"]a simple code tag would have done the trick :mryellow: I hope you've noticed the edits and my request to use them :wink:[/quote] I generally do use them, nos appeared to not understand what I was saying , so I made it as easy as possible to understand, apologies for being human and trying to help someone :roll: :wink: ----------------------------------- nothere Sun 17 Apr, 2011 20:40 Re: Social Share Buttons? ----------------------------------- Hi I just wanted to say thanks for the code. I'm using the share buttons within the forum; works like a charm. Thank you! ----------------------------------- Mighty Gorgon Sun 17 Apr, 2011 23:55 Re: [SOLVED] Social Share Buttons? ----------------------------------- Very nice addons and integrations. Next Icy Phoenix version has a new "Share" feature... I may enable it now for News And Announcements, just as a Show Off. ----------------------------------- nothere Mon 18 Apr, 2011 23:49 Re: Social Share Buttons? ----------------------------------- That's excellent news, MG! And look forward to the next version. Thank for that bit of information, you've made my day! :)