Some questions.

Forum
Last Post
Threads / Messages

StarGirl

Member
Member
Joined
Feb 23, 2012
Messages
45
Points
0
Mysidian Dollar
4,530
1. I just upgraded to v1.3.1, and it said there was a new pound/promocode system. But I can't find any of these options in the admin CP. Where can I find them ?

2. Sig images don't work for me. I copy the BBCode but nothing shows as a result, if I go to the image url then I get a Bad Header request.. ??

3. In the new version, I see you've updated alot of, things. Now the avatar part I put in in functions.php doesn't work anymore. How to make a avatar show up in the sidebar?
 
1. The promocode settings can be accessed from admincp/adopt.php file, while the pound system settings can be edited from admincp/settings.php.

2. Are you sure the images used to work for you in the first place? If so, they should work just fine this time. If you happen to upload images through ACP, try to look into the table prefix.filemap and see if their urls are correct.

3. This I am not quite sure, the approach should not differ much from what you've done in Mys v1.3.0.
 
For the avatar in the functions.php just place this where you want it to show up.

Code:
		$row = $GLOBALS['adopts']->select("users_profile", array(), "username='{$loggedinname}'")->fetchObject();

	        $sidebar .= "<img src='{$row->avatar}' border='0' width='100px' height='100px'><br><br>";
 
1. The promocode settings can be accessed from admincp/adopt.php file, while the pound system settings can be edited from admincp/settings.php.

2. Are you sure the images used to work for you in the first place? If so, they should work just fine this time. If you happen to upload images through ACP, try to look into the table prefix.filemap and see if their urls are correct.

3. This I am not quite sure, the approach should not differ much from what you've done in Mys v1.3.0.

1. Thanks, I thought they would be more visible :p

2. No they never worked. In prefix.filesmap there doesn't seem to be anything wrong though. Unless the server path shouldn't start with a slash, but then only 2 images start with slashes. And now some pets work, i'll check more..

3. Nevermind now, now I can't view my site. Before I upgraded to 1.3.1 everything was fine, after I upgraded it was still fine, but now I get an error: Could not connect to database, the following error has occurred:
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
EDIT: Nvm, it was the host. But now I can access index.php it gives me an error, saying database.php or something is non existant. And when I go to see my backup of v1.3 it seems that's not existant too. Something wrong with the host. :p
For the avatar in the functions.php just place this where you want it to show up.

Code:
		$row = $GLOBALS['adopts']->select("users_profile", array(), "username='{$loggedinname}'")->fetchObject();

	        $sidebar .= "<img src='{$row->avatar}' border='0' width='100px' height='100px'><br><br>";
I thought I already tried that and it gave me another error... anyway, thanks! :)
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top