vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   4images Gallery 1.7 + vB 3.0.x (update Oct 30) (https://vborg.vbsupport.ru/showthread.php?t=66335)

mtha 10-20-2004 01:09 AM

Quote:

Originally Posted by chadi
I'm getting some crazy error:

http://www.talkjesus.com/4images/admin/index.php

How do I fix this?

HTML Code:

DB Error: Bad SQL Query: SELECT template FROM template WHERE title='options'
Table 'chadi_4images.template' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash            FROM session
Table 'chadi_4images.session' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash              FROM session              WHERE sessionhash = '62acf9f66e454d30ab0189ddec368746'
Table 'chadi_4images.session' doesn't exist

You missed some step. You can either read the instruction and do the steps carefully or read my answer few page up. this question has been asked and answered many time!

Quote:

Does this also works with 4images 1.7.1 ?
I dont know. didnt try, didnt bother to upgrade to 1.7.1 either. Anyone have any luck on answering this question? :)

Chadi 10-20-2004 01:48 AM

I double checked everything, actually 3-4 times by now.

I've attached all files that were edited / included.

mtha 10-20-2004 04:27 PM

Quote:

Originally Posted by chadi
I double checked everything, actually 3-4 times by now.
I've attached all files that were edited / included.

Refer back to this post:
https://vborg.vbsupport.ru/showpost....&postcount=151
on page 11:

01: constant.txt:
Do you have vb table prefix in your database?

define('VB_TABLE_PREFIX',''); // your vb tableprefix. vB default is blank


02: sessions.php
Are you sure your template table name is "template"? or if you need any prefix?

// Define here the name of the template database table.
// Normally no need to change.

define('VB_TEMPLATE_TABLE', 'template');



btw, do you have your 4images and vb tables in the SAME database?

PAINTBALLM 10-20-2004 09:20 PM

I could install this myself, but I dont really have the time with the tons of work I am doing lately with the company I work for now. I will pay $15 or so via paypal to have it installed on my site www.pbmessage.com LMK ;)

Actually.. $20. To have it working with my vb3.0.3 site/database, and set up to match the rest of the site.

Neal-UK 10-21-2004 12:46 PM

Do u have a version for vb 3.0.3?

I installed this, and it appeared to be working fine except on the gallery homepage is showed active users but not the words 'Currently active users:' or to that effect.

I also logged out via the gallery and it came up with the old VB messages, error whilst attempting to log you out, click here to logout.

I've removed it again but would very much like it on my forums.

mtha 10-21-2004 06:39 PM

Quote:

Originally Posted by nealparry
Do u have a version for vb 3.0.3?

this version should work for 3.0.3

Quote:

I installed this, and it appeared to be working fine except on the gallery homepage is showed active users but not the words 'Currently active users:' or to that effect.
dont really understand what you mean, but it seems that you have problem with your template or language file. Check them out.


Quote:

I also logged out via the gallery and it came up with the old VB messages, error whilst attempting to log you out, click here to logout.
The logout link should have userid &u=xxx in there. it was included in my instruction file.

James T Brock 10-22-2004 06:02 AM

Ok, I have this installed and working fine except for one problem. My moderators can login but they are complaining that the upload buttun is greyed out and they are not being allowed to upload images.

Is there some kind of glitch in the permissions system that is not allowing their usergroup to upload pics?

mtha 10-22-2004 09:40 PM

Quote:

Originally Posted by James T Brock
Ok, I have this installed and working fine except for one problem. My moderators can login but they are complaining that the upload buttun is greyed out and they are not being allowed to upload images.

Is there some kind of glitch in the permissions system that is not allowing their usergroup to upload pics?

groupID problem.

Member has group = 2, admin has group = 6, but moderators groupID are unclassified in 4images.

I think the easiest way is adding another field for album level in user table, giving default value = 2 (member). For those who need to be admin, just change the value to be 6

bkbelew 10-24-2004 04:15 AM

Im having some issues with my install, everytime i try to upload a picture i get this:

Quote:

Warning: Unable to create './data/media/1/4575.jpg': No such file or directory in /var/vhosts/gamesite/html_docs/gallery/includes/upload.php on line 114

Warning: Unable to move '/tmp/phpskgnZH' to './data/media/1/4575.jpg' in /var/vhosts/gamesite/html_docs/gallery/includes/upload.php on line 114
the chmod for the data directory is 777 i dont see what its deal is, can someone help me?

mtha 10-24-2004 04:22 AM

Quote:

Originally Posted by bkbelew
Im having some issues with my install, everytime i try to upload a picture i get this:

the chmod for the data directory is 777 i dont see what its deal is, can someone help me?

This is a problem related to original 4-images install that you have, which has nothing to do with this hack.

I think I saw the problems several times. I think it is related to safe_mode property. Check over 4-images forum. they should be able to answer your question.

XrayHead 10-24-2004 07:14 PM

Quote:

Originally Posted by mtha
This hack uses vBulletin's user table, and it doesnt care about what you did with the old registration you did with 4images..

OK, I have installed this hach and have the same table issue!!!
PHP Code:

DB ErrorBad SQL QuerySELECT template FROM template WHERE title='options'
Table 'gallerydb.template' doesn't exist

DB Error: Bad SQL Query: SELECT sessionhash, lastactivity, host, userid FROM session WHERE sessionhash = '
9f580daff7691a3a3d9fc7edee1a4580' AND host = '82.69.76.24'
Table '
gallerydb.session' doesn't exist 

I DO UNDERSTAND that I have to have the 4images tables in the VB database BUT how the hell do I get them into there?

Also do I have to change the config.php in 4images route to also have my forums database name and password (if so I did not see that in the install readme).

Xrayhead

[edit]

OK when you say a FRESH install........ Do you mean that when you run the install script for 4images you have to fill in the database as your on VB details???????

XrayHead 10-24-2004 08:18 PM

Right I have fixed this now.

I did a fresh install of 4images and when I ran the install I put my VBulletin database details into the 4images database settings. Ran the install and hey presto I now have the correct tables in my VB database!!!

It dose not say this anywhere in the install instructions and it would be really useful if you could add what I have just stated.

Xrayhead

mtha 10-24-2004 09:44 PM

Quote:

Originally Posted by XrayHead
Right I have fixed this now.

I did a fresh install of 4images and when I ran the install I put my VBulletin database details into the 4images database settings. Ran the install and hey presto I now have the correct tables in my VB database!!!

It dose not say this anywhere in the install instructions and it would be really useful if you could add what I have just stated.

Xrayhead

When I say "fresh install", I mean you make a NEW installation for your album.

It does state clearly in the instruction note that

Quote:

2. 4images tables and vbulletin tables have to be in the same database.
maybe you skip the "Notes before you install" section.

XrayHead 10-25-2004 08:14 PM

No I did not skip the notes, (I read them about 20 times and could not understand how to get the tables into my database) I was also searching for a script in this thread that would install the new tables into my database for me!!!

I think the hack is very good indeed and a lot of work must have gone into it.
I have had my forum running for 3 years now, why would I not read or skip something that could mess it all up?

Quote:

2. 4images tables and vbulletin tables have to be in the same database.
I would suggest that you include in the install file that you have to enter YOUR OWN forum database details when you run the install.php for 4images!!
As you know when you install Vbulletin fresh it destroys ALL tables within the database, I was worried that the 4images would damage my database (although I had backed it up prior).

I hope this makes more sense of what I am trying to say and I hope it helps others with the same problem.


Xrayhead


PS, Thanks again for a really good hack (have it installed and working a treat on my site) finally. :squareeyed:

Mattius 10-28-2004 11:27 AM

Did the integration today and i got problems accessing the admin area.

I never did have problems previous to the integration...

When you check this pic below, its obvious i have a path problem somewhere but ive double checked it all and cant figure out where it is...Exactly what bit of code is being utilized here.

Once i get this once sorted, then ill move onto login...Quite frankly ive had exactly the same problem with Coppermine and spent 2 days on it...gave up on that in the end...but it worked flawlessly before integration. I feel like just forcing my users to double login if they want to use it...personally i wouldnt bother me..

Anywayz if somebody could help id really appreciate it...

XrayHead 10-28-2004 01:20 PM

Quote:

Originally Posted by Mattius
Did the integration today and i got problems accessing the admin area.

I never did have problems previous to the integration...

When you check this pic below, its obvious i have a path problem somewhere but ive double checked it all and cant figure out where it is...Exactly what bit of code is being utilized here.

Once i get this once sorted, then ill move onto login...Quite frankly ive had exactly the same problem with Coppermine and spent 2 days on it...gave up on that in the end...but it worked flawlessly before integration. I feel like just forcing my users to double login if they want to use it...personally i wouldnt bother me..

Anywayz if somebody could help id really appreciate it...

Ok what directory did you install the 4images to?

I have mine in the following "/home/lsmith/public_html/vboard/gallery/"
And access it via http://www.my_url.com/vboard/gallery/
And Admin would be via http://www.my_url.com/vboard/gallery/admin/

I have just installed this and it works a treat, let me know if you need any help.

Xrayhead

XrayHead 10-28-2004 01:35 PM

Ok I had a look at your site and you are useing the wrong url to login.

Have a look at the attached.

mtha 10-28-2004 03:16 PM

Quote:

Originally Posted by Mattius
I never did have problems previous to the integration...

Interesting. How can you call a login.php when it never exists in admin folder? or you created one? It should be index.php

album/admin/index.php

Quote:

I feel like just forcing my users to double login if they want to use it...personally i wouldnt bother me..
with this hack, if everything works properly, your users dont have to double login.

rockyou 10-29-2004 02:41 AM

I installed for my 4images, but I can't login. Can you help me ?

mtha 10-29-2004 02:52 AM

Quote:

Originally Posted by rockyou
I installed for my 4images, but I can't login. Can you help me ?

yes but how do you want me to help you? :rolleyes:

Mattius 10-29-2004 07:31 AM

Thx for the response guys...

I have my forums setup in my root directory. So www.gamerscurse.com for me, is everybody elses www.gamerscurse.com/forums/

so the full path is /home/httpd/vhosts/gamerscurse.com/httpdocs

4images is set up in www.gamerscurse.com/gallery/

so path wise its /home/httpd/vhosts/gamerscurse.com/httpdocs/gallery

Ive rechecked the installation and cant see where i stuffed up, all i did was change the word "album" for "gallery" in a couple instances.

I have this in constants.php, other than that its all standard.

Quote:

// If 4images has problems to find out the right URL, define it here.
define('SCRIPT_URL', 'http://www.gamerscurse.com/gallery'); //no trailing slash
define('VB_TABLE_PREFIX',''); // your vb tableprefix. vB default is blank
I have the main config for sessions.php as follows

Quote:

define('USER_INTEGRATION', 'VBULLETIN');
define('VBLICENCE_NUMBER', 'XXXXXXXX'); // The correct number is here btw. This is just to hide my licence number..

define('SESSION_NAME', 's'); // Default of vBulletin is "s".
define('COOKIE_PREFIX', 'bb'); //Default of vBulletin is "bb".
define('COOKIE_TIMEOUT','1800'); //Set the same with your vB timeout, in second
define('ALBUM_FOLDER','/gallery/'); //Your Album Folder WITH trailing slash

// Define here the name of the template database table.
define('VB_TEMPLATE_TABLE', VB_TABLE_PREFIX.'template');

// Set her the corresponding database fields of the user table.
// If there is no corresponding field in the new user table,
// leave the value blank. Normally no need to change.
$user_table_fields = array(
"user_id" => "userid",
"user_level" => "usergroupid",
"user_name" => "username",
"user_password" => "password",
"user_email" => "email",
"user_showemail" => "",
"user_allowemails" => "",
"user_invisible" => "",
"user_joindate" => "joindate",
"user_activationkey" => "",
"user_lastaction" => "lastactivity",
"user_location" => "",
"user_lastvisit" => "lastvisit",
"user_comments" => "",
"user_homepage" => "homepage",
"user_icq" => "icq"
);

// Set here the URL to your vBulletin forum. WITH trailing slash!
$url_app = "http://www.gamerscurse.com/";

// Set here different URL's to your vBulletin forum.
// Normally no need to change.
$url_register = $url_app."register.php?do=signup";
$url_lost_password = $url_app."login.php?do=lostpw";
$url_control_panel = $url_app."usercp.php";
$url_mailform = $url_app."sendmessage.php?do=mailmember&u={user_id }";
$url_show_profile = $url_app."member.php?u={user_id}";
$url_login = $url_app."login.php";
$url_logout = $url_app."login.php?do=logout&u={myuserid}";
$clientscript_md5 = $url_app."clientscript/vbulletin_md5.js";
Now i notice in the installation it says to replace

Quote:

if ($user_info['user_level'] != ADMIN) {
show_admin_header();
?>
<br /><br /><br />
<table cellpadding="1" cellspacing="0" border="0" align="center" width="500"><tr><td class="tableborder">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr class="tablerow"><td align="center" nowrap><p><?php echo $lang['no_admin']; ?></p>
<form action="<?php echo ROOT_PATH; ?>admin/index.php" method="post">
<input type="hidden" name="action" value="login">
<input type="hidden" name="redirect" value="<?php echo $site_sess->url(ROOT_PATH."admin/".$self_url); ?>">
<table cellpadding="0" cellspacing="1" border="0">
<tr>
<td><input type="text" name="loginusername" size="<?php echo $textinput_size2; ?>"></td>
<td><input type="password" name="loginpassword" size="<?php echo $textinput_size2; ?>"></td>
<td><input type="submit" value=" <?php echo $lang['admin_login']; ?> "></td>
</tr>
<tr>
<td><font size="1" class="smalltext"><?php echo $lang['field_username']; ?></font></td>
<td colspan="2"><font size="1" class="smalltext"><?php echo $lang['field_password']; ?></font></td>
</tr>
</table>
</form>
</td></tr></table>
</td></tr></table>
<p align="center">4images Administration Control Panel</p>
<?php
show_admin_footer();
exit;
}
with

Quote:

if ($user_info['user_level'] != ADMIN) {
show_admin_header();
?>
<br /><br /><br />
<table cellpadding="1" cellspacing="0" border="0" align="center" width="500"><tr><td class="tableborder">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr class="tablerow">
<td align="center" nowrap>
<p><?php echo $lang['no_admin']; ?></p>
<form action="/forum/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword)">
<script type="text/javascript" src="/forum/clientscript/vbulletin_md5.js"></script>
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="redirect" value="<?php echo $site_sess->url(ROOT_PATH."admin/".$self_url); ?>">
<table cellpadding="0" cellspacing="1" border="0">
<tr>
<td>
<input type="text" name="vb_login_username" size="<?php echo $textinput_size2; ?>">
</td>
<td>
<input type="password" name="vb_login_password" size="<?php echo $textinput_size2; ?>">
</td>
<td>
<input type="submit" value=" <?php echo $lang['admin_login']; ?> ">
</td>
</tr>
<tr>
<td>
<font size="1" class="smalltext"><?php echo $lang['field_username']; ?></font>
</td>
<td colspan="2">
<font size="1" class="smalltext"><?php echo $lang['field_password']; ?></font>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td></tr></table>
<p align="center">4images Administration Control Panel</p>
<?php
show_admin_footer();
exit;
}
Now those bold areas have the "/forum/" removed because its in my root directory...so its just "login.php" (should i have a slash at the front?) and "/clientscript/vbulletin_md5.js".

Also based on what you guys said isnt

<form action="<?php echo ROOT_PATH; ?>admin/index.php" method="post">
...the old version

correct and not
<form action="/forum/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword)"> which is what the instructions say to put in...

im calling login.php there and not the old index.php?

Mattius 10-29-2004 07:33 AM

ok i put the "/" infront of login.php and now i dont get the error i got before but it keeps just bouncing me back to the admin login screen after i entered it.

permabanned.net 10-29-2004 10:10 AM

So far, it looks awesome and it seems to be working correctly. Thanks for an awesome hack :)

How can I add a Navbar link to the gallery?

How about a link in Quick Links?

At least knowing the relevant Admin CP path and code to look for would be a big help.

THanks!

permabanned.net 10-29-2004 10:17 AM

Found this relevant bit for navbar still working on it...

mtha 10-29-2004 01:28 PM

Quote:

Originally Posted by Mattius
ok i put the "/" infront of login.php and now i dont get the error i got before but it keeps just bouncing me back to the admin login screen after i entered it.

The login.php is vBulletin's login file:

Change ALL /forum/ by / or you can use your full path:

<form action="http://www.gamerscurse.com/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword,vb_login_md5password_utf)">
<script type="text/javascript" src="http://www.gamerscurse.com/clientscript/vbulletin_md5.js"></script>
after making changes, clear all cookie, logout and login again.

Test: you may try to login in your forum home first, change to your album, and then browse to your AdminCP. You shouldnt have to login at these points.

Bhuwan 10-29-2004 08:25 PM

Anyone wanna show me how to customize the look of 4 images?

Mattius 10-29-2004 08:52 PM

Quote:

The login.php is vBulletin's login file:

Change ALL /forum/ by / or you can use your full path:

<form action="http://www.gamerscurse.com/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword,vb_login_md5password_utf)">
<script type="text/javascript" src="http://www.gamerscurse.com/clientscript/vbulletin_md5.js"></script>
after making changes, clear all cookie, logout and login again.

Test: you may try to login in your forum home first, change to your album, and then browse to your AdminCP. You shouldnt have to login at these points.
ok i tried the changes in the code you mentioned, i used the full path, and it shows me as a registered user on the gallery index page but I STILL have to login both at the gallery index and the admin and it still redirects me without actually loggin in...

Are there other areas where i have to change this code?

mtha 10-30-2004 02:53 AM

Quote:

Originally Posted by Mattius
ok i tried the changes in the code you mentioned, i used the full path, and it shows me as a registered user on the gallery index page but I STILL have to login both at the gallery index and the admin and it still redirects me without actually loggin in...

Are there other areas where i have to change this code?

I was able to register and login your gallery WITH my name. so the login part is working fine.

What is your groupID? you have to be in groupid 6 (Admin) in order to login to admin area.

And you should have this number right, according to your forum setting


- constants.php

// User levels
define('GUEST', 0);
define('USER_AWAITING', 3);
define('USER', 2);
define('ADMIN', 6);

https://vborg.vbsupport.ru/showthrea...=15#post561764

mtha 10-30-2004 02:54 AM

Quote:

Originally Posted by bchawla
Anyone wanna show me how to customize the look of 4 images?

Go to your Admin Control Panel
Go to Templates, and edit templates there.

Detail instruction should be available at www.4homepages.de

snap_com 10-30-2004 09:24 PM

I just wanted to say thank you for this hack, but I am having one problem. I have installed this hack about 6 times now and reinstalled vb and 4images just as much. I am still having the same problem.

Code:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/domain/public_html/forum/includes/functions.php on line 1887
Anyone know what I am doing wrong or what the problem is?

Thanks

snap_com

mtha 10-30-2004 09:47 PM

Quote:

Originally Posted by snap_com
I just wanted to say thank you for this hack, but I am having one problem. I have installed this hack about 6 times now and reinstalled vb and 4images just as much. I am still having the same problem.

Code:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/dreamxs/public_html/forum/includes/functions.php on line 1887
Anyone know what I am doing wrong or what the problem is?

Thanks

snap_com

What is line 1887 in your code says?
Do you have problem after this hack?

snap_com 10-30-2004 09:51 PM

I am using verion 3.0.3 of vb. This is what 1887 says:

Code:

$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";
not sure what is the problem. Basically after I upload the functions.php and functions_online.php that error is the only thing I get on the forums. But 4images gallery works fine. Just vb won't work.

snap_com

mtha 10-30-2004 10:07 PM

Quote:

Originally Posted by peterska2
Just one question, what's the best way to link usergroups created in 4images to usergroups in vB?

I've release an update version for those who have multiple vB custom groups, so you can set multiple vB groups to be Album's USER group, ADMIN group, or WAITING for MODERATION group.
(updated in the first post)


Just want to make changes? here's how:
NOTE: remember to backup the old files if you had them working good. I just make this work, didnt have time to fully test it. Let me know if it works good.

In constants.php:

Look for
PHP Code:

 // User levels
 
define('GUEST'0);
 
define('USER_AWAITING'3);
 
define('USER'2);
 
define('ADMIN'6); 

Replaced by
PHP Code:

  // User default levels
  
define('GUEST'0);  // GUEST group or ID
  
define('USER_AWAITING_DEFAULT'3);
  
define('USER_DEFAULT'2);
  
define('ADMIN_DEFAULT'6);
  
  
// User groups level
  
$waitinggroups = array(34); // vB Group should be waiting for moderate. seperate each group by comma
  
$usergroups = array(27); // Groups that are USERS in album. seperate each group by comma
  
$admingroups = array(6); // vB groups that are ADMINS in album. seperate each group by comma 

Define the groups that should be user, admin in $waitinggroups, $usergroups, $admingroups, seperate each group by comma


In sessions.php:
Look for

PHP Code:

// Get Userinfo
 
$session_info $site_sess->return_session_info();
 
$user_info $site_sess->return_user_info(); 

Add after:

PHP Code:

// Set USERGROUP levels
 
if (in_array($user_info[user_level], $admingroups)) 
 {
     
define('ADMIN'$user_info[user_level]);
 }
 else 
define('ADMIN',ADMIN_DEFAULT);
 
 if (
in_array($user_info[user_level], $usergroups)) 
 {
     
define('USER'$user_info[user_level]);
 } 
 else 
define('USER',USER_DEFAULT);
 
 if (
in_array($user_info[user_level], $waitinggroups)) 
 {
     
define('USER_AWAITING'$user_info[user_level]);
 }
 else 
define('USER_AWAITING',USER_AWAITING_DEFAULT); 


mtha 10-30-2004 10:11 PM

Quote:

Originally Posted by snap_com
I am using verion 3.0.3 of vb. This is what 1887 says:

Code:

$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";
not sure what is the problem. Basically after I upload the functions.php and functions_online.php that error is the only thing I get on the forums. But 4images gallery works fine. Just vb won't work.

snap_com

I think I saw someone had this problem before, either here or somewhere in 4homepages.de site. could you just do some search with that?

I think that guy was just comment out that line, and everything works fine.

...
read Valr the Slain posts here
https://vborg.vbsupport.ru/showthrea...5&page=2&pp=15

The answer is somewhere around there, or you can ask him for a solution

James T Brock 10-30-2004 11:02 PM

Quote:

Originally Posted by mtha
groupID problem.

Member has group = 2, admin has group = 6, but moderators groupID are unclassified in 4images.

I think the easiest way is adding another field for album level in user table, giving default value = 2 (member). For those who need to be admin, just change the value to be 6

My moderators are all in a moderator usergroup. If I add those changes with your latest update, and add the moderator usergroup to level user in the gallery, would that be sufficient without the database changes?

mtha 10-31-2004 08:50 PM

Quote:

Originally Posted by James T Brock
My moderators are all in a moderator usergroup. If I add those changes with your latest update, and add the moderator usergroup to level user in the gallery, would that be sufficient without the database changes?

yes it should be.

remember, this has to be primary group.

303Nate 11-01-2004 02:12 AM

I tried to install it on my v3.0.3 and I'm getting this error

Quote:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/x303/public_html/forums/includes/functions.php on line 1893
this is what is around line 1893
Quote:

$debughtml = '<hr />';
//$debughtml .= "<ul><a href=\"#\" onclick=\"set_cookie('vbulletin_collapse', ''); window.location=window.location\">vbulletin_collap se</a>:<br /><li>" . str_replace("\n", '</li><li>', $_COOKIE['vbulletin_collapse']) . "</li></ul>";
$debughtml .= "\n<form name=\"debugger\" action=\"\">\n<div align=\"center\">\n<!--querycount-->Executed <b>$query_count</b> queries<!--/querycount-->" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . " . ";
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')=== false, '?', '?','&amp;') . "explain=1\">Explain</a>)<br />\n";
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";
The "<a href" line is 1893.

Any help?

Mattius 11-01-2004 05:35 AM

Thx to Mtha i finally managed to get my site working. In the end the admin problem appears to be that i had

define('GUEST', 1);

instead of

define('GUEST', 0);

and that appeared to solve it straight away, i have no idea why because admin group is 6 but there you go. Now i have another question. What is the best way to go about changing the templates so it fits in with the rest of my site. I notice the templates are .html. so calling php files might be an issue?...im not sure.

Once i get the templates sorted it will be mission complete.

Thx again Mtha for your perserverance and help.

mtha 11-01-2004 01:06 PM

Quote:

Originally Posted by 303Nate
I tried to install it on my v3.0.3 and I'm getting this error

this is what is around line 1893

The "<a href" line is 1893.

Any help?

https://vborg.vbsupport.ru/showpost....&postcount=234



Quote:

and that appeared to solve it straight away, i have no idea why because admin group is 6 but there you go. Now i have another question. What is the best way to go about changing the templates so it fits in with the rest of my site. I notice the templates are .html. so calling php files might be an issue?...im not sure.
dont understand what you mean by calling php files. if you want to change templates, just edit those html files.

uae 11-01-2004 10:16 PM

Guys, check this out ...

This is a full integration of vB3.0.3 with 4images 1.7 :rolleyes:
with much more features.

I'll need to wrap things up, "still in beta stage" then post all the new features.
http://www.uaeart.com/main/


All times are GMT. The time now is 12:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01673 seconds
  • Memory Usage 1,944KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (34)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete