re: loading gallery page re: loading gallery page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

re: loading gallery page

Started by brentmags, January 29, 2010, 03:32:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brentmags

interestingly in the original post the cliche 2 steps forward and one back was mentioned. Today has been a process of applying that logic starting from the beginning with the 'original' template.html to make some inroads into this subject eventide raised

My gallery thus far

i realise if i did not have all the stuff up the top this problem would sort itself out but reading through the topic am i correct in assuming that
1) I install the plugin link_append before making any initial albums etc and uploading files OR
2) if the albums are already created before i install the plugin, i div tag {GALLERY} with div id <div id="someid">.
I believe mine could well be the column since i split the row {ADMIN_MENU} {GALLERY} up.
I had appropriately in the first few attempts named div 'monkey' but upon reading the code for eventide, either in theme.php.txt - template.html.txt or view source on his Kokos pet spa site, after installation of the plugin in either theme or template <div id="cpgContainer"><a id="galltop" /> could not be found

checked the sample template and theme.php if had <div id="cpgContainer"> - No apparent luck

concluding with if the plugin is installed what is the requirement or have i just plainly complicated it for myself? In an effort to make inroads i uninstall and reinstall the plugin to give the div id again assuming you can readily do this

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

aplogies Jeff...above the first  smiley i saw a hyperlink button and chose to use that on various words in my post...but none of them went blue so working on that aspect

http://wrenegadeevents.com/0wren/photo/index.php

i just noticed in my URL browser window #galltop in my index.php so will go hunting there for i am curious

brentmags

yes correct on this link

are you talking about http://forum.coppermine-gallery.net/index.php/topic,62902.0.html ? it has been absorbing to say the least going through various steps

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

my search was everything but the obvious "after the fact i might add" which leaves me a bit red faced - lucky a few continents btwn us for you the heat of my embarrassment

have just (i believe) done what that forum requested inserting "<div id="anyid"> into the plugin manager box before hitting 'done'.

uploaded the changed template.html and still not positive yet. Have attached a txt file if you don't mind of the template.html

i will uninstall the plugin and go back a few notches and try again

thank you Jeff for your help thus far

Jeff Bailey


<div id="<div id="anyid">

I guess my instuctions aren't very clear  :(

<div id="anyid">

is just an example

in your template.html
replace

<div id="<div id="anyid">

with

<div id="anyid">

anyid ... being whatever you want it to be... monkey(like you said before) or whatever else.
If you choose to keep it as anyid type anyid in the text field that asks what the div id is.

Unistall the plugin and delete the table entry(the plugin will ask if you want to delete it)
Start fresh.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

Hi Jeff,
i am still working away on this and am wondering it there is a conflict with the <div id="shadow"> in my code OR if i am infact pathing it correctly when defining new css rules.

Your instructions are clear...think one forgets to look at all the detail

i will include a few pics for i have unintalled the plugin a number of times now starting fresh and redoing the wrap on the gallery but keeping the same name

just working towards seeing that magical #cpg_top in the URL browser window


Jeff Bailey

You shouldn't use WYSIWYG editors like dreamweaver when editing Coppermine files. Use Notepad or UltraEdit or take a look at Tools Recommend by the Devs.

Anyway,

  • You have a div with an id monkey ...and a div with the id shadow
  • use one of them and delete the other
  • make sure your div has a closing tag.
  • I only see one div named shadow so that seems fine.
  • Are you using version 1.2 of the plugin?
  • when you install the plugin type monkey or shadow (whichever you decide to keep) into the textbox
  • make sure the SQL entry's from the previous installs are deleted using phpmyadmin or a similar tool.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

Hi Jeff,
I have notepad open on another monitor and cut and paste the code from out of dreamweaver into this_not sure if this is a good practice but until now (with a wry smile i might add) it is all a process of extending that learning curve

i have gone through all of what was listed.
- The shadow div is gone, monkey with the http: properties required to show drop shadow behind
- has a closed div tag
- yes am using 1.2
- affirmative on typing of monkey only for css rule
- entry from SQL i check each time i do delete

this puppy has me rattled but understandably it is probably something minor i am not doing...big THNX for clarifying points

Jeff Bailey

#11
I'm really at a loss. I have no Idea what your doing wrong.  ???


  • Your div looks correct
  • i've attached a picture of what the install should look like
  • after you install the plugin look in phpmyadmin in the cpg14x_config table, The last entry should be "cpg_link_append_id     monkey"

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

hi Jeff,
had to go away and have tea and come back and try a few more things subject to your last email arriving. Think I might have to start from scratch, get it going then build around it if i do in fact get it going in the first place.
Yes typed in monkey in the Configure plugin: Link Append

So yeah...thanks...put it down to being one of those days for me but an interesting one nonetheless

took some snaps of what it looks like in phpadmin...mmm  :) will look forward to placing the big tick on this one!

Jeff Bailey

#13
Well I see what you did wrong.
When you set it up... in the Div ID: field you entered <div id="monkey">
all you had to type was monkey... take a look at the pic I posted.
Change the value in phpmyadmin from &lt;div id=&quot;monkey&quot;&gt;
to just monkey


edit
Actually I think you have to Uninstall
check the box to remove the table
Then reinstall
Entering monkey and thats it in the config text box
refer to the picture in http://forum.coppermine-gallery.net/index.php/topic,63517.msg315416.html#msg315416
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

Thanks Jeff
not sure if it was a case of refreshing phpadmin regarding your last snippet of info Jeff but typed it in both areas, the latter getting the trump card
What has been achieved is getting that #cpg_top BUT i referred back to the website a member started this post off on and my quest to achieve something similar where you are viewing your photos without it refreshing to the top as per:

http://www.kokospetspa.com/gallery/displayimage.php?album=toprated&cat=0&pos=4#galltop

i have viewed this chaps code as i have done mine and as yet when view saying the photos out of my hithiker album:

http://wrenegadeevents.com/0wren/photo/displayimage.php?album=16&pos=0#cpg_top

it still travels up there. I would hazard at a guess that a new div has to be placed elsewhere to ahcieve this and am recreating one via a copy off the previous successful try.
I think this is almost there with the forehead frown - thanx


Jeff Bailey

#15
post your template.php as template.php.txt template.html as template.html.txt
The plugin is installed correctly.
it looks like you just put the div in a weird place.

http://www.kokospetspa.com/gallery/displayimage.php?album=toprated&cat=0&pos=4#galltop
Is using a older version of the plugin, ignore what he has.

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

brentmags

Thanx Jeff whilst in the throws of typing my last entry i feel i resolved this subject via 'copy off a copy' on the template (they are adding up now), and going back a few steps chewing on everything that has been explained and absorbed so far.

I have included what you requested with the attachment, i.e. template.html.txt

i will redo this a few times and for further on down the track knowledge document it for i am sure i will be doing it again in the near future with other coppermine galleries
It is very close to being completed now  ;D with which i'd normally go wooooo whoooo da na na naaa, kinda like a high 5!

warm night thanks from downunder for your help

Jeff Bailey

upload the template.html.txt i attached.
change the name to template.html before uploading it.
make sure it overwrites the file already on your server.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford