PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 12th, 2007, 02:38 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2007
Posts: 29
Question Adding more code display information under an Image's "Addition Info" Section

I want to add code for people to people to see a clickable HTML code for each image. To do this, I know that I have to modify the following:
- <language>.php
- showphoto.tmpl
- showphoto.php

1. In <language>.php, I added $Globals['pp_lang']['htmlcodeclick']
2. In showphoto.tml, I searched for $Globals['pp_lang']['htmlcode'], copied the row for the table and pasted it just below.
3. Modified the code that I duplicated to use $Globals['pp_lang']['htmlcodeclick'] instead of $Globals['pp_lang']['htmlcode']
4. In that duplicate code that I create in step #2, I modified {$showhtmlcode} to say {$showhtmlcodeclick}
5. In the showphoto.php, I searched for $showhtmlcode (around code line 1453) and just below I added the following line:
$showhtmlcodeclick = "&lt;a href=&quot;$imgurl&quot;&gt;&lt;img src=&quot;$imgurl&quot; /&gt;&lt;/a&gt;";

Now, I have three questions:

1. How do I change the form so the field shows multiple lines?
2. How do I change the $imgurl so it display the thumbnail instead of the medium picture?
3. Are the pictures saved in the database? If so, is there any way that I can save them in disk instead?

I have already started modifying the code. You can see a sample of what I am doing by going to: http://photos.origanime.com/showphot...2/limit/recent. As you see, the field is not displaying the whole code.

Thanks,

Gladys
globalstrata is offline   Reply With Quote
Old May 13th, 2007, 02:06 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Location: Cairns, Qld, Austral
Posts: 84
Adding vBulletin IMG code option to show photo page

This started me on the right path, in that I could work out what code needed to be modified, but I don't know how to show the new option for showing the "[IMG]" code on the show Photo admin page, where I can turn it off and on.

I'm assuming this is the reason the field isn't showing on the photo page, but if I am wrong please can someone set me right?

Thanks heaps, from a PP newbie!!

Belgrael
www.aucado.us
Belgrael is offline   Reply With Quote
Old May 13th, 2007, 10:03 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
You can find the code to modify in showphoto php and template

$imgurl is defined in there and you can modify that to suit your needs
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Login error - "Cannot modify header information"... brewster General Discussion 5 December 4th, 2006 11:17 AM
"get email updates" for entire section? tugbrian Classifieds How do I...? 1 August 22nd, 2006 07:29 AM
RP 3.3: Hardcoded text IV-Sort by "most active", "zip code" etc. snoopy5 ReviewPost How do I...? 4 May 2nd, 2006 06:32 AM
Enclose "Images in category" and "display options" in a conditional tag? rbl How Do I? - vBulletin 3.0.X 2 January 15th, 2005 10:50 AM


All times are GMT -5. The time now is 10:01 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0