By andre75 on
I would like to replace many text-links such as "read-more", "post-comments", "reply" .... with some buttons.
Can this be done in the theme? Where would I start?
Andre
I would like to replace many text-links such as "read-more", "post-comments", "reply" .... with some buttons.
Can this be done in the theme? Where would I start?
Andre
Comments
You can do this by editing
You can do this by editing your node.tpl.php template file. You can then theme your node however you want and make your images point to where the text links used to point.
Not really
Tha part that does the links in my node-forum.tpl.php looks like this:
So I guess I have to take apart the array $links. But since I am not a php-guy I was hoping someone had done this already.
Andre
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com
If you look at the URL for
If you look at the URL for one of the links like say "Add New Comment" you will see that the path is: /comment/reply/117 or whatever the node ID is. You can then simply have your image be like:
Hopefully that can get you started. You don't even need to use the $links variable.
Hm
Yeah, I get it now. Thanks for the tip. I think this is starting to get somewhere now.
I can defenitely see something going on.
The actual links are something like this:
EDIT: Nevermind, I looked at comment.module:
For comments:
For the first post:
Just need to seperate them apart with an if or something. Wow, this is easier than I though.
Thanks a whole bunch.
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com
LOL
I just learned php in 5 minutes, or did I?
Anyways, this is what a php illiterate came up with:
You may laugh at this now, but it works !
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com
Good job man, that's all
Good job man, that's all there is to it :).
Yeah
Just figured out how to decide wether or not to show the edit and delete buttons ;-)
I had asked about buttons before and never got an answer.
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com
footer placement
i have a problem locating the footer div , i need it not to be nested in the conten div
i have looked at the page.tpl.php
this is what i see online from my source code
please not where the footer div is ,
take a look at http://pelosa.project-8.nl
how do i get the footer div out of the content div ????
Wrong page.tpl.php file?
First of all, best to post this in a new thread with a proper title; this will allow more people to eyeball your post. The comments in page.tpl.php and the page source do not seem to match; did you select the right page.tpl.php?
What version of Drupal do you use? What theme?
-- // --
Om te beginnen kun je dit het beste in een nieuw draadje met een passende titel posten; de kans is dan groter dat iemand reageert.
Het valt me op dat de commentaren in page.tpl.php (
) en de bron van de pagina ( !-- begin content --> ) niet overeenkomen. Ik vraag me af of je wel de juiste page.tpl.php te pakken hebt. Welke drupal versie & welk thema gebruik je?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
system drupal
drupal 4.6 wordt gebruikt,
ik heb op dit moment 2 page.tpl in de map structuur heb hun beide dezelfe gemaakt waarbij de footer onderaan valt
de thema die ik gebruik is cameleon en heb heb het aan gepast.
je kan kijken op http://pelosa.project-8.nl
zal ik dit probleem dan toevoegen aan een nieuwe thread ???
New thread
New thead at http://drupal.org/node/57566
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
My poor thread
LOL. My poor little thread got kidnapped :-(.
I was actually going to have more questions here.
Theming of the forums is going well with the above mentioned approach, but I guess I will restart, since I have two many if clauses.
First off, one needs to find out if the user is logged in and then decide for each button wether to display it or not (e.g. edit button). And then if its the admin itself change comment/edit to admin/comment/edit.
This is a lot of work and the thing becomes bloated. I found the section where $links is created in comment.module. I guess I can simply override those. Lets see.
Andre
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com
andre, i am also trying to
andre,
i am also trying to get a respectable forum out of the drupal forum module. one thing i noticed that yourself and others have been able to do is make the initial post look the same as the replies. and instead of it having a link to "add new comment" it has a link to "reply" I'm having trouble finding information on how to change this. i was hoping that since you have achieved this, you might be able to point me in the right direction.
I just had a breakthrough
I just had a breakthrough, check it out:
http://www.opentravelinfo.com/node/342
I actually did something different. I replaced everything with graphical buttons. Until 5 minutes ago I did have "add new comment" and "reply" on my forums, so I am wondering if you are psychic or something since you posted before I had it online :-)
I replaced all links with buttons. No more ugly text links for me. I have just one button for "add new comment" and for "reply" so the difference between the first and all subsequent posts is transparent.
I still need to check a bunch of things out. I will post my solution in the handbook and the link here for you when I am done.
Next big thing on the forum is to make the rest of it look good.
Andre
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com
haha, maybe i just missed
haha, maybe i just missed the "add new comment" or it wasnt there because i wasnt logged in? who knows. but i'm glad you got it working now. I think that you will be helping out alot of people by posting a good how-to in the handbook for this. Thanks for the help. btw, your forum is looking good with those buttons.
Thanks
I will take care of it next week. I had the most horrific weekend ever. I fought for 48 hours for the life of my beloved cat Tigger who almost died. He still isn't out of the woods. He is pumped up on steroids, 2 different Antibiotics and potassium now. I am very exhausted now, but I will post next week, promise.
Andre
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com
Hope you can make it back soon...
Andre hope you can make it back soon...
Tech. articles with a WAMP+IIS+Drupal focus
Take a break: Guide to France
Been back
Been back for a while now. I guess I just forgot this thread. Had to put my good buddy down. That was a tough decision.
I got my forum styled very nicely now. I am pretty happy with the drupal forum. Now I am having some trouble with Site5 again, since opentravelinfo runs very slow :-(
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com