The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 03, 2010, 05:35:49 AM

Login with username, password and session length


Pages: 1 [2]
  Print  
Author Topic: Social Bookmark Icons PHP class - any site, any page  (Read 2930 times)
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #15 on: October 22, 2007, 10:25:55 AM »

Don't understand the issue with styles... since you are all javascript, you'll need to add a little something to the page, but it's pretty trivial..

* Create a string version of the styles you want to use - have that be a variable in your dynamic JS.
* In the JS code, append a new DIV to the HTML page ie., get the body tag, append a DIV node to it and hang on to the reference.
* do a <newDivNode>.innerHTML = <the String Representation of your style sheet> - poof, your styles are available.
* Create the HTML for your buttons, calling out the styles that you just added.

I think that's about it if I'm reading you right...
Logged

It's the things you learn after you know it all that really count.
-John Wooden
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5326


DAMN YOU!!!!!!!


View Profile
« Reply #16 on: October 22, 2007, 12:44:54 PM »

thanks for the encouragement Dink. i took your advice and installed wp-cache.
I actually am on a HUGE hosting platform, with the ability to scale almost infinitely, plus I have some pull with rackspace if it went viral and needed a big premium pipe in under an hour. I am going to install a very lightweight template onto wordpress as well to reduce excess bandwidth. plus im sure i could bribe perk Smiley

Perk
im gonna call.
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #17 on: October 22, 2007, 01:21:35 PM »

Okeydokey.
Logged

It's the things you learn after you know it all that really count.
-John Wooden
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5326


DAMN YOU!!!!!!!


View Profile
« Reply #18 on: October 23, 2007, 07:47:32 PM »

thanks to Perks advice, i have fixed a bunch of issues that popped up after testing it in assorted other places. its all good now, baring some CSS issues which may crop up but I will now be able to defeat those issues.

Also, i had an epiphany...
I am going to add something to this thing that might actually push it over the edge, making it rock.
more to come...

now where did i leave those extra 12 hours a day?
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #19 on: October 23, 2007, 08:18:59 PM »

thanks to Perks advice, i have fixed a bunch of issues that popped up after testing it in assorted other places. its all good now, baring some CSS issues which may crop up but I will now be able to defeat those issues.

You r 2 kind... I was just rambling when you found that missing semi-colon and there was much rejoicing ROFLMAO ROFLMAO ROFLMAO
Logged

It's the things you learn after you know it all that really count.
-John Wooden
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5326


DAMN YOU!!!!!!!


View Profile
« Reply #20 on: October 23, 2007, 10:07:09 PM »

nah, i meant the suggestions.

removing the A href and instead doing an onclick on the image, reduced the code by a few bytes.

I als changed how the page is called to be adsense-like. like you suggested. it makes the call smaller as a result. plus it is more idiot proof now. basically I have the client JS call a translator page, which then assembles everything to the way it is needed for the final page call. basically you end up with 2 calls, but ease of use increases.
basically, you call a JS, which writes a newly formatted JS call to your page, which again calls back to my server. This is to handle the passing of parameters into the querystring, so PHP can get its hands on it.
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 8744



View Profile
« Reply #21 on: October 23, 2007, 10:10:33 PM »

sounds spot on man... nice work. I love the concept and look. Twas a great idea.
Logged

It's the things you learn after you know it all that really count.
-John Wooden
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5326


DAMN YOU!!!!!!!


View Profile
« Reply #22 on: October 23, 2007, 10:50:23 PM »

ah just you wait and see what I have up my sleeve...
Logged
matthewk
n00b
*
Offline Offline

Posts: 1


View Profile
« Reply #23 on: October 31, 2007, 06:40:46 PM »

Just registered.
Thanks for this perk I'm using it now.

Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!