|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: May 2005
Location: Great White North
Posts: 1,333
|
It will most likely be in the css spacedog
|
|
|
|
|
|
#3 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
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:
|
|
|
|
|
|
|
#4 |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
TexasDream: You might wanna go in and edit the php code tag colors bud
|
|
|
|
|
|
#5 | |
|
Yes that IS me. Bitch.
Industry Role:
Join Date: Nov 2001
Posts: 14,149
|
Quote:
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. |
|
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Aug 2005
Location: So Cal
Posts: 2,972
|
Quote:
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 |
|
|
|
|
|
|
#7 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
I'm on version 2. |
|
|
|
|
|
|
#8 | |
|
Confirmed User
Join Date: Aug 2005
Location: So Cal
Posts: 2,972
|
Quote:
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 |
|
|
|
|
|
|
#9 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
Before I got into porn I owned a company that did Information Warfare research for the Pentagon.... |
|
|
|
|
|
|
#10 | |
|
Yes that IS me. Bitch.
Industry Role:
Join Date: Nov 2001
Posts: 14,149
|
Quote:
I'm going to try something & come back & let you know if it works. what if I take the PHP Code:
|
|
|
|
|
|
|
#11 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
If your idea doesn't work let me know..... |
|
|
|
|
|
|
#12 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
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.... |
|
|
|
|
|
|
#13 | |
|
Yes that IS me. Bitch.
Industry Role:
Join Date: Nov 2001
Posts: 14,149
|
Quote:
which of these indicates the closing for link? is the first ' , the " in the middle, or the closing ' ? |
|
|
|
|
|
|
#14 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
|
|
|
|
|
|
|
#15 | |
|
Confirmed User
Join Date: Jul 2003
Location: The Windy City
Posts: 8,403
|
Quote:
![]()
__________________
Build a Massive Traffic Network, Hands FREE, Totally Automated |
|
|
|
|
|
|
#16 |
|
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.
|
|
|
|
|
|
#17 | |
|
Yes that IS me. Bitch.
Industry Role:
Join Date: Nov 2001
Posts: 14,149
|
Quote:
I tested on a blog that's not active.... |
|
|
|
|
|
|
#18 |
|
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. |
|
|
|
|
|
#19 |
|
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?
|
|
|
|
|
|
#20 |
|
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.
|
|
|
|
|
|
#21 | |
|
Confirmed User
Join Date: Nov 2004
Location: Scotland
Posts: 1,062
|
Quote:
__________________
. |
|
|
|
|