Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: mattchewone on February 15, 2009, 12:30:10 PM

Title: RC1 Need Urgent Help Please
Post by: mattchewone on February 15, 2009, 12:30:10 PM
I upgraded from the beta the other day and had some problems.
Some of the mods i had installed before the upgrade have gone up the wall.

Avatar under member groups works, but i have 3 avatars being displayed one under the other how can i solve this?

I cannot remove Articles or downloads as there is no uninstaller.

Can any one please help???

Matt
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 15, 2009, 04:55:58 PM
Sorry to bump up the thread but is there anyone that can help?
Title: Re: RC1 Need Urgent Help
Post by: karlbenson on February 15, 2009, 05:05:49 PM
some mods might not work with the latest version.

You'll pronably need to contact the author and get them to write a compatible one.
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 15, 2009, 05:09:27 PM
Quote from: regularexpression on February 15, 2009, 05:05:49 PM
some mods might not work with the latest version.

You'll pronably need to contact the author and get them to write a compatible one.

I tried installing the latest version but that didnt work with "avatar under member rank" as i still have 3 avatars being displayed.

I also re-installed the "remove the SMF logo" that did not work either.

What could be the problem?
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 16, 2009, 03:21:16 PM
Does anyone know why there is 3 avatars being displayed? This is my main annoyance!
Title: Re: RC1 Need Urgent Help
Post by: Antechinus on February 16, 2009, 04:22:02 PM
Sounds like the avatar code has been added several times to Display.template.php. Things like this can happen if you try to install incompatible mods.

Just look for this and remove any duplicates:

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 05:21:40 AM
This is what i have in display.template.php

// Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                        ', $message['member']['avatar']['image'], '<br />';

Title: Re: RC1 Need Urgent Help
Post by: Antechinus on February 17, 2009, 07:02:33 AM
Attach the file please.
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 07:26:05 AM
How do i attach?

If i go to Modify Themes > Browse Templates >

css      
images      
languages      
scripts      
BoardIndex.template.php   
Display.template.php   
Display.template.php~   
index.php   
index.template.php   
index.template.php~
license.txt   
MessageIndex.template.php   
style.css   
theme_info.xml

Thats what i have, could the ones with the "~" be causing problems?? If so how can i remove them?
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 07:31:23 AM
I copied the file, which one would i need to remove :


         // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo '
                  <li>', $message['member']['post_group'], '</li>';
         echo '
                  <li>', $message['member']['group_stars'], '</li>';

         // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                  <li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';


         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                  <li class="margintop" style="overflow: auto;">', $message['member']['blurb'], '</li> <br />';

         // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                     <li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';


         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                     <li class="margintop" style="overflow: auto;">', $message['member']['blurb'], '</li> <br />';

        // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                     <li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';


         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                     <li class="margintop" style="overflow: auto;">', $message['member']['blurb'], '</li> <br />';
Title: Re: RC1 Need Urgent Help
Post by: Antechinus on February 17, 2009, 07:53:02 AM
Remove two of them. You have three of them and that's why you are getting three avs displayed.

Quote from: Antechinus on February 16, 2009, 04:22:02 PM
Sounds like the avatar code has been added several times to Display.template.php. Things like this can happen if you try to install incompatible mods.

Just look for this and remove any duplicates:

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="margintop" style="overflow: auto;">', $message['member']['avatar']['image'], '</li>';


See? Like I said before. You also have three lots of code for personal text. Ditch two of those as well.
You attach files by using the "Additional options" under the reply window.
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 08:43:49 AM
I deleted two of them and there is still three being displayed. This is rather annoying.

Is the display.template.php~ causing an issue? As i cannot open this file.
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 12:48:47 PM
Could it be a database error?
Title: Re: RC1 Need Urgent Help
Post by: babjusi on February 17, 2009, 12:53:40 PM
Quote from: mattchewone on February 17, 2009, 08:43:49 AM
I deleted two of them and there is still three being displayed. This is rather annoying.

Is the display.template.php~ causing an issue? As i cannot open this file.

If you deleted those 2 sets of codes, in theory the avatar shouldn''t be displayed 3 times anymore. the display.template.php~ file, (with the tilda extension) is simply a backup of the Display.template.php file and has no influence whatsoever. Anyhow, attach here the current Display.template.php file that you have.

Quote from: mattchewone on February 17, 2009, 12:48:47 PM
Could it be a database error?

I highly doubt it.
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 12:55:07 PM
How do i download the file in order to attach it on here?
Title: Re: RC1 Need Urgent Help
Post by: babjusi on February 17, 2009, 01:01:50 PM
Quote from: mattchewone on February 17, 2009, 12:55:07 PM
How do i download the file in order to attach it on here?

Via Ftp.
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 01:05:29 PM
I am unable to do this. We are running SFTP on the server and i am at work and am unable to get access to it.

Ill copy it into a word doc.
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 17, 2009, 02:25:41 PM
Anyone else able to take a look and help me with resolving the issue?
Title: Re: RC1 Need Urgent Help
Post by: babjusi on February 17, 2009, 02:43:46 PM
Quote from: mattchewone on February 17, 2009, 01:05:29 PM
I am unable to do this. We are running SFTP on the server and i am at work and am unable to get access to it.

Ill copy it into a word doc.

Quote from: mattchewone on February 17, 2009, 02:25:41 PM
Anyone else able to take a look and help me with resolving the issue?

You hardly waited 30 minutes for a reply. One word of friendly advice. It is frowned upon those that bump their posts/topics within 24 hours in these forums. It will get you at the bottom of the priority list. So, if you are too impatient to wait, then you can start a topic at the Help wanted boards and specify how you want to be helped, for free or you are willing to pay. But don''t keep bumping your topics :)
Title: Re: RC1 Need Urgent Help
Post by: mattchewone on February 18, 2009, 04:34:37 AM
Sorry for bumping, i feel as if my topic is being ignored i have had it open for three days and there have only been 3 people help me with my issue.

I have had a look at the "Help Wanted" Boards and it seems that it isnt the correct place for my topic, as my issue is SMF 2.0RC1 related.

EDIT - I have just installed YAGAM, in the announcement it only displays one avatar! So it is only in the normal topics that three are being displayed. Is anyone any wiser on why this is??
Title: Re: RC1 Need Urgent Help Please
Post by: mattchewone on February 19, 2009, 05:07:19 AM
Just wanted to know if there was any one that could look at the .doc i uploaded which is the display.template.php to see if they could help me find out why there is 3 avatars being displayed.

I tried a different theme and still had 3 avatars being displayed! I installed YAGAM and in the test announcement i made it only displayed 1 avatar. So it is defiantly something to do with the display.template i think.

Matt
Title: Re: RC1 Need Urgent Help Please
Post by: JimM on March 12, 2009, 10:42:54 PM
Is this issue solved or do you still require assistance?  To download your Display.template.php file from your host, use your FTP program and drag the file to your desktop.  Post a reply here and click on Additional options and attach the file to your post.  We will take a look at the file to see where the duplication is.