News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF Gallery

Started by SMFHacks.com Team, September 16, 2006, 07:13:02 PM

Previous topic - Next topic

Itheniel

This is weird..
I just installed this mod, but I dont get any new configurable options in my admin panel..

after reading through some of the post here, I think there should be a "gallery config" option in my admin panel, but I dont have anything like it..

Could someone help me please?

jamesk

Try using default theme...  If it's there, then at least you know it installed properly.

Once verified, you have to understand that many mods to change the template files for other themes so you have to do it yourself.

autobug

i just installed the gallery mod ( lite version ) and clicked 'apply mod' then the following screen appears

http://i49.photobucket.com/albums/f253/snowgoose88/screenauto.png

any ideas what this means and how do i sort/fix it?

Cheers

Jake

Vendetta1990

hi peoples

when i would install the gallery always this message is comming:

1.     Execute Modification     smfgallery.xml     Modification parse error
2.    Execute Modification    -                    Modification parse error

Sorry for this question, but i am not very good at this things, and my english is either not very well:-)

Thanks for help

Best regards
Manuel

TrueSatan

Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html

cru

*bump*
hi, can someone help me with this?
http://www.simplemachines.org/community/index.php?topic=114291.msg1279554#msg1279554

maybe i can solve this by editing my files, but i dont know what file to edit. TIA

shumar

Is there any chance for this:
Resize images when showing under posts If I use image from gallery on same forum ??

shijmus

hi, anybody can look at my problem here?
I installed the SMF gallery, but, when I login with admin, I got this problem(see attached image), I don't know where it comes that many gallery menu. Please help me to remove it, thanks.

TrueSatan

You have obviously installed the mod a great many times and thus have a great many copies of the code this mod adds to files added to them...multiple instances. You will need to manually edit your files to remove the duplicate code...all the files this mod edits are likely to be affected.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

http://www.simplemachines.org/community/index.php?topic=34526.0

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html

Jovian

Hi,

I have just installed SMF 1.1.3 using Fantastico and have upgraded it to 1.1.4.

Using the Packages options I have uploaded the Gallery zip file. When I try to install the Gallery mod the install actions look like this.



Items 1 - 6 are marked test successfull but 7 - 12 are blank and I assume they should have a comment under the description.

Then I hit install and my error log fills up. The 1st 3 errors as follows.



Can anyone please help on this. I love SMF but really need Gallery to function and dread the manual install.

Thanks

Jovian

The pics do not show well so here are errors

8: Undefined index: smfgallery_admin
File: /home/wyldjoke/public_html/forum/Sources/Subs.php
Line: 2742

8: Undefined index: smfgallery_menu
File: /home/wyldjoke/public_html/forum/Themes/default/Admin.template.php (eval?)
Line: 575

8: Undefined index: smfgallery_admin
File: /home/wyldjoke/public_html/forum/Sources/Subs.php
Line: 2742



Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Themes/default/languages/Who.english.php Test successful
3. Execute Modification ./index.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Sources/Subs.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Extract File ./Sources/Gallery.php 
8. Extract File ./Themes/default/Gallery.template.php 
9. Extract Tree ./gallery 
10. Extract File ./Themes/default/languages/Gallery.english.php 
11. Extract File ./Themes/default/languages/Gallery.english-utf8.php 
12. Execute Code galleryinstall.php

TrueSatan

The package installer doesn't show comments on file extractions so your report is actually free of errors...Fantastico tends to give a few issues...here's what to do:

You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.

You need to go to ACP>Packages>Options>Installation Options and set the fields according to your hosting details then on the same page go to Cleanup Permissions and select All files Writeable and run the cleanup...check via ftp that CHMOD of all your files is now 777 or 775 according to the peculiarities of your hosting and if not recheck the settings you made in Installation Options and run the cleanup again...continue as needed until you get the right settings.

Do those and see if your errors persist.

MinasC

hello there,

i recently put a drop down menu to my forum and i tried to put there a link for "My Pictures" of the forum's gallery , so that every member could see his/her own pics with a click ! i looked in Gallery.template.php and found that the link was

<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>

so i put that in my menu but it didn't work ! instead i get the message "no user has been chosen" ! i used several similar links such as

<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $row['ID_MEMBER'] . '">' . $txt['gallery_text_myimages'] . '</a>

but none worked either ! anyone knows what is the right link ?

thnx in advance !

jamesk

Do you have a

global $ID_MEMBER

where you're trying to display the link?  It's obviously not picking up the variable $ID_MEMBER.


MinasC

it's within a javascript :

<script type="text/javascript">

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
//menu1[0]=\'<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $memID . '">My Pics</a>\'

var menuwidth=\'200px\' //default menu width
var menubgcolor=\'lightblue\'  //menu bgcolor
var disappeardelay=200  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write(\'<div id="dropmenudiv" style="visibility:hidden;width:\'+menuwidth+\';background-color:\'+menubgcolor+\'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>\')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

</script>

jamesk

#1055

Let me clarify.  In whichever template file (maybe index.template.php) you're using to try to display the link, you need to have the $ID_MEMBER variable "visible."  You obviously have other variables like $scripturl as global.

So, look at the PHP code in the file, and find the function that you want to display in and find the code that looks like:

global $context, $settings, $options, $scripturl, $txt, $modSettings;

Of course, yours may be different as (again) I don't know where you're trying to display it.  Try adding $ID_MEMBER in there as well.

MinasC

it worked !!!
i put $ID_MEMBER as you told me here

global $context, $settings, $options, $scripturl, $txt, $modSettings, $ID_MEMBER;

and i changed the link in my menu looking like that

<a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>

and it worked just fine !

thnx so much mate , you are a lifesavior !!!

Jovian

Thanks a million TrueSatan . I followed your steps and everything works fine now. :) You made the steps very simple. Thank you again

Jovi

TrueSatan


vmpre2

This might have been asked already. But are there are options for Batch uploading lots of images?

Thanks

Advertisement: