The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tweet this script embed

3 posters

Go down

Tweet this script embed Empty Tweet this script embed

Post by dotDavid November 11th 2009, 12:37 pm

Hi,

Is it possible to place this:
Code:
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js">
</script>
onto each of my posts, in a phpbb3 forum?

Thanks.
dotDavid
dotDavid
Hyperactive

Male Posts : 2404
Reputation : 0
Language : English

https://help.forumotion.com/

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by ankillien November 11th 2009, 12:44 pm

Hello,

I don't see any possibility as there is no template editing.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by dotDavid November 11th 2009, 12:49 pm

Not even css? Could you some how align it with the rep buttons?
dotDavid
dotDavid
Hyperactive

Male Posts : 2404
Reputation : 0
Language : English

https://help.forumotion.com/

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by ankillien November 11th 2009, 12:53 pm

Lets me try some tricks for it.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by dotDavid November 11th 2009, 12:57 pm

OK, thanks, I'll wait patiently. Smile
dotDavid
dotDavid
Hyperactive

Male Posts : 2404
Reputation : 0
Language : English

https://help.forumotion.com/

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by ankillien November 11th 2009, 1:28 pm

Sorry, I can't find a way to do it.
Some advanced knowledge of JavaScript and DOM can do it.

Lets wait for Jalokim or Dion to reply Razz
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by dotDavid November 11th 2009, 1:40 pm

I will wait. Thanks for trying, ankillien. Smile

dotDavid
dotDavid
Hyperactive

Male Posts : 2404
Reputation : 0
Language : English

https://help.forumotion.com/

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by Guest November 11th 2009, 6:47 pm

First, get rid of (type="text/javascript") to conserve space. forumotion defines DOCTYPE as Transitional, so it is assumed that "text/javascript" is the MIME type in a script tag.

Create a rank that will be given to members with zero posts, and use the script as the rank name. Now add your script to the name of every other rank you've created.

Since every member will now have a rank, and the script is a part of every rank name, your script will be called as every post is loaded. Please report back, because I'm curious how much of a performance hit this will cause...

avatar
Guest
Guest


Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by Jalokim November 11th 2009, 8:44 pm

I don't know if that will show on each and every page... but smart trick dion.


I'd try to implement an even cheaper trick.
try posting this code without the junk addons, to your meta tags menu.


admin panel-> general-> search engines -> new meta tag -> javascript.

in the src window that will open paste the tweet code
http://tweetmeme.com/i/scripts/button.js


nevermind ... its not tweetboard, its some other tweet js... I'm a nut.

in this case dion might be right in making a fake rank.
Maybe you can add it via the advance profile too? mindfart?
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by dotDavid November 12th 2009, 7:02 am

Dion, so close.
I can get the script showing, but it doesn't function anymore.
dotDavid
dotDavid
Hyperactive

Male Posts : 2404
Reputation : 0
Language : English

https://help.forumotion.com/

Back to top Go down

Tweet this script embed Empty Re: Tweet this script embed

Post by Guest November 13th 2009, 12:27 am

The script is written as a bookmarklet function, so it can't be loaded more than once. I wouldn't normally do this, but since it was my mistake to not look at the script before recommending how to use it, I'm going to tell you how to make the script work for you.

You'll need to download the script, edit out the bookmarklet coding, and give the function a name (perhaps "twitmeme"). You can even add this function to any other script you're loading on your system. Now upload the script to an HTML page or other location, and load the new script from the site description. Now in your ranks, instead of the URL of the script, you would have something like:

Code:
<script>twitmeme();</script>
I know this works because I tried it on my phpBB3 test board. Since I don't do javascript design/coding/debugging for free, at this point you're on your own...
avatar
Guest
Guest


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum