Welcome, Guest. Please login or register.
November 22, 2008, 12:24:53 PM

Login with username, password and session length
Search:     Advanced search
Please check out the Documentation available and use the advanced forum search, before posting in the forum - thanks.
Bitte lies zuerst die Dokumentation und benutze die Advanced Forensuche, bevor Du einen neuen Beitrag erstellst - danke.
Bekijk alstublieft eerst de Documentatie en gebruik de Advanced Forum Zoekfunctie, voor dat u een post maakt in het forum - Hartelijk dank.
68077 Posts in 10809 Topics by 6527 Members
Latest Member: borut
* Home Help Search Login Register
+  Website Baker Community Forum
|-+  English
| |-+  Archive
| | |-+  Bookmark module: How to add a gif or jpg to a link?
Pages: [1] 2 Go Down Print
Author Topic: Bookmark module: How to add a gif or jpg to a link?  (Read 21741 times)
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« on: October 13, 2005, 05:54:49 PM »


Hi,

Is it possible to have a gif or jpg image added in the bookmark module so that it visualize the whole links section. One of the site I'm creating needs not only the links displayed but also an image for quicker recognizion.

Thanks!
Logged

Opensource is my life,  osCommerce.nl.
Bennie_wijs
Semi-Master Baker
*****
Offline Offline

Posts: 219


I believe what I want to Believe.


WWW
« Reply #1 on: October 14, 2005, 01:54:39 PM »


Hi,

Is it possible to have a gif or jpg image added in the bookmark module so that it visualize the whole links section. One of the site I'm creating needs not only the links displayed but also an image for quicker recognizion.

Thanks!

There is no option for that, so if you want that, than it needs to be coded in to the module.
You can code it yourself if you wish.

I am willing to take a look at it for you, but then I need to know how you want to have it.

Logged

I believe what I want to Believe
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #2 on: October 14, 2005, 02:55:58 PM »


Hi,

Is it possible to have a gif or jpg image added in the bookmark module so that it visualize the whole links section. One of the site I'm creating needs not only the links displayed but also an image for quicker recognizion.

Thanks!

There is no option for that, so if you want that, than it needs to be coded in to the module.
You can code it yourself if you wish.

Haha, I'll guess I'll will take your offer you mention below  smiley

Quote
I am willing to take a look at it for you, but then I need to know how you want to have it.

What I actualy want is to place a jpg or gif file that can work as a link. If you just want the link without an image this can also be used. Sounds soo easy  afro

This is because than you can also use it as a sort of banner exchange  wink
Logged

Opensource is my life,  osCommerce.nl.
Woudloper
Guest
« Reply #3 on: October 14, 2005, 04:33:06 PM »

If you are extending the Bookmark module can I also file my request? I would like to add:

  • Description of a link
  • Possibility to modify the output of the link
    just as is possible for the guestbook, news, etc

Maybe you could also put these to the list when you are modifying the bookmark module.
Logged
Bennie_wijs
Semi-Master Baker
*****
Offline Offline

Posts: 219


I believe what I want to Believe.


WWW
« Reply #4 on: October 16, 2005, 02:32:32 PM »

Possibility to modify the output of the link

What do you mean ??
Me not understand, me confusted smiley
Logged

I believe what I want to Believe
Bennie_wijs
Semi-Master Baker
*****
Offline Offline

Posts: 219


I believe what I want to Believe.


WWW
« Reply #5 on: October 17, 2005, 10:48:58 PM »

Oke, first of all:
THIS IS A TEST VERSION.

But I hope that i2Paq and Woudloper can test if this is what they mean.

I have added a option in the settings page.
There you can set the directory where you link images are.

Added in the add /modify links page the option to select title or image.
I scan the given directory for images and give the list as a selector.
Also added a description option. This is set as a title for the link so that if you hover above it with
the mouse it will display the description.

To upgrade from 2.3 to 2.3.1:
Just unzip the file and place it in /wb/modules/bookmarks/
and then run http://wb/modules/bookmarks/upgrade_bookmarks.php

1 more time THIS IS STILL A TEST VERSION.
« Last Edit: October 24, 2005, 04:56:02 PM by Bennie_wijs » Logged

I believe what I want to Believe
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #6 on: October 18, 2005, 01:39:17 PM »


*an answer to my prayer?*


Whow, this is fast!

I will try tonight Bennie_wijs and will put the results here a.s.ap.
Logged

Opensource is my life,  osCommerce.nl.
Woudloper
Guest
« Reply #7 on: October 18, 2005, 08:49:15 PM »

What do you mean ??
Me not understand, me confusted smiley

I was meaning that you needed to implement something like:
  • Header
  • Bookmark loop
  • Footer

And that you will be able to create a template with some kind of codes for the different sections so we are able to modify how the bookmarks are being outputted by the frontend of the website. Thus that you have for example the following options for the 'bookmark loop': [BOOKMARKLINK], [BOOKMARKTITLE], [BOOKMARKDESCR], [BOOKMARKNEWWINDOW], etc. etc.

This way we would be able to create a layout that is suitable for the website we are working on. For example currently the bookmarks on one of my sites are displayed like this:

Code:
<dl>
 <dd><a href="#">The Bookmark Title</a></dd>
 <dt><a href="#">The Bookmark Description....</a></dt>
</dl>

Now a short comment to the new modification for the module. It looks nice, but I however would suggest to use the TEXT (TEXTAREA) field for the description, so you have more text. Furthermore see the comment above. I saw that you have implemented the header/footer, but didn't saw this come back (maybe I haven't tested it well).

Hopefully you can do something with this comment...
Logged
Bennie_wijs
Semi-Master Baker
*****
Offline Offline

Posts: 219


I believe what I want to Believe.


WWW
« Reply #8 on: October 18, 2005, 10:25:10 PM »

Hey Woudloper,

Now I understand what you mean. grin

To make it as you suggested I think that then its better to write a new module.
Because the code will be changed that muts you can better write it from scratch
I dont think that it will be very userfriendly for most people but I do see the need for it aswell.

At the moment I have to many other projects but if I find the time I will write a new module
something called like links or something.  rolleyes
If you have the time maybe you can write it??  wink

The present header and footer is more to write something before the links and after the links.
But the final version will use the header for the css style sheet aswell.

The desciption option I made 255 caracters long because I use it as link title.
I think that there is a limit to how long that can be.
also I see it as a short description, not a life story.

P.S.
This php coding is fun, maybe I must start really learning this language.
The 4 modules that I made/rewritten is the only php coding I ever did.  smiley
Logged

I believe what I want to Believe
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #9 on: October 19, 2005, 08:39:35 AM »

I'm sorry Bennie_Wijs,

Had no time to test it yesterday because I was kept bussy elswhere.
Will try it this evening.
Logged

Opensource is my life,  osCommerce.nl.
Bennie_wijs
Semi-Master Baker
*****
Offline Offline

Posts: 219


I believe what I want to Believe.


WWW
« Reply #10 on: October 19, 2005, 10:39:40 AM »

I'm sorry Bennie_Wijs,

Had no time to test it yesterday because I was kept bussy elswhere.
Will try it this evening.

No problem, I have the same problem sometimes  smiley
Logged

I believe what I want to Believe
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #11 on: October 21, 2005, 03:04:39 PM »

OK, my test enviremond is up and running with the OK from Ryan.

I'm planning on testing this Bookmark Module this weekend along with some other modules we speak off.
Not only will I be able to test the 2.5.2 stable version in any way we want but also the "new" 2.6.0.

Furthermore I'm planning the setting up of the Multilingual Website Baker.

You can follow my adventures on this at OpenSourceBakery, where we cook up lots of nice things  grin

As I already told Ryan, I'm cruising the Open Source Avenue in my Website Baker Van delevering tastefull stuff coming from the OpenSourceBakery.nl  afro
Logged

Opensource is my life,  osCommerce.nl.
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #12 on: October 21, 2005, 05:42:00 PM »

Almost final version

Just to be sure, this is a complete version and I can install it on a fresh WB 2.5.2 installation?
Logged

Opensource is my life,  osCommerce.nl.
Bennie_wijs
Semi-Master Baker
*****
Offline Offline

Posts: 219


I believe what I want to Believe.


WWW
« Reply #13 on: October 21, 2005, 07:03:38 PM »

Just to be sure, this is a complete version and I can install it on a fresh WB 2.5.2 installation?

Yes, this is a complete working version, but still working to cleanup the code a little
Logged

I believe what I want to Believe
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #14 on: October 21, 2005, 08:17:50 PM »

OK, looks great and with a clean install no issues (as far as I can see now.

Wanna have a look? Multilingual Baker  cool

What about the background of the "group title"?
« Last Edit: October 21, 2005, 08:22:16 PM by i2Paq » Logged

Opensource is my life,  osCommerce.nl.
ruebenwurzel
Leaders Team
A Baker's Baker
*****
Offline Offline

Posts: 6513


Keep on Rockin


WWW Email
« Reply #15 on: October 21, 2005, 08:22:54 PM »

Hello Bennie_wijs,

works great the new bookmark-modul.  grin Also the upgrade-script is perfect.  grin

I looked at the code and found in modify_link.php some text which is not multilangual. I've updated the modify_link.php and the language.php. The updated files you find in the attached File "multilanguage.zip". Could you have a look at this?

If you have cleaned the code, did you put this modul in Completed Modules?

Thanks for the great work

Matthias

[attachment deleted because of being too old]
Logged

You search for help, please look here: Help-Page
You search for Modules, Templates or Languages, please look here: Addons-Page
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #16 on: October 21, 2005, 11:27:36 PM »

@Matthias, files work OK.

@Bennie_wijs, howwhen does the Number of colums to create work?
Logged

Opensource is my life,  osCommerce.nl.
Bennie_wijs
Semi-Master Baker
*****
Offline Offline

Posts: 219


I believe what I want to Believe.


WWW
« Reply #17 on: October 22, 2005, 04:18:51 PM »

The version 2.3.1b is not done yet.

Its a working version but still need to do some fine tuning.

like Mathias found out, Thanks Matthias.

The colums must work. but you need to change the css style.
In version 2.3.1b the style is inside the settings -> header.
Inside the css style you see BMlink1  for colum 1, bmlink1 for colum2 enz.
You need to change the width to match the colums.
Its states now:
Code:
.BMheader  {
background-color: #000000;
color: #FFFFFF;
vertical-align: middle;
font-weight: bold;
text-align: center;
}
.BMlink1  {
width: 100%;
vertical-align: middle;
text-align: center;
}
.BMlink2  {
width: 50%;
vertical-align: middle;
text-align: center;
}
As you can see BMlink1 is width: 100% so if you change that to 50% and set colums to 2
you have BMlink1 width 50% and BMlink2 width 50%.

There you can also change or add colors, also the background color of the groups title ( BMheader ).

The bookmarks.css is not used anymore.

As soon as our tester i2Paq gives the oke about the changes.
I will look at the code again for the final code cleaning and then it will be posted
at the completed Modules.
« Last Edit: October 22, 2005, 04:28:21 PM by Bennie_wijs » Logged

I believe what I want to Believe
i2Paq
"All I Do Is Bake" Baker
*****
Offline Offline

Posts: 503


Tempelier, on bare feet!


WWW
« Reply #18 on: October 22, 2005, 05:09:23 PM »

OK!

I've tested the colums and the background color. Works like a charm.

@Bennie_wijs, if you want you can clean up the code and if Matthias or Woudloper does not have other wishes or remarks then I will install the final version in the 2.5.2 stable setup I'm working on.
When that is running I'm starting to work on the multilingual WB.
Logged

Opensource is my life,  osCommerce.nl.
Woudloper
Guest
« Reply #19 on: October 22, 2005, 06:50:53 PM »

I already mentioned some of my wishes, but as Benny said this would be a great change and he suggested to build another version special for this...

Some other point I have in relation to the bookmark module. When I e.g. do a search on the search page (I tested it also on OpenSourceBakery.nl I saw that when I search for 'test', I get the following result:

Quote
Results For 'test':
Multilingual Baker    Last Updated By Administrator (admin) on 21-10-2005
Bookmarks    Last Updated By () on Unknown Date

As you can see the 'bookmarks' module/page has no updated by and updated date...
Logged
Pages: [1] 2 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!