RC1 Need Urgent Help Please

Started by mattchewone, February 15, 2009, 12:30:10 PM

Previous topic - Next topic

mattchewone

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

mattchewone

Sorry to bump up the thread but is there anyone that can help?

karlbenson

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.

mattchewone

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?

mattchewone

Does anyone know why there is 3 avatars being displayed? This is my main annoyance!

Antechinus

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>';

mattchewone

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 />';


Antechinus


mattchewone

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?

mattchewone

#9
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 />';

Antechinus

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.

mattchewone

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.

mattchewone

Could it be a database error?

babjusi

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.

mattchewone

How do i download the file in order to attach it on here?

babjusi


mattchewone

#16
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.

mattchewone

Anyone else able to take a look and help me with resolving the issue?

babjusi

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 :)

mattchewone

#19
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??

mattchewone

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

JimM

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.
Jim "JimM" Moore
Former Support Specialist

Advertisement: