Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-29-2006, 12:13 AM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Any wordpress experts around tonight?

I'd like to add onMouseOver string to links in the sidebar.

The only logical way for me to be able to do this is if I were adding links manually, directly in the sidebar.php template instead of using the wp-admin/link-add.php

Is there a way to configure wp so that i am able to add onMouseOver to links added via wp-admin/link-add.php
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:18 AM   #2
Hardlinks
Confirmed User
 
Join Date: May 2005
Location: Great White North
Posts: 1,333
It will most likely be in the css spacedog
Hardlinks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:24 AM   #3
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by Hardlinks
It will most likely be in the css spacedog
No, can't do that with CSS.

You need to do a little code hack. I just dug into the code really quick for you, here's what ya need to do:

Go into wp-includes and find link.php open it up and find this line:

PHP Code:
$output .= '<a href="' $the_link '"' $rel $title $target'>'
That's where you need to add your onmouse over. It'll effect all links that you add.
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:26 AM   #4
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
TexasDream: You might wanna go in and edit the php code tag colors bud
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:26 AM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by Hardlinks
It will most likely be in the css spacedog
That's what I originally started messing with & it's just not happening.

the link-add.php takes the link info added via the admin & rewrites it in html for normal html linking structure.

In the .css I can add attributes for links, however, the onMouseOver needs to be after the closing link url ' & before the link closing >, & in the css I can't figure a way to insert a code inside a closed tag. Sure it would be very easy if I wanted to add a code that was tagged alone to appear after the link, but that's not the case here as the onMouseOver code goes inside the same tags as the link url. Even in the admin, one can add html before or after a link, but nothing inside the linking tag itself?

I hope that made sense, I wasn't sure how to word all this.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:27 AM   #6
3M TA3
Confirmed User
 
Join Date: Aug 2005
Location: So Cal
Posts: 2,972
Quote:
Originally Posted by BoyAlley
No, can't do that with CSS.

You need to do a little code hack. I just dug into the code really quick for you, here's what ya need to do:

Go into wp-includes and find link.php open it up and find this line:

PHP Code:
$output .= '<a href="' $the_link '"' $rel $title $target'>'
That's where you need to add your onmouse over. It'll effect all links that you add.

what line number is it? what version?
__________________

Dedicated and colo hosting: ICQ 291313057

"A problem cannot be solved from the same consciousness that created it. We must learn to see the world anew." - Albert Einstein
3M TA3 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:29 AM   #7
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by 3M TA3
what line number is it? what version?
It's the only instance so just search for a subsection of it and you'll find it.
I'm on version 2.
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:31 AM   #8
3M TA3
Confirmed User
 
Join Date: Aug 2005
Location: So Cal
Posts: 2,972
Quote:
Originally Posted by BoyAlley
It's the only instance so just search for a subsection of it and you'll find it.
I'm on version 2.
cool, thanks...


you have much experience with php?
__________________

Dedicated and colo hosting: ICQ 291313057

"A problem cannot be solved from the same consciousness that created it. We must learn to see the world anew." - Albert Einstein
3M TA3 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:32 AM   #9
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by 3M TA3
you have much experience with php?
Yeah, actually, I'm a full fledged nerd to be honest with you.

Before I got into porn I owned a company that did Information Warfare research for the Pentagon....
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:39 AM   #10
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by BoyAlley
No, can't do that with CSS.

You need to do a little code hack. I just dug into the code really quick for you, here's what ya need to do:

Go into wp-includes and find link.php open it up and find this line:

PHP Code:
$output .= '<a href="' $the_link '"' $rel $title $target'>'
That's where you need to add your onmouse over. It'll effect all links that you add.
hmm... ok, but this would give each link the same onmouse over, & I wanted each link to have it's own. but, you did inspire an idea....
I'm going to try something & come back & let you know if it works.

what if I take the
PHP Code:
$output .= '<a href="' $the_link '"' $rel $title $target'>'
& delete the closing " so in the wp-admin/link-add.php, when I add a url in the uri field, after the url, I add the onmouseover code with a " at the beginning, so this will replace the deleted " & the php output will add the required closing "> I'm going to try & see if this works
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:42 AM   #11
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by spacedog
hmm... ok, but this would give each link the same onmouse over, & I wanted each link to have it's own.
Well you left that part out now didn't you? Hahaha...

If your idea doesn't work let me know.....
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:46 AM   #12
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by spacedog
what if I take the
PHP Code:
$output .= '<a href="' $the_link '"' $rel $title $target'>'
& delete the closing " so in the wp-admin/link-add.php, when I add a url in the uri field, after the url, I add the onmouseover code with a " at the beginning, so this will replace the deleted " & the php output will add the required closing "> I'm going to try & see if this works
I think you're on the right track, I'm not sure if that variable gets parsed out anywhere along the way though or not as I didn't look. I would THINK it would have a routine somewhere that would parse out chars. like that to prevent things from falling apart, but I dunno for sure.

Let me know.

Really that's an afro-engineered solution, it'd probably be better to make an actual plugin that allows you to set per-link variables in the control pannel, but that would take some effort....

Last edited by BoyAlley; 01-29-2006 at 12:48 AM..
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:49 AM   #13
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by BoyAlley
Well you left that part out now didn't you? Hahaha...

If your idea doesn't work let me know.....
I'm editing the file now, but I got confused... with this '"' , after link .
which of these indicates the closing for link? is the first ' , the " in the middle, or the closing ' ?
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:52 AM   #14
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by spacedog
I'm editing the file now, but I got confused... with this '"' , after link .
which of these indicates the closing for link? is the first ' , the " in the middle, or the closing ' ?
Give me a couple of minutes i'll test some things out for you and report back. Be easier than having you freddy finger fuck things
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:53 AM   #15
Veterans Day
Confirmed User
 
Join Date: Jul 2003
Location: The Windy City
Posts: 8,403
Quote:
Originally Posted by BoyAlley
freddy finger fuck things
Veterans Day is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:56 AM   #16
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
oh well. Didnt work, my theory made all the links have %20rel=/ at the end of them.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 12:56 AM   #17
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by BoyAlley
Give me a couple of minutes i'll test some things out for you and report back. Be easier than having you freddy finger fuck things
lol, freddy finger fuck, lol...

I tested on a blog that's not active....
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 01:08 AM   #18
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Yeah shit gets parsed out every which way, so that's definately not going to be a solution without having to touch several files, which would make upgrading a bitch.

Let me look into a better solution for ya, brb.
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 01:14 AM   #19
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
I've been under the assumption you're using the onmouseover to trigger some javascript function and not just change the color or some shit like that which CAN be done with css right?
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 01:30 AM   #20
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Ok, I went ahead and hacked the files necessary for you and it's all working. Hit me up on ICQ I'll send em to ya.
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-29-2006, 02:47 AM   #21
Scotty.T
Confirmed User
 
Join Date: Nov 2004
Location: Scotland
Posts: 1,062
Quote:
Originally Posted by BoyAlley
Ok, I went ahead and hacked the files necessary for you and it's all working. Hit me up on ICQ I'll send em to ya.
That's very generous of you. You don't fancy extending this offer for someone else that's been looking for the same thing and found this thread do you?
__________________
.
Scotty.T is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.