Welcome, Guest. Please Login or Register.
November 25, 2024, 10:43:22 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod « previous next »
Pages: 1 ... 6 7 [8] 9 10 ... 49 Reply Ignore Print
Author Topic: [Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod  (Read 341876 times)
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Beta] Photo Gallery Mod
« Reply #105 on: December 01, 2002, 02:49:30 PM »
Reply with quote

I have set the gallery to default to sort Descending Date. But it doesnt do it.

On the main page.. it shows the latest photos for each gallery. But once inside a album none of the sorts seem to work. It passing over the right parameters.. just ignores them though.

If I click latest uploads, they seem alright.

Any ideas why the sort isnt working for me (did do before i moved servers)
« Last Edit: December 01, 2002, 08:00:39 PM by PioneeR » Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #106 on: December 01, 2002, 02:54:31 PM »
Reply with quote

If you have the menu problem I mentioned above(page 7), here is the way to add an index button.

First of all, you need a graphical button. the best place to get one is here http://yabbbuttons.cjb.net/

After you have uploaded it to your YaBBImages dierctory you will need to make the following changes.

PLEASE BACKUP YOUR FILES BEFORE CHANGING THEM!!!!! IF YOU SCREW UP ITS YOUR FAULT!


<file>
english.lng
</file>

<search>
$txt[888] = "Most Online:";
</search>

<add after>
$txt[900] = "Main";
</after>

<search>
$img['admin'] = $txt[2];
</search>

<add after>
$img['index'] = $txt[900];
</add>

<search>
$img['admin'] = "<img src=\"$imagesdir/admin.gif\" alt=\"$txt[2]\" border=\"0\">";
</search>

<add after>
$img['index'] = "<img src=\"$imagesdir/index.gif\" alt=\"$txt[900]\" border=\"0\">";
</add>

this next code change presumes that your web adress is www.yourdomain.com and your board url is www.yourdomain.com/yabbse

you will need to change those details for your own board.

<file>
/sources/subs.php
</file>

<search>
$yymenu = "<a href=http://www.yourdomain.com>$img[home]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
   $yymenu .= "$menusep<a href=\"$scripturl?action=gallery\">$img[gallery]</a>";
</search>



<edit>
$yymenu = "<a href=http://www.yourdomain.com>$img[home]</a>$menusep<a href=http://www.yourdomain.com/yabbse/index.php>$img[index]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
   $yymenu .= "$menusep<a href=\"$scripturl?action=gallery\">$img[gallery]</a>";
</edit>


Thats it.

Its the first time I have broken down a code change like this, so if I have made any mistakes  - sorry :)

Good luck.
« Last Edit: December 01, 2002, 03:05:01 PM by Coyote » Logged

To the world - you are just one person, but to one person you are the world!
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:[Beta] Photo Gallery Mod
« Reply #107 on: December 03, 2002, 03:37:40 AM »
Reply with quote

Anyone else moved over to Rochen and have problems with this gallery not sorting??

Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #108 on: December 03, 2002, 08:18:12 AM »
Reply with quote

Quote from: Thunderace on November 17, 2002, 12:43:57 PMCan't get it to work at all

Doesn't recognise me as admin, shows errors when $sourcedir is used but works with ../
include_once "../QueryString.php";
include_once "../Settings.php";
include_once "../english.lng";
include_once "../Sources/Subs.php";
include_once "../Sources/Errors.php";
include_once "../Sources/Load.php";
include_once "../Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";

Won't load template.html
Warning: Failed opening './template.html' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/vhosts/sportsbike.cc/httpdocs/testboard/yabbse/Sources/Subs.php on line 208
The "gallery" directory is in the Yabbse dir (e.g same as Sources etc)


I have exactly this problem.

Now, the thing is - I have 2 boards on the same server, the Second(newish) board installed fine.

But the first which is my older board (both 1.4.1) generates the errors above.

Thunderaces solution was to put in the paths. and copy template.html into the gallery route. My problem is that I have a template.php not a .html - and it doesnt like it when I use that instead?

Although my subs.php is modded (just like my first board) it throws out a request on line 183 for template.html - I will dig out the exact procedure thats causing this tonight and post it if it will help?

Any Ideas?

Tony.
« Last Edit: December 03, 2002, 08:20:25 AM by Coyote » Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #109 on: December 05, 2002, 01:12:09 AM »
Reply with quote

Ok, well  - I got it working by making the same changes as thunderace.

The only problem I have now, cos I am using the template.html - is that I have lost all the table borders around the gallery and its sub pages. :(

It works, just looks a little incomplete.

 
Logged

To the world - you are just one person, but to one person you are the world!
Guus
Noobie
*
Posts: 15


I'm a llama!

Re:[Beta] Photo Gallery Mod
« Reply #110 on: December 05, 2002, 10:55:28 PM »
Reply with quote

I tried installing.... it said it was succesfull in installing but when I went to the gallery-page I got:

Fatal error: Call to undefined function: clicklog() in init.inc.php on line 45
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #111 on: December 05, 2002, 11:02:24 PM »
Reply with quote

erm............... just a guess,

but try putting in the full path to your subs.php file

The file you need to play with is init.inc.php

by path, I mean the server path not the URL.

for example...

home/user/public_html/yabbse/Sources/subs.php

I dont know what your path would be, but I think it would fix your problem.


Logged

To the world - you are just one person, but to one person you are the world!
Guus
Noobie
*
Posts: 15


I'm a llama!

Re:[Beta] Photo Gallery Mod
« Reply #112 on: December 05, 2002, 11:20:39 PM »
Reply with quote

Quote from: Coyote on December 05, 2002, 11:02:24 PMerm............... just a guess,

but try putting in the full path to your subs.php file

The file you need to play with is init.inc.php

by path, I mean the server path not the URL.

for example...

home/user/public_html/yabbse/Sources/subs.php

I dont know what your path would be, but I think it would fix your problem.

Wait a minute... put what where :P? I know what the path too my subs.php is, but what path do I have to put where?

path to my subs.php:
/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/subs.php

But do I have to fill that somewhere in the init.inc.php (if yes, where? :P) or somethingin the subs.php... *confused*  ;D
Logged
Guus
Noobie
*
Posts: 15


I'm a llama!

Re:[Beta] Photo Gallery Mod
« Reply #113 on: December 05, 2002, 11:32:29 PM »
Reply with quote

Allright, I know where to fill it in:
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/subs.php";

Now I have:
Fatal error: Call to undefined function: loadcookie() in init.inc.php on line 46

lol
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #114 on: December 05, 2002, 11:34:07 PM »
Reply with quote

Hi,

I am no expert on this..... but this is what I did

edit init.inc.php (and remember to CHMOD it after)

# FROM YaBB
include_once "/home/coyote/public_html/mainboard/QueryString.php";
include_once "/home/coyote/public_html/mainboard/Settings.php";
include_once "/home/coyote/public_html/mainboard/english.lng";
include_once "/home/coyote/public_html/mainboard/Sources/Subs.php";
include_once "/home/coyote/public_html/mainboard/Sources/Errors.php";
include_once "/home/coyote/public_html/mainboard/Sources/Load.php";
include_once "/home/coyote/public_html/mainboard/Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";

what I think yours MIGHT need to be (remember to backup first!) is

# FROM YaBB
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/QueryString.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Settings.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/english.lng";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Subs.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Errors.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Load.php";
include_once "/data/members/free/tripod/nl/w/i/n/winnubstforum/htdocs/forum/Sources/Security.php";
include_once "include/config.inc.php";
include_once "include/functions.inc.php";


But please remember to backup first!!!!!!

Try jsut changing the sups.php line first, if that works, but you get another error then try the other lines.

But please backup first
« Last Edit: December 05, 2002, 11:35:07 PM by Coyote » Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #115 on: December 05, 2002, 11:36:22 PM »
Reply with quote

you might also want to search the boards here for cookie problems attributed to Tripod.


good luck.
Logged

To the world - you are just one person, but to one person you are the world!
Guus
Noobie
*
Posts: 15


I'm a llama!

Re:[Beta] Photo Gallery Mod
« Reply #116 on: December 05, 2002, 11:37:26 PM »
Reply with quote

Bugger... I forgot to put the clicklog line back again... I removed it to see what happened. So now I still have the clicklog error
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #117 on: December 05, 2002, 11:39:59 PM »
Reply with quote

:) ok

The functions you are mentioning are in the subs.php file.

if it doesnt know where it is then it might start to go dizzy.

add in the code I mentioned above, and lets see what happens.

Logged

To the world - you are just one person, but to one person you are the world!
Guus
Noobie
*
Posts: 15


I'm a llama!

Re:[Beta] Photo Gallery Mod
« Reply #118 on: December 05, 2002, 11:43:14 PM »
Reply with quote

No, that isnt the problem. I just tried that but it didnt work :(, except my language file is dutch.lng. I already included the lines that must be included in the dutch.lng (copied it from the .mod file)... maybe some other english.lng-links in the files?
« Last Edit: December 05, 2002, 11:45:01 PM by Guus » Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta] Photo Gallery Mod
« Reply #119 on: December 05, 2002, 11:45:32 PM »
Reply with quote

Are you getting the same error?

Also does your souces directory start with a capital S?
Logged

To the world - you are just one person, but to one person you are the world!
Pages: 1 ... 6 7 [8] 9 10 ... 49 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.1RC1 & 1.4.1] Photo Gallery Mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.085 seconds with 20 queries.