Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Coppermine VbCode and HTML output Details »
Coppermine VbCode and HTML output
Mod Version: 1.00, by DjTaz (Member) DjTaz is offline
Developer Last Online: Oct 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 3
Released: 12 Feb 2006 Last Update: Never Downloads: 0
Not Supported Code Changes  

For those of you who have integrated Coppermine Photo Gallery into your Vbulletin site , you will know it runs smoothly along side it and works great.

I had one issue though - people on my site wanted to be able to post some of the photos from their gallery on the forum boards, but they lacked a lot of the knowledge to be able to check the URL of the photo... this caused a problem.

Anyway , i added this little hack that simply displays the VBCode and HTML code for the any photo so it can be used on Vbulletin , or for that matter , any site.


In /gallery/lang/english.php

Find :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Add below :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

_________________________________________________________________________

in /gallery/displayimage.php

Find :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add below

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Reupload both files , click and thats it , your done !

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Administrative and Maintenance Tools Remove all (Template-)Comments from any HTML-Output MrZeropage vBulletin 3.8 Add-ons 27 04 Aug 2010 00:24

Comments
  #2  
Old 12 Feb 2006, 15:35
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Let me be your first installer here.

Thanks!
Reply With Quote
  #3  
Old 12 Feb 2006, 18:40
Xzyte Xzyte is offline
 
Join Date: Nov 2005
Was looking for this, thanks DjTaz.

I installed it on vB 3.5.3 with Coppermine 1.4.3 and if works fine.

One question: Is it possible to add some code and also get a link to the resized picture instead of the full sized one?
Reply With Quote
  #4  
Old 12 Feb 2006, 21:32
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
this is great, I will be installing tonight

thanks!
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #5  
Old 14 Feb 2006, 11:56
DjTaz DjTaz is offline
 
Join Date: Apr 2003
You mean to the thumbnail instead of the actual photo ?... that should be easy enuf

try changing (in displayimage.php)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

that should do it for about 90% of boards i think and you can also set it to put both the outputs of the thumb and the main image if thats what you want with a little playing about with the code .... let me know if you have any trouble.
Reply With Quote
  #6  
Old 14 Feb 2006, 13:05
Xzyte Xzyte is offline
 
Join Date: Nov 2005
Thank you for your help, I actually mean the resized picture which I have set to be 400x400 and is saved in the users folder as "normal_" anyway I tried the code above and it still shows me the link to the original picture on my Coppermine 1.4.3

Thanks for your help!
Reply With Quote
  #7  
Old 14 Feb 2006, 13:13
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Try this so :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and instead of the two in the lang , add in three

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You should notice that the 'Normal' code will have a 'normal_photoname.jpg' instead of
just 'photoname.jpg' in the link thats given out. If that still doesnt work - give me the exact directories where everything resides and ill see what else i can come up with.
Reply With Quote
  #8  
Old 14 Feb 2006, 14:09
DjTaz DjTaz is offline
 
Join Date: Apr 2003
ADD IN A COPY TO CLIPBOARD :d

I said i better give you guys this info as well , since it was requested on the Coppermines gallery and adds in nicely to this edit ...

Here is an alternative way to change the displayimage.php so that it has a COPY TO CLIPBOARD for the VBCODE and the HTML Code - makes life easier overall.

use this instead of the original addition above if you like it :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You can see this working here :

http://www.djtaz.com/gallery/display...10294&pos=-107
(for the Copy to clipboard one )

and
http://www.djtaz.com/gallery/display...10294&pos=-107
(for the original one)
Reply With Quote
  #9  
Old 16 Feb 2006, 02:27
Xzyte Xzyte is offline
 
Join Date: Nov 2005
I like this option and it works just as good as your first one.

About the normal_ sized pictures, that didn't work for me but never mind, I'm happy with the one above

Thanks again DjTaz!
Reply With Quote
  #10  
Old 19 Feb 2006, 00:20
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Xzyte - i u want me to take a look at ur site send me the address - and let me know where the normal_ pics are stored etc etc.


Ill see what i can do to get you that code as well if i can

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:08.

Layout Options | Width: Wide Color: