Add ORKUT button
i'm working on a new version, but until then, for those how need it, her it is
Download de orkut image:
orkut
then add this to your forum:
Copy: orkut_share.gif To: styles/prosilver/imageset/en/orkut_share.gif
Copy: orkut_share.gif To: styles/subsilver2/imageset/en/orkut_share.gif
edit:
viewtopic.php
find:
Code: Select all
'U_TWITTER' => 'http://twitter.com/home?status=' . $topic_data['topic_title'] . ' (from @YOUR_FORUM_TWITTER_ID) '. generate_board_url() . '/viewtopic.php?t=' . $topic_data['topic_id'],
Add after:
Code: Select all
'U_ORKUT' => 'http://promote.orkut.com/preview?nt=orkut.com&tt=' . $topic_data['topic_title'] . '&du='. generate_board_url() . '/viewtopic.php?t='. $topic_data['topic_id'] . '&tn='. generate_board_url() . '/viewtopic.php?t='. $topic_data['topic_id'],
find:
Code: Select all
'S_POST_TWITTER' => ($row['post_id'] == $topic_data['topic_first_post_id']) ? true : false,
Add after:
Code: Select all
'S_POST_ORKUT' => ($row['post_id'] == $topic_data['topic_first_post_id']) ? true : false,
edit:
styles/prosilver/template/viewtopic_body.html
find:
Code: Select all
<!-- IF postrow.S_POST_TWITTER --><li class="twitter-icon"><a href="{postrow.U_TWITTER}" title="{L_SHARE_ON_TWITTER}"><span>{L_SHARE_ON_TWITTER}</span></a></li><!-- ENDIF -->
Add after:
Code: Select all
<!-- IF postrow.S_POST_ORKUT --><li class="orkut-icon"><a href="{postrow.U_ORKUT}" target="_blank" title="{L_SHARE_ON_ORKUT}"><span>{L_SHARE_ON_ORKUT}</span></a></li><!-- ENDIF -->
edit:
styles/subsilver2/template/viewtopic_body.html
find:
Code: Select all
<!-- IF postrow.S_POST_TWITTER --><a href="{postrow.U_TWITTER}" target="_blank"><img src="{T_IMAGESET_LANG_PATH}/twitter_share.png" alt="{L_SHARE_ON_TWITTER}" title="{L_SHARE_ON_TWITTER}"/></a><!-- ENDIF -->
Add after:
Code: Select all
<!-- IF postrow.S_POST_ORKUT --><a href="{postrow.U_ORKUT}" target="_blank"><img src="{T_IMAGESET_LANG_PATH}/orkut_share.gif" alt="{L_SHARE_ON_ORKUT}" title="{L_SHARE_ON_ORKUT}"/></a><!-- ENDIF -->
edit:
language/en/common.php
find:
Code: Select all
'SHARE_ON_TWITTER' => 'Share on Twitter',
Add after:
Code: Select all
'SHARE_ON_ORKUT' => 'Share on Orkut',
edit:
styles/prosilver/theme/buttons.css
find:
Code: Select all
.twitter-icon, .twitter-icon a { background: none top left no-repeat; }
Add after:
Code: Select all
.orkut-icon, .orkut-icon a { background: none top left no-repeat; }
find:
Code: Select all
ul.profile-icons li.twitter-icon { width: 20px; height: 20px; }
Add after:
Code: Select all
ul.profile-icons li.orkut-icon { width: 20px; height: 20px; }
edit:
styles/prosilver/theme/colours.css
find:
Code: Select all
.twitter-icon, .twitter-icon a { background-image: url("{T_IMAGESET_LANG_PATH}/twitter_share.png"); }
Add after:
Code: Select all
.orkut-icon, .orkut-icon a { background-image: url("{T_IMAGESET_LANG_PATH}/orkut_share.gif"); }
Now, Purge the cache, Purge the templates, Themes and Images Galery from Prosilver and Subsilver2 and Enjoy the new button